/* ============================================
   比盒科技 - 元宇宙社交网站
   Design-to-Code: metaverse.css
   ============================================ */

/* ---- CSS Variables (from design tokens) ---- */
:root {
  --bg-canvas: #030014;
  --accent-magenta: #FF006E;
  --accent-cyan: #2EA7FF;
  --accent-purple: #A78BFA;
  --accent-green: #13DDC4;
  --accent-pink: #FF77AF;

  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.35);

  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-light: rgba(255, 255, 255, 0.04);
  --bg-input: rgba(255, 255, 255, 0.04);

  --border-glass: rgba(255, 255, 255, 0.16);
  --border-card: rgba(255, 255, 255, 0.10);
  --border-input: rgba(255, 255, 255, 0.12);

  --radius-card: 20px;
  --radius-pill: 99px;
  --radius-button: 12px;
  --radius-image: 24px;

  --font-family: 'Sarasa Gothic SC', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-form: 0 20px 60px rgba(0, 0, 0, 0.20);
  --shadow-nav: 0 4px 20px rgba(0, 0, 0, 0.20);
  --shadow-cta: 0 8px 24px rgba(255, 0, 110, 0.40);
  --shadow-hero: 0 20px 60px rgba(0, 0, 0, 0.25);
  --shadow-submit: 0 8px 24px rgba(255, 0, 110, 0.35);
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

/* ---- Page Container ---- */
.page {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  background-color: var(--bg-canvas);
  overflow: hidden;
}

/* ---- Aurora Background ---- */
.aurora {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.aurora--cyan {
  width: 1100px;
  height: 1100px;
  left: -300px;
  top: 50px;
  background: radial-gradient(circle, rgba(46, 167, 255, 0.20) 0%, rgba(46, 167, 255, 0) 100%);
}

.aurora--magenta {
  width: 1000px;
  height: 1000px;
  left: 1100px;
  top: 150px;
  background: radial-gradient(circle, rgba(255, 0, 110, 0.16) 0%, rgba(255, 0, 110, 0) 100%);
}

.aurora--purple {
  width: 900px;
  height: 900px;
  left: 600px;
  top: -100px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.14) 0%, rgba(167, 139, 250, 0) 100%);
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 160px);
  max-width: 1760px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  box-shadow: var(--shadow-nav);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar--scrolled {
  background: rgba(3, 0, 20, 0.80);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.40);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.navbar__logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar__link {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
  cursor: pointer;
}

.navbar__link:hover,
.navbar__link--active {
  color: rgba(255, 255, 255, 0.9);
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--accent-magenta);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.navbar__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 0, 110, 0.40);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  padding: 140px 120px 140px 120px;
  min-height: 880px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
  max-width: 760px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(255, 0, 109, 0.15);
  border: 1px solid rgba(255, 0, 109, 0.40);
  border-radius: var(--radius-pill);
  width: fit-content;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-magenta);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero__badge-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-pink);
}

.hero__title {
  font-size: 84px;
  font-weight: 700;
  line-height: 1.08;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero__desc {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 44px;
  background: var(--accent-magenta);
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: var(--shadow-cta);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 0, 110, 0.50);
}

.btn-primary img {
  width: 22px;
  height: 22px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 18px 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.30);
}

.hero__image {
  width: 640px;
  height: 640px;
  border-radius: var(--radius-image);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-hero);
  flex-shrink: 0;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Section Header (shared) ---- */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.section-title {
  font-size: 56px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
}

.section-subtitle--small {
  font-size: 20px;
  max-width: 960px;
}

/* ---- Features Section ---- */
.features {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding: 120px 120px;
}

.features__grid {
  display: flex;
  gap: 32px;
}

.feature-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.20);
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
}

