/* 律拓元官网 · 初版（备案过审版）
   美术风格参考 AstroWind：亮蓝主色 + 靛紫点缀 + 极深 navy 暗区、Inter 字体、大留白、渐变光晕。
   Inter 自托管（仅 Latin），中文回落系统字体栈，零境外 CDN。 */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-600.woff2") format("woff2"); }

:root {
  --blue: #0161ef;
  --blue-dark: #0154cf;
  --accent: #6d28d9;
  --dark: #030620;
  --dark-2: #0a1030;

  --heading: #0a0a0a;
  --text: #1a1a1e;
  --muted: #585b66;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --border: #e6e8ec;
  --border-soft: #eef0f3;
  --blue-050: #eef4ff;
  --blue-100: #dbe7ff;

  --maxw: 1140px;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 10px 30px -12px rgba(16, 24, 40, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(1, 97, 239, 0.28);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }

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

img { max-width: 100%; display: block; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue); }

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

h1, h2, h3 { color: var(--heading); font-weight: 600; letter-spacing: -0.02em; margin: 0; }

/* ---------- 通用组件 ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.grad {
  background: linear-gradient(92deg, var(--blue), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--blue-dark);
  background: var(--blue-050);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  padding: 6px 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  border-radius: 999px;
  padding: 12px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-lg); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--heading); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); }

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: 9px; font-weight: 600; font-size: 20px; color: var(--heading); letter-spacing: -0.01em; }
.brand .mark { color: var(--blue); }
.brand small { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--blue); }
.nav .status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--muted); }
.nav .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 104px 0 88px; text-align: center; }
.hero::before,
.hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: 0.5;
}
.hero::before { width: 620px; height: 620px; top: -300px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(1, 97, 239, 0.28), transparent); }
.hero::after { width: 460px; height: 460px; top: -120px; right: -80px;
  background: radial-gradient(closest-side, rgba(109, 40, 217, 0.18), transparent); }
.hero .eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--blue-dark);
  background: var(--blue-050); border: 1px solid var(--blue-100);
  border-radius: 999px; padding: 7px 16px; margin-bottom: 26px;
}
.hero .eyebrow-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.1; font-weight: 600; margin-bottom: 22px; }
.hero .lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 34px; line-height: 1.65; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.hero .badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- section 通用 ---------- */
section.block { padding: 88px 0; }
section.soft { background: var(--bg-soft); border-block: 1px solid var(--border-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.2; margin-bottom: 14px; }
.section-head p { margin: 0; color: var(--muted); font-size: 17.5px; }

/* ---------- 能力网格 ---------- */
.feature-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.feature {
  display: flex; gap: 18px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 26px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--blue-100); }
.feature .ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue-050); color: var(--blue); border: 1px solid var(--blue-100);
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 17.5px; margin-bottom: 7px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ---------- 安全（软背景 · 三列卡） ---------- */
.sec-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.sec-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; text-align: left; box-shadow: var(--shadow-sm);
}
.sec-card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--blue), var(--accent)); color: #fff; margin-bottom: 18px;
}
.sec-card .ico svg { width: 23px; height: 23px; }
.sec-card h3 { font-size: 17px; margin-bottom: 8px; }
.sec-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: center; }
.about-grid .prose p { color: var(--muted); font-size: 17px; margin: 0 0 14px; }
.about-grid .prose p:last-child { margin-bottom: 0; }
.factcard {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 30px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.factcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--accent)); }
.factcard dl { margin: 0; display: grid; gap: 16px; }
.factcard .row { display: grid; gap: 3px; }
.factcard dt { color: var(--muted); font-size: 13px; font-weight: 500; }
.factcard dd { margin: 0; color: var(--heading); font-size: 15.5px; font-weight: 600; }
.factcard dd a { color: var(--blue-dark); }

/* ---------- CTA 暗区 ---------- */
.cta { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.cta::before { content: ""; position: absolute; width: 560px; height: 560px; top: -260px; left: 50%;
  transform: translateX(-50%); border-radius: 50%; filter: blur(70px); opacity: 0.5;
  background: radial-gradient(closest-side, rgba(1, 97, 239, 0.5), transparent); }
.cta .container { text-align: center; padding: 82px 24px; position: relative; }
.cta h2 { color: #fff; font-size: clamp(26px, 4vw, 36px); margin-bottom: 14px; }
.cta p { color: rgba(255, 255, 255, 0.72); font-size: 17.5px; max-width: 560px; margin: 0 auto 30px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); }
.footer-top { padding: 52px 0 32px; display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-top .brand { font-size: 19px; }
.footer-top .tagline { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; max-width: 320px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--text); font-size: 14px; font-weight: 500; }
.footer-links a:hover { color: var(--blue); }
.footer-legal { border-top: 1px solid var(--border); padding: 22px 0 34px; }
.footer-legal .disclaimer { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; max-width: 820px; line-height: 1.7; }
.footer-legal .beian { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0; font-size: 13.5px; color: var(--muted); }
.footer-legal .beian a { color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.footer-legal .beian a:hover { color: var(--blue); }
.footer-legal .beian img { width: 18px; height: 18px; }
.footer-legal .beian .sep { opacity: 0.4; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 90px 24px; }
.notfound .code { font-size: 15px; font-weight: 600; letter-spacing: 0.1em; color: var(--blue); margin-bottom: 12px; }
.notfound h1 { font-size: 32px; margin-bottom: 12px; }
.notfound p { color: var(--muted); margin: 0 0 26px; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  section.block { padding: 64px 0; }
  .hero { padding: 76px 0 64px; }
}
