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

:root {
  --ink: #171423;
  --ink2: #1d1930;
  --amber: #C77B4E;
  --cream: #F5EDE3;
  --line: rgba(245, 237, 227, .14);
  --glass: rgba(245, 237, 227, .06);
  --serif: 'Playfair Display SC', Georgia, 'Songti SC', serif;
  --sans: Karla, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 78% -10%, rgba(199, 123, 78, .18), transparent 62%),
    var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: .01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 237, 227, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 237, 227, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 15%, #000 20%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 15%, #000 20%, transparent 78%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 60;
  background: var(--amber);
  color: #191320;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: 8px; }

/* 左侧固定竖排导航 */
.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 224px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 16px;
  background: linear-gradient(180deg, rgba(29, 25, 48, .94), rgba(23, 20, 35, .97));
  border-right: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 30;
}

.brand,
.fbrand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .08em;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--amber);
  color: #191320;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  object-fit: cover;
}

.rail nav { flex: 1; min-height: 0; overflow-y: auto; }

.rail ul,
.side ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail li a,
.side li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(245, 237, 227, .82);
  font-size: 1rem;
  transition: background .25s ease, color .25s ease;
}

.rail li a::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 10px;
  flex: 0 0 auto;
  border: 1px solid var(--amber);
  border-radius: 2px;
  transform: rotate(45deg);
  opacity: .7;
}

.rail li a:hover,
.rail li a:focus-visible {
  background: var(--glass);
  color: var(--cream);
}

.search {
  display: flex;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
  transition: border-color .25s ease;
}
.search:focus-within { border-color: var(--amber); }
.search input {
  width: 100%;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 16px;
}
.search input:focus { outline: none; }

/* 主内容区 */
main {
  position: relative;
  z-index: 1;
  margin-left: 224px;
  padding: 0 40px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 44px;
  max-width: 1320px;
}

div { min-width: 0; }

/* 首屏 */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 130px 0 82px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  background: linear-gradient(160deg, var(--ink2), rgba(199, 123, 78, .28));
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 20, 35, .45), rgba(23, 20, 35, .94) 74%);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  max-width: 20ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: .02em;
}

.lede {
  position: relative;
  z-index: 1;
  margin: 0 0 26px;
  max-width: 56ch;
  font-size: 1.06rem;
  color: rgba(245, 237, 227, .82);
}

.hero .btn { position: relative; z-index: 1; align-self: flex-start; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--amber);
  color: #191320;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease;
}
.btn:hover { background: #d98e5f; transform: translateY(-2px); }

/* 正文段落 */
div article {
  padding: 66px 0 6px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 28px;
}

div article h2,
div article h3,
.side-h,
.cta-h {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .02em;
}

div article h2 {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

div article h3 {
  margin: 28px 0 10px;
  font-size: clamp(1.12rem, 1.9vw, 1.35rem);
}

div article h2 > span,
div article h3 > span,
.side-h > span,
.cta-h > span {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

div article h2 > span::after,
.side-h > span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.2em;
  height: 2px;
  background: var(--amber);
}

div article p {
  margin: 0 0 16px;
  max-width: 68ch;
  color: rgba(245, 237, 227, .88);
}

div article ul,
div article ol { margin: 0 0 18px; padding-left: 1.25em; }
div article li { margin: .35em 0; }
div article a { color: var(--amber); text-underline-offset: 3px; }

div article blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  border-left: 3px solid var(--amber);
  border-radius: 0 18px 18px 0;
  background: var(--glass);
}

div article img,
div article figure { border-radius: 20px; }
div article img { height: auto; }
div article figure { margin: 24px 0; }
div article figcaption { font-size: .92rem; color: rgba(245, 237, 227, .62); }

/* 右侧栏 */
.side {
  position: -webkit-sticky;
  position: sticky;
  top: 28px;
  align-self: start;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.side-h { margin: 0 0 14px; font-size: 1.15rem; }
.side li a { min-height: 40px; padding: 8px 10px; font-size: .97rem; }
.side li a:hover { background: rgba(199, 123, 78, .18); color: var(--cream); }

/* 页脚 */
.foot {
  position: relative;
  z-index: 1;
  margin-left: 224px;
  margin-top: 72px;
  padding: 56px 40px 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(29, 25, 48, .55), rgba(23, 20, 35, 1));
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(120deg, rgba(199, 123, 78, .22), rgba(245, 237, 227, .05));
}

.cta-h { margin: 0; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.cta-h > span { padding-bottom: 0; }

.cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px;
  margin: 40px 0 28px;
}

.cols dl { margin: 0; }
.cols dt {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .12em;
  color: var(--amber);
}
.cols dd { margin: 0; }
.cols dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  color: rgba(245, 237, 227, .78);
}
.cols dd a:hover { color: var(--cream); }

.fbot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .93rem;
  color: rgba(245, 237, 227, .6);
}
.copy { margin: 0; }

.fnav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 18px;
}
.fnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  color: rgba(245, 237, 227, .68);
}
.fnav a:hover { color: var(--cream); }

/* 滚动揭示 */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-img { transform: none !important; }
  .btn:hover { transform: none; }
}

@media (max-width: 880px) {
  .rail {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    bottom: auto;
    left: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .rail nav { flex: 1; overflow-x: auto; overflow-y: hidden; }
  .rail ul { flex-direction: row; }
  .rail li a { white-space: nowrap; min-height: 44px; padding: 8px 10px; font-size: .95rem; }
  .rail li a::before { margin-right: 6px; }
  .brand { flex: 0 0 auto; font-size: 1.08rem; }
  .search { display: none; }

  main {
    margin-left: 0;
    display: block;
    padding: 0 16px 32px;
  }
  .hero { min-height: 62vh; padding: 96px 0 64px; }
  .hero-media { clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%); }
  .side { position: static; margin-top: 36px; }

  .foot { margin-left: 0; margin-top: 48px; padding: 36px 16px 20px; }
  .cols { grid-template-columns: 1fr 1fr; gap: 18px; }
  .cta { padding: 26px 20px; }
  .fbot { flex-wrap: wrap; }
}

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