.feature-card__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-card__desc {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---- Product Section ---- */
.product {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 120px 120px;
}

.product .section-header {
  align-items: flex-start;
}

.product .section-title {
  text-align: left;
}

.product .section-subtitle {
  text-align: left;
  max-width: 960px;
}

.filter-tabs {
  display: flex;
  gap: 16px;
}

.filter-tab {
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.filter-tab--active {
  background: var(--accent-magenta);
  border-color: var(--accent-magenta);
  font-weight: 700;
}

.filter-tab:not(.filter-tab--active):hover {
  background: rgba(255, 255, 255, 0.08);
}

.product__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-item {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.portfolio-item:hover {
  transform: scale(1.02);
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-item__label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ---- Stats Section ---- */
.stats {
  position: relative;
  z-index: 1;
  padding: 100px 120px;
}

.stats__grid {
  display: flex;
  gap: 32px;
}

.stat-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 52px;
  background: var(--bg-card-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
}

.stat-card__number {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
}

.stat-card__number--cyan { color: var(--accent-cyan); }
.stat-card__number--magenta { color: var(--accent-magenta); }
.stat-card__number--purple { color: var(--accent-purple); }
.stat-card__number--green { color: var(--accent-green); }

.stat-card__label {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* ---- Team Section ---- */
.team {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding: 120px 120px;
}

.team .section-header {
  align-items: flex-start;
}

.team .section-title {
  text-align: left;
}

.team .section-subtitle {
  text-align: left;
}

.team__grid {
  display: flex;
  gap: 40px;
}

.member-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}

.member-card:hover {
  transform: translateY(-4px);
}

.member-card__photo {
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.member-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.95);
}

.member-card__name {
  font-size: 26px;
  font-weight: 700;
  color: #0A0A14;
}

.member-card__role {
  font-size: 17px;
  font-weight: 400;
}

.member-card__role--cyan { color: var(--accent-cyan); }
.member-card__role--magenta { color: var(--accent-magenta); }
.member-card__role--purple { color: var(--accent-purple); }

/* ---- Contact Section ---- */
.contact {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 120px 120px;
}

.contact__form {
  width: 760px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 56px;
  background: var(--bg-card-light);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-image);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  box-shadow: var(--shadow-form);
}

.form-row {
  display: flex;
  gap: 24px;
}

.form-input,
.form-textarea {
  flex: 1;
  padding: 0 24px;
  height: 64px;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-button);
  font-size: 16px;
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

.form-textarea {
  height: 180px;
  padding: 24px;
  resize: none;
}

.btn-submit {
  position: relative;
  height: 64px;
  background: var(--accent-magenta);
  border-radius: var(--radius-button);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: var(--shadow-submit);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(255, 0, 110, 0.45);
}

.btn-submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-submit__loader {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: middle;
  animation: btn-spin 0.8s linear infinite;
}

.btn-submit.is-loading .btn-submit__loader {
  display: inline-block;
}

.btn-submit.is-success {
  background: var(--accent-green);
}

.btn-submit.is-error {
  background: #FF4444;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ---- Form feedback ---- */
.form-feedback {
  min-height: 24px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  transition: opacity 0.25s ease;
  opacity: 0;
}

.form-feedback.is-visible {
  opacity: 1;
}

.form-feedback.is-success {
  color: var(--accent-green);
}

.form-feedback.is-error {
  color: #FF6B6B;
}

.form-feedback.is-info {
  color: var(--accent-cyan);
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  padding: 72px 120px;
  background: rgba(0, 0, 0, 0.30);
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__brand-icon {
  width: 32px;
  height: 32px;
}

.footer__brand-text {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.footer__copyright {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
}

/* ---- Responsive ---- */
@media (max-width: 1680px) {
  .hero__title { font-size: 72px; }
  .hero__image { width: 540px; height: 540px; }
  .section-title { font-size: 48px; }
  .section-subtitle { font-size: 20px; }
  .stat-card__number { font-size: 48px; }
}

@media (max-width: 1440px) {
  .navbar {
    width: calc(100% - 100px);
    max-width: 1340px;
    height: 64px;
    padding: 0 32px;
  }

  .hero {
    padding: 120px 80px;
    gap: 60px;
    min-height: 820px;
  }

  .hero__title { font-size: 68px; }
  .hero__content { max-width: 680px; }
  .hero__image { width: 500px; height: 500px; }

  .features, .product, .team, .contact { padding: 100px 80px; }
  .features__grid { gap: 24px; }
  .feature-card { padding: 40px; gap: 24px; }
  .feature-card__icon { width: 56px; height: 56px; }
  .feature-card__title { font-size: 24px; }
  .feature-card__desc { font-size: 15px; }

  .stats { padding: 80px; }
  .stats__grid { gap: 24px; }
  .stat-card { padding: 40px; }
  .stat-card__number { font-size: 44px; }
  .stat-card__label { font-size: 16px; }

  .team__grid { gap: 32px; }
  .member-card__photo { height: 320px; }
  .member-card__info { padding: 28px; }
  .member-card__name { font-size: 22px; }
  .member-card__role { font-size: 15px; }

  .contact__form {
    width: 640px;
    padding: 48px;
    gap: 24px;
  }
  .form-row { gap: 20px; }
  .form-input, .form-textarea { height: 56px; padding: 0 20px; font-size: 15px; }
  .form-textarea { height: 160px; padding: 20px; }
  .btn-submit { height: 56px; font-size: 16px; }

  .footer { padding: 60px 80px; }
  .footer__brand-icon { width: 28px; height: 28px; }
  .footer__brand-text { font-size: 18px; }
  .footer__copyright { font-size: 14px; }

  .section-title { font-size: 44px; }
  .section-subtitle { font-size: 19px; }
  .section-subtitle--small { font-size: 18px; }

  .product__grid { gap: 24px; }
  .portfolio-item__label { bottom: 20px; left: 20px; padding: 8px 16px; font-size: 12px; }
  .filter-tab { padding: 12px 28px; font-size: 14px; }
}

@media (max-width: 1200px) {
  .hero__title { font-size: 56px; }
  .hero__image { width: 440px; height: 440px; }
  .section-title { font-size: 40px; }
  .section-subtitle { font-size: 18px; }
  .product__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .navbar__links { display: none; }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 40px 80px;
  }

  .hero__content { align-items: center; max-width: 100%; }
  .hero__ctas { justify-content: center; }
  .hero__image { width: 100%; max-width: 480px; height: auto; aspect-ratio: 1; }

  .features { padding: 80px 40px; }
  .features__grid { flex-direction: column; }

  .product { padding: 80px 40px; }
  .product .section-header { align-items: center; }
  .product .section-title,
  .product .section-subtitle { text-align: center; }
  .product__grid { grid-template-columns: repeat(2, 1fr); }

  .stats { padding: 60px 40px; }
  .stats__grid { flex-wrap: wrap; }
  .stat-card { min-width: calc(50% - 12px); }

  .team { padding: 80px 40px; }
  .team .section-header { align-items: center; }
  .team .section-title,
  .team .section-subtitle { text-align: center; }
  .team__grid { flex-direction: column; }

  .contact { padding: 80px 40px; }
  .footer { padding: 40px; }
}

@media (max-width: 768px) {
  .navbar { width: calc(100% - 32px); padding: 0 20px; height: 60px; }
  .navbar__cta { padding: 8px 16px; font-size: 13px; }

  .hero { padding: 100px 24px 60px; gap: 40px; }
  .hero__title { font-size: 42px; }
  .hero__desc { font-size: 16px; }
  .hero__ctas { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

  .features, .product, .team, .contact { padding: 60px 24px; }
  .stats { padding: 40px 24px; }
  .footer { padding: 32px 24px; }

  .section-title { font-size: 32px; }
  .section-subtitle { font-size: 16px; }

  .product__grid { grid-template-columns: 1fr; }
  .stat-card { min-width: 100%; }

  .form-row { flex-direction: column; }

  .footer__content { flex-direction: column; text-align: center; }
}
