/* ==========================================================================
   拓路人 tlr.net.cn · 设计系统（亮色旗舰）
   品牌 token 取自现有官网 CSS 变量，非臆造：
     --navy #0A1F3D   --blue #1E3A5F   --blue-soft #eaf0f8
     --orange #FF7A2B --orange-deep #E86A1F
   原则：留白优先、层级靠字重与间距、动效只做"进入"不做"炫技"。
   ========================================================================== */

:root {
  --navy: #0A1F3D;
  --blue: #1E3A5F;
  --blue-soft: #eaf0f8;
  --orange: #FF7A2B;
  --orange-deep: #E86A1F;
  --ink: #16233a;
  --muted: #5b6b84;
  --line: #e6ebf2;
  --line-strong: #d5dde8;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f2f6fb;

  --shadow-sm: 0 2px 8px rgba(10, 31, 61, .05);
  --shadow: 0 10px 28px rgba(10, 31, 61, .08);
  --shadow-lg: 0 22px 54px rgba(10, 31, 61, .13);
  --radius: 16px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;

  --wrap: 1200px;
  --header-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 800;
}
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 700; letter-spacing: -.01em; }
p  { margin: 0 0 1em; color: var(--blue); }
strong { color: var(--navy); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 108px) 0; }
.section--tight { padding: clamp(40px, 5vw, 68px) 0; }
.section--alt { background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .08em; font-weight: 600;
  color: var(--orange-deep);
  background: #FFF3EB; border: 1px solid #FFE0CC;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head p { font-size: 17px; margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; font-family: inherit;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s, border-color .3s;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 26px rgba(255, 122, 43, .32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(255, 122, 43, .4); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--blue); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------------------------------------------------------------- 页头 */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(247, 249, 252, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(255, 255, 255, .9); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); letter-spacing: .01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.main-nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.main-nav a { color: var(--blue); position: relative; padding: 4px 0; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--orange); transition: right .45s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--navy); font-weight: 600; }
.nav-ext {
  color: var(--navy) !important; font-weight: 600;
  background: var(--blue-soft); border-radius: 999px; padding: 6px 14px !important;
}
.nav-ext::after { display: none; }
.header-cta { margin-left: 6px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 2px; }

/* ---------------------------------------------------------------- 首屏 */
.hero {
  position: relative;
  /* 超高窗口下不许无限拉伸：首屏最高 1000px，否则 3D 会撑爆、把正文全推下去 */
  min-height: min(100svh, 1000px);
  display: flex; align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  /* 必须显式覆盖：旧 style.css 给 .hero 上了 height:min(54vh,540px) 与深海军蓝底。
     · 深色底：桌面端被 canvas 盖住看不出来，窄屏 canvas 只占顶部 44vh 时就露出深色带；
     · 固定高度：窄屏下 padding 一撑就超过它，内容溢出被 overflow:hidden 裁掉（文案整段消失）。
     这两条都是实测踩出来的，不是防御性写法。 */
  background: transparent;
  height: auto;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.hero-copy { max-width: 580px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-sub { font-size: clamp(15px, 1.5vw, 17px); line-height: 1.9; color: var(--blue); margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  border-top: 1px solid var(--line); padding-top: 22px; max-width: 620px;
}
.hero-stats b { display: block; font-size: 19px; color: var(--navy); }
.hero-stats span { font-size: 13px; color: var(--muted); }
.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-size: 12px; color: var(--muted); letter-spacing: .18em; z-index: 1;
}
.hero-scroll i { display: block; width: 1px; height: 34px; margin: 8px auto 0; background: linear-gradient(var(--line-strong), transparent); }

/* ---------------------------------------------------------------- 通用卡片 */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; margin-bottom: 0; }
.card .product-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.card .product-list li { position: relative; padding-left: 18px; font-size: 14px; color: var(--muted); }
.card .product-list li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px;
  border-radius: 2px; background: var(--orange); opacity: .75;
}
.card-tag { font: 600 12px/1 var(--mono); letter-spacing: .1em; color: var(--orange-deep); text-transform: uppercase; }

/* 两条业务 */
.pillars { align-items: start; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-sm);
}
.pillar h3 { font-size: clamp(21px, 2.4vw, 27px); }
.pillar .kv { display: grid; gap: 12px; margin-top: 22px; }
.pillar .kv div { display: flex; gap: 10px; font-size: 15px; color: var(--blue); }
.pillar .kv b { color: var(--navy); flex: 0 0 82px; font-weight: 600; }

/* ---------------------------------------------------------------- 产品 */
.product {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px);
  align-items: center; padding: clamp(26px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
}
.product:first-of-type { border-top: 0; }
.product--flip .product-media { order: -1; }
.product h3 { font-size: clamp(23px, 2.8vw, 32px); margin-bottom: 8px; }
.product .tagline { color: var(--orange-deep); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.product ul { margin: 18px 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.product ul li { position: relative; padding-left: 24px; color: var(--blue); font-size: 15px; }
.product ul li::before {
  content: ''; position: absolute; left: 2px; top: 11px;
  width: 8px; height: 8px; border-radius: 3px;
  background: linear-gradient(140deg, var(--orange), var(--orange-deep));
}
.product-media {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface-2); box-shadow: var(--shadow);
}
.product-media img { width: 100%; height: auto; }
.product-media--frame { padding: 18px; background: linear-gradient(160deg, #ffffff, var(--surface-2)); }

/* ---------------------------------------------------------------- 流程 */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; }
.step-num { font: 800 30px/1 var(--mono); color: var(--line-strong); }
.step h3 { margin-bottom: 6px; font-size: 19px; }
.step p { margin: 0; font-size: 15px; }

/* ---------------------------------------------------------------- 证据 */
.evidence { display: grid; gap: 16px; }
.evidence-item {
  display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.evidence-item .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--navy); font-weight: 800;
}
.evidence-item b { display: block; color: var(--navy); }
.evidence-item span { font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--orange); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; font-size: 15px; }

