:root {
  --bg: #f6f1ee;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-tint: #fff8f6;
  --text: #201a1c;
  --muted: #62565c;
  --primary: #be123c;
  --primary-deep: #881337;
  --primary-soft: #ffe2e6;
  --ai: #f59e0b;
  --ai-soft: #fff1d8;
  --line: rgba(136, 19, 55, 0.12);
  --line-strong: rgba(136, 19, 55, 0.22);
  --shadow: 0 18px 40px rgba(40, 18, 24, 0.08);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
  --ok: #15803d;
  --warn: #d97706;
  --stop: #dc2626;
  --ink: #243041;
  --a: #fff1f2;
  --b: #fff3e4;
  --c: #fff8dc;
  --d: #e8f3ff;
  --e: #eef0ff;
  --f: #f4efff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  background:
    radial-gradient(circle at top left, rgba(190, 18, 60, 0.08), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.14), transparent 18%),
    linear-gradient(180deg, #fffaf8 0%, #f7f2ef 50%, #fffdfb 100%);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(28, 25, 30, 0.88);
  color: #f9fafb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a,
.page-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 8px 14px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-links a {
  color: #fff7f8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-links a:hover,
.page-nav a:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

main.container {
  padding: 26px 0 18px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  margin: 4px 0 22px;
  padding: 32px;
  border: 1px solid rgba(190, 18, 60, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 247, 244, 0.98), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 34%);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 18, 60, 0.08), transparent 68%);
}

.hero-shell {
  position: relative;
  z-index: 1;
}

.hero-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(190, 18, 60, 0.12);
  color: var(--primary-deep);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.14;
}

.subtitle {
  margin: 0;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tagline {
  max-width: 34rem;
  margin: 16px 0 0;
  color: var(--muted);
}

.hero-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 280px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(190, 18, 60, 0.1), rgba(245, 158, 11, 0.12)),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(190, 18, 60, 0.1);
}

.hero-stars {
  position: absolute;
  inset: 18px 18px auto auto;
  display: flex;
  gap: 10px;
}

.hero-star {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(190, 18, 60, 0.35);
}

.section-card {
  position: relative;
  overflow: hidden;
  margin: 18px 0;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.section-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(190, 18, 60, 0.22), transparent 62%);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
}

.section-heading p {
  margin: 2px 0 0;
  color: var(--muted);
}

.section-badge,
.card-icon,
.soft-icon,
.visual-icon,
.week-hero-icon,
.mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--primary-deep);
}

.section-badge,
.card-icon,
.soft-icon,
.visual-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(190, 18, 60, 0.12), rgba(245, 158, 11, 0.12));
  border: 1px solid rgba(190, 18, 60, 0.12);
}

.section-card h2,
.section-card h3 {
  line-height: 1.35;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(32, 26, 28, 0.08);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
  color: #45383d;
}

.dual-output,
.traffic-grid,
.software-tags,
.software-visual-grid,
.overview-grid,
.visual-grid,
.tool-compare,
.team-grid,
.backup-flow {
  display: grid;
  gap: 14px;
}

.dual-output,
.software-visual-grid,
.tool-compare {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 20px;
}

.traffic-grid,
.software-tags,
.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.visual-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.output-card,
.traffic-item,
.software-box,
.software-visual-card,
.overview-card,
.visual-card,
.compare-card,
.team-card,
.backup-node {
  position: relative;
  min-height: 100%;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.section-card:hover .output-card,
.section-card:hover .traffic-item,
.section-card:hover .software-visual-card,
.section-card:hover .overview-card,
.section-card:hover .compare-card,
.section-card:hover .team-card,
.section-card:hover .backup-node,
.week-card:hover,
.software-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.output-card {
  padding-top: 74px;
  background:
    linear-gradient(180deg, rgba(255, 245, 245, 0.9), rgba(255, 255, 255, 1));
}

.output-card .card-icon {
  position: absolute;
  top: 18px;
  left: 18px;
}

.output-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(190, 18, 60, 0.08);
  color: var(--primary-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.week-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(32, 26, 28, 0.08);
  padding: 18px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.week-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(190, 18, 60, 0.85), rgba(245, 158, 11, 0.6));
}

