:root {
  --brand-red: #7A1717;
  --brand-red-deep: #5e1010;
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --muted: #6b6b6b;
  --muted-2: #9a9a9a;
  --line: #e5e5e5;
  --line-soft: #efefef;
  --bg: #ffffff;
  --up-red: #D81E1E;
  --down-green: #0E8C3A;

  --font-sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ============ 頂部導覽列 ============ */
.topbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 22px 0;
}
.logo {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--brand-red);
  letter-spacing: 2px;
  white-space: nowrap;
  padding: 4px 0;
  cursor: pointer;
  user-select: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 44px;
  flex: 1;
}
.nav-link {
  font-size: 17px;
  color: var(--ink-soft);
  font-weight: 400;
  padding: 6px 0;
  position: relative;
  cursor: pointer;
  transition: color .15s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--brand-red); }
.nav-link.is-active {
  color: var(--brand-red);
  font-weight: 500;
}
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--brand-red);
}
.topbar-right { margin-left: auto; }
.topbar-right a {
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
}
.topbar-right a:hover { color: var(--brand-red); }

/* ============ 麵包屑 ============ */
.breadcrumb {
  padding: 32px 0 0;
  font-size: 14px;
  color: var(--muted-2);
}
.breadcrumb .sep {
  margin: 0 10px;
}
.breadcrumb .current {
  color: var(--ink-soft);
  font-weight: 500;
}

/* ============ 首頁內容區 ============ */
.home {
  padding: 96px 0 160px;
}

.section + .section {
  margin-top: 160px;
}

.section-index {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--brand-red);
  font-weight: 500;
  margin-bottom: 24px;
}

.section-title {
  font-size: 44px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 2px;
  line-height: 1.3;
  margin: 0 0 12px;
}

.section-rule {
  width: 56px;
  height: 2px;
  background: var(--brand-red);
  margin: 28px 0 36px;
}

.section-body {
  font-size: 17px;
  line-height: 2;
  color: var(--ink-soft);
  max-width: 780px;
  letter-spacing: 0.3px;
}
.section-body p {
  margin: 0 0 18px;
}
.section-body .placeholder {
  color: var(--muted-2);
  font-style: italic;
}

.section-body ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 18px;
}
.section-body ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.section-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 1px;
  background: var(--brand-red);
}

/* ============ 下拉選單 ============ */
.topic-dropdown-row {
  padding: 48px 0 0;
}
.dropdown {
  width: 360px;
  max-width: 100%;
  height: 48px;
  border: 1px solid #cfcfcf;
  background: #fff;
  border-radius: 2px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  cursor: pointer;
  transition: border-color .15s ease;
  position: relative;
}
.dropdown:hover { border-color: var(--brand-red); }
.dropdown select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  width: 100%;
  height: 100%;
  cursor: pointer;
  outline: none;
  padding-right: 24px;
}
.dropdown-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid #888;
  border-bottom: 2px solid #888;
  transform: rotate(45deg) translateY(-2px);
  position: absolute;
  right: 16px;
  pointer-events: none;
}

/* ============ 主題內頁 ============ */
.topic {
  padding: 60px 0 200px;
}
.topic-title {
  font-size: 44px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 2px;
  line-height: 1.3;
  margin: 0;
}
.topic-rule {
  width: 56px;
  height: 2px;
  background: var(--brand-red);
  margin: 28px 0 64px;
}
.topic-empty {
  font-size: 15px;
  color: var(--muted-2);
  letter-spacing: 2px;
  margin: 0;
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 13px;
  color: var(--muted-2);
  text-align: center;
  letter-spacing: 1px;
}
