/* ==========================================================================
   QuickQ — site styles (static HTML edition)
   ========================================================================== */

:root {
  --heading: #1f1927;
  --body: #4a4b51;
  --body-soft: #5f6762;
  --ink-blue: #0f034a;
  --ink-blue-2: #081131;
  --green: #25b760;
  --green-text: #17803d;
  --orange-btn: #b5560f;
  --orange-btn-dark: #94450c;
  --mint: #f4fbf7;
  --mint-icon: #d5f3e1;
  --indigo: #2e2e5c;
  --footer-link: #d8dadf;
  --radius-pill: 25px;
  --radius-card: 30px;
  --container: 1440px;
  --font-head: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-body: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--heading);
  font-weight: 600;
  margin: 0 0 18px;
  line-height: 1.24;
}

a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease, background-color .22s ease; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 30px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--heading); color: #fff;
  padding: 12px 20px; border-radius: 0 0 8px 8px;
  font-size: 15px; transition: top .18s ease;
}
.skip-link:focus { top: 0; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--green-text);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn-primary, .btn-dark, .btn-orange, .btn-outline, .btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 17px 40px; font-size: 19px; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: background-color .22s ease, color .22s ease, transform .22s ease;
}
.btn-dark, .btn-primary { background: var(--heading); color: #fff; }
.btn-dark:hover, .btn-primary:hover { background: var(--green); color: #fff; }
.btn-orange { background: var(--orange-btn); color: #fff; }
.btn-orange:hover { background: var(--orange-btn-dark); }
.btn-outline { background: var(--indigo); color: #fff; }
.btn-outline:hover { background: var(--heading); }
.btn-cta { background: #fff; color: var(--ink-blue); }
.btn-cta:hover { background: var(--green); color: #fff; }
.btn-sm { padding: 12px 28px; font-size: 16px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  height: 110px; display: flex; align-items: center;
  background: transparent;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.site-logo img { max-height: 44px; width: auto; }
.site-logo .wordmark { font-family: var(--font-head); font-weight: 700; font-size: 32px; color: #fff; }

.site-nav ul { display: flex; align-items: center; gap: 38px; list-style: none; }
.site-nav a { font-size: 17px; color: #fff; }
.site-nav a:hover, .site-nav a.active { color: #fff; text-decoration: underline; text-underline-offset: 8px; }
.site-nav a.active { font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #fff; white-space: nowrap; }
.lang-switch a { padding: 4px 6px; white-space: nowrap; color: #fff; font-weight: 400; }
.lang-switch a.active { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 44px; height: 44px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background: #4a41e8 url('/assets/quickq/img/hero-bg.png') no-repeat 50% 100% / cover;
  padding: 180px 0 120px;
  color: #fff;
  position: relative;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 72px; line-height: 1.16; font-weight: 700; color: #fff; margin-bottom: 26px; }
.hero .hero-sub { font-size: 24px; color: #fff; margin: 0 0 40px; line-height: 1.5; }
.hero .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-img img { margin-left: auto; }

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */

.section { padding: 110px 0 60px; }
.section-mint { background: var(--mint); }
.section-head { text-align: center; max-width: 900px; margin: 0 auto 70px; }
.section-eyebrow {
  display: block; color: var(--green-text); font-size: 22px; font-weight: 500;
  margin-bottom: 14px; font-family: var(--font-body);
}
.section-head h2 { font-size: 52px; line-height: 1.22; margin-bottom: 18px; }
.section-head p { font-size: 18px; line-height: 1.9; color: var(--body-soft); margin: 0; }

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.feature-card {
  background: var(--mint); border-radius: var(--radius-card);
  padding: 56px 50px 46px; display: flex; gap: 32px; align-items: flex-start;
}
.feature-icon {
  flex: 0 0 104px; width: 104px; height: 104px; border-radius: 50%;
  background: var(--mint-icon); display: flex; align-items: center; justify-content: center;
}
.feature-icon img { width: 54px; height: 54px; object-fit: contain; }
.feature-card h3 { font-size: 27px; font-weight: 600; margin-bottom: 20px; }
.feature-card p { font-size: 17px; line-height: 1.9; color: var(--body-soft); margin: 0; }

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */

.cta-band { background: var(--mint); text-align: center; padding: 100px 0 110px; }
.cta-band h2 { font-size: 50px; line-height: 1.24; max-width: 1100px; margin: 0 auto 24px; }
.cta-band p { font-size: 18px; color: var(--body-soft); margin: 0 0 42px; }
.cta-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Gallery / platform grid
   -------------------------------------------------------------------------- */

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.gallery img { border-radius: 18px; width: 100%; box-shadow: 0 18px 45px rgba(31, 25, 39, .10); }

.platform-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  align-items: stretch;
}
.platform-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.platform-card {
  background: #fff; border: 1px solid #eef1f0; border-radius: 20px;
  padding: 40px 26px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  height: 100%;
  transition: box-shadow .25s ease, transform .25s ease;
}
.platform-card:hover { box-shadow: 0 18px 45px rgba(31, 25, 39, .10); transform: translateY(-4px); }
.platform-card img { width: auto; height: 88px; max-width: 100%; margin: 0 auto 22px; object-fit: contain; }
.platform-card h3 {
  font-size: 22px; margin: 0 0 8px; min-height: 2.4em;
  display: flex; align-items: center; justify-content: center;
}
.platform-card .meta { font-size: 14px; color: var(--body-soft); margin: 0 0 20px; line-height: 1.7; }
.platform-card .btn-primary { padding: 12px 30px; font-size: 16px; margin-top: auto; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Page banner (inner pages)
   -------------------------------------------------------------------------- */

.page-banner {
  background: linear-gradient(90deg, #4a41e8 0%, #7238e4 52%, #a734e0 100%);
  min-height: 270px; padding: 110px 0 46px;
  display: flex; align-items: center; text-align: center; color: #fff;
}
.page-banner h1 { font-size: 50px; line-height: 1.24; font-weight: 700; color: #fff; margin: 0 0 12px; }
.page-banner .crumbs { font-size: 16px; color: rgba(255, 255, 255, .85); }
.page-banner .crumbs a:hover { color: #fff; text-decoration: underline; }

.page-content { padding: 80px 0 100px; }
.page-content .inner { max-width: 980px; margin: 0 auto; font-size: 17px; line-height: 1.9; }
.page-content h2 { font-size: 30px; margin: 44px 0 18px; }
.page-content h2:first-child { margin-top: 0; }
.page-content p { margin: 0 0 22px; }
.page-content ul.check-list { list-style: none; margin: 0 0 24px; }
.page-content ul.check-list li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.page-content ul.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green-text); font-weight: 700;
}

/* --------------------------------------------------------------------------
   Pricing (订阅)
   -------------------------------------------------------------------------- */

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }
.plan-card {
  background: #fff; border: 1px solid #eef1f0; border-radius: var(--radius-card);
  padding: 48px 40px; text-align: center; display: flex; flex-direction: column;
  position: relative; transition: box-shadow .25s ease, transform .25s ease;
}
.plan-card:hover { box-shadow: 0 22px 55px rgba(31, 25, 39, .12); transform: translateY(-4px); }
.plan-card.is-featured { border: 2px solid var(--green); }
.plan-badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--green-text); color: #fff; font-size: 14px; font-weight: 600;
  padding: 6px 20px; border-radius: 20px; white-space: nowrap;
}
.plan-card h3 { font-size: 24px; margin-bottom: 10px; }
.plan-price { font-family: var(--font-head); font-size: 52px; font-weight: 700; color: var(--ink-blue); line-height: 1.1; margin-bottom: 6px; }
.plan-price small { font-size: 18px; font-weight: 500; color: var(--body-soft); }
.plan-cycle { font-size: 15px; color: var(--body-soft); margin-bottom: 26px; }
.plan-card ul { list-style: none; text-align: left; margin: 0 0 30px; }
.plan-card ul li { padding: 9px 0 9px 30px; position: relative; font-size: 16px; color: var(--body); border-bottom: 1px dashed #eef1f0; }
.plan-card ul li:last-child { border-bottom: 0; }
.plan-card ul li::before { content: "✓"; position: absolute; left: 2px; color: var(--green-text); font-weight: 700; }
.plan-card .btn-primary, .plan-card .btn-orange { margin-top: auto; width: 100%; }

/* --------------------------------------------------------------------------
   Devices (更多设备)
   -------------------------------------------------------------------------- */

.device-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.device-card {
  background: #fff; border: 1px solid #eef1f0; border-radius: 20px;
  padding: 38px 26px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: box-shadow .25s ease, transform .25s ease;
}
.device-card:hover { box-shadow: 0 18px 45px rgba(31, 25, 39, .10); transform: translateY(-4px); }
.device-card img { height: 64px; width: auto; margin: 0 auto 18px; object-fit: contain; }
.device-card h3 { font-size: 20px; margin: 0 0 8px; }
.device-card p { font-size: 15px; line-height: 1.7; color: var(--body-soft); margin: 0 0 18px; }
.device-card .link-more { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--green-text); }
.device-card .link-more:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

/* --------------------------------------------------------------------------
   Reasons / stats (为什么选择)
   -------------------------------------------------------------------------- */

.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.reason-card {
  background: var(--mint); border-radius: var(--radius-card);
  padding: 44px 38px;
}
.reason-card h3 { font-size: 22px; margin-bottom: 14px; }
.reason-card h3::before { content: "√ "; color: var(--green-text); }
.reason-card p { font-size: 16px; line-height: 1.85; color: var(--body-soft); margin: 0; }

.stats-band {
  background: linear-gradient(90deg, #4a41e8 0%, #7238e4 52%, #a734e0 100%);
  padding: 90px 0; color: #fff;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stats-grid .num { font-family: var(--font-head); font-size: 56px; font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 8px; }
.stats-grid .label { font-size: 17px; color: rgba(255, 255, 255, .88); }

/* --------------------------------------------------------------------------
   Teaser cards (home)
   -------------------------------------------------------------------------- */

.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.teaser-card {
  background: #fff; border: 1px solid #eef1f0; border-radius: 20px; padding: 40px 34px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.teaser-card:hover { box-shadow: 0 18px 45px rgba(31, 25, 39, .10); transform: translateY(-4px); }
.teaser-card h3 { font-size: 21px; margin-bottom: 12px; }
.teaser-card p { font-size: 15px; line-height: 1.8; color: var(--body-soft); margin: 0 0 18px; }
.teaser-card .link-more { font-size: 15px; font-weight: 600; color: var(--green-text); }
.teaser-card .link-more:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

/* --------------------------------------------------------------------------
   Steps (使用方法简要)
   -------------------------------------------------------------------------- */

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.step-card { background: #fff; border: 1px solid #eef1f0; border-radius: 20px; padding: 40px 34px; position: relative; }
.step-card::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-head); font-size: 44px; font-weight: 700;
  color: var(--green); margin-bottom: 16px;
}
.step-card h3 { font-size: 20px; margin-bottom: 10px; }
.step-card p { font-size: 15px; line-height: 1.8; color: var(--body-soft); margin: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #12103a url('/assets/quickq/img/footer-bg.jpg') no-repeat center / cover;
  color: var(--footer-link);
}
.footer-top { padding: 110px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; }
.footer-col h3 { font-size: 22px; color: #fff; margin-bottom: 24px; }
.footer-col p { font-size: 15px; line-height: 1.9; color: var(--footer-link); opacity: .85; margin: 0; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 16px; color: var(--footer-link); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 26px 0; font-size: 15px; color: rgba(216, 218, 223, .75);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1400px) {
  .hero h1 { font-size: 58px; }
  .section-head h2, .cta-band h2 { font-size: 42px; }
  .feature-card { padding: 44px 38px 38px; }
}

@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .platform-grid, .platform-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .device-grid { grid-template-columns: repeat(3, 1fr); }
  .reason-grid, .plan-grid, .steps-grid, .teaser-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 50px 60px; }
  .site-nav ul { gap: 22px; }
}

@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .site-nav.is-open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: #1d2f9c; padding: 20px;
  }
  .site-nav.is-open ul { flex-direction: column; gap: 18px; align-items: flex-start; }
  .header-actions .btn-cta { display: none; }

  .hero { padding: 140px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .hero .hero-sub { font-size: 19px; margin-bottom: 32px; }
  .hero-img img { margin: 0 auto; }

  .section { padding: 70px 0 40px; }
  .section-head { margin-bottom: 44px; }
  .section-head h2, .cta-band h2 { font-size: 32px; }
  .section-eyebrow { font-size: 18px; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { flex-direction: column; gap: 22px; padding: 36px 28px; }
  .feature-icon { flex-basis: 84px; width: 84px; height: 84px; }
  .feature-card h3 { font-size: 22px; margin-bottom: 14px; }
  .feature-card p { font-size: 16px; line-height: 1.8; }

  .page-banner { min-height: 220px; padding: 100px 0 34px; }
  .page-banner h1 { font-size: 32px; }

  .platform-grid, .platform-grid.cols-5, .device-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .platform-card, .device-card { padding: 26px 14px; }
  .platform-card img { height: 60px; margin-bottom: 16px; }
  .platform-card h3 { font-size: 17px; margin-bottom: 6px; }
  .platform-card .btn-primary { padding: 11px 8px; font-size: 15px; width: 100%; max-width: 160px; }

  .reason-grid, .plan-grid, .steps-grid, .teaser-grid, .stats-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 38px 26px; }
  .stats-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { padding: 70px 0 40px; }
  .cta-band { padding: 70px 0; }
  .btn-primary, .btn-dark, .btn-orange, .btn-outline { padding: 14px 30px; font-size: 16px; }
}
