/* =========================================================
   iithz 网站 - Framer 风格 + 双主题
   品牌色由 base.html 内联 <style> 注入 --brand / --brand-2
   ========================================================= */

/* ---------- 主题变量 ---------- */
:root {
  --brand: #6366F1;
  --brand-2: #8B5CF6;
  --grad: linear-gradient(135deg, var(--brand), var(--brand-2));

  --bg: #FAFAFA;
  --bg-alt: #F4F4F5;
  --surface: #FFFFFF;
  --text: #0A0A0A;
  --text-2: #4A4A4A;
  --text-3: #8A8A8A;
  --border: #E5E5E5;
  --border-strong: #D4D4D4;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.05);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.08);
  --nav-bg: rgba(255,255,255,.75);
  --hero-glow: radial-gradient(600px 300px at 75% 20%, rgba(99,102,241,.12), transparent 70%);
}

[data-theme="dark"] {
  --bg: #0A0A0A;
  --bg-alt: #111111;
  --surface: #141414;
  --text: #FFFFFF;
  --text-2: #A0A0A0;
  --text-3: #666666;
  --border: #262626;
  --border-strong: #333;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.3);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.4);
  --nav-bg: rgba(10,10,10,.75);
  --hero-glow: radial-gradient(600px 300px at 75% 20%, rgba(99,102,241,.2), transparent 70%);
}

/* ---------- reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: Inter, "Source Han Sans SC", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; }

/* ---------- 布局 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .page-hero { padding: 120px 0 40px; }
  main > .section:first-child,
  main > article.section:first-child { padding-top: 120px; }
}

/* ---------- 子页面头部（与首页 .hero 顶部 160px 对齐）---------- */
.page-hero {
  position: relative;
  padding: 160px 0 64px;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--hero-glow); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }

/* 详情页/404 首屏 section 与导航留出与 page-hero 相同的呼吸感 */
main > .section:first-child,
main > article.section:first-child { padding-top: 160px; }

/* ---------- 标题 ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.page-title { font-size: 40px; margin-top: 8px; }
.page-sub { color: var(--text-2); font-size: 18px; margin-top: 12px; max-width: 640px; }
@media (max-width: 768px) { .page-title { font-size: 30px; } .page-sub { font-size: 16px; } }

.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-title { font-size: 36px; margin-top: 12px; }
.section-title.small { font-size: 26px; text-align: left; margin-bottom: 24px; }
.section-desc { color: var(--text-2); font-size: 17px; margin-top: 12px; }
.section-cta { text-align: center; margin-top: 40px; }
@media (max-width: 768px) { .section-title { font-size: 26px; } }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border-radius: 8px; font-weight: 600; font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background .2s;
  white-space: nowrap;
}
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: var(--shadow-hover); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-block { width: 100%; }

/* ---------- 导航（悬浮胶囊）---------- */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 100; padding: 0 16px; }
.nav {
  max-width: 1200px; margin: 0 auto; height: 80px;
  display: flex; align-items: center; gap: 16px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 0 16px;
  transition: box-shadow .3s, transform .3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
  display: inline-block; height: 68px; width: 184px;
  background-image: var(--logo-url);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}
[data-theme="dark"] .nav-logo-img {
  background-image: var(--logo-url-dark);
}
/* 站点级 logo 尺寸（比例不同，避免拉伸） */
body.site-beyond .nav-logo-img { height: 56px; width: 201px; }
body.site-beyond.lang-en .nav-logo-img { height: 56px; width: 160px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 10px 14px; border-radius: 8px; font-size: 16px; font-weight: 500;
  color: var(--text-2); transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text); background: var(--bg-alt); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center; font-size: 16px;
  border: 1px solid var(--border); color: var(--text-2);
  transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--brand); }
.lang-toggle {
  font-size: 13px; font-weight: 600; padding: 8px 12px;
  border-radius: 8px; border: 1px solid var(--border); color: var(--text-2);
  transition: color .2s, border-color .2s;
}
.lang-toggle:hover { color: var(--brand); border-color: var(--brand); }
.nav-cta { height: 40px; padding: 0 18px; font-size: 14px; }
.nav-burger { display: none; flex-direction: column; gap: 4px; }
.nav-burger span { width: 18px; height: 2px; background: var(--text); border-radius: 1px; }

