/* ================================================================
   云漾AI创作平台 - Landing Page Design System
   ================================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --brand-light: #e0e7ff;
  --accent: #7c3aed;
  --text-main: #111827;
  --text-sub: #6b7280;
  --text-inv: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-section: #f2f3fb;
  --bg-hero: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
  --border: #e5e7eb;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(79, 70, 229, 0.10);
  --shadow-md: 0 8px 40px rgba(79, 70, 229, 0.15);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; }

.section-label {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--text-main);
  margin: 16px 0 12px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-sub);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ---- Layout ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.btn--primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn--outline {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn--ghost:hover {
  background: var(--brand-light);
}

.btn--lg { padding: 16px 36px; font-size: 16px; border-radius: 12px; }

/* 用于深色渐变背景（Hero / CTA band）上的主 CTA，白底品牌色字 */
.btn--white {
  background: #ffffff;
  color: var(--brand);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}
.btn--white:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.navbar__logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  transition: color var(--transition);
}
.navbar__links a:hover { color: var(--brand); }
.navbar__links a.active {
  color: var(--brand);
  font-weight: 600;
  position: relative;
}
.navbar__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
}

.navbar__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__cta .btn { padding: 9px 20px; font-size: 14px; }

/* ====== 右下角客服QQ悬浮按钮 ====== */
.qq-float {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qq-float__preview {
  display: none;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
  padding: 10px;
  margin-bottom: 10px;
  text-align: center;
}
.qq-float__preview img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.qq-float__preview-label {
  font-size: 12px;
  color: #6b7280;
  margin-top: 7px;
}
.qq-float:hover .qq-float__preview {
  display: block;
}
.qq-float__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.15);
}
.qq-float__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
  color: #fff;
}
.qq-float__icon {
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.5;
}

/* Mobile nav toggle */
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-main);
  line-height: 0;
}

/* ---- 透明沉浸态（Hero 顶部） ---- */
.navbar--hero-top {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.navbar--hero-top .navbar__logo { color: #fff; }
.navbar--hero-top .navbar__links a { color: rgba(255,255,255,0.8); }
.navbar--hero-top .navbar__links a:hover,
.navbar--hero-top .navbar__links a.active { color: #fff; }
.navbar--hero-top #nav-login-btn {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.38);
  background: transparent;
}
.navbar--hero-top #nav-login-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.55);
}
.navbar--hero-top #nav-start-btn {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.45);
  color: #fff;
  box-shadow: none;
}
.navbar--hero-top #nav-start-btn:hover { background: rgba(255,255,255,0.25); }
.navbar--hero-top .navbar__toggle { color: #fff; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  background: var(--bg-hero);
  padding: 145px 24px 100px; /* 80px + 64px navbar + 1px border 补偿 */
  margin-top: -65px;         /* 向上延伸至 navbar 背后（含 1px border-bottom）*/
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 左右分栏布局 */
.hero__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* 左侧文字区 */
.hero__content { min-width: 0; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: clamp(32px, 4.5vw, 58px);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, #a5f3fc, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  max-width: 480px;
  margin: 0 0 40px;
  line-height: 1.75;
}

.hero__sub-mobile,
.hero__title--mobile,
.hero__badge--mobile-bonus {
  display: none;
}

.hero__visual--mobile {
  display: none;
}

.hero__actions {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  justify-content: flex-start;
  gap: 40px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  color: rgba(255,255,255,0.9);
}

.stat__value {
  font-size: 32px;
  font-weight: 700;
  display: block;
}

.stat__label {
  font-size: 13px;
  opacity: 0.75;
  margin-top: 4px;
}

/* 右侧精选图片 */
.hero__visual { position: relative; }

.hero__img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero__img-grid--masonry {
  display: block;
  column-count: 2;
  column-gap: 14px;
}

.hero__img-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__img-grid--masonry .hero__img-item:nth-child(2),
.hero__img-grid--masonry .hero__img-item:nth-child(4) {
  margin-top: 20px;
}

.hero__img-item:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  transform: translateY(-4px) scale(1.02);
}

.hero__img-grid--masonry .hero__img-item:nth-child(2):hover,
.hero__img-grid--masonry .hero__img-item:nth-child(4):hover {
  transform: translateY(-4px) scale(1.02);
}

.hero__img-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* 移动端全屏背景幻灯片（桌面端隐藏） */
.hero__bg-slides {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__bg-slide.is-active { opacity: 1; }

/* ================================================================
   FEATURES
   ================================================================ */
.features { background: var(--bg-section); }

.features__header { text-align: center; margin-bottom: 64px; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow), inset 3px 0 0 var(--brand);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card__desc {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ================================================================
   MODELS
   ================================================================ */
.models { background: var(--bg); }

.models__header { text-align: center; margin-bottom: 56px; }

.models__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.model-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.model-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.model-card__emoji {
  font-size: 40px;
  margin-bottom: 16px;
}

.model-card__name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.model-card__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--brand-light);
  color: var(--brand);
  margin-bottom: 12px;
}

.model-card__desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}

