@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Noto+Serif+TC:wght@400;500;600;700&display=swap');

:root {
  --ink: #1f1726;
  --ink-deep: #171020;
  --purple: #56228b;
  --clay: #8b4513;
  --paper: #f4eef7;
  --muted: #c6b4d5;
  --line: rgba(244, 238, 247, 0.14);
  --glass: rgba(255, 255, 255, 0.055);
  --r-xl: 34px;
  --r-lg: 22px;
  --serif: "Noto Serif TC", "Songti SC", Georgia, serif;
  --sans: "Noto Sans TC", "PingFang TC", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 84% -8%, rgba(86, 34, 139, 0.55) 0%, rgba(86, 34, 139, 0) 62%),
    radial-gradient(900px 520px at -6% 104%, rgba(139, 69, 19, 0.42) 0%, rgba(139, 69, 19, 0) 58%),
    linear-gradient(180deg, #241a2e 0%, var(--ink) 42%, var(--ink-deep) 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(28deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 13px);
}

a {
  color: #e7d5f7;
}

h1, h2, h3, h4, .brand, address {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.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;
}

/* 顶部 */
.topbar {
  position: relative;
  z-index: 40;
  padding: 0 clamp(16px, 4vw, 40px);
}

.ribbon {
  margin: 0;
  padding: 9px 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.24em;
  color: #d5c2e6;
  border-bottom: 1px solid var(--line);
}

.bar {
  position: relative;
  padding: 12px 0;
}

.primary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.side {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  font-size: 16px;
}

.side.left {
  justify-self: start;
}

.side.right {
  justify-self: end;
  justify-content: flex-end;
}

.side a {
  padding: 12px 2px;
  color: #e9dff0;
  text-decoration: none;
  line-height: 1.5;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.side a:hover,
.side a:focus-visible {
  color: #ffffff;
  border-color: var(--clay);
}

.brandline {
  margin: 0;
  justify-self: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 4px;
  font-size: 21px;
  letter-spacing: 0.16em;
  color: #f8f1fc;
  text-decoration: none;
}

.mark {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #d79a5f;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.drop {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.drop-label {
  padding: 12px 2px;
  line-height: 1.5;
  color: #cdb9dd;
  cursor: default;
  border-bottom: 1px dotted rgba(244, 238, 247, 0.3);
}

.drop-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  display: none;
  flex-direction: column;
  padding: 6px;
  background: rgba(26, 18, 34, 0.97);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: 0 22px 40px -26px #000;
}

.drop:hover .drop-menu,
.drop:focus-within .drop-menu {
  display: flex;
}

.drop-menu a {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(244, 238, 247, 0.08);
}

.drop-menu a:last-child {
  border-bottom: 0;
}

.menu-btn {
  display: none;
}

.anchorbar {
  position: sticky;
  top: 0;
  z-index: 45;
  margin: 0 calc(-1 * clamp(16px, 4vw, 40px));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(23, 16, 32, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.anchorbar p {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 4px clamp(12px, 4vw, 36px);
  overflow-x: auto;
  scrollbar-width: none;
}

.anchorbar p::-webkit-scrollbar {
  display: none;
}

.anchorbar a {
  display: inline-block;
  padding: 11px 13px;
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
  color: #cfc0dc;
  text-decoration: none;
  border-radius: var(--r-lg);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.anchorbar a:hover,
.anchorbar a:focus-visible {
  color: #ffffff;
  background: rgba(86, 34, 139, 0.6);
}

/* 主体框架 */
.wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px) 60px;
}

/* 首屏 */
.hero {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 4vw, 54px);
  min-height: 45vh;
  margin: 0 calc(-1 * clamp(16px, 4vw, 32px));
  padding: clamp(26px, 4vw, 48px) clamp(20px, 5vw, 62px);
  overflow: hidden;
  background:
    linear-gradient(152deg, rgba(86, 34, 139, 0.5) 0%, rgba(139, 69, 19, 0.24) 62%, rgba(31, 23, 38, 0) 100%);
  border-bottom-left-radius: 72px;
  border-bottom-right-radius: 26px;
  box-shadow: inset 0 -1px 0 var(--line);
}

.watermark {
  position: absolute;
  left: -2%;
  top: -18%;
  font-family: var(--serif);
  font-size: clamp(78px, 15vw, 176px);
  line-height: 1;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: rgba(244, 238, 247, 0.055);
  pointer-events: none;
  will-change: transform;
}

.hero-copy {
  position: relative;
  text-align: right;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.6vw, 50px);
  line-height: 1.28;
  color: #fdf8ff;
}

.lede {
  margin: 0 0 0 auto;
  max-width: 42ch;
  font-size: 17px;
  line-height: 1.75;
  color: #ddcfe8;
}

.hero-art {
  position: relative;
  justify-self: center;
  margin: 0;
  width: min(280px, 100%);
  aspect-ratio: 1 / 1;
}

.blob {
  width: 100%;
  height: 100%;
  animation: drift 18s ease-in-out infinite alternate;
}

.blob path {
  fill: rgba(139, 69, 19, 0.42);
  stroke: rgba(244, 238, 247, 0.16);
  stroke-width: 1;
}

.hero-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42%;
  height: auto;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

@keyframes drift {
  from { transform: rotate(-4deg) translateY(-6px); }
  to { transform: rotate(5deg) translateY(8px); }
}

/* 正文 */
.content {
  min-width: 0;
  padding-top: clamp(20px, 3vw, 34px);
}

.content > section {
  position: relative;
  margin: 0 0 clamp(16px, 2.6vw, 26px);
  padding: clamp(20px, 3vw, 34px);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 0;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  box-shadow: 0 26px 48px -38px rgba(0, 0, 0, 0.95);
  scroll-margin-top: 104px;
}

