/* =========================================================
   湖畔科技官网 — style.css
   风格：DeepSeek API 页式暗色光感 —
   夜空蓝渐变首屏、左对齐大标题（打字光标）、白色胶囊按钮、
   深色玻璃面板与卡片、深色收尾。主题色集中在 :root 变量。
   ========================================================= */

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

:root {
  --bg: #05080f;             /* 页面基色（近黑） */
  --bg-2: #0a1424;           /* 区块深蓝 */
  --blue: #4d8dff;           /* 强调蓝 */
  --blue-deep: #2563eb;      /* 品牌蓝（取自 logo） */
  --ink: #f2f6ff;            /* 主文字（浅） */
  --text-2: #9aa7bd;         /* 次级文字 */
  --muted: #6b7a92;          /* 弱化文字 */
  --ok: #22c55e;             /* 状态绿 · 仅指示灯 */
  --line: rgba(255, 255, 255, .09);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { display: block; }
::selection { background: rgba(77, 141, 255, .35); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.container { width: min(1160px, 90%); margin-inline: auto; }

/* ========== 按钮（胶囊 · 白底/描边） ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border: 1px solid transparent; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease,
    transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  background: #fff; color: #0b1220;
  box-shadow: 0 14px 34px -14px rgba(140, 185, 255, .55);
}
.btn-primary:hover { background: #e8f0ff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; border-color: rgba(255, 255, 255, .35); color: var(--ink);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .07); }
.btn-sm { padding: 8px 18px; font-size: 13.5px; }

/* ========== 顶栏（透明 → 滚动后玻璃） ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(5, 8, 15, .72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .9);
}
.nav { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 30px; font-size: 14px; color: #b9c4d6; }
.nav-links > a:not(.btn) { transition: color .2s; }
.nav-links > a:not(.btn):hover { color: #fff; }
.nav-toggle {
  display: none; margin-left: auto; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 10px 6px; cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== Hero · 夜空蓝渐变 + 左侧标题 ========== */
.hero {
  position: relative; padding: 260px 0 190px; overflow: hidden;
  background:
    radial-gradient(900px 520px at 12% 4%, rgba(140, 190, 255, .34), transparent 60%),
    radial-gradient(1100px 620px at 88% -6%, rgba(70, 120, 220, .34), transparent 64%),
    linear-gradient(180deg, #16345f 0%, #0b1a33 44%, var(--bg) 100%);
}
/* 漂浮光雾 */
.hero-clouds span {
  position: absolute; border-radius: 50%; background: rgba(150, 195, 255, .30);
  filter: blur(80px); pointer-events: none;
}
.hero-clouds span:nth-child(1) {
  width: 54vw; height: 26vw; left: -12%; top: -6%;
  animation: glow-drift 30s ease-in-out infinite alternate;
}
.hero-clouds span:nth-child(2) {
  width: 46vw; height: 22vw; right: -14%; top: 10%;
  background: rgba(90, 140, 240, .26);
  animation: glow-drift 42s ease-in-out infinite alternate-reverse;
}
.hero-clouds span:nth-child(3) {
  width: 70vw; height: 22vw; left: 16%; bottom: -12%;
  background: rgba(120, 170, 255, .16);
  animation: glow-drift 36s ease-in-out infinite alternate;
}
@keyframes glow-drift { to { transform: translate(64px, -18px); } }

/* 双栏：左侧文案 / 右侧产品视觉 */
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; column-gap: 56px;
  text-align: left;
}
.hero-inner > * { grid-column: 1; }
.hero-inner > .hero-visual { grid-column: 2; grid-row: 1 / span 3; align-self: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .1em; color: #9ab4e8;
}
.kicker::before { content: "✦"; color: var(--blue); font-size: 12px; }

.hero h1 {
  margin: 22px 0 36px; font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.35; font-weight: 500;
  letter-spacing: .1em; color: var(--ink);
}

.hero-cta { display: flex; justify-content: flex-start; gap: 14px; flex-wrap: wrap; }

/* 右侧产品视觉：深色玻璃面板 */
.hero-visual .mock {
  border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(10, 18, 34, .72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 60px 100px -50px rgba(0, 0, 0, .9),
    0 0 70px -20px rgba(90, 145, 255, .35);
}
.hero-visual .mock-body { height: 268px; }
.hero-visual .mock-term { font-size: 12px; }

/* ========== 区块通用（左对齐 · 大字距标题） ========== */
.section { padding: 100px 0; }
#products { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.section-head { max-width: 760px; margin: 0 0 56px; text-align: left; }
.eyebrow {
  display: inline-block; color: var(--blue); font-size: 13.5px; font-weight: 600;
  letter-spacing: .18em;
}
.section-head h2 {
  margin: 16px 0 14px; font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.4; font-weight: 500;
  letter-spacing: .07em; color: var(--ink);
}
.section-head > p:not(.eyebrow) { color: var(--text-2); font-size: 15.5px; }

/* ========== 产品 · 上下排列：整宽终端窗口 + 右侧功能区 ========== */
.product-list { display: grid; gap: 150px; }
.product-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 32px; flex-wrap: wrap; margin-bottom: 20px;
}
.product-window { border-radius: 18px; }
.product-split { display: flex; align-items: stretch; min-height: 460px; }
.product-split > * { min-width: 0; }
.product-window .mock-body { flex: 1; height: auto; }
.product-window .mock-screen { flex: 1; height: auto; }
.product-feats {
  flex: 0 0 340px; display: flex; flex-direction: column;
  padding: 30px 28px;
  background: rgba(255, 255, 255, .03);
  border-left: 1px solid var(--line);
}
.product-feats .card-feats { margin: 0; gap: 20px; }
.product-feats .card-link { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
/* 窗口变大后，内部模拟界面同步放大一档 */
.product-window .mock-side { width: 150px; padding: 16px 14px; }
.product-window .mock-term { font-size: 13px; padding: 20px 24px; }
.product-window .mock-chip { font-size: 11px; top: 16px; right: 16px; }

/* —— 卡片内 UI 模拟图（纯 CSS，无图片资源）—— */
.mock { border: 1px solid var(--line); background: rgba(255, 255, 255, .03); border-radius: 16px; overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 5px; padding: 10px 12px; background: rgba(255, 255, 255, .05); border-bottom: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-r { background: #fca5a5; } .dot-y { background: #fcd34d; } .dot-g { background: #86efac; }
.mock-tabs { display: flex; gap: 4px; margin-left: 10px; }
.mock-tab { font-size: 10px; line-height: 1; padding: 4px 9px; border-radius: 6px; color: var(--muted); background: rgba(255, 255, 255, .08); }
.mock-tab.active { background: rgba(255, 255, 255, .16); color: var(--ink); font-weight: 600; }
.mock-title { margin-left: 10px; font-size: 10.5px; color: var(--muted); }
.mock-status { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: #4ade80; }
.mock-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.mock-body { display: flex; height: 216px; }
.mock-side {
  width: 104px; flex: none; background: rgba(255, 255, 255, .03);
  border-right: 1px solid var(--line);
  padding: 12px 10px; display: flex; flex-direction: column; gap: 9px;
}
.sk { height: 7px; background: rgba(255, 255, 255, .12); border-radius: 4px; }
.mock-term {
  flex: 1; background: #060b16; padding: 14px 16px; overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
  font-size: 10.5px; line-height: 2; color: #8ea0b8;
}
.t-p { color: #4ade80; }
.t-c { color: #e2e8f0; }
.t-ok { color: #4ade80; }
.cursor {
  display: inline-block; width: 7px; height: 13px; vertical-align: -2px;
  background: #38bdf8; animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.mock-screen { position: relative; height: 216px; background: #060b16; }
.mock-chip {
  position: absolute; top: 12px; right: 12px; padding: 4px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #e0f2fe; font-size: 10px;
}
.mock-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .38);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8), 0 0 40px -12px rgba(90, 145, 255, .45);
}
.mock-play svg { width: 26px; height: 26px; margin-left: 3px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.mock-cursor {
  position: absolute; right: 24%; bottom: 30%;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45));
  animation: drift 7s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-30px, -20px); } }
.mock-toolbar {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; padding: 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .14);
}
.tb { width: 16px; height: 16px; border-radius: 5px; background: rgba(255, 255, 255, .28); }
.tb-red { background: #ef4444; }

/* —— 卡片文字区 —— */
.card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-head h3 { font-size: 23px; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.card-tag {
  flex: none; white-space: nowrap;
  font-size: 12px; font-weight: 600; padding: 4px 13px; border-radius: 999px;
  color: #9dc0ff; background: rgba(96, 150, 255, .16); border: 0;
}
.tag-teal { color: #9dc0ff; background: rgba(96, 150, 255, .16); }
.card-feats { display: flex; flex-direction: column; gap: 16px; margin: 6px 0 10px; }
.card-feats li { display: flex; gap: 14px; align-items: flex-start; }
.feat-icon {
  flex: none; width: 20px; height: 20px; margin-top: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--blue); background: none;
}
.feat-icon svg { width: 100%; height: 100%; }
.card-feats strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.5; color: #dce5f5; }
.card-feats p { font-size: 13.5px; color: #8b99b0; line-height: 1.65; }
.card-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); font-weight: 600; font-size: 14.5px;
}
.card-link svg { width: 15px; height: 15px; transition: transform .25s; }
.card-link:hover svg { transform: translateX(4px); }

/* ========== 联系 · 深色光感收尾 ========== */
#contact {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 50% 130%, rgba(90, 145, 255, .40), transparent 66%),
    radial-gradient(700px 360px at 12% -10%, rgba(120, 170, 255, .16), transparent 62%),
    linear-gradient(180deg, #070c17 0%, #0a1730 100%);
}
.contact-card { position: relative; text-align: center; padding: clamp(72px, 10vw, 120px) 24px; }
.contact-card .waves {
  position: absolute; left: -4%; bottom: -40px; width: 108%; height: 68%;
  color: rgba(120, 170, 255, .16); pointer-events: none;
}
.contact-card > .kicker { position: relative; z-index: 1; color: #9ab4e8; justify-content: center; }
.contact-card h2 {
  position: relative; z-index: 1;
  font-size: clamp(30px, 4.2vw, 46px); font-weight: 500;
  letter-spacing: .1em; color: var(--ink); margin: 18px 0 14px;
}
.contact-card > p { position: relative; z-index: 1; max-width: 520px; margin: 0 auto 32px; color: var(--text-2); }
.contact-card > .btn { position: relative; z-index: 1; }
#contact .btn-primary { background: #fff; color: #0b1220; }
#contact .btn-primary:hover { background: #e8f0ff; }

/* ========== 页脚 ========== */
.site-footer { position: relative; overflow: hidden; background: #04060c; color: #8b98ad; }
.site-footer .waves {
  position: absolute; left: 0; bottom: -20px; width: 100%; height: 240px;
  color: rgba(120, 170, 255, .08); pointer-events: none;
}
.site-footer > .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding: 64px 0 52px; }
.footer-brand .brand { color: #fff; }
.footer-brand > p { margin-top: 16px; font-size: 13.5px; line-height: 1.8; max-width: 280px; }
.footer-col h4 { color: var(--ink); font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; padding: 5px 0; font-size: 13.5px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 12.5px; color: #6b7a92;
}
.footer-bottom .icp { color: #6b7a92; text-decoration: none; transition: color .2s; }
.footer-bottom .icp:hover { color: #9ab4e8; }

/* ========== 滚动显现动画 ==========
   仅在 .js 存在时隐藏内容：无脚本/脚本失败时内容默认可见，避免白屏 */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ========== 响应式 ========== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-inner > .hero-visual { grid-column: 1; grid-row: auto; margin-top: 52px; }
  .product-list { gap: 110px; }
  .product-split { flex-direction: column; min-height: 0; }
  .product-window .mock-body, .product-window .mock-screen { min-height: 300px; }
  .product-feats { flex: none; border-left: 0; border-top: 1px solid var(--line); padding: 26px 24px; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 5% 16px; background: rgba(6, 10, 19, .95);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 44px -30px rgba(0, 0, 0, 1);
  }
  .site-header.nav-open .nav-links { display: flex; }
  .nav-links > a:not(.btn) { padding: 12px 2px; }
  .nav-links .nav-cta { margin-top: 12px; align-self: flex-start; }
}
@media (max-width: 560px) {
  .hero { padding: 200px 0 140px; }
  .hero h1 { letter-spacing: .08em; }
  .product-feats { padding: 22px 18px; }
  .product-window .mock-side { width: 88px; padding: 12px 10px; }
  .product-window .mock-term { font-size: 11px; padding: 14px 14px; }
  .hero-visual .mock-body { height: 210px; }
  .hero-visual .mock-term { font-size: 10.5px; }
  .section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ========== 无障碍：减少动画 ========== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .cursor, .mock-cursor, .hero-clouds span { animation: none; }
}