.model-card--soon {
  opacity: 0.65;
  filter: grayscale(0.3);
}

.model-card__tag--soon {
  background: #f3f4f6;
  color: #6b7280;
}

.model-card__tag--featured {
  background: linear-gradient(90deg, #f59e0b, #f97316);
  color: #fff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how { background: var(--bg-section); }

.how__header { text-align: center; margin-bottom: 64px; }

.how__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.how__steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand), var(--brand-light));
}

.step {
  text-align: center;
  position: relative;
}

.step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-hero);
  color: white;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.step__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step__desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.65;
}

/* ================================================================
   PRICING
   ================================================================ */
.pricing { background: var(--bg); }

.pricing__header { text-align: center; margin-bottom: 56px; }

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.price-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: box-shadow var(--transition);
}

.price-card--featured {
  border-color: var(--brand);
  box-shadow: 0 16px 48px rgba(79, 70, 229, 0.22);
  padding: 44px 32px;
  transform: translateY(-10px);
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.05) 0%, #fff 60%);
}

.price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.price-card__amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.price-card__amount span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-sub);
}

.price-card__credits {
  margin: 8px 0 24px;
  font-size: 14px;
  color: var(--text-sub);
}

.price-card__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.price-card__features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-sub);
}

.price-card__features li::before {
  content: '✓';
  color: var(--brand);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.price-card .btn { width: 100%; }

/* ================================================================
   FAQ
   ================================================================ */
.faq { background: var(--bg-section); }

.faq__header { text-align: center; margin-bottom: 56px; }

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-item__q {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  user-select: none;
  transition: background var(--transition);
}
.faq-item__q:hover { background: var(--bg-soft); }

.faq-item__q::after {
  content: '+';
  font-size: 20px;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.is-open .faq-item__q::after { transform: rotate(45deg); }

.faq-item__a {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
  /* 展开动画通过 max-height 过渡，JS 控制 */
  overflow: hidden;
  max-height: 0;
  padding-bottom: 0;
  transition: max-height 0.35s ease, padding-bottom 0.35s ease;
}

.faq-item.is-open .faq-item__a {
  max-height: 400px;
  padding-bottom: 20px;
}

/* ================================================================
   CTA BAND
   ================================================================ */
.cta-band {
  background: var(--bg-hero);
  padding: 80px 24px;
  text-align: center;
}

.cta-band__title {
  font-size: clamp(28px, 4vw, 42px);
  color: #fff;
  margin-bottom: 16px;
}

.cta-band__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
}

.cta-band__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: #0f172a;
  color: rgba(255,255,255,0.65);
  padding: 56px 24px 32px;
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 12px;
}

.footer__brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.footer__tagline {
  font-size: 13px;
  line-height: 1.6;
  max-width: 220px;
}

.footer__col-title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer__links a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-links a {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer__bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* ================================================================
   LEGAL PAGES
   ================================================================ */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 96px;
}

.legal-page h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.legal-page .legal-date {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 20px;
  margin: 36px 0 12px;
}

.legal-page p, .legal-page li {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
}

/* ================================================================
   PROMPT TOOLS
   ================================================================ */
.prompt-tools {
  background: #fff;
}

.prompt-tools__header {
  text-align: center;
  margin-bottom: 56px;
}