/* 主题图标切换 */
.theme-icon { display: none; }
[data-theme="light"] .theme-icon-sun { display: inline; }
[data-theme="dark"] .theme-icon-moon { display: inline; }

@media (max-width: 900px) {
  .nav-links, .nav-cta, .lang-toggle { display: none; }
  .nav-burger { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 16px; right: 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 8px; box-shadow: var(--shadow);
  }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 160px 0 80px; overflow: hidden; }
.hero-glow { position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-h1 { font-size: 52px; line-height: 1.08; margin-top: 16px; letter-spacing: -.03em; }
.hero-h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--text-2); font-size: 18px; margin-top: 20px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.stat-suffix { font-size: 20px; font-weight: 700; color: var(--brand); }
.stat-label { font-size: 13px; color: var(--text-3); }

@media (max-width: 900px) {
  .hero { padding: 120px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* 生产看板卡片 */
.hero-visual { display: grid; place-items: center; }
.dash-card {
  width: 100%; max-width: 380px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; box-shadow: var(--shadow-hover);
}
.dash-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.dash-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; box-shadow: 0 0 8px #10B981; }
.live-badge {
  margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .05em;
  color: #10B981; border: 1px solid #10B981; border-radius: 20px; padding: 2px 8px;
}
.dash-oee { margin: 16px 0 8px; display: flex; align-items: baseline; gap: 6px; }
.oee-num { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.oee-unit { font-size: 20px; font-weight: 700; color: var(--text-3); }
.oee-label { font-size: 13px; color: var(--text-3); margin-left: auto; }
.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 100px; margin: 16px 0; }
.bar {
  flex: 1; height: var(--h, 50%); border-radius: 4px 4px 0 0;
  /* 通过 data-h 属性设置高度（避免 inline style 被 CSP 拦截） */
  background: var(--grad); opacity: .85;
  transform-origin: bottom; transform: scaleY(0);
  animation: barUp .8s cubic-bezier(.2,.8,.2,1) forwards;
}
.bar:nth-child(2){animation-delay:.05s} .bar:nth-child(3){animation-delay:.1s}
.bar:nth-child(4){animation-delay:.15s} .bar:nth-child(5){animation-delay:.2s}
.bar:nth-child(6){animation-delay:.25s} .bar:nth-child(7){animation-delay:.3s}
.bar:nth-child(8){animation-delay:.35s}
@keyframes barUp { to { transform: scaleY(1); } }
.dash-rows { display: flex; flex-direction: column; gap: 10px; }
.dash-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); }
.dash-row b { color: var(--text); font-weight: 600; }

/* ---------- 卡片网格 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .card-grid, .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid, .grid-4, .grid-3 { grid-template-columns: 1fr; } }

/* 产品卡片 */
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--brand); }
.product-cover { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.product-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-cover img { transform: scale(1.02); }
.product-cover-ph {
  width: 100%; height: 100%; background: var(--grad); opacity: .15;
  display: grid; place-items: center; color: var(--brand); font-weight: 700;
}
.product-body { padding: 20px; }
.product-body h3 { font-size: 17px; }
.product-body p { font-size: 14px; color: var(--text-3); margin-top: 8px; line-height: 1.5; }

/* 特色卡 */
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--brand); }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; }
.feature-card p { font-size: 14px; color: var(--text-2); margin-top: 8px; }

