:root {
  --primary: #7b49ff;
  --primary-dark: #5f2be8;
  --pink: #ff4d91;
  --ink: #171923;
  --text: #424657;
  --muted: #72778b;
  --line: #e9e7f0;
  --paper: #ffffff;
  --soft: #f7f5fb;
  --shadow: 0 18px 55px rgba(56, 36, 102, .10);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f7f5fb;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-width: 320px; color: var(--text); background: radial-gradient(circle at 6% 3%, rgba(255,77,145,.08), transparent 25rem), #f7f5fb; line-height: 1.82; -webkit-font-smoothing: antialiased; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--pink); }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 99; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 50; min-height: 68px; padding: 0 5vw; display: flex; align-items: center; gap: 26px; border-bottom: 1px solid rgba(233,231,240,.9); background: rgba(255,255,255,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { display: block; width: 38px; height: 38px; border-radius: 13px; object-fit: contain; box-shadow: 0 8px 22px rgba(61,145,221,.28); }
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand strong { font-size: 16px; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.site-nav { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 4px; overflow: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { flex: none; padding: 8px 10px; border-radius: 9px; color: #555a6c; font-size: 13px; font-weight: 600; white-space: nowrap; }
.site-nav a:hover { color: var(--primary); background: #f4f0ff; }
.nav-toggle { display: none; margin-left: auto; border: 0; border-radius: 10px; padding: 8px 12px; color: var(--primary); background: #f2edff; font: inherit; font-size: 13px; font-weight: 700; }
.hero { color: white; background: linear-gradient(135deg, #23153e 0%, #5833af 52%, #7b49ff 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; pointer-events: none; }
.hero-inner { max-width: 1120px; margin: 0 auto; padding: 74px 28px 70px; position: relative; }
.hero-inner::after { content: ""; position: absolute; right: 3%; top: -60px; width: 250px; height: 250px; background: url("/assets/biwan-logo.png") center/contain no-repeat; opacity: .08; transform: rotate(8deg); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 9px; background: #ff7daf; }
.hero h1 { max-width: 760px; margin: 18px 0 12px; color: #fff; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.17; letter-spacing: -.035em; }
.hero-description { max-width: 760px; margin: 0; color: rgba(255,255,255,.78); font-size: 16px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 25px; color: rgba(255,255,255,.67); font-size: 13px; }
.page-shell { max-width: 1120px; margin: 0 auto; padding: 36px 28px 70px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.toc { position: sticky; top: 100px; max-height: calc(100vh - 124px); overflow: auto; padding: 18px 18px 18px 0; border-right: 1px solid var(--line); }
.toc strong { color: var(--ink); font-size: 13px; }
.toc nav { display: grid; gap: 2px; margin-top: 12px; }
.toc a { padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.toc a:hover, .toc a.active { color: var(--primary); background: #f0ebff; }
.article { min-width: 0; max-width: 780px; padding: 4px 0 0; }
.article-lead { padding: 24px 26px; border: 1px solid #e7defd; border-radius: 18px; color: #4b3b6f; background: linear-gradient(135deg, #fbf9ff, #f5efff); font-size: 15px; font-weight: 550; }
.operator-card { display: grid; grid-template-columns: 1fr 1.45fr; gap: 1px; margin: 20px 0 38px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); }
.operator-card div { padding: 16px 18px; background: #fff; }
.operator-card span, .operator-card strong { display: block; }
.operator-card span { color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.operator-card strong { margin-top: 4px; color: var(--ink); font-size: 13px; line-height: 1.55; }
.article-section { padding: 31px 0 12px; border-top: 1px solid var(--line); }
.article-section h2, .related h2 { margin: 0 0 16px; color: var(--ink); font-size: 21px; line-height: 1.4; letter-spacing: -.01em; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 1.45em; }
.article li { margin: 7px 0; padding-left: .2em; }
.article strong { color: #2c203f; }
.notice { margin: 20px 0; padding: 17px 19px; border-left: 4px solid var(--primary); border-radius: 4px 14px 14px 4px; color: #4b3b6f; background: #f6f1ff; }
.notice.important { border-left-color: var(--pink); color: #623148; background: #fff1f6; }
.table-wrap { margin: 18px 0 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; line-height: 1.65; }
.wide table { min-width: 820px; }
th, td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
th:last-child, td:last-child { border-right: 0; }
tr:last-child td { border-bottom: 0; }
th { color: var(--ink); background: #f6f3fb; font-size: 12px; }
td:first-child { color: #2b2339; font-weight: 650; }
.related { margin-top: 30px; padding-top: 34px; border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.related-card { display: flex; justify-content: space-between; gap: 12px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff; font-size: 13px; font-weight: 700; }
.related-card:hover { border-color: #cfbfff; color: var(--primary); box-shadow: 0 8px 25px rgba(77,45,139,.07); }
.back-top { display: inline-block; margin-top: 26px; color: var(--muted); font-size: 12px; }
.site-footer { max-width: 1120px; margin: 0 auto; padding: 30px 28px 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-footer div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer strong { color: var(--ink); }
.site-footer p { margin: 7px 0 0; }
.home-hero { min-height: 480px; padding: 80px max(6vw, 28px); display: flex; align-items: center; justify-content: space-between; gap: 50px; color: #fff; background: radial-gradient(circle at 78% 32%, rgba(255,126,177,.55), transparent 18rem), linear-gradient(135deg, #24143d 0%, #5d35bd 52%, #8c5cff 100%); overflow: hidden; }
.home-hero-content { max-width: 740px; position: relative; z-index: 2; }
.eyebrow.static { color: #f0eaff; }
.home-hero h1 { margin: 22px 0 20px; color: #fff; font-size: clamp(43px, 7vw, 78px); line-height: 1.08; letter-spacing: -.055em; }
.home-hero h1 span { color: #ff8fbb; }
.home-hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.75); font-size: 16px; }
.home-orb { flex: none; width: 220px; height: 220px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.26); border-radius: 42% 58% 53% 47%; background: linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.05)); box-shadow: inset 0 0 0 16px rgba(255,255,255,.035), 0 40px 90px rgba(25,10,62,.25); transform: rotate(9deg); }
.home-orb img { display: block; width: 82%; height: 82%; border-radius: 29%; object-fit: contain; filter: drop-shadow(0 16px 30px rgba(25,10,62,.28)); transform: rotate(-9deg); }
.meta-row.light { color: rgba(255,255,255,.62); }
.document-list { max-width: 1120px; margin: 0 auto; padding: 72px 28px 60px; }
.section-heading span { color: var(--primary); font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.section-heading h2 { margin: 8px 0 2px; color: var(--ink); font-size: 34px; line-height: 1.2; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.document-card { min-height: 170px; padding: 24px; display: grid; grid-template-columns: 44px 1fr 30px; gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: rgba(255,255,255,.9); box-shadow: 0 10px 35px rgba(54,35,93,.045); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.document-card:hover { color: var(--ink); transform: translateY(-3px); border-color: #cdbdff; box-shadow: var(--shadow); }
.document-index { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--primary); background: #f0ebff; font-size: 12px; font-weight: 800; }
.document-card h2 { margin: 2px 0 9px; font-size: 19px; line-height: 1.35; }
.document-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.document-arrow { color: var(--primary); font-size: 20px; }
.contact-panel { max-width: 1064px; margin: 0 auto 76px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: 22px; color: white; background: linear-gradient(135deg, #342052, #7041dc); box-shadow: var(--shadow); }
.contact-panel span { color: #dcd1fa; font-size: 11px; letter-spacing: .08em; }
.contact-panel h2 { margin: 5px 0 0; color: white; font-size: 20px; }
.contact-panel p { max-width: 520px; margin: 0; color: rgba(255,255,255,.76); font-size: 13px; text-align: right; }
@media (max-width: 900px) {
  .site-header { min-height: 62px; padding: 0 18px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 14px; right: 14px; top: 58px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); flex-wrap: wrap; justify-content: flex-start; }
  .site-nav.open { display: flex; }
  .page-shell { grid-template-columns: 1fr; padding-top: 22px; }
  .toc { position: static; max-height: none; padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--line); overflow: hidden; }
  .toc nav { display: flex; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .toc a { flex: none; background: #efebf7; }
  .home-hero { min-height: 430px; }
  .home-orb { width: 160px; height: 160px; }
}
@media (max-width: 680px) {
  body { font-size: 15px; line-height: 1.78; }
  .brand small { display: none; }
  .hero-inner { padding: 52px 20px 48px; }
  .hero-inner::after { right: -12%; width: 180px; height: 180px; }
  .hero-description { font-size: 14px; }
  .page-shell { padding: 18px 18px 54px; }
  .article-lead { padding: 19px 18px; border-radius: 15px; font-size: 14px; }
  .operator-card { grid-template-columns: 1fr; }
  .article-section { padding-top: 27px; }
  .article-section h2, .related h2 { font-size: 19px; }
  .related-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 26px 18px 36px; }
  .home-hero { min-height: 520px; padding: 62px 22px; align-items: flex-start; }
  .home-hero h1 { font-size: 47px; }
  .home-orb { position: absolute; right: -45px; margin-top: 270px; opacity: .35; }
  .document-list { padding: 54px 18px 48px; }
  .document-grid { grid-template-columns: 1fr; }
  .document-card { min-height: 0; padding: 20px 17px; grid-template-columns: 40px 1fr 18px; }
  .document-index { width: 38px; height: 38px; }
  .contact-panel { margin: 0 18px 54px; padding: 24px; display: block; border-radius: 19px; }
  .contact-panel p { margin-top: 14px; text-align: left; }
}
@media print {
  :root { background: white; }
  body { background: white; font-size: 11pt; color: #222; }
  .site-header, .toc, .back-top, .related, .nav-toggle { display: none !important; }
  .hero { color: #111; background: none; border-bottom: 2px solid #222; }
  .hero-inner { padding: 24px 0 18px; }
  .hero h1, .eyebrow { color: #111; }
  .hero-description, .meta-row { color: #444; }
  .page-shell { display: block; max-width: none; padding: 18px 0; }
  .article { max-width: none; }
  .article-section { break-inside: avoid; }
  .site-footer { max-width: none; padding: 16px 0; }
  a { color: #222; text-decoration: underline; }
}