/* ==========================================================
   藏地元炁 · 站点样式
   字体全部使用系统字体，不依赖境外 CDN，保证国内访问速度
   ========================================================== */

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

:root {
  --ink: #2c2416;
  --ink-light: #6b5d4b;
  --ink-lighter: #9a8c7a;
  --paper: #faf8f5;
  --paper-dark: #f0ebe3;
  --accent: #b8860b;
  --accent-light: #d4a843;
  --rust: #8b4513;
  --border: #e2d9ce;
  --gold-gradient: linear-gradient(135deg, #b8860b 0%, #d4a843 50%, #b8860b 100%);
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.narrow { max-width: 820px; }

/* ---------- 排版 ---------- */
h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 900; letter-spacing: 0.06em; line-height: 1.22; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: 0.04em; line-height: 1.35; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 600; letter-spacing: 0.02em; }
h4 { font-size: 1rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--ink-light); line-height: 1.95; }
p + p { margin-top: 16px; }
.sans { font-family: var(--font-sans); }
.small { font-family: var(--font-sans); font-size: 0.85rem; color: var(--ink-lighter); letter-spacing: 0.05em; }
.label {
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 头部 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.15em; white-space: nowrap; }
.logo span { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 30px; overflow-x: auto; }
.main-nav a {
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500;
  color: var(--ink-light); position: relative; padding: 4px 0; white-space: nowrap;
  transition: color 0.25s;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--accent); transition: width 0.25s;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header-cta {
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 500;
  padding: 9px 20px; border: 1px solid var(--ink); border-radius: 2px;
  white-space: nowrap; transition: all 0.25s;
}
.header-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; border-radius: 3px; border: 1px solid transparent;
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all 0.25s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-outline { border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- 各页顶部 ---------- */
.page-hero { padding: 158px 0 64px; background: var(--paper); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 18px; }
.page-hero p { max-width: 660px; font-size: 1.02rem; }
.breadcrumb { font-family: var(--font-sans); font-size: 0.78rem; color: var(--ink-lighter); margin-bottom: 18px; letter-spacing: 0.04em; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- 首页 hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 72px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -10%; width: 60%; height: 120%;
  background: radial-gradient(ellipse at center, rgba(184, 134, 11, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; min-height: 80vh; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border: 1px solid var(--accent); border-radius: 100px;
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 22px;
}
.hero h1 { margin-bottom: 22px; }
.hero p { font-size: 1.08rem; margin-bottom: 36px; max-width: 520px; }
.hero-image {
  position: relative; aspect-ratio: 4 / 5; background: var(--paper-dark);
  border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.placeholder {
  font-family: var(--font-sans); font-size: 0.85rem; color: var(--ink-lighter); text-align: center; padding: 20px;
}
.placeholder strong { display: block; font-size: 0.95rem; color: var(--ink-light); margin-bottom: 6px; font-weight: 600; }
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 0.18em;
  color: var(--ink-lighter); display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll .line { width: 1px; height: 32px; background: var(--ink-lighter); }

/* ---------- 通用区块 ---------- */
section { padding: 110px 0; }
.section-label { margin-bottom: 12px; }
.section-title { margin-bottom: 16px; }
.section-desc { max-width: 620px; margin-bottom: 56px; }
.bg-alt { background: var(--paper-dark); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink .section-title { color: var(--paper); }
.bg-ink p, .bg-ink .section-desc { color: rgba(250, 248, 245, 0.72); }
.divider { height: 1px; background: var(--border); margin: 64px 0; }

/* ---------- 首页：哲学 ---------- */
.philosophy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.philosophy-quote { font-size: 1.55rem; font-weight: 600; line-height: 1.6; color: var(--ink); padding: 26px 0; position: relative; }
.philosophy-quote::before { content: '「'; font-size: 2.6rem; color: var(--accent); position: absolute; top: -10px; left: -18px; font-weight: 900; }
.philosophy-quote::after  { content: '」'; font-size: 2.6rem; color: var(--accent); position: absolute; bottom: -28px; right: -10px; font-weight: 900; }
.philosophy-items { display: flex; flex-direction: column; gap: 28px; }
.philosophy-item { border-bottom: 1px solid var(--border); padding-bottom: 22px; }
.philosophy-item:last-child { border-bottom: none; padding-bottom: 0; }
.philosophy-item h3 { margin-bottom: 8px; }
.philosophy-item h3 span { color: var(--accent); margin-right: 8px; }

/* ---------- 产品卡 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: 4px;
  overflow: hidden; transition: all 0.35s;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 32px rgba(44, 36, 22, 0.06); }
.product-card-image { aspect-ratio: 1 / 1; background: var(--paper-dark); display: flex; align-items: center; justify-content: center; }
.product-card-body { padding: 22px 24px 26px; }
.product-card-body .label { margin-bottom: 8px; }
.product-card-body h3 { margin-bottom: 8px; }
.product-card-body p { font-size: 0.92rem; }

/* ---------- 数据墙 ---------- */
.data-wall { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.data-wall::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(184, 134, 11, 0.09) 0%, transparent 60%);
  pointer-events: none;
}
.data-wall .container { position: relative; z-index: 1; }
.data-wall .label { color: var(--accent-light); }
.data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.data-item { text-align: center; padding: 30px; border: 1px solid rgba(250, 248, 245, 0.12); border-radius: 4px; transition: background 0.3s; }
.data-item:hover { background: rgba(250, 248, 245, 0.04); }
.data-number {
  font-size: 2.9rem; font-weight: 900; letter-spacing: 0.02em; margin-bottom: 6px;
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.data-label { font-family: var(--font-sans); font-size: 0.82rem; color: rgba(250, 248, 245, 0.62); letter-spacing: 0.05em; }
.data-detail { margin-top: 14px; font-size: 0.88rem; color: rgba(250, 248, 245, 0.5); }
.report-note {
  margin-top: 44px; text-align: center; font-family: var(--font-sans);
  font-size: 0.75rem; letter-spacing: 0.06em; color: rgba(250, 248, 245, 0.42);
}

/* ---------- 联名 ---------- */
.collab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.collab-badge {
  display: inline-block; padding: 6px 16px; background: rgba(184, 134, 11, 0.08);
  border-radius: 100px; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 16px;
}
.collab-image { aspect-ratio: 4 / 3; background: var(--paper-dark); border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.collab-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.collab-list li {
  display: flex; align-items: flex-start; gap: 12px; list-style: none;
  font-family: var(--font-sans); font-size: 0.9rem; color: var(--ink-light);
}
.collab-list li::before { content: '✦'; color: var(--accent); font-size: 0.78rem; padding-top: 3px; }

/* ---------- 文章正文 ---------- */
.article { padding: 84px 0 110px; }
.article-body { max-width: 800px; }
.article-body h2 { margin: 56px 0 18px; padding-top: 8px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 32px 0 12px; }
.article-body p { margin-top: 14px; }
.article-body ul, .article-body ol { margin: 16px 0 16px 4px; }
.article-body li { color: var(--ink-light); line-height: 1.95; padding-left: 20px; position: relative; margin-bottom: 8px; }
.article-body ul > li::before { content: '·'; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.article-body ol { counter-reset: n; }
.article-body ol > li { counter-increment: n; }
.article-body ol > li::before {
  content: counter(n); position: absolute; left: 0; top: 2px;
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700;
  color: var(--accent); width: 18px; text-align: center;
}
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--accent); border-bottom: 1px solid rgba(184, 134, 11, 0.35); }

/* ---------- 卡片网格（知识库入口） ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: block; padding: 30px 26px 28px; background: var(--paper);
  border: 1px solid var(--border); border-radius: 4px; transition: all 0.3s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(44, 36, 22, 0.05); }
.card .label { margin-bottom: 10px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.92rem; }
.card .more { font-family: var(--font-sans); font-size: 0.8rem; color: var(--accent); margin-top: 14px; display: inline-block; }

/* ---------- 提示框 ---------- */
.callout {
  margin: 28px 0; padding: 22px 24px; background: var(--paper-dark);
  border-left: 3px solid var(--accent); border-radius: 2px;
}
.callout p { font-size: 0.93rem; }
.callout .callout-title { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 8px; }
.callout.warn { border-left-color: var(--rust); }
.callout.warn .callout-title { color: var(--rust); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink); background: var(--paper-dark); white-space: nowrap; }
td { color: var(--ink-light); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq summary {
  cursor: pointer; font-size: 1.02rem; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-family: var(--font-sans); font-size: 1.1rem; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 14px; font-size: 0.95rem; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { padding: 26px 22px; background: var(--paper); border: 1px solid var(--border); border-radius: 4px; }
.step .num { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }
.step h3 { margin: 10px 0 8px; font-size: 1.05rem; }
.step p { font-size: 0.9rem; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.qr-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: 4px;
  padding: 32px; text-align: center;
}
.qr-box {
  width: 100%; max-width: 240px; aspect-ratio: 1 / 1; margin: 0 auto 20px;
  border: 1px dashed var(--border); border-radius: 4px; background: var(--paper-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-sans); font-size: 0.8rem; color: var(--ink-lighter); padding: 16px;
}
.qr-card h3 { margin-bottom: 8px; }
.qr-card p { font-size: 0.9rem; }
.contact-list { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: none; }
.contact-item .k { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--ink-lighter); width: 92px; flex: none; padding-top: 3px; }
.contact-item .v { font-size: 0.98rem; color: var(--ink); }
.contact-item .v em { font-style: normal; color: var(--ink-lighter); font-size: 0.85rem; display: block; margin-top: 4px; font-family: var(--font-sans); }

/* ---------- 页脚 ---------- */
footer { background: var(--ink); color: var(--paper); padding: 72px 0 36px; }
footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
footer h4 { font-size: 0.88rem; margin-bottom: 16px; color: var(--paper); letter-spacing: 0.06em; }
footer p, footer a {
  font-family: var(--font-sans); font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.5); line-height: 2; display: block;
}
footer a:hover { color: var(--accent-light); }
footer .logo { color: var(--paper); margin-bottom: 16px; }
footer .logo span { color: var(--accent-light); }
.footer-bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(250, 248, 245, 0.08);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--font-sans); font-size: 0.78rem; color: rgba(250, 248, 245, 0.35);
}
.footer-bottom a { display: inline; color: rgba(250, 248, 245, 0.35); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .container { padding: 0 28px; }
  .hero-grid, .philosophy-grid, .collab-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: auto; padding: 150px 0 90px; }
  .hero-grid { min-height: auto; }
  .hero-image { aspect-ratio: 16 / 10; }
  .hero-scroll { display: none; }
  .product-grid, .card-grid { grid-template-columns: 1fr 1fr; }
  .data-grid { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .main-nav { gap: 18px; }
  .header-cta { display: none; }
  section { padding: 76px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .header-inner { height: 64px; gap: 14px; }
  .logo { font-size: 1.05rem; letter-spacing: 0.1em; }
  .main-nav { gap: 14px; font-size: 0.8rem; }
  .main-nav a { font-size: 0.78rem; }
  .page-hero { padding: 130px 0 44px; }
  .product-grid, .card-grid, .steps { grid-template-columns: 1fr; }
  .article { padding: 56px 0 76px; }
  .article-body h2 { margin-top: 40px; }
  footer .container { grid-template-columns: 1fr; gap: 32px; }
}
/* ==========================================================
   知识库：列表页与文章页
   ========================================================== */

/* 文章头部信息 */
.article-meta {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--ink-lighter); margin-bottom: 10px;
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-lighter); }

/* 文章导语 */
.article-lead {
  font-size: 1.06rem; color: var(--ink-light); line-height: 1.9;
  padding: 22px 0 0; max-width: 760px;
}

/* 目录 */
.toc {
  margin: 40px 0 8px; padding: 24px 26px; background: var(--paper-dark);
  border-radius: 3px; border: 1px solid var(--border);
}
.toc-title {
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px;
}
.toc ol { margin: 0; }
.toc li {
  padding-left: 22px; margin-bottom: 6px; font-size: 0.92rem;
  font-family: var(--font-sans);
}
.toc a { color: var(--ink-light); }
.toc a:hover { color: var(--accent); }

/* 文章页脚部导航 */
.article-foot {
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
}
.back-link {
  font-family: var(--font-sans); font-size: 0.83rem; color: var(--ink-light);
  display: inline-flex; align-items: center; gap: 8px;
}
.back-link:hover { color: var(--accent); }

/* 相关阅读 */
.related { margin-top: 48px; }
.related h3 { margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related-item {
  display: block; padding: 20px 22px; border: 1px solid var(--border);
  border-radius: 3px; background: var(--paper); transition: all 0.25s;
}
.related-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.related-item .label { margin-bottom: 6px; }
.related-item h4 { font-size: 0.98rem; color: var(--ink); margin-bottom: 4px; }
.related-item p { font-size: 0.85rem; margin: 0; }

/* 知识库列表页 */
.kb-list { display: grid; grid-template-columns: 1fr; gap: 18px; }
.kb-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; align-items: start;
  padding: 28px 30px; background: var(--paper); border: 1px solid var(--border);
  border-radius: 4px; transition: all 0.3s;
}
.kb-item:hover { border-color: var(--accent); box-shadow: 0 10px 26px rgba(44, 36, 22, 0.05); }
.kb-num {
  font-family: var(--font-sans); font-size: 1.6rem; font-weight: 900;
  color: var(--accent); opacity: 0.35; line-height: 1;
}
.kb-item h3 { margin-bottom: 8px; }
.kb-item p { font-size: 0.93rem; margin: 0; }
.kb-arrow { font-family: var(--font-sans); font-size: 0.8rem; color: var(--accent); white-space: nowrap; padding-top: 4px; }
.kb-tag {
  display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 100px;
  background: rgba(184, 134, 11, 0.08); color: var(--accent);
  font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.08em;
}

/* 数值对比条 */
.compare-row { margin: 18px 0; }
.compare-row .compare-label {
  display: flex; justify-content: space-between;
  font-family: var(--font-sans); font-size: 0.82rem; color: var(--ink-light); margin-bottom: 6px;
}
.compare-bar { height: 8px; background: var(--paper-dark); border-radius: 100px; overflow: hidden; }
.compare-bar i { display: block; height: 100%; background: var(--gold-gradient); border-radius: 100px; }

@media (max-width: 640px) {
  .kb-item { grid-template-columns: 1fr; gap: 10px; padding: 22px 20px; }
  .kb-num { font-size: 1.2rem; }
  .related-grid { grid-template-columns: 1fr; }
  .article-foot { flex-direction: column; align-items: flex-start; }
}
