/* ============================================================
   线条助手 LineMate 官网样式
   暗色为主 / 可切浅色，配色沿用产品图标 #4C8DFF → #7B5AF0
   ============================================================ */

:root {
  --bg: #0b0d12;
  --bg-alt: #11141b;
  --surface: #171b24;
  --surface-2: #1e2330;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #eef1f7;
  --text-2: #a8b0c2;
  --text-3: #737d92;
  --accent: #4c8dff;
  --accent-2: #7b5af0;
  --accent-soft: rgba(76, 141, 255, .12);
  --shadow: 0 18px 50px rgba(0, 0, 0, .38);
  --radius: 16px;
  --container: 1140px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

html[data-theme="light"] {
  --bg: #f7f8fc;
  --bg-alt: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f2f5fb;
  --border: rgba(20, 30, 60, .09);
  --border-strong: rgba(20, 30, 60, .16);
  --text: #161a25;
  --text-2: #525b70;
  --text-3: #8790a3;
  --accent-soft: rgba(76, 141, 255, .09);
  --shadow: 0 18px 45px rgba(30, 45, 90, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
code, kbd, pre { font-family: "Cascadia Code", Consolas, "SF Mono", monospace; }
::selection { background: var(--accent); color: #fff; }

.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 7px 15px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 12px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 24px rgba(76, 141, 255, .28); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(76, 141, 255, .42); }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-light { background: #fff; color: #1b2340; }
.btn-light:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }
.btn-outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }

/* ---------- 导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; letter-spacing: .5px; }
.brand-text small { font-size: 10px; color: var(--text-3); letter-spacing: 1.5px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color .18s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent); transition: width .2s; }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  border-radius: 9px; cursor: pointer; transition: color .18s, border-color .18s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 17px; height: 17px; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: none; }
.menu-btn { display: none; flex-direction: column; gap: 4px; width: 34px; height: 34px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 80px; }
.hero-glow {
  position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(76, 141, 255, .18), rgba(123, 90, 240, .10) 45%, transparent 70%);
  filter: blur(20px);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.badge { font-size: 12px; padding: 4px 11px; border-radius: 999px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.badge-soft { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border); }
h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.15; margin: 0 0 20px; letter-spacing: -1px; font-weight: 800; }
.gradient-text { background: linear-gradient(100deg, #5c9bff, #9b7cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: var(--text-2); font-size: 16px; max-width: 520px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 800; }

.hero-visual { position: relative; }
.window-frame {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow); transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
}
.window-bar { height: 38px; display: flex; align-items: center; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.window-dots i:nth-child(2) { background: #febc2e; }
.window-dots i:nth-child(3) { background: #28c840; }
.window-title { margin: 0 auto; font-size: 12px; color: var(--text-3); }
.window-frame img { width: 100%; }
.float-chip {
  position: absolute; background: var(--surface); border: 1px solid var(--border-strong);
  padding: 8px 14px; border-radius: 10px; font-size: 12px; font-weight: 600;
  box-shadow: var(--shadow); color: var(--text);
}
.chip-a { top: -18px; right: -10px; }
.chip-b { bottom: -18px; left: 14px; }

/* ---------- 数据条 ---------- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { text-align: center; padding: 26px 10px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat strong { display: block; font-size: 30px; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 12px; color: var(--text-3); }

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head-left { text-align: left; margin: 0; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--accent); margin-bottom: 12px; text-transform: uppercase; }
.section-head h2, .faq-layout h2, .dev-copy h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 14px; letter-spacing: -.5px; }
.section-head p { color: var(--text-2); margin: 0; }

/* ---------- 特性 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.feature-icon {
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px;
  background: var(--accent-soft); border-radius: 12px; margin-bottom: 18px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.feature-card p { margin: 0; font-size: 14px; color: var(--text-2); }
kbd { font-size: 11px; padding: 1px 6px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 5px; }

/* ---------- 功能分组 ---------- */
.group-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.group-tab {
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s ease;
}
.group-tab:hover { border-color: var(--accent); color: var(--text); }
.group-tab.is-active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(76, 141, 255, .25); }
.group-panel { display: none; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 40px; }
.group-panel.is-active { display: grid; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.group-tag { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--accent); }
.group-panel-copy h3 { font-size: 28px; margin: 8px 0 14px; }
.group-panel-copy p { color: var(--text-2); font-size: 15px; margin-bottom: 18px; }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tick-list li { font-size: 14px; color: var(--text-2); padding-left: 24px; position: relative; }
.tick-list li::before { content: "◆"; position: absolute; left: 0; color: var(--accent); font-size: 11px; top: 3px; }
.tick-list-lg li { font-size: 15px; }
.tick-list-lg strong { color: var(--text); }
.group-panel-visual img { width: 100%; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }

/* ---------- 截图展示 ---------- */
.shot-stage { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); min-height: 420px; display: grid; place-items: center; }
.shot-stage img { width: 100%; max-width: 900px; border-radius: 8px; }
.shot-thumbs { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.shot-thumb { width: 110px; padding: 0; border: 2px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); cursor: pointer; opacity: .6; transition: all .2s; }
.shot-thumb:hover { opacity: 1; }
.shot-thumb.is-active { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.shot-thumb img { width: 100%; }

/* ---------- 插件 ---------- */
.plugin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plugin-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .2s, border-color .2s; }
.plugin-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.plugin-card-accent { border-style: dashed; border-color: var(--accent); background: var(--accent-soft); }
.plugin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.plugin-badge { font-size: 11px; padding: 3px 9px; background: var(--accent-soft); color: var(--accent); border-radius: 6px; font-weight: 700; }
.plugin-badge-alt { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.plugin-id { font-family: monospace; font-size: 11px; color: var(--text-3); }
.plugin-card h3 { margin: 0 0 8px; font-size: 19px; }
.plugin-card p { font-size: 14px; color: var(--text-2); margin: 0 0 16px; }
.plugin-card code { font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.plugin-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.plugin-tags span { font-size: 11px; color: var(--text-3); border: 1px solid var(--border); padding: 2px 9px; border-radius: 999px; }
.text-link { color: var(--accent); font-size: 14px; font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* ---------- 快速开始 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.step-num { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: 1px; }
.step h3 { margin: 10px 0 8px; font-size: 18px; }
.step p { margin: 0; font-size: 14px; color: var(--text-2); }
.step code { font-size: 12px; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; color: var(--accent); }
.command-box { max-width: 720px; margin: 0 auto; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.command-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--surface-2); font-size: 12px; color: var(--text-3); border-bottom: 1px solid var(--border); }
.copy-btn { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border); padding: 3px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; }
.copy-btn:hover { border-color: var(--accent); }
.command-box pre { margin: 0; padding: 18px 20px; overflow-x: auto; }
.command-box code { font-size: 14px; color: var(--text); }

/* ---------- 开发者 ---------- */
.dev-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.dev-copy > p { color: var(--text-2); margin-bottom: 20px; }
.dev-copy code { font-size: 13px; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.code-card { background: #0d1017; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.code-head { display: flex; gap: 12px; align-items: center; padding: 10px 16px; background: #151a24; border-bottom: 1px solid #262c38; font-size: 12px; color: #8b93a7; }
.code-lang { color: #7b5af0; font-weight: 800; }
.code-card pre { margin: 0; padding: 20px; overflow-x: auto; font-size: 12.5px; line-height: 1.8; color: #d5dae6; }
.c-kw { color: #c792ea; } .c-ty { color: #82aaff; } .c-st { color: #c3e88d; } .c-fn { color: #ffcb6b; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 320px 1fr; gap: 60px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-list details:first-child { border-top: 1px solid var(--border); }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--text-2); font-size: 14px; margin: 12px 0 0; }
.faq-list code { font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

/* ---------- CTA & 页脚 ---------- */
.cta { padding: 80px 0; background: linear-gradient(135deg, #3f7fe8, #7048d8); text-align: center; color: #fff; }
.cta-inner > img { margin: 0 auto 20px; border-radius: 16px; }
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 10px; }
.cta p { margin: 0 0 26px; opacity: .9; }
.cta .hero-actions { justify-content: center; }
.site-footer { padding: 34px 0; background: var(--bg); border-top: 1px solid var(--border); text-align: center; }
.footer-brand { display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 10px; }
.footer-brand small { color: var(--text-3); font-weight: 400; }
.site-footer p { margin: 4px 0; font-size: 13px; color: var(--text-3); }
.site-footer a { color: var(--accent); }
.site-footer a:hover { text-decoration: underline; }
.footer-copy { margin-top: 12px !important; font-size: 12px !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 24px; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .menu-btn { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-top: 20px; }
  .hero-copy { text-align: center; }
  .badge-row, .hero-actions, .hero-points { justify-content: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .window-frame { transform: none; }
  .feature-grid, .plugin-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .group-panel { grid-template-columns: 1fr; gap: 26px; padding: 28px; }
  .dev-layout, .faq-layout { grid-template-columns: 1fr; gap: 30px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: none; }
  .stat:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 32px)); }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 60px; }
  .feature-grid, .plugin-grid, .steps, .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .brand-text small { display: none; }
  .float-chip { display: none; }
  .btn-lg { padding: 11px 20px; font-size: 14px; }
  .code-card pre { font-size: 11px; }
  .shot-thumb { width: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
