/* ============================================================
   365AI 官方网站 —— 独立样式（与用户端同一套设计语言）
   浅冷灰底 · 深蓝主色 · 青绿点缀 · 珊瑚强调 · 网格 + 柔光
   ============================================================ */

:root {
  --ink: #1b3654;
  --ink-deep: #142a42;
  --ink-soft: #244968;
  --teal: #1fa6aa;
  --teal-deep: #168c91;
  --mint: #b7e7e8;
  --coral: #ef795d;
  --peach: #ffcfb7;
  --green: #10b981;
  --gold: #d99a3a;

  --bg: #f2f5f8;
  --bg-soft: #f8fafb;
  --card: #ffffff;
  --line: #dbe4ea;
  --line-soft: #eaf0f4;

  --txt: #1b3654;
  --body: #52677a;
  --muted: #8593a1;

  --grad: linear-gradient(135deg, #1b3654 0%, #1fa6aa 100%);
  --grad-hover: linear-gradient(135deg, #142a42 0%, #168c91 100%);
  --shadow-md: 0 10px 30px rgba(30, 55, 80, 0.10);
  --shadow-lg: 0 24px 60px rgba(30, 55, 80, 0.14);
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--txt); line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(27, 54, 84, .26); }
.btn--primary:hover { background: var(--grad-hover); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(27, 54, 84, .32); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-1px); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn .i { width: 18px; height: 18px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 245, 248, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--ink); box-shadow: 0 8px 20px rgba(27, 54, 84, .24);
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__name { color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: .16em; }
.brand__tag { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.nav { display: flex; gap: 26px; margin-left: 20px; }
.nav a { color: var(--body); font-size: 14px; font-weight: 600; transition: color .16s ease; }
.nav a:hover { color: var(--teal-deep); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 74px 0 92px; }
.hero .grid-bg {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(53, 83, 105, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 83, 105, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 78%);
}
.orb { position: absolute; border-radius: 999px; pointer-events: none; filter: blur(3px); }
.orb--mint { width: 300px; height: 300px; top: -120px; right: 4%; background: var(--mint); opacity: .5; }
.orb--peach { width: 220px; height: 220px; bottom: -110px; left: -60px; background: var(--peach); opacity: .42; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal-deep); font-size: 12px; font-weight: 800; letter-spacing: .18em;
}
.kicker::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--coral); }
.hero h1 { margin: 20px 0 20px; font-size: clamp(34px, 4.3vw, 54px); font-weight: 800; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero .lead { font-size: 17px; color: var(--body); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust li { display: flex; align-items: center; gap: 8px; color: var(--body); font-size: 13.5px; font-weight: 600; }
.trust .i { width: 18px; height: 18px; color: var(--green); flex: none; }

/* ---------- Hero 右侧：产品示意（纯 CSS，无外部图片） ---------- */
.studio {
  position: relative; border-radius: 22px; background: #fff;
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-lg); padding: 16px;
}
.studio__bar { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px; }
.studio__dots { display: flex; gap: 6px; }
.studio__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.studio__dots i:nth-child(1) { background: #f0a58f; }
.studio__dots i:nth-child(2) { background: #eecd8b; }
.studio__dots i:nth-child(3) { background: #9fd8c6; }
.studio__title { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.chip-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; background: rgba(31, 166, 170, .1);
  color: var(--teal-deep); font-size: 11px; font-weight: 700;
}
.chip-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse 1.6s ease-in-out infinite; }
.studio__body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.studio__stage {
  position: relative; aspect-ratio: 9 / 16;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #143349 0%, #1d5a63 52%, #25969b 100%);
}
.studio__stage::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 18%, rgba(255, 255, 255, .24), transparent 46%);
}
.studio__play {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}
.studio__play svg { width: 16px; height: 16px; color: var(--ink); margin-left: 2px; }
.studio__cap {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1;
  color: #eaf6f6; font-size: 10.5px; line-height: 1.5; letter-spacing: .02em;
}
.studio__cap b { color: #fff; }
.studio__side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.prompt-box {
  border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-soft);
  padding: 10px 12px; font-size: 11.5px; line-height: 1.7; color: #5d7285;
}
.prompt-box b { color: var(--ink); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumbs i {
  aspect-ratio: 3 / 4; border-radius: 9px; display: block;
  background: linear-gradient(150deg, #dceaf0, #c3dde4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.thumbs i:nth-child(2) { background: linear-gradient(150deg, #f6ddd3, #efbeab); }
.thumbs i:nth-child(3) { background: linear-gradient(150deg, #d9ece7, #bfe1d8); }
.meter { height: 7px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.meter span { display: block; height: 100%; width: 78%; border-radius: 999px; background: var(--grad); animation: fill 2.6s ease-in-out infinite alternate; }
.meter-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-weight: 600; }
.float-badge {
  position: absolute; padding: 8px 13px; border-radius: 999px; background: #fff;
  box-shadow: var(--shadow-md); font-size: 11.5px; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 7px;
}
.float-badge .i { width: 15px; height: 15px; }
.float-badge--a { top: 22px; left: -22px; color: var(--teal-deep); }
.float-badge--b { bottom: 30px; right: -18px; color: var(--coral); }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head h2 { margin: 16px 0 14px; font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.035em; }
.section-head .lead { font-size: 16px; color: var(--body); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- 能力 bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento__item {
  grid-column: span 2;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bento__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfe0e6; }
.bento__item--wide { grid-column: span 3; }
.bento__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 16px; color: #fff;
}
.bento__icon svg { width: 22px; height: 22px; }
.b1 { background: linear-gradient(135deg, #1fa6aa, #3fc0bd); }
.b2 { background: linear-gradient(135deg, #1b3654, #2f5a80); }
.b3 { background: linear-gradient(135deg, #2c7a7b, #4fb3b0); }
.b4 { background: linear-gradient(135deg, #ef795d, #f59e7c); }
.b5 { background: linear-gradient(135deg, #355d7d, #5b8bab); }
.b6 { background: linear-gradient(135deg, #d99a3a, #efb35d); }
.b7 { background: linear-gradient(135deg, #3f9d7c, #5cc49b); }
.b8 { background: linear-gradient(135deg, #5a5a9c, #7f7fc4); }
.bento__item h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.bento__item p { font-size: 14px; color: var(--body); }
.bento__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-size: 11.5px; font-weight: 700; color: var(--teal-deep);
  background: rgba(31, 166, 170, .1); padding: 4px 10px; border-radius: 999px;
}

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 22px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 13px; font-weight: 800; color: var(--teal-deep); letter-spacing: .1em;
}
.step h3 { font-size: 16px; font-weight: 800; margin: 12px 0 8px; }
.step p { font-size: 13.5px; color: var(--body); }
.step::after {
  content: ''; position: absolute; top: 50%; right: -20px; width: 20px; height: 2px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.step:last-child::after { display: none; }
.flow-note {
  margin-top: 26px; display: flex; align-items: center; gap: 12px;
  background: rgba(31, 166, 170, .08); border: 1px solid rgba(31, 166, 170, .22);
  border-radius: var(--radius); padding: 16px 20px; font-size: 14px; color: var(--teal-deep); font-weight: 600;
}
.flow-note .i { width: 20px; height: 20px; flex: none; }

/* ---------- 适用场景 ---------- */
.scenes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.scene {
  display: flex; gap: 18px; padding: 26px 24px; background: var(--card);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}
.scene:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.scene__mark {
  width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: rgba(27, 54, 84, .06); color: var(--ink);
}
.scene__mark svg { width: 22px; height: 22px; }
.scene h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; }
.scene p { font-size: 14px; color: var(--body); }

/* ---------- 计费与权益 ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan {
  position: relative; padding: 30px 26px; background: var(--card);
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
}
.plan--featured { background: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.plan--featured h3, .plan--featured .plan__desc { color: #fff; }
.plan--featured .plan__desc { color: #b9cbdc; }
.plan--featured li { color: #d5e2ee; }
.plan--featured .i { color: var(--mint); }
.plan__label { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--teal-deep); }
.plan--featured .plan__label { color: var(--mint); }
.plan h3 { font-size: 20px; font-weight: 800; margin: 12px 0 10px; }
.plan__desc { font-size: 14px; color: var(--body); min-height: 44px; }
.plan ul { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.plan li { display: flex; gap: 10px; font-size: 13.5px; color: var(--body); }
.plan .i { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }
.plan .btn { width: 100%; margin-top: 26px; }
.plan--featured .btn--ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .32); color: #fff; }
.plan--featured .btn--ghost:hover { background: rgba(255, 255, 255, .18); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.qa { background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; }
.qa summary {
  cursor: pointer; padding: 20px 22px; font-size: 15.5px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .i { width: 20px; height: 20px; color: var(--teal); flex: none; transition: transform .2s ease; }
.qa[open] summary .i { transform: rotate(45deg); }
.qa p { padding: 0 22px 22px; font-size: 14px; color: var(--body); }

/* ---------- 结尾 CTA ---------- */
.cta-band { padding: 30px 0 96px; }
.cta-card {
  position: relative; overflow: hidden; border-radius: 28px;
  background: var(--grad); color: #fff; padding: 62px 40px; text-align: center;
  box-shadow: 0 30px 70px rgba(27, 54, 84, .3);
}
.cta-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .2), transparent 40%),
              radial-gradient(circle at 88% 90%, rgba(183, 231, 232, .28), transparent 42%);
}
.cta-card .inner { position: relative; z-index: 1; }
.cta-card h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -0.03em; }
.cta-card p { margin: 14px auto 30px; max-width: 34em; color: #d8e7ee; font-size: 15.5px; }
.cta-card .btn--onlight { background: #fff; color: var(--ink); box-shadow: 0 14px 30px rgba(0, 0, 0, .18); }
.cta-card .btn--onlight:hover { transform: translateY(-1px); }
.cta-meta { margin-top: 18px; color: #c6d8e3; font-size: 13px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line-soft); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer-brand p { margin-top: 16px; font-size: 13.5px; color: var(--body); max-width: 26em; }
.footer-col h4 { font-size: 13.5px; font-weight: 800; margin-bottom: 14px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13.5px; color: var(--body); transition: color .16s ease; }
.footer-col a:hover { color: var(--teal-deep); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  font-size: 12.5px; color: var(--muted);
}

/* ---------- 滚动进入动效（默认可见，仅 JS 就绪时才隐藏） ---------- */
.will-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1); }
.will-reveal.is-in { opacity: 1; transform: none; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes fill { from { width: 62%; } to { width: 84%; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 46px; }
  .studio { max-width: 460px; margin: 0 auto; }
  .nav { display: none; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento__item, .bento__item--wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero { padding: 48px 0 66px; }
  .section { padding: 66px 0; }
  .bento { grid-template-columns: 1fr; }
  .bento__item, .bento__item--wide { grid-column: span 1; }
  .scenes { grid-template-columns: 1fr; }
  .float-badge { display: none; }
  .cta-card { padding: 46px 24px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn--ghost { display: none; }
}
@media (max-width: 470px) {
  .wrap { padding: 0 18px; }
  .brand__name { font-size: 13.5px; letter-spacing: .1em; }
  .brand__tag { display: none; }
  .hero-cta .btn { width: 100%; }
  .header-actions .btn { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .will-reveal { opacity: 1; transform: none; }
}