.prompt-tools__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.tool-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.tool-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.tool-card__icon--purple { background: #ede9fe; }
.tool-card__icon--blue   { background: #dbeafe; }
.tool-card__icon--green  { background: #dcfce7; }
.tool-card__icon--orange { background: #ffedd5; }

.tool-card__body {
  flex: 1;
  min-width: 0;
}

.tool-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.tool-card__desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ================================================================
   HERO CAROUSEL DOTS
   ================================================================ */
.hero__carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  flex-shrink: 0;
}

.hero__dot.active {
  background: #fff;
  transform: scale(1.4);
}

/* ================================================================
   GALLERY SHOWCASE
   ================================================================ */
.gallery-showcase {
  background: var(--bg-section);
}

.gallery-showcase__header {
  text-align: center;
  margin-bottom: 56px;
}

.gallery-showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.gallery-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.gallery-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.gallery-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.gallery-card:hover .gallery-card__img-wrap img {
  transform: scale(1.04);
}

.gallery-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(79, 70, 229, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-card:hover .gallery-card__overlay {
  opacity: 1;
}

.gallery-card__view-hint {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.gallery-card__info {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-card__prompt {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.gallery-card__likes {
  font-size: 13px;
  color: #e11d48;
  font-weight: 500;
}

.gallery-card__model {
  font-size: 11px;
  color: var(--text-sub);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.gallery-showcase__cta {
  text-align: center;
  margin-top: 48px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 55% 1fr; gap: 32px; }
  .hero__img-grid--masonry {
    column-count: 2;
    column-gap: 12px;
  }
  .hero__img-grid--masonry .hero__img-item:nth-child(2),
  .hero__img-grid--masonry .hero__img-item:nth-child(4) {
    margin-top: 12px;
  }
  .models__grid { grid-template-columns: repeat(2, 1fr); }
  .how__steps { grid-template-columns: repeat(2, 1fr); }
  .how__steps::before { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .gallery-showcase__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 48px 0; }

  .navbar__links { display: none; }
  .navbar__toggle { display: flex; }
  /* 移动端 navbar：Logo 左，登录+汉堡右 */
  .navbar__inner { justify-content: flex-start; }
  .navbar__cta {
    margin-left: auto;   /* 把 cta 和 toggle 整体推到右侧 */
    margin-right: 4px;
  }
  .navbar__cta #nav-start-btn { display: none; }
  /* 登录按钮移动端：去掉描边，改为文字链接样式 */
  .navbar__cta #nav-login-btn {
    border: none;
    background: transparent;
    color: var(--text-main);
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
  }
  .navbar--hero-top .navbar__cta #nav-login-btn {
    color: rgba(255, 255, 255, 0.92);
  }
  /* 抽屉菜单展开态 */
  .navbar.mobile-open .navbar__links {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    padding: 8px 0 20px;
    gap: 0;
    z-index: 99;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .navbar.mobile-open .navbar__links a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .navbar.mobile-open .navbar__links li:last-child a { border-bottom: none; }
  .navbar.mobile-open .navbar__links a:hover { color: #fff; background: rgba(255,255,255,0.04); }

  .qq-float { bottom: 20px; right: 16px; }
  /* 移动端联系客服：缩为圆形图标按钮，悬停展开文字 */
  .qq-float__btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .qq-float__btn span:not(.qq-float__icon) { display: none; }
  .qq-float__icon { margin: 0; }
  .qq-float__preview img { width: 140px; height: 140px; }

  /* Hero：移动端全屏沉浸式背景图 */
  .hero {
    padding: 0;
    margin-top: -65px;              /* 延伸至 navbar 背后（含 1px border-bottom）*/
    min-height: calc(88vh + 65px);  /* 补偿 margin 使实际高度不变 */
    min-height: calc(88svh + 65px);
    display: flex;
    flex-direction: column;
  }
  .hero::before { z-index: 1; }
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.05) 0%,
      rgba(0,0,0,0.28) 42%,
      rgba(0,0,0,0.72) 70%,
      rgba(0,0,0,0.90) 100%
    );
    z-index: 2;
    pointer-events: none;
  }
  .hero__bg-slides { display: block; }
  .hero__inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    padding: 0 20px 52px;
    max-width: none;
    margin: 0;
    gap: 0;
  }
  .hero__content {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__badge { margin-bottom: 18px; }
  .hero__title--desktop { display: none; }
  .hero__title--mobile { display: block; }
  .hero__title {
    font-size: clamp(26px, 7.5vw, 34px);
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
  }
  .hero__sub {
    font-size: 14px;
    margin: 0 0 28px;
    max-width: 100%;
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
  }
  .hero__sub-desktop { display: none; }
  .hero__sub-mobile { display: inline; }
  .hero__visual--desktop { display: none; }
  .hero__visual--mobile { display: none; }
  .hero__actions {
    justify-content: flex-start;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 15px;
    border-radius: 16px;
  }
  .hero__actions .hero__btn-primary {
    background: linear-gradient(135deg, #5b4df6, #7c3aed);
    color: white;
    border: none;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(91, 77, 246, 0.35);
  }
  .hero__actions .btn--outline {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.45);
    backdrop-filter: blur(4px);
  }
  .hero__stats { justify-content: flex-start; gap: 28px; margin-top: 40px; }

  /* Features：2列紧凑网格 */
  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feature-card { padding: 20px 16px; }
  .feature-card__icon { width: 40px; height: 40px; font-size: 20px; margin-bottom: 12px; }
  .feature-card__title { font-size: 14px; margin-bottom: 8px; }
  .feature-card__desc { font-size: 12px; line-height: 1.6; }

  .models__grid { grid-template-columns: repeat(2, 1fr); }

  /* 使用流程：步骤改为左图标右文字的横排卡片 */
  .how__steps { grid-template-columns: 1fr; gap: 12px; }
  .step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    border: 1px solid var(--border);
  }
  .step__num { flex-shrink: 0; width: 44px; height: 44px; font-size: 16px; margin: 0; }
  .step__body { flex: 1; }
  .step__title { font-size: 15px; margin-bottom: 4px; }
  .step__desc { font-size: 13px; }

  .pricing__grid { grid-template-columns: 1fr; }

  .prompt-tools__grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-showcase__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* footer：品牌信息占满一行，链接三栏改 2 列网格 */
  .footer__top { grid-template-columns: 1fr 1fr; gap: 20px 28px; }
  .footer__top > div:first-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  /* feature cards 改回 1 列（极小屏宽度不够） */
  .features__grid { grid-template-columns: 1fr; }
  .btn--lg { padding: 13px 20px; font-size: 15px; }
  .hero__title { font-size: 26px; }
  .cta-band__actions { gap: 12px; }
  .gallery-showcase__grid { grid-template-columns: 1fr; }
}
