/* =====================
   DESIGN TOKENS
===================== */
:root {
  --bg:         #f5f0e8;
  --surface:    #ffffff;
  --ink:        #1c1a14;
  --ink-light:  #3a3528;
  --gold:       #a07830;
  --gold-light: #c9a75a;
  --text:       #2d2a22;
  --muted:      #6b6455;
  --border:     #ddd5c0;
  --radius:     8px;
}

/* =====================
   RESET & BASE
===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }

/* =====================
   SKIP LINK
===================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  font-weight: bold;
  text-decoration: none;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* =====================
   PORTAL BAR
===================== */
.portal-bar {
  background: var(--ink);
  padding: 0.45rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.portal-bar-link {
  font-size: 0.78rem;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.portal-bar-link:hover {
  color: #ffffff;
}

/* =====================
   SITE HEADER
===================== */
.site-header {
  background: var(--ink);
  color: #fff;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-header h1 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0;
  letter-spacing: 0.04em;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--gold-light);
}

/* =====================
   HERO (INDEX)
===================== */
.hero {
  background: var(--ink-light);
  color: #fff;
  padding: 4.5rem 2rem 3.5rem;
  text-align: center;
}

.hero h2 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--gold-light);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.8;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--gold);
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}

.button:hover {
  background: #8a6828;
}

/* =====================
   INTRO SECTION (INDEX)
===================== */
.intro {
  max-width: 800px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.intro h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.intro p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

/* =====================
   FEATURED SECTION
===================== */
.featured {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.featured h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}

/* =====================
   PRACTICE GRID
===================== */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.practice-card {
  background: var(--surface);
  padding: 1.25rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}

.practice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.09);
  border-color: var(--gold);
}

.practice-card-link {
  text-decoration: none;
  color: inherit;
}

.practice-style {
  text-align: center;
}

.practice-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.practice-name {
  font-family: "Noto Serif SC", serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-light);
  margin: 0;
}

/* =====================
   CONTENT PAGE WRAPPER
===================== */
.content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
  line-height: 1.8;
}

.content h1 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.content h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.6rem;
}

.content h3 {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
}

.content p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.85;
  margin-bottom: 0.75rem;
}

.content strong {
  color: var(--text);
  font-weight: 600;
}

.content ul,
.content ol {
  margin: 0.5rem 0 0.75rem 1.5rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.content li {
  margin-bottom: 0.35rem;
  line-height: 1.75;
}

.content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.content blockquote {
  border-left: 3px solid var(--border);
  margin: 1rem 0 1rem 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: "Noto Serif SC", serif;
  font-size: 1rem;
  color: var(--text);
  font-style: normal;
}

/* =====================
   TEXT CARD
===================== */
.text-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.text-card p,
.text-card li {
  color: var(--muted);
  font-size: 0.93rem;
}

.text-card strong {
  color: var(--text);
}

.text-card ul,
.text-card ol {
  margin: 0.4rem 0 0.4rem 1.4rem;
}

/* =====================
   CONCEPT MAP
===================== */
.concept-map {
  margin: 1rem 0;
}

.concept-row {
  display: grid;
  grid-template-columns: 160px 30px 1fr;
  align-items: center;
  margin: 0.5rem 0;
  font-size: 0.92rem;
}

.concept-left {
  font-weight: 600;
  color: var(--text);
}

.concept-arrow {
  text-align: center;
  color: var(--gold);
}

.concept-right {
  color: var(--muted);
}

/* =====================
   HEADER LOGO & CHINESE SUBTITLE
===================== */
.header-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header-zh {
  font-family: "Noto Serif SC", serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.2em;
  margin-top: 0.2rem;
}

/* =====================
   PRACTICE PREV/NEXT NAV
===================== */
.practice-nav {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.practice-nav-link {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s;
}

.practice-nav-link:hover {
  color: var(--gold);
}

/* =====================
   FOOTER PORTAL LINK
===================== */
.footer-portal-link {
  display: block;
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.footer-portal-link:hover { color: var(--gold-light); }

/* =====================
   FOOTER
===================== */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-top: 2rem;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .practice-grid { grid-template-columns: 1fr; }
  .content { padding: 1.5rem 1rem 2.5rem; }
  .concept-row { grid-template-columns: 130px 24px 1fr; }
}
