:root {
  --primary: #0A2540;
  --primary-deep: #071b30;
  --secondary: #3AAFA9;
  --secondary-deep: #2b8f8a;
  --accent: #F3F6F9;
  --bg: #F3F6F9;
  --bg-alt: #E7EEF4;
  --surface: #FFFFFF;
  --surface-soft: #F8FBFD;
  --text: #102A43;
  --text-muted: #52667A;
  --border: #C8D4DF;
  --harbour-blue: #174C73;
  --success: #1f9d68;
  --danger: #d05a5a;
  --shadow: 0 22px 50px rgba(10, 37, 64, 0.10);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, #f9fbfc 44%, var(--bg-alt) 100%);
  color: var(--text);
  font-family: "Inter", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.72;
}

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

picture {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 246, 249, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10, 37, 64, 0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 0 0 5px rgba(58, 175, 169, 0.14);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(10, 37, 64, 0.07);
  color: var(--primary);
}

.nav-cta,
.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta,
.button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--harbour-blue) 100%);
  color: #f8fbfd;
  box-shadow: 0 16px 32px rgba(10, 37, 64, 0.18);
}

.button-secondary {
  background: rgba(58, 175, 169, 0.12);
  border-color: rgba(58, 175, 169, 0.28);
  color: var(--secondary-deep);
}

.nav-cta:hover,
.button:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.hero {
  padding: 82px 0 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  padding: 18px 0;
}

.hero-copy h1,
.section-title,
h1,
h2,
h3,
h4 {
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  margin: 16px 0;
  font-size: clamp(2.5rem, 5vw, 4.45rem);
  line-height: 1.04;
  color: var(--primary-deep);
}

.lede,
.section-sub,
.hero-copy p,
.footer-meta,
.faq-a {
  color: var(--text-muted);
}

.hero-panel {
  min-width: 0;
}

.cbd-skyline {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: linear-gradient(180deg, #fcfdff 0%, #edf3f7 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.cbd-skyline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(10, 37, 64, 0.03) 0%, rgba(58, 175, 169, 0.08) 100%);
  pointer-events: none;
}

.cbd-skyline img {
  position: relative;
  width: 100%;
  aspect-ratio: 1216 / 640;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 10px);
  border: 1px solid rgba(10, 37, 64, 0.10);
}

.ticker-bar {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 22px;
  z-index: 2;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 37, 64, 0.86);
  color: #f8fbfd;
  font-size: 0.8rem;
  font-weight: 800;
}

.ticker-chip::before {
  content: "▲";
  color: var(--secondary);
  font-size: 0.72rem;
}

.section {
  padding: 76px 0;
}

.section-kicker,
.report-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-kicker::before,
.report-label::before {
  content: "";
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: var(--secondary);
}

.section-title {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary-deep);
}

.card-grid,
.panel-grid,
.footer-grid,
.ticker-strip,
.pros-cons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.finance-report-card,
.briefing-panel,
.article,
.article-hero,
.breadcrumbs,
.cta-box,
.faq-block,
.score-table,
.pros-cons > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.finance-report-card,
.briefing-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.finance-report-card::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 56px;
  height: 1px;
  background: linear-gradient(90deg, rgba(10, 37, 64, 0.18) 0%, rgba(58, 175, 169, 0.7) 100%);
}

.report-label {
  font-family: "Inter", "Noto Sans TC", sans-serif;
  margin-bottom: 18px;
}

.divider {
  width: 100%;
  height: 1px;
  margin: 18px 0;
  background: linear-gradient(90deg, rgba(10, 37, 64, 0.14) 0%, rgba(58, 175, 169, 0.46) 100%);
}

.ticker-strip {
  margin-top: 24px;
}

.ticker-item {
  position: relative;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(243,246,249,0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.ticker-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.8rem;
  color: var(--primary-deep);
}

.trend-up,
.trend-down {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.trend-up {
  color: var(--success);
}

.trend-down {
  color: var(--danger);
}

.trend-up::before {
  content: "▲";
  font-size: 0.78rem;
}

.trend-down::before {
  content: "▼";
  font-size: 0.78rem;
}

.briefing-panel {
  padding-top: 68px;
}

.briefing-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 58px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--harbour-blue) 100%);
}

.rank-badge {
  position: absolute;
  top: 16px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef3f6 0%, #c9d4db 100%);
  color: var(--primary-deep);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.article-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(10, 37, 64, 0.10);
  margin-bottom: 16px;
}

.article {
  padding: 28px;
}

.article h2 {
  margin-top: 32px;
  color: var(--primary-deep);
  font-size: 1.58rem;
}

.article h3,
.faq-q {
  color: var(--primary);
  font-size: 1.12rem;
}

.article-hero {
  overflow: hidden;
  margin: 24px 0;
}

.article-hero img {
  width: 100%;
  aspect-ratio: 1216 / 640;
  object-fit: cover;
}

.breadcrumbs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.cta-box {
  padding: 24px;
  margin: 32px 0;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.06) 0%, rgba(58, 175, 169, 0.12) 100%);
}

.faq-block {
  padding: 24px;
  margin-top: 32px;
}

.faq-item + .faq-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(10, 37, 64, 0.18);
}

.faq-q {
  margin: 0 0 8px;
  font-weight: 800;
}

.faq-a {
  margin: 0;
}

.score-table {
  padding: 16px;
}

.score-table table {
  width: 100%;
  border-collapse: collapse;
}

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

.pros-cons > div {
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(243,246,249,0.98) 100%);
}

.site-footer {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #edf5f8;
  padding: 52px 0 28px;
}

.site-footer a {
  color: #dcecf1;
}

.footer-meta {
  color: rgba(237, 245, 248, 0.74);
}

@media (max-width: 980px) {
  .hero-grid,
  .card-grid,
  .panel-grid,
  .ticker-strip,
  .pros-cons,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 640px) {
  .main-nav {
    display: none;
  }

  .card-grid,
  .panel-grid,
  .ticker-strip,
  .pros-cons,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

  .nav-cta,
  .button,
  .button-secondary {
    width: 100%;
  }
}
