
:root {
  color-scheme: light;
  --ink: #16201d;
  --muted: #63716b;
  --paper: #f5f6f2;
  --surface: #ffffff;
  --line: #dce2da;
  --deep: #10231f;
  --deep-2: #17332d;
  --teal: #0f766e;
  --teal-soft: #e6f1ee;
  --amber: #9a5d18;
  --amber-soft: #fbf1df;
  --red: #9d3b3b;
  --blue: #245f73;
  --shadow: 0 18px 42px rgba(22, 32, 29, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--deep); text-decoration: underline; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 66px;
  padding: 10px max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(220, 226, 218, .9);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
  font-weight: 800;
}
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { font-size: 17px; }
.brand small { color: var(--muted); font-size: 12px; }
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}
.nav a {
  padding: 8px 11px;
  border-radius: 8px;
  color: #4f5d58;
  font-size: 14px;
  font-weight: 700;
}
.nav a.active, .nav a:hover {
  background: var(--teal-soft);
  color: var(--deep);
  text-decoration: none;
}

main {
  width: 100%;
  overflow: hidden;
}
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 70px max(20px, calc((100vw - 1180px) / 2));
  background: var(--deep);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16,35,31,.68);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero h1, .page-hero h1, .article-hero h1 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}
.hero h1 {
  max-width: 640px;
  font-size: 56px;
}
.hero p {
  max-width: 610px;
  margin: 18px 0 0;
  color: #d7e3df;
  font-size: 18px;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: .95;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 8px;
  font-weight: 800;
}
.button.primary {
  background: #f4b84f;
  color: #1c251f;
}
.button.secondary {
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
}
.button:hover { text-decoration: none; }
.eyebrow {
  margin: 0 0 10px !important;
  color: var(--amber) !important;
  font-size: 12px !important;
  font-weight: 900;
  letter-spacing: 0;
}
.hero .eyebrow { color: #f4b84f !important; }

.signal-strip {
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 24px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.signal-strip div {
  min-height: 92px;
  padding: 18px;
  background: var(--surface);
}
.signal-strip strong {
  display: block;
  color: var(--deep);
  font-size: 30px;
  line-height: 1.1;
}
.signal-strip span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.section-block, .page-hero, .article-hero, .posts {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 0;
}
.section-block {
  padding: 28px 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}
.text-link {
  font-weight: 900;
  color: var(--teal);
}
.card-grid {
  display: grid;
  gap: 14px;
}
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.service-card {
  border-top: 5px solid var(--teal);
}
.card-kicker {
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}
.content-card h3 {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}
.content-card h3 a { color: var(--ink); }
.content-card p {
  display: -webkit-box;
  margin: 12px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.content-card ul {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.content-card li {
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--teal-soft);
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-size: 13px;
}
.partner-section {
  padding-bottom: 44px;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.partner-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbf9 100%);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.partner-card:hover {
  border-color: rgba(15,118,110,.45);
  text-decoration: none;
  transform: translateY(-1px);
}
.partner-card::after {
  content: ">";
  position: absolute;
  right: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--deep);
  font-weight: 900;
}
.partner-category {
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}
.partner-card strong {
  padding-right: 44px;
  font-size: 24px;
  line-height: 1.2;
}
.partner-card p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}
.partner-url {
  align-self: end;
  color: var(--teal);
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 10px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.timeline-item time {
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}
.timeline-item h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}
.timeline-item h3 a { color: var(--ink); }
.timeline-item p {
  margin: 8px 0 0;
  color: var(--muted);
}
.announcement-accordion {
  display: grid;
  gap: 12px;
}
.announcement-panel {
  scroll-margin-top: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.announcement-panel summary {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 34px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}
.announcement-panel summary::-webkit-details-marker {
  display: none;
}
.announcement-date {
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}
.announcement-panel summary strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.3;
}
.announcement-panel summary small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.announcement-toggle {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--deep);
  font-size: 22px;
  font-weight: 900;
}
.announcement-toggle::before {
  content: "+";
}
.announcement-panel[open] .announcement-toggle::before {
  content: "-";
}
.announcement-content {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
}
.announcement-post + .announcement-post {
  border-top: 1px solid var(--line);
}
.announcement-post h3 {
  margin: 18px 0 0;
  font-size: 19px;
}
.announcement-post .post-body {
  padding: 18px 0 0;
}
.merged-list {
  display: grid;
  gap: 22px;
}
.merged-item {
  scroll-margin-top: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.merged-item > header {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: #f8fbf9;
}
.merged-item > header h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: 0;
}
.merged-item.compact > header h2 {
  font-size: 24px;
}
.merged-post {
  padding: 20px 22px;
}
.merged-post + .merged-post {
  border-top: 1px solid var(--line);
}
.merged-post h3 {
  margin: 10px 0 12px;
  font-size: 19px;
}
.service-detail {
  display: grid;
  gap: 18px;
}
.service-intro {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.highlight-grid li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--deep);
  font-weight: 900;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.plan-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.plan-card header h3 {
  margin: 0;
  color: var(--deep);
  font-size: 22px;
  line-height: 1.25;
}
.plan-card header p {
  margin: 8px 0 0;
  color: var(--muted);
}
.spec-list {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}
.spec-list div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
}
.spec-list dt {
  color: var(--muted);
  font-weight: 900;
}
.spec-list dd {
  margin: 0;
  color: var(--ink);
}
.price-list {
  display: grid;
  gap: 8px;
}
.price-list h4 {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
.price-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef5e4;
}
.price-list strong {
  color: #9a3412;
}
.plan-notes {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.post-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.page-hero, .article-hero {
  padding: 50px 0 22px;
}
.page-hero h1, .article-hero h1 {
  max-width: 840px;
  font-size: 44px;
}
.page-hero p, .article-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.article-hero {
  border-bottom: 1px solid var(--line);
}
.thread-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--muted);
}
.posts {
  display: grid;
  gap: 16px;
  padding-bottom: 42px;
}
.post {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.post header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #eef5f2;
}
.post header strong { display: block; }
.post header span { color: var(--muted); font-size: 13px; }
.post-index { color: var(--teal) !important; font-weight: 900; }
.post-body {
  padding: 20px;
  overflow-wrap: anywhere;
}
.post-body table {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
  border-collapse: collapse;
}
.post-body tbody {
  display: table;
  width: 100%;
}
.post-body td, .post-body th {
  max-width: 100%;
  padding: 8px !important;
  border-color: #cfd8d3 !important;
  overflow-wrap: anywhere;
}
.post-body img {
  max-width: 100%;
  height: auto;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding: 28px max(20px, calc((100vw - 1180px) / 2)) 44px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}
.footer strong, .footer span { display: block; }
.footer strong { color: var(--ink); }

@media (max-width: 900px) {
  .topbar { position: static; align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .hero { min-height: 500px; padding-top: 56px; padding-bottom: 56px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 16px; }
  .hero::after { background: rgba(16,35,31,.82); }
  .signal-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.three, .card-grid.two { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .highlight-grid, .plan-grid { grid-template-columns: 1fr; }
  .announcement-panel summary { grid-template-columns: 1fr 34px; gap: 8px 14px; }
  .announcement-date { grid-column: 1 / -1; }
  .timeline-item { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { min-height: 440px; }
  .hero h1 { font-size: 34px; }
  .page-hero h1, .article-hero h1 { font-size: 32px; }
  .signal-strip, .section-block, .page-hero, .article-hero, .posts {
    width: min(100% - 24px, 1180px);
  }
  .signal-strip { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .content-card, .timeline-item, .post-body { padding: 16px; }
  .announcement-panel summary { padding: 16px; }
  .announcement-content { padding: 0 16px 16px; }
  .spec-list div { grid-template-columns: 1fr; gap: 4px; }
  .price-list div { flex-direction: column; }
}
