@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #1f1726;
  --purple: #56228b;
  --ochre: #8b4513;
  --moss: #6f8f63;
  --moss-l: #a3c096;
  --paper: #efe9f4;
  --dim: rgba(239, 233, 244, .74);
  --soft: rgba(239, 233, 244, .5);
  --line: rgba(239, 233, 244, .14);
  --card: rgba(239, 233, 244, .05);
  --shadow: 0 20px 48px -26px rgba(0, 0, 0, .9);
  --font: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.78;
  color: var(--paper);
  overflow-x: clip;
  background:
    radial-gradient(1000px 640px at 88% -12%, rgba(86, 34, 139, .74), transparent 68%),
    radial-gradient(780px 520px at 0% 32%, rgba(111, 143, 99, .18), transparent 66%),
    radial-gradient(700px 470px at 100% 78%, rgba(139, 69, 19, .28), transparent 70%),
    var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  mix-blend-mode: soft-light;
  background-image:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(28deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 15px);
}

img { max-width: 100%; height: auto; }

a { color: var(--moss-l); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffd9b0; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: end;
  justify-items: end;
  padding: 16vh 6vw 13vh;
  overflow: hidden;
  border-radius: 0 0 96px 34px;
  background:
    radial-gradient(70% 70% at 88% 12%, rgba(86, 34, 139, .85), transparent 70%),
    linear-gradient(158deg, #351552 0%, #1a1320 68%, #1f1726 100%);
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(202deg, rgba(31, 23, 38, .18) 0%, rgba(31, 23, 38, .82) 58%, rgba(31, 23, 38, .97) 100%),
    radial-gradient(64% 54% at 92% 18%, rgba(86, 34, 139, .58), transparent 72%),
    radial-gradient(50% 40% at 6% 88%, rgba(139, 69, 19, .34), transparent 70%);
}

.hero-txt {
  display: grid;
  justify-items: end;
  width: 100%;
}

.hero h1 {
  margin: 0;
  max-width: 20ch;
  text-align: right;
  font-size: clamp(2rem, 6vw, 4.15rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
}

.hero h1::after {
  content: "";
  display: block;
  width: 118px;
  height: 10px;
  margin: 1.4rem 0 0 auto;
  border-radius: 60% 40% 52% 48% / 50% 58% 42% 50%;
  background: linear-gradient(90deg, var(--moss), var(--ochre));
}

/* ---------- 正文骨架 ---------- */
.page { position: relative; z-index: 1; }

.wrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 4.6rem 0 2.4rem;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 2.4rem;
  align-items: start;
}

.col-main { min-width: 0; }

.col-head {
  padding: 0 .1rem 1.5rem;
  animation: fade .7s ease both;
}

.col-head h2 {
  margin: 0 0 .5rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
}

.col-head .subtitle {
  margin: 0;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dim);
}

.col-main article {
  position: relative;
  margin: 0 0 1.5rem;
  padding: clamp(1.15rem, 2.8vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: 18px 24px 18px 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  scroll-margin-top: 1.6rem;
  transition: border-color .35s ease, box-shadow .35s ease, background .35s ease;
  animation: rise .6s cubic-bezier(.2, .7, .2, 1) both;
}

.col-main article:nth-of-type(1) { animation-delay: .05s; }
.col-main article:nth-of-type(2) { animation-delay: .1s; }
.col-main article:nth-of-type(3) { animation-delay: .15s; }
.col-main article:nth-of-type(4) { animation-delay: .2s; }
.col-main article:nth-of-type(5) { animation-delay: .25s; }
.col-main article:nth-of-type(6) { animation-delay: .3s; }
.col-main article:nth-of-type(7) { animation-delay: .35s; }

.col-main article:hover {
  border-color: rgba(163, 192, 150, .45);
  background: rgba(239, 233, 244, .075);
  box-shadow: 0 30px 62px -30px rgba(0, 0, 0, .95);
}

.col-main article h2 {
  position: relative;
  margin: 0 0 .85rem;
  padding-left: 1rem;
  font-size: clamp(1.4rem, 3.2vw, 1.95rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
}

.col-main article h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .22em;
  bottom: .22em;
  width: 9px;
  border-radius: 58% 42% 50% 50% / 50% 55% 45% 50%;
  background: linear-gradient(180deg, var(--moss-l), var(--ochre));
  transition: width .3s ease;
}

.col-main article:hover h2::before { width: 13px; }

.col-main article h3 {
  margin: 1.4rem 0 .5rem;
  font-size: 1.13rem;
  color: #fff;
}

.col-main article p {
  margin: 0 0 1rem;
  max-width: 68ch;
  color: rgba(239, 233, 244, .88);
}

.col-main article p:last-child,
.col-main article ul:last-child,
.col-main article ol:last-child { margin-bottom: 0; }

.col-main article ul,
.col-main article ol { margin: 0 0 1rem; padding-left: 1.35rem; max-width: 66ch; }

.col-main article li { margin: .3rem 0; }

.col-main article blockquote {
  margin: 1.2rem 0;
  padding: .9rem 1.1rem;
  border-left: 4px solid var(--moss);
  border-radius: 14px 18px 18px 14px;
  background: rgba(111, 143, 99, .12);
  color: var(--dim);
}

.col-main article figure { margin: 1.2rem 0; }
.col-main article img { border-radius: 16px 20px 16px 20px; }
.col-main article table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; font-size: .97rem; }
.col-main article th,
.col-main article td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-align: left; }