.content > section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 42px;
  background: linear-gradient(180deg, var(--clay), rgba(139, 69, 19, 0));
}

.content h2,
.content h3 {
  margin: 0 0 10px;
  line-height: 1.35;
  color: #fbf5ff;
}

.content h2 {
  font-size: clamp(21px, 2.5vw, 27px);
}

.content h3 {
  font-size: clamp(18px, 2vw, 21px);
}

.content h2 + hr,
.content h3 + hr {
  width: 58px;
  height: 2px;
  margin: 0 0 18px;
  border: 0;
  background: linear-gradient(90deg, var(--clay), rgba(139, 69, 19, 0));
}

.content p {
  margin: 0 0 1em;
  color: #e7dcef;
  line-height: 1.85;
}

.content p:last-child {
  margin-bottom: 0;
}

.content ul,
.content ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
  color: #e7dcef;
}

.content li {
  margin-bottom: 0.5em;
}

.content a {
  color: #e0b98f;
  text-underline-offset: 3px;
}

.content a:hover {
  color: #ffffff;
}

.content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-lg);
}

.content figure {
  margin: 0 0 1em;
}

.content blockquote {
  margin: 0 0 1em;
  padding: 12px 18px;
  border-left: 3px solid var(--purple);
  background: rgba(86, 34, 139, 0.18);
}

.content blockquote p:last-child {
  margin-bottom: 0;
}

.content table {
  width: 100%;
  margin: 0 0 1em;
  border-collapse: collapse;
  font-size: 16px;
}

.content th,
.content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.content th {
  background: rgba(86, 34, 139, 0.28);
  font-weight: 600;
}

/* 侧栏 */
.rail {
  position: sticky;
  top: 76px;
  margin-top: clamp(20px, 3vw, 34px);
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--r-xl) 6px var(--r-lg) var(--r-xl);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.rail h2 {
  margin: 0 0 9px;
  font-size: 18px;
  letter-spacing: 0.14em;
  color: #f6eefb;
}

.rail hr {
  width: 46px;
  height: 2px;
  margin: 0 0 14px;
  border: 0;
  background: var(--clay);
}

.rail-links {
  display: flex;
  flex-direction: column;
  margin: 0 0 14px;
}

.rail-links a {
  padding: 11px 0;
  font-size: 16px;
  line-height: 1.5;
  color: #dbcfec;
  text-decoration: none;
  border-bottom: 1px dashed rgba(244, 238, 247, 0.14);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.rail-links a:hover,
.rail-links a:focus-visible {
  color: #ffffff;
  padding-left: 6px;
}

.rail-top {
  margin: 0;
}

.rail-top a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
  text-decoration: none;
  background: rgba(86, 34, 139, 0.6);
  border-radius: 999px;
}

.rail-top a:hover {
  background: var(--purple);
}

/* 页脚 */
.site-foot {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: clamp(28px, 5vw, 54px) clamp(16px, 4vw, 32px) 20px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(139, 69, 19, 0.16), rgba(31, 23, 38, 0));
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 30px;
  align-items: start;
  max-width: 1140px;
  margin: 0 auto;
}

address {
  font-style: normal;
  font-size: 20px;
  line-height: 1.6;
  color: #f3e9fa;
}

address span {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  color: #bdaacd;
  word-break: break-all;
}

.foot-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 16px;
}

.foot-grid li a {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  line-height: 1.5;
  color: #d9cbe6;
  text-decoration: none;
}

.foot-grid li a:hover,
.foot-grid li a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.subscribe form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subscribe input {
  flex: 1 1 150px;
  min-height: 46px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 0;
}

.subscribe input::placeholder {
  color: #b8a5c8;
}

.subscribe input:focus-visible {
  outline: 2px solid #d79a5f;
  outline-offset: 1px;
}

.subscribe button {
  min-height: 46px;
  padding: 10px 20px;
  font: inherit;
  font-size: 16px;
  color: #ffffff;
  background: var(--clay);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.subscribe button:hover {
  background: #a3561a;
}

.copyright {
  max-width: 1140px;
  margin: clamp(22px, 4vw, 36px) auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  color: #a993bb;
}

/* 入场 */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* 断点 */
@media (max-width: 900px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: static;
    margin-top: 0;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-block.subscribe {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    font: inherit;
    font-size: 16px;
    color: #ffffff;
    background: rgba(86, 34, 139, 0.55);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
  }

  .primary {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    grid-template-columns: 1fr;
    padding: 10px clamp(16px, 4vw, 32px) 20px;
    background: rgba(23, 16, 32, 0.985);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px #000;
    z-index: 50;
  }

  .primary.open {
    display: grid;
  }

  .brandline {
    order: -1;
    justify-self: start;
    padding-bottom: 4px;
  }

  .side {
    flex-direction: column;
    gap: 0;
    justify-self: stretch;
  }

  .side.left,
  .side.right {
    justify-self: stretch;
    justify-content: flex-start;
  }

  .side a,
  .drop-label {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(244, 238, 247, 0.1);
  }

  .drop {
    display: block;
    width: 100%;
  }

  .drop-menu {
    position: static;
    display: flex;
    min-width: 0;
    padding: 0 0 0 12px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hero {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding: 24px 18px 30px;
    border-bottom-left-radius: 44px;
    border-bottom-right-radius: 18px;
  }

  .hero h1 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .hero-art {
    width: 78px;
  }

  .lede {
    font-size: 16px;
  }

  .content > section {
    padding: 20px 18px;
    scroll-margin-top: 92px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .foot-grid ul {
    columns: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .blob {
    animation: none;
  }
}

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