/* ---------------------------------------------------------------- 页脚 */
.site-footer { background: var(--navy); color: #c9d6e8; margin-top: 0; padding-top: 56px; }
.site-footer a { color: #dfe8f5; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-col h3 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: .02em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.footer-col p { color: #a8bad4; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; font-size: 13px; color: #93a7c4; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }

/* ---------------------------------------------------------------- 内容页 */
.page-head { padding: calc(var(--header-h) + 64px) 0 20px; }
.page-head p { font-size: 17px; max-width: 720px; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; color: var(--blue); }

/* 表单 */
.form { display: grid; gap: 16px; max-width: 620px; }
.form label { font-size: 14px; font-weight: 600; color: var(--navy); display: grid; gap: 6px; }
.form input, .form textarea, .form select {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px;
  transition: border-color .3s, box-shadow .3s;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 122, 43, .12);
}
.form textarea { min-height: 132px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-list { display: grid; gap: 18px; }
.contact-list div { border-left: 2px solid var(--orange); padding-left: 16px; }
.contact-list b { display: block; color: var(--navy); font-size: 14px; }
.contact-list span { color: var(--blue); }

/* ---------------------------------------------------------------- 滚动渐显 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- 收尾：粒子汇聚 */
.merge-section {
  position: relative;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
  padding-bottom: clamp(48px, 7vw, 96px);
}
#merge-canvas {
  display: block; width: 100%;
  height: clamp(190px, 26vw, 340px);
}
.merge-copy { position: relative; z-index: 1; margin-top: 6px; }
.merge-copy h2 { margin-bottom: 12px; }
.merge-copy p { max-width: 640px; margin: 0 auto 26px; font-size: 16px; }
@media (max-width: 900px) { #merge-canvas { height: 170px; } }

/* ---------------------------------------------------------------- 文章页（news_detail）
   类名 .article-card/.article-content/.article-cover/.article-wm/.article-img-shield
   被阅读保护脚本依赖，**只加样式、不改名**。 */
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--blue); }
.crumbs a:hover { color: var(--orange-deep); }
.crumbs span { color: var(--line-strong); }

.article-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 46px); box-shadow: var(--shadow-sm);
}
.article-head h1 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; }
.article-meta {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  font-size: 13px; color: var(--muted); padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.article-meta .tag { color: var(--orange-deep); background: #FFF3EB; border: 1px solid #FFE0CC; border-radius: 999px; padding: 3px 10px; }
.article-cover { margin: 24px 0; border-radius: var(--radius); overflow: hidden; }
.article-content { font-size: 16.5px; line-height: 1.95; color: #24344d; }
.article-content p { margin: 0 0 1.15em; }
.article-content h2 { margin: 1.7em 0 .6em; font-size: 24px; }
.article-content h3 { margin: 1.4em 0 .5em; font-size: 19px; }
.article-content img { border-radius: 12px; margin: 1.2em 0; }
.article-content a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote {
  margin: 1.4em 0; padding: 14px 20px; border-left: 3px solid var(--orange);
  background: var(--surface-2); border-radius: 0 12px 12px 0; color: var(--blue);
}
.article-content code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-family: var(--mono); font-size: .92em; }
.article-content ul, .article-content ol { padding-left: 1.4em; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-content th { background: var(--surface-2); color: var(--navy); }
.article-footer-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.8; }
.article-cta {
  margin-top: 28px; padding: 22px 24px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.article-cta p { margin: 0; color: var(--navy); font-weight: 600; }
.related { margin-top: 46px; }
.related h2 { font-size: 22px; margin-bottom: 18px; }
@media (max-width: 560px) { .article-cta { flex-direction: column; align-items: stretch; } }

/* ---------------------------------------------------------------- 提示条 */
.notice {
  background: #FFF7F1; border: 1px solid #FFE0CC; color: #8a4b1e;
  border-radius: var(--radius); padding: 14px 18px; font-size: 14px; margin-bottom: 24px;
}
.gl-warn { display: none; position: absolute; left: 0; right: 0; bottom: 0; background: #FFF3EB; color: #8A4B1E; padding: 8px 16px; font-size: 13px; text-align: center; z-index: 3; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  /* 窄屏：3D 独占顶部一条带，文案落下方 —— 绝不让物体压在字上 */
  .hero { display: block; min-height: auto; height: auto; padding-top: calc(var(--header-h) + 44vh); padding-bottom: 48px; }
  #hero-canvas { inset: 0 0 auto 0; height: 44vh; }
  .hero-scroll { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
    flex-direction: column; gap: 0; padding: 8px 0 16px; border-bottom: 1px solid var(--line);
    display: none; margin-left: 0; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 22px; }
  .main-nav a::after { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .product--flip .product-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-bottom: 64px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { grid-template-columns: 56px 1fr; gap: 14px; }
}
@media (max-width: 560px) {
  .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

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

/* 打印 */
@media print {
  .site-header, #hero-canvas, .hero-scroll, .site-footer { display: none; }
  body { background: #fff; }
}
