/* ============================================================
   森焱智作 · 企业服务（大模型私有化部署）展示站  v1.0.0
   域名 yszzagent.com · 与官网完全同色调
   森焱绿 #17864B→#2FBE6E   焰橙 #F5821F→#FFB612
   ============================================================ */
:root {
  --green: #17864B;
  --green-lt: #2FBE6E;
  --orange: #F5821F;
  --orange-lt: #FFB612;
  --ink: #14231B;
  --ink-2: #41544A;
  --muted: #6B7F73;
  --bg-alt: #F4FAF6;
  --dark: #0E1F16;
  --dark-2: #14532D;
  --line: #E3EFE7;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(20, 60, 40, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--ink); background: #fff; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- 通用组件（与官网一致） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; transition: all .25s ease; white-space: nowrap;
}
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-lt) 55%, var(--orange-lt) 130%);
  color: #fff; box-shadow: 0 6px 20px rgba(23, 134, 75, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(23, 134, 75, .45); }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-light { background: #fff; color: var(--green); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%); color: #EAF6EE; }
.section-dark .sec-title { color: #fff; }
.section-dark .sec-sub { color: #A9CDB8; }
.sec-head { text-align: center; margin-bottom: 50px; }
.sec-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: 1px; }
.sec-sub { margin-top: 12px; font-size: 16px; color: var(--muted); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.hidden { display: none !important; }

/* ---------- 公告条 ---------- */
.announce {
  background: linear-gradient(90deg, var(--dark), var(--dark-2) 55%, #7C3D10);
  color: #E8F5EC; font-size: 13.5px; position: relative; z-index: 60;
}
.announce-inner { display: flex; align-items: center; gap: 10px; padding: 9px 24px; flex-wrap: wrap; }
.announce-tag {
  background: linear-gradient(135deg, var(--orange), var(--orange-lt));
  color: #fff; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 6px;
}
.announce-link { color: #FFD48A; font-weight: 600; margin-left: auto; }

/* ---------- 导航 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(20,60,40,.08); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.nav-logo-name { font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.nav-logo-tag { font-size: 11.5px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.nav-menu { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav-menu a {
  padding: 8px 11px; border-radius: 10px; font-size: 14px; font-weight: 500;
  color: var(--ink-2); transition: all .2s; white-space: nowrap;
}
.nav-menu a.active { color: var(--green); background: var(--bg-alt); font-weight: 700; }
.nav-menu a:hover { color: var(--green); background: var(--bg-alt); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- 用户态 ---------- */
.nav-user { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: flex; align-items: center; gap: 10px; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 6px 5px 14px;
}
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--green), var(--green-lt));
  color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.user-name { font-size: 14px; font-weight: 700; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-bal { font-size: 12px; color: var(--green); font-weight: 700; }
.user-quit {
  border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px;
  border-radius: 99px; padding: 4px 12px; cursor: pointer; transition: all .2s;
}
.user-quit:hover { color: var(--orange); border-color: var(--orange); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 72px; background: linear-gradient(180deg, #F4FBF6 0%, #FFFFFF 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; }
.orb-green { width: 460px; height: 460px; background: radial-gradient(circle, #7FE0A8, transparent 65%); top: -150px; left: -110px; }
.orb-orange { width: 400px; height: 400px; background: radial-gradient(circle, #FFCE8F, transparent 65%); bottom: -170px; right: -90px; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(23,134,75,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(23,134,75,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; text-align: center; }
.hero-kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--green); background: #E7F6ED; border: 1px solid #CBE9D6;
  padding: 5px 14px; border-radius: 99px; margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(32px, 4.8vw, 56px); font-weight: 900; line-height: 1.18; letter-spacing: 1px;
  background: linear-gradient(100deg, var(--ink) 30%, var(--green) 65%, var(--orange) 95%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { margin: 18px auto 0; font-size: 17px; color: var(--ink-2); max-width: 720px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.hero-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 99px;
  padding: 8px 18px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow);
}

/* ---------- 指标 ---------- */
.metrics { padding: 8px 0 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.metric {
  text-align: center; padding: 24px 12px; border-radius: var(--radius);
  background: var(--bg-alt); border: 1px solid var(--line);
}
.metric-num { font-size: 32px; font-weight: 900; color: var(--green); line-height: 1.15; }
.metric-label { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.metrics-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ---------- 卡片 ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- 部署架构 ---------- */
.arch { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.arch-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(100deg, #FFFFFF, #F4FAF6);
  transition: all .25s;
}
.arch-row:hover { border-color: var(--green-lt); box-shadow: var(--shadow); transform: translateX(4px); }
.arch-tag {
  flex: none; width: 92px; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: 1px;
  color: var(--green); background: #E7F6ED; border-radius: 99px; padding: 4px 0;
}
.arch-name { flex: none; font-size: 16px; font-weight: 700; min-width: 150px; }
.arch-desc { font-size: 13.5px; color: var(--muted); }
.arch-arrow { text-align: center; color: var(--green-lt); font-size: 18px; line-height: 1; }

/* ---------- 交付流程 ---------- */
.steps { position: relative; max-width: 980px; margin: 0 auto; }
.steps::before {
  content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, var(--green-lt), var(--orange-lt)); opacity: .5;
}
.step { position: relative; display: flex; gap: 20px; padding: 14px 0; }
.step-dot {
  flex: none; width: 56px; height: 56px; border-radius: 50%; z-index: 1;
  background: #fff; border: 2px solid var(--green-lt); color: var(--green);
  font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.step-body { padding-top: 6px; }
.step-body h4 { font-size: 17px; margin-bottom: 4px; }
.step-body p { font-size: 14px; color: var(--ink-2); }

/* ---------- 规格表 ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { padding: 14px 18px; font-size: 14px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table thead th { background: var(--green); color: #fff; font-weight: 700; font-size: 14.5px; }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table tbody tr:hover { background: var(--bg-alt); }
.spec-name { font-weight: 700; color: var(--green); }
.spec-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- 安全合规 ---------- */
.sec-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 26px 24px; transition: all .3s;
}
.sec-card:hover { background: rgba(255,255,255,.10); transform: translateY(-6px); }
.sec-card h4 { font-size: 16.5px; color: #fff; margin-bottom: 8px; }
.sec-card p { font-size: 13.5px; color: #BBD8C6; }

/* ---------- 案例 ---------- */
.case-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: all .25s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CBE9D6; }
.case-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--orange);
  background: #FFF3E4; border-radius: 99px; padding: 2px 10px; margin-bottom: 10px;
}
.case-card h4 { font-size: 16.5px; margin-bottom: 8px; }
.case-card p { font-size: 13.5px; color: var(--ink-2); }
.case-kv { margin-top: 12px; font-size: 13px; color: var(--green); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 700; color: var(--ink);
  padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q:hover { color: var(--green); }
.faq-q .ico { color: var(--green); font-size: 18px; transition: transform .25s; }
.faq-item.open .faq-q .ico { transform: rotate(45deg); }
.faq-a { padding: 0 22px 18px; font-size: 14.5px; color: var(--ink-2); display: none; }
.faq-item.open .faq-a { display: block; }

/* ---------- 需求表单 ---------- */
.form-wrap {
  max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 34px 32px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-field { display: flex; flex-direction: column; gap: 6px; }
.f-field.full { grid-column: 1 / -1; }
.f-field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.f-field input, .f-field textarea, .f-field select {
  width: 100%; padding: 11px 14px; font: inherit; font-size: 14.5px;
  border: 1.5px solid var(--line); border-radius: 12px; outline: none; background: #FCFEFC;
  transition: border .2s, box-shadow .2s;
}
.f-field textarea { min-height: 110px; resize: vertical; }
.f-field input:focus, .f-field textarea:focus, .f-field select:focus {
  border-color: var(--green-lt); box-shadow: 0 0 0 3px rgba(47,190,110,.14);
}
.form-err { min-height: 20px; font-size: 13px; color: #D64545; margin-top: 8px; }
.form-ok { min-height: 20px; font-size: 13px; color: var(--green); margin-top: 8px; font-weight: 600; }
.form-tip { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--green) 0%, var(--dark-2) 55%, #7C3D10 110%); padding: 74px 0; text-align: center; color: #fff; }
.cta-inner h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; }
.cta-inner p { margin: 14px 0 28px; font-size: 16px; color: #D8EFE0; }

/* ---------- 登录弹窗（与官网一致） ---------- */
.auth-mask {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(10, 21, 15, .55); backdrop-filter: blur(6px);
}
.auth-mask.open { display: flex; }
.auth-modal {
  position: relative; width: 420px; max-width: 100%; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 24px; padding: 34px 34px 26px;
  box-shadow: 0 24px 80px rgba(10, 30, 20, .35); animation: modalIn .28s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.auth-close {
  position: absolute; top: 14px; right: 16px; width: 34px; height: 34px;
  border: none; border-radius: 50%; background: var(--bg-alt); color: var(--muted);
  font-size: 20px; cursor: pointer; transition: all .2s;
}
.auth-close:hover { background: #FFE9D4; color: var(--orange); }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-logo { width: 58px; border-radius: 14px; margin: 0 auto 12px; }
.auth-head h3 { font-size: 22px; font-weight: 800; }
.auth-head-sub { font-size: 13px; color: var(--muted); margin-top: 5px; }
.auth-tabs { display: flex; background: var(--bg-alt); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.auth-tab {
  flex: 1; border: none; background: none; padding: 9px 0; border-radius: 9px;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .22s;
}
.auth-tab.active { background: #fff; color: var(--green); box-shadow: 0 2px 8px rgba(20,60,40,.12); }
.a-field { margin-bottom: 15px; }
.a-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.a-field input {
  width: 100%; padding: 11px 14px; font: inherit; font-size: 14.5px;
  border: 1.5px solid var(--line); border-radius: 12px; outline: none; background: #FCFEFC;
  transition: border .2s, box-shadow .2s;
}
.a-field input:focus { border-color: var(--green-lt); box-shadow: 0 0 0 3px rgba(47,190,110,.14); }
.a-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.a-code-row { display: flex; gap: 10px; }
.a-code-row input { flex: 1; }
.a-sms-btn {
  flex: none; border: 1.5px solid var(--green); background: #E7F6ED; color: var(--green);
  font: inherit; font-size: 13.5px; font-weight: 700; border-radius: 12px; padding: 0 16px; cursor: pointer; transition: all .2s;
}
.a-sms-btn:hover:not(:disabled) { background: var(--green); color: #fff; }
.a-sms-btn:disabled { border-color: var(--line); background: var(--bg-alt); color: var(--muted); cursor: not-allowed; }
.a-err { min-height: 20px; font-size: 13px; color: #D64545; margin: -4px 0 8px; }
.a-submit {
  width: 100%; border: none; cursor: pointer; padding: 13px 0; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 800; color: #fff; letter-spacing: 4px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-lt) 55%, var(--orange-lt) 140%);
  box-shadow: 0 6px 18px rgba(23,134,75,.35); transition: all .25s;
}
.a-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(23,134,75,.45); }
.a-submit:disabled { opacity: .6; cursor: not-allowed; }
.a-foot { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--muted); }
.a-foot a { color: var(--green); font-weight: 600; }

/* ---------- Toast ---------- */
.sy-toast {
  position: fixed; left: 50%; top: 82px; z-index: 200;
  transform: translateX(-50%) translateY(-14px);
  background: rgba(14, 31, 22, .94); color: #fff; border: 1px solid rgba(255,255,255,.12);
  padding: 11px 22px; border-radius: 14px; font-size: 14px; font-weight: 600;
  box-shadow: 0 14px 40px rgba(10, 30, 20, .35);
  opacity: 0; pointer-events: none; transition: opacity .28s, transform .28s;
}
.sy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 页脚 ---------- */
.footer { background: #0A150F; color: #9DBFAA; padding: 56px 0 24px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; padding-bottom: 34px; border-bottom: 1px solid #1C3326; }
.footer-logo { width: 66px; border-radius: 14px; margin-bottom: 12px; }
.footer-slogan { color: #E4F3E9; font-weight: 700; font-size: 15px; }
.footer-domain { font-size: 13px; color: #6F8F7C; margin-top: 4px; font-family: Consolas, monospace; }
.footer-biz { font-size: 12.5px; color: #5F7F6E; margin-top: 10px; }
.footer-col h5 { color: #E4F3E9; font-size: 14.5px; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13.5px; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: center; align-items: center; gap: 10px 22px; flex-wrap: wrap; padding-top: 20px; font-size: 12.5px; color: #5F7F6E; text-align: center; }
.beian { color: inherit; text-decoration: none; }
.beian:hover { color: #9CCDB2; }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .nav-logo-tag { display: none; }
  .nav-menu a { padding: 8px 8px; font-size: 13.5px; }
}

/* 登录后：右侧操作区不被压缩，且隐藏「返回主站」（徽章已含退出，避免与菜单重叠） */
.nav-actions { flex-shrink: 0; }
.navbar.logged .nav-actions .btn-ghost { display: none; }
@media (max-width: 1020px) {
  .grid-3, .grid-4, .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .nav-menu {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background: #fff;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 80px 20px 20px;
    box-shadow: -8px 0 30px rgba(0,0,0,.12); transition: right .3s; z-index: 55; overflow-y: auto;
  }
  .nav-menu.open { right: 0; }
  .nav-burger { display: block; z-index: 56; }
  .nav-actions .btn-ghost { display: none; }
  .arch-row { flex-wrap: wrap; }
  .arch-name { min-width: 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .metrics-grid, .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .hero { padding: 54px 0; }
  .spec-table th, .spec-table td { padding: 10px 12px; font-size: 13px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
