/* 百墨生公共视觉系统：全部样式独立于模板。 */
:root {
  --ink: #173e36;
  --forest: #0c3a33;
  --green: #12665a;
  --gold: #a47b32;
  --paper: #f6f5f0;
  --white: #fff;
  --muted: #717b74;
  --line: #e1e5dc;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: #293830; background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.75; }
a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img, video { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); line-height: 1.5; }
h1, h2 { letter-spacing: -.025em; }
h1 { font-size: 36px; }
h2 { font-size: 25px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 12px; background: white; z-index: 100; }
.skip-link:focus { top: 10px; }
.preview-bar { background: #efe5ca; color: #70571f; text-align: center; font-size: 12px; padding: 6px 16px; }
.site-header { background: var(--white); }
.header-inner { min-height: 100px; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; background: var(--forest); color: #ecdfb7; border-radius: 11px 3px 11px 3px; font-family: "Songti SC", SimSun, serif; font-size: 30px; }
.brand strong { font-size: 27px; letter-spacing: 3px; display: block; line-height: 1.35; }
.brand small { font-size: 10px; color: var(--muted); letter-spacing: 1px; }
.header-search { display: flex; flex: 1; max-width: 470px; margin-left: auto; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #f8f9f5; }
.header-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 16px; font-size: 13px; }
.header-search button { border: 0; background: transparent; padding: 10px 20px; color: var(--green); }
.header-account { font-size: 13px; white-space: nowrap; }
.menu-toggle { display: none; }
.main-nav { background: var(--forest); color: #ecf2eb; }
.nav-inner { display: flex; align-items: center; gap: 35px; min-height: 54px; }
.main-nav a { font-size: 14px; padding: 15px 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #e9cd8f; }
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 80% 20%, #e5eadc 0, transparent 60%), linear-gradient(120deg,#f4f3ed,#f0f0e5); border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; width: 470px; height: 470px; border: 1px solid #c7d2bb; border-radius: 50%; right: -175px; top: 8%; box-shadow: 0 0 0 50px #c7d2bb25, 0 0 0 100px #c7d2bb18; pointer-events: none; }
.hero-inner { text-align: center; padding: 62px 0 43px; position: relative; z-index: 1; }
.eyebrow { font-size: 10px; letter-spacing: 2.4px; color: var(--gold); font-weight: 650; }
.hero h1 { font-family: "Songti SC", "STSong", SimSun, serif; font-size: clamp(32px, 4vw, 48px); line-height: 1.55; margin: 19px 0; font-weight: 700; letter-spacing: 1px; }
.hero h1 span { color: var(--green); }
.hero p { color: #6c7669; font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px 0; }
.button { display: inline-flex; gap: 24px; justify-content: center; align-items: center; padding: 11px 23px; background: var(--forest); color: white; border: 1px solid var(--forest); border-radius: 6px; font-size: 14px; font-weight: 550; line-height: 1.7; }
.button:hover { color: white; background: var(--green); border-color: var(--green); }
.button-outline { background: transparent; color: var(--forest); border-color: #9fac9e; }
.button-outline:hover { background: #e5ece1; color: var(--forest); }
.button-light { background: #ede6d3; color: var(--forest); border-color: transparent; }
.hero-topics { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 32px; font-size: 12px; }
.hero-topics span { color: var(--muted); }
.hero-topics a { border-bottom: 1px solid #c0c7b6; }
.intro-strip { display: grid; grid-template-columns: repeat(3,1fr); margin: 30px 0 42px; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdf8; }
.intro-strip a { display: grid; grid-template-columns: 70px 1fr; padding: 23px 26px; align-items: center; border-right: 1px solid var(--line); }
.intro-strip a:last-child { border: 0; }
.intro-strip span { font-size: 11px; color: var(--gold); grid-row: span 2; }
.intro-strip strong { color: var(--ink); font-size: 16px; }
.intro-strip p { font-size: 12px; color: var(--muted); margin: 3px 0 0; }
.home-section { margin-bottom: 44px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; }
.section-heading > a { color: var(--green); font-size: 12px; white-space: nowrap; }
.card-grid { display: grid; gap: 18px; }
.three-columns { grid-template-columns: repeat(3,minmax(0,1fr)); }
.two-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
.content-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; min-width: 0; transition: border-color .18s, box-shadow .18s; }
.content-card:hover { border-color: #aebfaa; box-shadow: 0 8px 24px #16372c08; }
.card-label { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 10px; color: #8b9389; }
.card-label > span { padding: 2px 7px; border-radius: 3px; background: #eff4ed; color: #557258; }
.content-card h3 { font-size: 17px; line-height: 1.75; margin: 16px 0 12px; font-weight: 600; overflow-wrap: anywhere; }
.content-card p { color: #7d857b; font-size: 12px; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 20px; }
.card-more { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #eef0e9; margin-top: auto; padding-top: 13px; color: var(--green); font-size: 11px; }
.card-more span { font-size: 17px; }
.home-columns { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 28px; align-items: start; }
.home-sidebar { position: sticky; top: 24px; }
.sidebar-box { padding: 25px; border: 1px solid var(--line); background: white; border-radius: var(--radius); margin-bottom: 24px; }
.sidebar-box h2 { font-size: 19px; margin: 5px 0 18px; }
.question-list { list-style: none; padding: 0; margin: 0 0 20px; }
.question-list li { display: flex; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.question-list li > span { color: var(--gold); font-size: 13px; font-family: Georgia,serif; }
.sidebar-note { border-radius: var(--radius); background: var(--forest); padding: 32px 27px; color: #b6c9bc; margin-bottom: 24px; }
.sidebar-note h2 { color: #f2efe3; font-family: "Songti SC",SimSun,serif; font-size: 28px; margin: 18px 0; }
.sidebar-note p { font-size: 13px; }
.text-link { color: var(--green); font-size: 13px; }
.bottom-callout { display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--line); padding: 38px 0 50px; }
.bottom-callout h2 { font-size: 24px; margin: 8px 0; }
.site-footer { background: #eaece3; padding-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 80px; padding-bottom: 32px; }
.footer-brand { font-size: 26px; letter-spacing: 2px; font-weight: 700; color: var(--ink); }
.footer-grid p { font-size: 12px; margin-top: 14px; max-width: 400px; }
.footer-grid h2 { font-size: 13px; margin: 8px 0 18px; }
.footer-grid > div > a:not(.footer-brand) { display: block; font-size: 12px; margin: 8px 0; color: #727e70; }
.footer-bottom { border-top: 1px solid #d4dacf; display: flex; gap: 20px; justify-content: space-between; padding: 18px 0; font-size: 10px; color: #7c8577; }
.muted { color: var(--muted); }
.listing-page, .form-page, .account-page { padding-top: 30px; padding-bottom: 70px; }
.breadcrumbs { display: flex; gap: 9px; flex-wrap: wrap; font-size: 12px; color: #869080; margin-bottom: 28px; }
.breadcrumbs a:last-child { max-width: 550px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-heading { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 30px; }
.page-heading h1 { margin: 10px 0; }
.page-heading p { color: var(--muted); font-size: 13px; margin: 0; }
.pagination { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding-top: 35px; }
.pagination a { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: white; border-radius: 5px; font-size: 13px; }
.pagination a[aria-current="page"] { background: var(--forest); color: white; }
.empty-state, .message-page { text-align: center; padding-top: 90px; padding-bottom: 100px; }
.message-page p { color: var(--muted); }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: white; margin-bottom: 24px; }
.panel h2 { margin-top: 0; font-size: 23px; }
.form-page { max-width: 850px; }
.form-stack { display: grid; gap: 18px; }
.form-stack > .button { justify-self: start; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 500; }
input, select, textarea { min-width: 0; max-width: 100%; border: 1px solid #d8dfd5; border-radius: 5px; padding: 10px 12px; background: #fff; color: #344536; }
textarea { width: 100%; resize: vertical; line-height: 1.8; }
.check-label { display: flex; align-items: center; gap: 9px; }
.notice { padding: 14px 18px; background: #eaf3e7; color: #3b6344; border-radius: 6px; }
.form-error { padding: 12px 16px; background: #fff1eb; color: #a13e26; border-radius: 6px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th, td { border-bottom: 1px solid var(--line); padding: 14px 12px; }
th { color: #7c8878; font-weight: 500; white-space: nowrap; }
.badge { padding: 3px 8px; border-radius: 4px; background: #eef2e9; color: #677a5f; font-size: 11px; }
.course-price { font-size: 26px; color: var(--gold); }
@media (max-width: 1050px) {
  .header-inner { gap: 20px; }
  .nav-inner { gap: 24px; }
  .home-columns { grid-template-columns: minmax(0,1fr) 260px; }
  .intro-strip a { grid-template-columns: 1fr; padding: 18px; }
  .intro-strip span { grid-row: auto; margin-bottom: 5px; }
}
@media (max-width: 800px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 82px; flex-wrap: wrap; padding-block: 15px; gap: 12px; }
  .brand-mark { width: 38px; height: 38px; font-size: 23px; }
  .brand strong { font-size: 23px; }
  .brand small { font-size: 8px; }
  .header-search { order: 4; min-width: 100%; margin: 0; }
  .header-account { margin-left: auto; }
  .menu-toggle { display: block; padding: 5px 10px; border: 1px solid var(--line); background: white; border-radius: 4px; font-size: 12px; }
  .nav-inner { gap: 15px; flex-wrap: wrap; padding-block: 10px; }
  .main-nav a { padding: 5px 0; }
  .js-menu .main-nav:not(.is-open) { display: none; }
  .hero-inner { padding: 42px 0 32px; }
  .hero::after { opacity: .4; }
  .home-columns { grid-template-columns: 1fr; }
  .home-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .three-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { gap: 24px; }
  .bottom-callout { align-items: start; }
}
@media (max-width: 520px) {
  h1 { font-size: 28px; }
  h2 { font-size: 23px; }
  .brand small { display: none; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 12px; }
  .hero-topics { gap: 12px; }
  .intro-strip { margin-top: 20px; }
  .intro-strip a { padding: 15px 10px; }
  .intro-strip strong { font-size: 12px; }
  .intro-strip p { display: none; }
  .three-columns, .two-columns, .home-sidebar { grid-template-columns: 1fr; }
  .content-card { padding: 20px; }
  .bottom-callout { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .panel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
