/* =========================================
   l1ojqka.com.cn 全站共享样式
   Design System & Base Rules
   ========================================= */

/* 设计变量 */
:root {
  --color-bg-body: #faf8f5;
  --color-surface: #ffffff;
  --color-border: #e8e6e1;
  --color-text-main: #1a1a1a;
  --color-text-secondary: #5a5a5a;
  --color-accent: #d95a3f;
  --color-accent-light: #fef1ee;
  --color-gradient-hero: linear-gradient(160deg, #fff8f5 0%, #fce9e4 100%);
  
  --font-serif: "Noto Serif SC", "Source Han Serif CN", "Songti SC", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  
  --space-unit: 1rem;
  --space-section: clamp(3rem, 8vw, 6rem);
  --container-max: 1200px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 8px 28px rgba(0,0,0,0.04);
  --shadow-hover: 0 12px 36px rgba(0,0,0,0.08);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置与排版 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg-body);
  color: var(--color-text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.25;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--color-text-secondary); }
a { color: var(--color-accent); transition: color 0.2s ease; }
a:hover { color: #b8442e; }

img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { padding-left: 1.5rem; margin: 0 0 1rem; }
li { margin-bottom: 0.5rem; }

/* 布局容器 */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--space-section) 0; }
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* 页头与导航 */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.1rem; color: var(--color-text-main); text-decoration: none; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
nav ul { display: flex; list-style: none; gap: 2rem; margin: 0; padding: 0; }
nav a { color: var(--color-text-secondary); font-weight: 500; position: relative; padding: 0.5rem 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-accent); }
nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--color-accent); }

/* 页脚 */
footer { background: #f7f5f0; border-top: 1px solid var(--color-border); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { font-family: var(--font-sans); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; color: var(--color-text-secondary); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.copyright { text-align: center; color: var(--color-text-secondary); font-size: 0.85rem; border-top: 1px solid var(--color-border); padding-top: 1.5rem; }
.disclaimer { font-size: 0.8rem; color: #888; margin-top: 0.5rem; line-height: 1.5; }

/* 组件：按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.85rem 1.8rem; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; cursor: pointer; transition: all var(--transition-base); border: none; font-size: 1rem; }
.btn-primary { background: var(--color-accent); color: #fff; box-shadow: 0 4px 14px rgba(217, 90, 63, 0.25); }
.btn-primary:hover { background: #b8442e; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(217, 90, 63, 0.35); }
.btn-secondary { background: transparent; border: 2px solid var(--color-accent); color: var(--color-accent); }
.btn-secondary:hover { background: var(--color-accent-light); transform: translateY(-2px); }

/* 组件：卡片 */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.5rem; transition: transform var(--transition-base), box-shadow var(--transition-base); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.badge { display: inline-block; padding: 0.25rem 0.65rem; background: var(--color-accent-light); color: var(--color-accent); border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.6rem; }
.news-date { font-size: 0.8rem; color: #999; margin-bottom: 0.4rem; display: block; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #fcfaf7; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
td { color: var(--color-text-secondary); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f9f8f6; }

/* FAQ */
details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 0.75rem; overflow: hidden; transition: background var(--transition-base); }
summary { padding: 1.25rem; cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 2.5rem; user-select: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.2rem; transition: transform 0.2s; color: var(--color-accent); }
details[open] summary::after { content: "−"; }
.faq-content { padding: 0 1.25rem 1.25rem; color: var(--color-text-secondary); line-height: 1.7; border-top: 1px solid transparent; }
details[open] .faq-content { border-top-color: var(--color-border); margin-top: 0.5rem; padding-top: 0.5rem; }

/* 链接列表 */
.link-list { list-style: none; padding: 0; margin: 0; }
.link-item { display: flex; align-items: baseline; justify-content: space-between; padding: 0.8rem 0; border-bottom: 1px dashed var(--color-border); }
.link-item:last-child { border-bottom: none; }
.link-title { font-weight: 500; color: var(--color-text-main); }
.link-desc { font-size: 0.9rem; color: var(--color-text-secondary); margin: 0; }

/* 焦点样式 */
.focus-visible:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* =========================================
   SVG 动效系统 (Topographic Flow)
   ========================================= */
.svg-container { width: 100%; overflow: visible; }
.wave-path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  opacity: 0.85;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes topo-flow {
  0% { stroke-dashoffset: 1; opacity: 0.4; }
  25% { opacity: 0.9; }
  75% { stroke-dashoffset: 0; opacity: 0.9; }
  100% { stroke-dashoffset: 0; opacity: 0.4; }
}
.animate-topo { animation: topo-flow 14s linear infinite; }
.delay-1 { animation-delay: -2s; }
.delay-2 { animation-delay: -5s; }
.delay-3 { animation-delay: -8s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .wave-path { stroke-dashoffset: 0 !important; opacity: 0.85 !important; }
}