/* ---------- 行业方案（交替）---------- */
.solutions { display: flex; flex-direction: column; gap: 48px; }
.solution-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.solution-row.flip { direction: rtl; }
.solution-row.flip > * { direction: ltr; }
.solution-no { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .1em; }
.solution-text h3 { font-size: 26px; margin: 8px 0 12px; }
.solution-text p { color: var(--text-2); font-size: 15px; }
.solution-text .btn { margin-top: 20px; }
.sol-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; box-shadow: var(--shadow);
}
.sol-card-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.sol-bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.sol-metric { text-align: right; font-size: 13px; color: var(--text-3); margin-top: 12px; }
.sol-metric b { font-size: 22px; color: var(--text); margin-right: 4px; }
@media (max-width: 768px) {
  .solution-row, .solution-row.flip { grid-template-columns: 1fr; direction: ltr; gap: 24px; }
}

/* ---------- 客户 logo 墙 ---------- */
.logo-marquee { overflow: hidden; position: relative; padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logo-track { display: flex; gap: 16px; width: max-content; animation: marquee 30s linear infinite; }
.logo-item {
  padding: 14px 28px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; font-weight: 700; font-size: 16px; color: var(--text-2);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 新闻卡片 ---------- */
.news-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--brand); }
.news-cover { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-cover img { transform: scale(1.03); }
.news-body { padding: 20px; }
.news-body time { font-size: 13px; color: var(--text-3); }
.news-body h3 { font-size: 17px; margin: 8px 0; }
.news-body p { font-size: 14px; color: var(--text-2); }
.news-meta { display: flex; align-items: center; gap: 8px; }
.top-badge { font-size: 11px; font-weight: 700; color: var(--brand); background: rgba(99,102,241,.12); padding: 2px 8px; border-radius: 6px; }

/* ---------- 品牌卡 ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } }
.brand-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 20px; text-align: center; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--brand); }
.brand-card img { height: 48px; object-fit: contain; margin: 0 auto 12px; }
.brand-ph {
  width: 56px; height: 56px; border-radius: 12px; margin: 0 auto 12px;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 20px;
}
.brand-card h3 { font-size: 15px; }
.brand-card a { font-size: 13px; color: var(--brand); margin-top: 8px; display: inline-block; }

/* ---------- 下载 ---------- */
.dl-list { display: flex; flex-direction: column; gap: 16px; }
.dl-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 24px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.dl-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--brand); }
.dl-icon { font-size: 24px; color: var(--brand); }
.dl-info { flex: 1; }
.dl-info h3 { font-size: 16px; }
.dl-info p { font-size: 14px; color: var(--text-3); }
.dl-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-3); text-align: right; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 32px; display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); font-weight: 500; }
label i { color: #EF4444; font-style: normal; }
input, textarea {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.form-msg { font-size: 14px; min-height: 20px; }
.form-msg.ok { color: #10B981; }
.form-msg.err { color: #EF4444; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.info-card h3 { font-size: 15px; margin-bottom: 8px; }
.info-card p { font-size: 14px; color: var(--text-2); }

/* ---------- 搜索 ---------- */
.search-box { display: flex; gap: 12px; margin-top: 20px; max-width: 560px; }
.search-box input { flex: 1; }
.result-count { color: var(--text-3); font-size: 14px; margin-bottom: 20px; }
.search-list { display: flex; flex-direction: column; gap: 12px; }
.search-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; transition: transform .2s, border-color .2s;
}
.search-item:hover { transform: translateX(4px); border-color: var(--brand); }
.search-type { font-size: 12px; font-weight: 700; color: var(--brand); background: rgba(99,102,241,.1); padding: 4px 10px; border-radius: 6px; }
.search-item h3 { font-size: 16px; }

/* ---------- 详情页 ---------- */
.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 6px; }
.detail-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; }
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-main h1 { font-size: 32px; }
.detail-en { color: var(--text-3); font-size: 15px; margin: 8px 0 20px; }
.detail-cover { border-radius: 12px; overflow: hidden; margin-bottom: 24px; border: 1px solid var(--border); }
.rich { line-height: 1.75; color: var(--text-2); }
.rich img { border-radius: 8px; margin: 12px 0; }
.rich h2, .rich h3 { color: var(--text); margin: 20px 0 10px; }
.rich p { margin: 12px 0; }
.rich table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.rich td, .rich th { border: 1px solid var(--border); padding: 8px 12px; }
.detail-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.side-card h3 { font-size: 16px; margin-bottom: 16px; }
.side-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.side-card dt { font-size: 13px; color: var(--text-3); }
.side-card dd { font-size: 14px; font-weight: 500; }
.related { margin-top: 56px; }
.article-head { margin-bottom: 24px; }
.article-head h1 { font-size: 30px; }
.article-meta { color: var(--text-3); font-size: 14px; margin-top: 12px; }
.article-cover { border-radius: 12px; overflow: hidden; margin-bottom: 24px; border: 1px solid var(--border); }
.news-article { max-width: 800px; }
.article-body { font-size: 16px; }
.empty-hint { color: var(--text-3); text-align: center; padding: 40px; grid-column: 1/-1; }

/* ---------- 过滤条 ---------- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter {
  padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-2); transition: all .2s;
}
.filter:hover { color: var(--text); border-color: var(--brand); }
.filter.active { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.page {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--border); font-size: 14px;
  color: var(--text-2); transition: all .2s;
}
.page:hover { color: var(--text); border-color: var(--brand); }
.page.active { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- CTA 区块 ---------- */
.cta-section { padding: 0 0 96px; }
.cta-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 64px 48px; text-align: center; position: relative; overflow: hidden;
  background-image: radial-gradient(500px 200px at 50% 0%, rgba(99,102,241,.12), transparent 70%);
}
.cta-box h2 { font-size: 32px; }
.cta-box p { color: var(--text-2); font-size: 17px; margin: 16px auto 32px; max-width: 520px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 80px 0; }
.nf-code { font-size: 120px; font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-size: 28px; margin: 16px 0 8px; }
.notfound p { color: var(--text-2); margin-bottom: 28px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); margin-top: 80px; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.footer-slogan { color: var(--brand); font-size: 14px; margin-top: 12px; font-weight: 500; }
.footer-sub { color: var(--text-3); font-size: 13px; margin-top: 12px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 14px; margin-bottom: 4px; }
.footer-col a, .footer-col p { font-size: 13px; color: var(--text-3); }
.footer-col a:hover { color: var(--brand); }
.footer-subs { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 24px; }
.footer-bottom p { font-size: 13px; color: var(--text-3); text-align: center; }

