/* ============================================
   摄状元®AI创影 - Components v1.0
   Navigation / Buttons / Cards / Footer / Misc
   ============================================ */

/* ════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--szy-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--szy-nav-h);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: var(--szy-nav-bg-scroll);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

/* ── Mobile Navigation ── */
@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    z-index: 1010;
    position: relative;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .main-nav {
    position: fixed;
    top: var(--szy-nav-h);
    left: 0; right: 0; bottom: 0;
    background: rgba(10,10,15,0.98);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 24px 0;
    z-index: 999;
  }
  .main-nav.szy-nav-open,
  .main-nav.mobile-open {
    transform: translateX(0);
  }
  .nav-list {
    display: flex;
    flex-direction: column;
    padding: 0 24px;
  }
  .nav-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-item a {
    display: block;
    padding: 16px 0;
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  .nav-item a:hover, .nav-item.active a {
    color: #F0C040;
  }
  .nav-item .submenu {
    display: none;
    padding-left: 16px;
    padding-bottom: 8px;
  }
  .nav-item.submenu-open .submenu { display: block; }
  .nav-item .submenu li a {
    font-size: 14px;
    padding: 8px 0;
    color: #8A8A9A;
    border-bottom: none;
  }
  body.nav-open { overflow: hidden; }
}

/* ── Desktop Navigation ── */
@media (min-width: 768px) {
  .mobile-menu-toggle { display: none; }
  .main-nav { display: flex; align-items: center; }
  .nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .nav-item a {
    display: block;
    padding: 8px 12px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: color 0.3s ease, background 0.3s ease;
    white-space: nowrap;
  }
  .nav-item a:hover, .nav-item.active a {
    color: #FFFFFF;
    background: rgba(255,255,255,0.08);
  }
  .nav-item { position: relative; }
  .nav-item .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: rgba(10,10,15,0.98);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }
  .nav-item:hover .submenu,
  .nav-item.submenu-open .submenu {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .nav-item .submenu li a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    border-radius: 0;
  }
  .nav-item .submenu li a:hover {
    color: #F0C040;
    background: rgba(255,255,255,0.05);
  }
}