/* ---------- 侧栏 ---------- */
.col-side {
  position: sticky;
  top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 24px 18px 24px 18px;
  background: linear-gradient(168deg, rgba(86, 34, 139, .34), rgba(31, 23, 38, .62));
  box-shadow: var(--shadow);
  animation: fade .8s ease both;
}

.side-t {
  margin: 0 0 .8rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #e3d5f0;
}

.side-list {
  list-style: none;
  counter-reset: side;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .25rem;
}

.side-list a {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .35rem .6rem;
  border-radius: 14px 18px 14px 18px;
  color: var(--paper);
  font-size: 1rem;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease, color .25s ease;
}

.side-list a::before {
  counter-increment: side;
  content: counter(side, decimal-leading-zero);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  color: var(--moss-l);
}

.side-list a:hover {
  background: rgba(239, 233, 244, .11);
  transform: translateX(4px);
  color: #fff;
}

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  margin-top: 3.4rem;
  padding: 3rem 0 116px;
  border-top: 1px solid var(--line);
  border-radius: 36px 90px 0 0;
  background: linear-gradient(180deg, rgba(86, 34, 139, .22), rgba(31, 23, 38, .95) 60%);
}

.f-top {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr .9fr;
  gap: 2rem 2.4rem;
  align-items: start;
}

.f-name {
  margin: 0 0 .55rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.f-addr {
  font-style: normal;
  display: grid;
  gap: .3rem;
  font-size: .95rem;
  color: var(--soft);
}

.f-form label {
  display: block;
  margin-bottom: .5rem;
  font-size: .95rem;
  color: var(--soft);
}

.f-form input {
  width: 100%;
  min-height: 46px;
  padding: .5rem .9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--paper);
  background: rgba(239, 233, 244, .08);
  border: 1px solid var(--line);
  border-radius: 14px 18px 14px 18px;
}

.f-form input::placeholder { color: rgba(239, 233, 244, .45); }

.f-form input:focus-visible { outline: 2px solid var(--moss-l); outline-offset: 2px; }

.f-form button {
  margin-top: .55rem;
  min-height: 46px;
  padding: .5rem 1.4rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #1c1420;
  background: linear-gradient(120deg, var(--moss-l), #e4b489);
  border: 0;
  border-radius: 16px 20px 16px 20px;
  cursor: pointer;
  transition: transform .25s ease, filter .25s ease;
}

.f-form button:hover { transform: translateY(-2px); filter: brightness(1.06); }

.f-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .2rem;
}

.f-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .2rem .2rem;
  font-size: 1rem;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.f-links a:hover { color: var(--moss-l); border-bottom-color: rgba(163, 192, 150, .5); }

.f-copy {
  margin: 2.2rem auto 0;
  width: min(1180px, 92vw);
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--soft);
}

.f-copy p { margin: 0; }

/* ---------- 底部导航 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem max(3vw, env(safe-area-inset-left)) calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(24, 17, 30, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -16px 40px -28px rgba(0, 0, 0, 1);
}

.dock-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 52% 48% 44% 56% / 48% 52% 48% 52%;
  background: linear-gradient(150deg, var(--purple), var(--ochre));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform .3s ease;
}

.dock-mark:hover { transform: rotate(-8deg) scale(1.06); color: #fff; }

.dock-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.dock dl {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0 auto;
  max-width: 980px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.dock dl::-webkit-scrollbar { display: none; }

.dock dt {
  flex: 0 0 auto;
  padding-right: .35rem;
  font-size: .9rem;
  letter-spacing: .16em;
  color: rgba(239, 233, 244, .45);
}

.dock dd { flex: 0 0 auto; margin: 0; scroll-snap-align: center; }

.dock dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: 1rem;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.dock dd a:hover,
.dock dd a.on {
  background: linear-gradient(120deg, rgba(111, 143, 99, .5), rgba(139, 69, 19, .45));
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- 动效 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- 断点 ---------- */
@media (max-width: 940px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .col-side { position: static; order: 2; }
  .f-top { grid-template-columns: 1fr 1fr; }
  .f-links { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: .4rem 1.4rem; }
}

@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .hero { padding: 18vh 6vw 14vh; border-radius: 0 0 64px 26px; }
  .hero h1 { font-size: clamp(1.85rem, 8.4vw, 2.6rem); }
  .hero h1::after { margin-top: 1rem; width: 86px; }
  .wrap { padding-top: 3.2rem; }
  .dock dt { display: none; }
  .dock-nav { justify-content: stretch; }
  .dock dl { margin: 0; }
  .f-top { grid-template-columns: 1fr; gap: 1.8rem; }
  .f-links { grid-auto-flow: row; }
  .f-copy { font-size: .93rem; }
}

@media (max-width: 400px) {
  .col-main article { padding: 1.05rem; }
  .dock dd a { padding: .35rem .65rem; font-size: .96rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