/* ---------- 动效：滚动渐入 ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar, .logo-track { animation: none; }
}

/* data-h 属性选择器：从模板 data-h 读取柱高，避免 inline style 被 CSP 拦截 */
.bar[data-h="45%"] { --h: 45%; }
.bar[data-h="50%"] { --h: 50%; }
.bar[data-h="55%"] { --h: 55%; }
.bar[data-h="60%"] { --h: 60%; }
.bar[data-h="62%"] { --h: 62%; }
.bar[data-h="65%"] { --h: 65%; }
.bar[data-h="68%"] { --h: 68%; }
.bar[data-h="70%"] { --h: 70%; }
.bar[data-h="72%"] { --h: 72%; }
.bar[data-h="75%"] { --h: 75%; }
.bar[data-h="82%"] { --h: 82%; }
.bar[data-h="85%"] { --h: 85%; }
.bar[data-h="90%"] { --h: 90%; }
.bar[data-h="92%"] { --h: 92%; }

/* ---------- 关于我们（beyond）---------- */
.about-text {
  max-width: 880px; margin: 0 auto; text-align: center;
  color: var(--text-2); font-size: 17px; line-height: 1.85;
}
.about-text p { margin-bottom: 20px; }

.timeline {
  max-width: 880px; margin: 0 auto;
  display: grid; gap: 28px;
}
.tl-item {
  position: relative; padding-left: 140px;
}
.tl-year {
  position: absolute; left: 0; top: 0;
  font-size: 28px; font-weight: 800; color: var(--brand);
  letter-spacing: -.02em;
}
.tl-item p {
  color: var(--text-2); font-size: 16px; line-height: 1.75;
  margin: 0;
}
@media (max-width: 768px) {
  .tl-item { padding-left: 0; padding-top: 36px; }
  .tl-year { position: static; font-size: 22px; }
}
