/* ===== LEGALISM CONTENT PAGES — SHARED STYLESHEET ===== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #1a1a1a;
  --rice: #f5f2eb;
  --cyan: #b8cece;
  --red: #9e2a2b;
  --gray: #6b6b6b;
  --light: #e8e4dc;
  --card: #fffdf8;
  --alt: #f0ede5;
  --dark: #222;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  font-family:'Inter','Noto Serif SC',sans-serif;
  color:var(--ink);
  background:var(--rice);
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}

/* ===== TOP NAV ===== */
.topnav {
  position:sticky; top:0; z-index:100;
  background:rgba(26,26,26,0.97);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.topnav-inner {
  max-width:1200px; margin:0 auto;
  padding:0 24px; height:56px;
  display:flex; align-items:center; justify-content:space-between;
}
.nav-logo {
  font-family:'Noto Serif SC',serif;
  font-size:1.05rem; font-weight:700;
  color:#fff; text-decoration:none;
  letter-spacing:1px;
}
.nav-links { display:flex; gap:4px; }
.nav-links a {
  font-size:13px; color:rgba(255,255,255,0.55);
  text-decoration:none; padding:8px 14px;
  border-radius:4px; transition:all 0.2s;
  font-weight:500; letter-spacing:0.3px;
}
.nav-links a:hover { color:#fff; background:rgba(255,255,255,0.06); }
.nav-links a.active { color:#fff; background:rgba(158,42,43,0.25); }

.nav-toggle {
  display:none; background:none; border:none;
  cursor:pointer; padding:8px;
}
.nav-toggle span {
  display:block; width:20px; height:2px;
  background:#fff; margin:4px 0;
  transition:0.3s;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  max-width:1200px; margin:0 auto;
  padding:16px 24px; font-size:13px; color:var(--gray);
}
.breadcrumb a { color:var(--gray); text-decoration:none; transition:color 0.2s; }
.breadcrumb a:hover { color:var(--red); }
.breadcrumb span { margin:0 8px; opacity:0.5; }

/* ===== PAGE HERO ===== */
.page-hero {
  background:linear-gradient(165deg,#1a1a1a 0%,#2c2c2c 50%,#3a3a3a 100%);
  padding:80px 24px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.page-hero::before {
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(ellipse at 20% 50%,rgba(158,42,43,0.07) 0%,transparent 60%),
    radial-gradient(ellipse at 80% 30%,rgba(184,206,206,0.05) 0%,transparent 50%);
}
.page-hero-content { position:relative; z-index:2; max-width:750px; margin:0 auto; }
.page-hero-tag {
  font-size:11px; letter-spacing:3px; text-transform:uppercase;
  color:var(--cyan); margin-bottom:20px; opacity:0.7;
}
.page-hero h1 {
  font-size:clamp(1.8rem,4vw,2.8rem);
  font-weight:700; color:#fff; margin-bottom:6px;
  letter-spacing:-0.3px; line-height:1.15;
}
.page-hero-cn {
  font-family:'Noto Serif SC',serif;
  font-size:clamp(1rem,2vw,1.3rem);
  color:rgba(255,255,255,0.5); margin-bottom:24px;
}
.page-hero-desc {
  font-size:0.95rem; color:rgba(255,255,255,0.6);
  line-height:1.8; font-weight:300;
}

/* ===== CONTENT AREA ===== */
.content-area { max-width:100%; }

.content-section {
  padding:96px 24px;
  max-width:1200px;
  margin:0 auto;
}
.content-section.alt {
  background:var(--alt);
  max-width:100%;
}
.content-section.alt > * {
  max-width:1200px;
  margin-left:auto;
  margin-right:auto;
}

/* Kicker / Section label */
.kicker {
  font-size:11px; letter-spacing:3px;
  text-transform:uppercase; color:var(--red);
  font-weight:600; margin-bottom:14px;
}

.content-section h2 {
  font-size:clamp(1.4rem,3vw,2rem);
  font-weight:700; margin-bottom:4px;
  letter-spacing:-0.2px;
}
.h2-cn {
  font-family:'Noto Serif SC',serif;
  font-size:0.9rem; color:var(--gray);
  margin-bottom:28px;
}

.content-section p {
  font-size:0.95rem; color:#444;
  line-height:1.85; margin-bottom:16px;
  max-width:700px;
}
.cn-text {
  font-family:'Noto Serif SC',serif;
  font-size:0.82rem; color:#999;
  line-height:1.8; margin-bottom:20px;
}

.content-lead {
  font-size:1.05rem; color:var(--ink);
  font-weight:500; line-height:1.8;
  max-width:720px; margin:32px auto 8px;
  text-align:center;
}

/* ===== CONTENT GRID (text + visual) ===== */
.content-grid {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:64px;
  align-items:start;
}
.content-grid.reverse {
  grid-template-columns:1fr 1.2fr;
}
.content-grid.reverse .content-visual { order:-1; }

.content-centered {
  max-width:900px;
  margin:0 auto;
  text-align:center;
}
.content-centered p { margin-left:auto; margin-right:auto; }

/* ===== VISUAL CARDS ===== */
.visual-card {
  padding:32px 28px;
  margin-bottom:20px;
  transition:transform 0.3s, box-shadow 0.3s;
}
.visual-card:hover {
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(0,0,0,0.08);
}
.visual-card.dark {
  background:var(--ink); color:#fff;
}
.visual-card.light {
  background:var(--card); border:1px solid var(--light);
}
.visual-icon {
  font-family:'Noto Serif SC',serif;
  font-size:2rem; font-weight:700;
  margin-bottom:12px;
}
.visual-card.dark .visual-icon { color:var(--red); }
.visual-card.light .visual-icon { color:var(--ink); }
.visual-card h3 { font-size:1.05rem; font-weight:600; margin-bottom:4px; }
.visual-cn {
  font-family:'Noto Serif SC',serif;
  font-size:0.8rem; margin-bottom:12px;
}
.visual-card.dark .visual-cn { color:rgba(255,255,255,0.4); }
.visual-card.light .visual-cn { color:var(--gray); }
.visual-card p { font-size:0.88rem; line-height:1.7; }
.visual-card.dark p { color:rgba(255,255,255,0.6); }
.visual-card.light p { color:var(--gray); }

/* ===== HIGHLIGHT GRID (IS / IS NOT) ===== */
.highlight-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  margin:40px 0;
  text-align:left;
}
.highlight-card {
  padding:36px 32px;
  background:var(--card);
  border:1px solid var(--light);
}
.highlight-card .hc-icon {
  font-size:1.4rem; font-weight:700;
  margin-bottom:16px; display:inline-block;
}
.highlight-card:first-child .hc-icon { color:#3a7d44; }
.highlight-card:last-child .hc-icon { color:var(--red); }
.highlight-card h3 { font-size:1.1rem; font-weight:600; margin-bottom:16px; }
.highlight-card ul { list-style:none; padding:0; }
.highlight-card li {
  padding:10px 0; border-bottom:1px solid var(--light);
  font-size:0.9rem; color:#444; line-height:1.6;
}
.highlight-card li:last-child { border-bottom:none; }

/* ===== TRIO GRID (FA SHU SHI) ===== */
.trio-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
  margin-top:40px;
  text-align:center;
}
.trio-card {
  background:var(--card);
  border:1px solid var(--light);
  padding:44px 28px;
  transition:all 0.3s;
}
.trio-card:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 28px rgba(0,0,0,0.06);
}
.trio-char {
  font-family:'Noto Serif SC',serif;
  font-size:2.8rem; font-weight:700;
  color:var(--ink); margin-bottom:8px;
  line-height:1;
}
.trio-card h3 { font-size:1.1rem; font-weight:600; margin-bottom:4px; }
.trio-cn {
  font-family:'Noto Serif SC',serif;
  font-size:0.8rem; color:var(--gray);
  margin-bottom:16px;
}
.trio-card p { font-size:0.88rem; color:var(--gray); line-height:1.7; max-width:none; }

/* ===== TIMELINE ===== */
.timeline {
  max-width:700px;
  margin:40px auto 0;
  text-align:left;
  position:relative;
}
.timeline::before {
  content:'';
  position:absolute; left:80px; top:0; bottom:0;
  width:1px; background:var(--light);
}
.timeline-item {
  display:flex; gap:32px;
  padding:24px 0;
  align-items:flex-start;
}
.timeline-item:not(:last-child) {
  border-bottom:1px solid rgba(0,0,0,0.04);
}
.tl-year {
  flex-shrink:0; width:64px;
  font-size:0.82rem; font-weight:600;
  color:var(--red); text-align:right;
  padding-top:2px;
}
.tl-content { flex:1; padding-left:16px; }
.tl-content h4 { font-size:1rem; font-weight:600; margin-bottom:6px; }
.tl-content p { font-size:0.88rem; color:var(--gray); line-height:1.7; max-width:none; margin-bottom:0; }

/* ===== CTA GRID ===== */
.cta-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  margin-top:40px;
}
.cta-card {
  display:block;
  background:var(--card);
  border:1px solid var(--light);
  padding:40px 28px;
  text-align:center;
  text-decoration:none; color:inherit;
  transition:all 0.3s;
}
.cta-card:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 28px rgba(0,0,0,0.06);
  border-color:var(--red);
}
.cta-icon {
  font-family:'Noto Serif SC',serif;
  font-size:2rem; font-weight:700;
  color:var(--ink); margin-bottom:16px;
}
.cta-card h3 { font-size:1.05rem; font-weight:600; margin-bottom:8px; }
.cta-card p { font-size:0.85rem; color:var(--gray); margin:0 auto; }

/* ===== FOOTER ===== */
.site-footer {
  background:var(--ink);
  color:rgba(255,255,255,0.5);
  padding:56px 24px 36px;
  text-align:center;
}
.footer-inner { max-width:680px; margin:0 auto; }
.footer-text {
  font-size:0.9rem; line-height:1.8;
  color:rgba(255,255,255,0.45); margin-bottom:8px;
}
.footer-cn {
  font-family:'Noto Serif SC',serif;
  font-size:0.78rem; color:rgba(255,255,255,0.25);
  margin-bottom:0;
}
.footer-divider {
  width:40px; height:1px;
  background:rgba(255,255,255,0.12);
  margin:28px auto;
}
.footer-links {
  display:flex; flex-wrap:wrap; justify-content:center;
  gap:8px 20px; margin-bottom:28px;
}
.footer-links a {
  font-size:13px; color:rgba(255,255,255,0.4);
  text-decoration:none; transition:color 0.2s;
}
.footer-links a:hover { color:#fff; }
.footer-copy {
  font-size:12px; color:rgba(255,255,255,0.2);
}
.footer-copy a { color:rgba(255,255,255,0.3); text-decoration:none; }
.footer-copy a:hover { color:#fff; }

/* ===== RESPONSIVE ===== */
@media(max-width:900px) {
  .content-grid,
  .content-grid.reverse {
    grid-template-columns:1fr; gap:32px;
  }
  .content-grid.reverse .content-visual { order:0; }
  .trio-grid { grid-template-columns:1fr; }
  .highlight-grid { grid-template-columns:1fr; }
  .cta-grid { grid-template-columns:1fr; }
  .content-section { padding:64px 20px; }

  .nav-links { display:none; }
  .nav-links.open {
    display:flex; flex-direction:column;
    position:absolute; top:56px; left:0; right:0;
    background:rgba(26,26,26,0.98);
    padding:12px 24px; gap:0;
    border-bottom:1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open a { padding:12px 0; }
  .nav-toggle { display:block; }
}

@media(max-width:600px) {
  .page-hero { padding:56px 20px; }
  .timeline::before { left:60px; }
  .tl-year { width:44px; font-size:0.75rem; }
  .visual-card { padding:24px 20px; }
  .highlight-card { padding:28px 20px; }
  .trio-card { padding:32px 20px; }
  .cta-card { padding:28px 20px; }
}