.week-card:hover {
  text-decoration: none;
}

.week-card h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.week-card p {
  margin: 0 0 8px;
}

.zone-a { background: linear-gradient(180deg, #fff6f7, var(--a)); }
.zone-b { background: linear-gradient(180deg, #fff8f0, var(--b)); }
.zone-c { background: linear-gradient(180deg, #fffdf2, var(--c)); }
.zone-d { background: linear-gradient(180deg, #f6fbff, var(--d)); }
.zone-e { background: linear-gradient(180deg, #f7f8ff, var(--e)); }
.zone-f { background: linear-gradient(180deg, #faf8ff, var(--f)); }

.overview-card,
.software-visual-card {
  padding-top: 72px;
}

.overview-card .card-icon,
.software-visual-card .soft-icon {
  position: absolute;
  top: 16px;
  left: 16px;
}

.overview-card h3,
.software-visual-card h3,
.compare-card h3,
.traffic-item h4,
.team-card h3 {
  margin: 0 0 8px;
}

.traffic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.traffic-item {
  padding-top: 86px;
}

.traffic-item h4 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signal-lamp {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 52px;
  padding: 8px;
  border-radius: 18px;
  background: #1f2937;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.signal-lamp span {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  opacity: 0.24;
  margin-bottom: 8px;
}

.signal-lamp span:last-child {
  margin-bottom: 0;
}

.signal-lamp .lamp-on {
  opacity: 1;
  box-shadow: 0 0 12px currentColor;
}

.lamp-green { color: var(--ok); background: var(--ok); }
.lamp-yellow { color: var(--warn); background: var(--warn); }
.lamp-red { color: var(--stop); background: var(--stop); }

.signal-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.signal-status.ok { background: rgba(22, 163, 74, 0.12); color: var(--ok); }
.signal-status.warn { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.signal-status.stop { background: rgba(220, 38, 38, 0.12); color: var(--stop); }

.software-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(36, 48, 65, 0.06);
  font-size: 0.88rem;
  color: #39475b;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(32, 26, 28, 0.08);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.92);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(32, 26, 28, 0.08);
}

th {
  font-family: Georgia, "Times New Roman", serif;
  background: linear-gradient(180deg, #fff4f5, #fffdfd);
}

.week-page .container {
  width: min(980px, calc(100% - 32px));
}

.week-header {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 4px 0 18px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(190, 18, 60, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 248, 245, 0.96), rgba(255, 255, 255, 0.86)),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 30%);
  box-shadow: var(--shadow-soft);
}

.week-hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(190, 18, 60, 0.14), rgba(245, 158, 11, 0.14));
  border: 1px solid rgba(190, 18, 60, 0.14);
}

.week-meta h1 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.2;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-card ol.step-list {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
}

.section-card .step-card {
  position: relative;
  padding: 18px 18px 18px 82px;
  border-radius: 20px;
  border: 1px solid rgba(190, 18, 60, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 244, 240, 0.96), rgba(255, 255, 255, 0.96));
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  counter-increment: step;
}

.section-card .step-card::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
  color: rgba(190, 18, 60, 0.86);
}

.software-tags {
  margin-top: 14px;
}

.software-box {
  padding-top: 72px;
  background: linear-gradient(180deg, rgba(255, 240, 242, 0.86), rgba(255, 255, 255, 1));
}

.software-box::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(190, 18, 60, 0.14), rgba(245, 158, 11, 0.14));
}

.software-box:nth-child(1)::after,
.software-box:nth-child(2)::after,
.software-box:nth-child(3)::after {
  position: absolute;
  top: 27px;
  left: 28px;
  color: var(--primary-deep);
  font-size: 1rem;
  font-weight: 800;
}

.software-box:nth-child(1)::after { content: "P"; }
.software-box:nth-child(2)::after { content: "C"; }
.software-box:nth-child(3)::after { content: "V"; }

.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 6px;
}

.page-nav a {
  flex: 1 1 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: #46353c;
  box-shadow: var(--shadow-soft);
}

.concept-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(190, 18, 60, 0.12);
  background: linear-gradient(180deg, rgba(255, 249, 247, 0.95), rgba(255, 255, 255, 0.94));
}

.mini-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.cc-row,
.track-row,
.backup-steps {
  display: grid;
  gap: 10px;
}

.cc-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.cc-chip {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(32, 26, 28, 0.08);
  background: #fff;
  text-align: center;
  font-weight: 800;
}

.folder-tree {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.tree-root,
.tree-branch,
.tree-leaf {
  position: relative;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(32, 26, 28, 0.08);
  background: #fff;
}

.tree-root {
  background: linear-gradient(135deg, rgba(190, 18, 60, 0.12), rgba(255, 255, 255, 1));
  font-weight: 800;
}

.tree-children {
  display: grid;
  gap: 10px;
  margin-left: 28px;
  padding-left: 18px;
  border-left: 2px solid rgba(190, 18, 60, 0.18);
}

.timeline-bar {
  display: grid;
  grid-template-columns: 1fr 6fr 1.5fr;
  gap: 10px;
  margin-top: 16px;
}

.timeline-segment,
.track-label,
.track-fill {
  border-radius: 18px;
}

.timeline-segment {
  padding: 16px;
  color: #fff;
  font-weight: 800;
}

.timeline-segment:nth-child(1) { background: linear-gradient(135deg, #be123c, #e11d48); }
.timeline-segment:nth-child(2) { background: linear-gradient(135deg, #f59e0b, #f97316); }
.timeline-segment:nth-child(3) { background: linear-gradient(135deg, #475569, #334155); }

.track-row {
  margin-top: 14px;
}

.track-line {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.track-label {
  padding: 10px 12px;
  background: rgba(36, 48, 65, 0.08);
  font-weight: 800;
  text-align: center;
}

.track-fill {
  min-height: 20px;
  background: linear-gradient(90deg, rgba(190, 18, 60, 0.9), rgba(245, 158, 11, 0.6));
}

.track-fill.subtitle { width: 78%; }
.track-fill.music { width: 92%; opacity: 0.62; }

.team-grid {
  margin-top: 14px;
}

.team-card {
  padding-top: 74px;
}

.team-card .visual-icon {
  position: absolute;
  top: 16px;
  left: 16px;
}

.backup-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  margin-top: 14px;
}

.backup-node {
  padding-top: 72px;
}

.backup-node .visual-icon {
  position: absolute;
  top: 16px;
  left: 16px;
}

.backup-arrow {
  position: relative;
}

.backup-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -24px;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, rgba(190, 18, 60, 0.88), rgba(245, 158, 11, 0.68));
}

.backup-arrow::before {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  right: -24px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid rgba(190, 18, 60, 0.88);
}

footer {
  padding: 28px 0 38px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .dual-output,
  .software-visual-grid,
  .tool-compare,
  .traffic-grid,
  .overview-grid,
  .visual-grid,
  .software-tags,
  .team-grid,
  .backup-flow,
  .week-grid {
    grid-template-columns: 1fr;
  }

  .week-header {
    grid-template-columns: 1fr;
  }

  .week-hero-icon {
    width: 72px;
    height: 72px;
  }

  .timeline-bar {
    grid-template-columns: 1fr;
  }

  .cc-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .backup-arrow::after,
  .backup-arrow::before {
    display: none;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  .container,
  .week-page .container {
    width: min(100% - 20px, 1120px);
  }

  .hero,
  .section-card,
  .week-header {
    padding: 20px;
  }

  .page-nav {
    flex-direction: column;
  }

  .track-line {
    grid-template-columns: 1fr;
  }

  .cc-row {
    grid-template-columns: 1fr;
  }
}