/* ════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #C41E3A, #E8324F);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(196,30,58,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,30,58,0.35);
  color: #FFFFFF;
}
.btn-secondary {
  background: transparent;
  color: #C41E3A;
  border-color: #C41E3A;
}
.btn-secondary:hover {
  background: #C41E3A;
  color: #FFFFFF;
}
.btn-gold {
  background: linear-gradient(135deg, #D4A017, #F0C040);
  color: #1A1A2E;
  box-shadow: 0 4px 16px rgba(212,160,23,0.25);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,160,23,0.35);
  color: #1A1A2E;
}
.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #FFFFFF;
}
.btn-outline-dark {
  background: transparent;
  color: #1A1A2E;
  border-color: #E8E8F0;
}
.btn-outline-dark:hover {
  border-color: #C41E3A;
  color: #C41E3A;
}
.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 12px;
}
.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 4px;
}
.btn-block { width: 100%; }

/* Register / Login buttons in banner */
.btn-register {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: linear-gradient(135deg, #C41E3A, #E8324F);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,30,58,0.35);
  color: #FFFFFF;
}
.btn-login {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  color: #FFFFFF;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  transition: all 0.3s ease;
}
.btn-login:hover {
  background: rgba(255,255,255,0.1);
  color: #FFFFFF;
}

/* ════════════════════════════════════════
   GRADIENT TEXT (hero title)
   ════════════════════════════════════════ */
.gradient-text {
  background: linear-gradient(135deg, #C41E3A, #D4A017);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ════════════════════════════════════════
   REGISTER BANNER
   ════════════════════════════════════════ */
.register-banner {
  background: linear-gradient(135deg, #C41E3A, #D4A017);
  border-radius: 24px;
  padding: 32px 24px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.register-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.register-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}
.register-banner-left h3 {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.register-banner-left p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.register-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.register-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  padding: 8px 16px;
  border-radius: 8px;
}
.benefit-icon { font-size: 18px; }
.benefit-text {
  font-size: 14px;
  color: #FFFFFF;
  font-weight: 500;
}

@media (max-width: 767px) {
  .register-banner { padding: 24px 16px; border-radius: 16px; }
  .register-banner-content {
    flex-direction: column;
    text-align: center;
  }
  .register-banner-left h3 { font-size: 18px; }
  .register-banner-actions { justify-content: center; }
  .register-benefits { justify-content: center; gap: 8px; }
  .benefit-item { padding: 6px 12px; }
}
@media (min-width: 768px) {
  .register-banner-content { flex-direction: row; }
  .register-benefits { gap: 12px; }
}

/* ════════════════════════════════════════
   WORKFLOW STEPS
   ════════════════════════════════════════ */
.workflow-steps {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.workflow-step {
  flex: 1;
  min-width: 160px;
  max-width: 240px;
  background: var(--szy-bg-alt, #F8F9FC);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.workflow-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.workflow-step-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.workflow-step-title {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 8px;
}
.workflow-step-desc {
  font-size: 13px;
  color: #4A4A5A;
  line-height: 1.5;
}
.workflow-arrow {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: #C41E3A;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .workflow-steps { flex-direction: column; align-items: center; }
  .workflow-step { max-width: 100%; min-width: auto; }
  .workflow-arrow { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .workflow-steps { flex-wrap: wrap; justify-content: center; }
  .workflow-step { min-width: 140px; }
}

/* ════════════════════════════════════════
   ADVANTAGE CARDS
   ════════════════════════════════════════ */
.advantages-grid {
  display: grid;
  gap: 24px;
}
.advantage-card {
  background: #FFFFFF;
  border: 1px solid #F0F0F5;
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.adv-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.adv-title {
  font-size: 18px;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 4px;
}
.adv-subtitle {
  font-size: 14px;
  color: #8A8A9A;
  margin-bottom: 12px;
}
.adv-list {
  list-style: none;
  padding: 0;
}
.adv-list li {
  font-size: 14px;
  color: #4A4A5A;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}
.adv-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C41E3A;
}

@media (max-width: 767px) {
  .advantages-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .advantages-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ════════════════════════════════════════
   CREATION GRID (创作类型)
   ════════════════════════════════════════ */
.creation-grid {
  display: grid;
  gap: 20px;
}
.creation-card {
  background: #FFFFFF;
  border: 1px solid #F0F0F5;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.creation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.creation-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}
.creation-title {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 8px;
}
.creation-desc {
  font-size: 13px;
  color: #4A4A5A;
  line-height: 1.5;
  margin-bottom: 8px;
}
.creation-tags {
  font-size: 12px;
  color: #C41E3A;
  background: #FFF5F5;
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-block;
}

@media (max-width: 767px) {
  .creation-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .creation-card { padding: 16px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .creation-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .creation-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ════════════════════════════════════════
   FEATURE CARD (通用)
   ════════════════════════════════════════ */
.feature-card {
  background: #FFFFFF;
  border: 1px solid #F0F0F5;
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: block;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: #4A4A5A;
  line-height: 1.6;
}
.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

/* ════════════════════════════════════════
   ASSET SHOWCASE (数字人资产库)
   ════════════════════════════════════════ */
.asset-showcase {
  display: flex;
  gap: 40px;
  align-items: center;
}
.asset-showcase-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 0 0 auto;
}
.asset-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #F8F9FC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: transform 0.3s ease;
}
.asset-avatar:hover { transform: scale(1.1); }
.asset-showcase-content {
  flex: 1;
}
.asset-showcase-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 12px;
}
.asset-showcase-content p {
  font-size: 15px;
  color: #4A4A5A;
  line-height: 1.7;
  margin-bottom: 16px;
}
.asset-features {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}
.asset-features li {
  font-size: 14px;
  color: #4A4A5A;
  line-height: 2;
  padding-left: 20px;
  position: relative;
}
.asset-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #C41E3A;
  font-weight: 700;
}

/* Asset Entry Grid */
.asset-entry-grid {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.asset-entry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  background: #F8F9FC;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.asset-entry-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.asset-entry-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.asset-entry-title {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 4px;
}
.asset-entry-desc {
  font-size: 13px;
  color: #8A8A9A;
}

@media (max-width: 767px) {
  .asset-showcase { flex-direction: column; gap: 24px; }
  .asset-showcase-visual { grid-template-columns: repeat(3, 1fr); }
  .asset-avatar { width: 56px; height: 56px; font-size: 24px; }
  .asset-entry-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (min-width: 768px) {
  .asset-entry-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ════════════════════════════════════════
   TASK CARDS (任务大厅)
   ════════════════════════════════════════ */
.task-hall-grid {
  display: grid;
  gap: 24px;
}
.task-card {
  background: #FFFFFF;
  border: 1px solid #F0F0F5;
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.task-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.task-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.task-type-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 9999px;
  background: #FFF5F5;
  color: #C41E3A;
}
.task-type-badge.type-ad { background: #FFFBF0; color: #D4A017; }
.task-type-badge.type-micro { background: #F0F8FF; color: #2563EB; }
.task-budget {
  font-size: 20px;
  font-weight: 700;
  color: #C41E3A;
}
.task-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 8px;
}
.task-card-desc {
  font-size: 14px;
  color: #4A4A5A;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.task-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #F0F0F5;
  font-size: 12px;
  color: #8A8A9A;
}

@media (max-width: 767px) {
  .task-hall-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .task-hall-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .task-hall-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.site-footer {
  background: #1A1A2E;
  color: #FFFFFF;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.footer-brand .footer-slogan {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.footer-brand .footer-tech {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 16px;
}
.footer-links ul { list-style: none; padding: 0; }
.footer-links li a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.3s ease;
}
.footer-links li a:hover { color: #F0C040; }

.footer-qr-section { margin-top: 12px; }
.footer-qr-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-qr-item { text-align: center; }
.footer-qr-item img { border-radius: 8px; object-fit: cover; margin-bottom: 4px; }
.footer-qr-item span { font-size: 11px; color: rgba(255,255,255,0.5); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.footer-bottom a {
  color: rgba(255,255,255,0.4);
}
.footer-bottom a:hover { color: #F0C040; }
.footer-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  max-width: 600px;
  margin: 8px auto 0;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .site-footer { padding: 40px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { text-align: center; }
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  .footer-bottom { display: flex; flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
}

/* ════════════════════════════════════════
   BACK TO TOP
   ════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border: 1px solid #E8E8F0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 900;
  color: #4A4A5A;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #C41E3A;
  color: #FFFFFF;
  border-color: #C41E3A;
}
