* {
  box-sizing: border-box;
}

:root {
  --bg: #f4f7fb;
  --bg-soft: #f8faff;
  --card: #ffffff;

  --text: #253044;
  --text-dark: #172033;
  --muted: #69758a;

  --line: #e3e9f1;
  --line-hover: #bdcce1;

  --primary: #4169a8;
  --primary-dark: #315387;
  --primary-soft: #edf3fc;

  --warning: #fff9ea;
  --warning-line: #efdfaa;

  --shadow:
    0 10px 35px rgba(34, 55, 90, 0.07);

  --shadow-hover:
    0 15px 38px rgba(34, 55, 90, 0.11);

  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans TC",
    "PingFang TC",
    "Microsoft JhengHei",
    Arial,
    sans-serif;

  line-height: 1.8;

  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--primary);
}

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

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


/* ========================================
   Header
======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(255, 255, 255, 0.94);

  border-bottom: 1px solid var(--line);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-wrap {
  min-height: 104px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 35px;

  padding: 18px 0;
}

.brand {
  flex-shrink: 0;
}

.site-kicker {
  margin: 0 0 2px;

  color: var(--primary);

  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;

  text-transform: uppercase;
}

.brand h1 {
  margin: 0;

  font-size: 1.82rem;
  line-height: 1.25;
}

.brand h1 a {
  color: var(--text-dark);
  text-decoration: none;
}

.subtitle {
  margin: 5px 0 0;

  color: var(--muted);

  font-size: 0.9rem;
}


/* ========================================
   Navigation
======================================== */

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;

  gap: 4px;
}

.main-nav a {
  display: inline-block;

  padding: 8px 12px;

  border-radius: 9px;

  color: #39465a;

  font-size: 0.93rem;
  font-weight: 700;

  text-decoration: none;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}


/* ========================================
   Main
======================================== */

main {
  padding-bottom: 75px;
}

section {
  padding: 38px 0;
}


/* ========================================
   Hero
======================================== */


.home-hero-image {
  margin: 0 0 28px;
  overflow: hidden;

  width: 100%;

  background: var(--card);

  border: 1px solid var(--line);
  border-radius: 28px;

  box-shadow: var(--shadow);
}

.home-hero-image img {
  display: block;

  width: 100%;
  height: auto;
}


.hero-section {
  padding-top: 48px;
  padding-bottom: 30px;
}

.hero-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(320px, 0.65fr);

  gap: 24px;
}

.hero-content,
.hero-panel {
  background: var(--card);

  border: 1px solid var(--line);
  border-radius: 24px;

  box-shadow: var(--shadow);
}

.hero-content {
  padding: 48px;

  background:
    radial-gradient(
      circle at top left,
      rgba(226, 237, 253, 0.9) 0,
      rgba(255, 255, 255, 0) 49%
    ),
    #ffffff;
}

.hero-tag {
  display: inline-block;

  margin: 0 0 18px;

  padding: 7px 13px;

  border-radius: 999px;

  background: var(--primary-soft);

  color: var(--primary);

  font-size: 0.84rem;
  font-weight: 800;
}

.hero-content h2 {
  max-width: 720px;

  margin: 0 0 20px;

  color: var(--text-dark);

  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.32;

  letter-spacing: -0.02em;
}

.hero-text {
  max-width: 720px;

  margin: 0 0 12px;

  color: var(--muted);

  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: 28px;
}

.btn {
  display: inline-block;

  padding: 11px 18px;

  border-radius: 11px;

  font-size: 0.94rem;
  font-weight: 800;

  text-decoration: none;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  color: var(--primary);

  background: #ffffff;

  border: 1px solid #cad7e9;
}

.btn-secondary:hover {
  background: var(--primary-soft);
  border-color: #adc2de;
}





/* ========================================
   Hero Side Panel
======================================== */

.hero-panel {
  padding: 31px 29px;
}

.panel-label {
  display: block;

  margin-bottom: 7px;

  color: var(--primary);

  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.hero-panel h3 {
  margin: 0 0 16px;

  color: var(--text-dark);

  font-size: 1.25rem;
}

.hero-panel ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

.hero-panel li {
  position: relative;

  margin-bottom: 13px;

  padding-left: 25px;

  color: var(--muted);

  font-size: 0.94rem;
}

.hero-panel li:last-child {
  margin-bottom: 0;
}

.hero-panel li::before {
  content: "✓";

  position: absolute;
  left: 0;
  top: 0;

  color: var(--primary);

  font-weight: 900;
}


/* ========================================
   Section Head
======================================== */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 30px;

  margin-bottom: 22px;
}

.section-head > p {
  max-width: 450px;

  margin: 0;

  color: var(--muted);

  font-size: 0.95rem;

  text-align: right;
}

.section-label {
  margin: 0 0 4px;

  color: var(--primary);

  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.section-head h2,
.about-card h2 {
  margin: 0;

  color: var(--text-dark);

  font-size: 1.6rem;
  line-height: 1.4;
}


/* ========================================
   Quick Links
======================================== */

.quick-links {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 18px;
}

.quick-link {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 220px;

  padding: 24px;

  background: var(--card);

  border: 1px solid var(--line);
  border-radius: var(--radius);

  box-shadow: var(--shadow);

  text-decoration: none;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.quick-link:hover {
  transform: translateY(-4px);

  border-color: var(--line-hover);

  box-shadow: var(--shadow-hover);
}

.quick-number {
  margin-bottom: 25px;

  color: #a0adc0;

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.quick-link-title {
  display: block;

  margin-bottom: 8px;

  color: var(--text-dark);

  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.5;
}

.quick-link-desc {
  display: block;

  margin-bottom: 20px;

  color: var(--muted);

  font-size: 0.93rem;
}

.quick-more {
  display: block;

  margin-top: auto;

  color: var(--primary);

  font-size: 0.88rem;
  font-weight: 800;
}


/* ========================================
   City Guides
======================================== */

.city-section {
  scroll-margin-top: 125px;
}

.city-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 18px;
}

.city-card {
  min-height: 205px;

  display: flex;
  flex-direction: column;

  padding: 24px;

  background: var(--card);

  border: 1px solid var(--line);
  border-radius: var(--radius);

  box-shadow: var(--shadow);

  text-decoration: none;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.city-card:hover {
  transform: translateY(-4px);

  border-color: var(--line-hover);

  box-shadow: var(--shadow-hover);
}

.city-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 16px;
}

.city-name {
  display: inline-block;

  padding: 5px 11px;

  border-radius: 999px;

  color: var(--primary);

  background: var(--primary-soft);

  font-size: 0.81rem;
  font-weight: 800;
}

.city-arrow {
  color: #9ca9bc;

  font-size: 1.15rem;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.city-card:hover .city-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

.city-card strong {
  display: block;

  margin-bottom: 9px;

  color: var(--text-dark);

  font-size: 1.16rem;
}

.city-card p {
  margin: 0;

  color: var(--muted);

  font-size: 0.92rem;
}


/* ========================================
   Article Cards
======================================== */

.cards {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;

  min-height: 235px;

  padding: 25px;

  background: var(--card);

  border: 1px solid var(--line);
  border-radius: var(--radius);

  box-shadow: var(--shadow);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);

  border-color: var(--line-hover);

  box-shadow: var(--shadow-hover);
}

.card-badge {
  align-self: flex-start;

  display: inline-block;

  margin-bottom: 12px;

  padding: 5px 10px;

  border-radius: 999px;

  color: var(--primary);

  background: var(--primary-soft);

  font-size: 0.8rem;
  font-weight: 800;
}

.card h3 {
  margin: 0 0 10px;

  font-size: 1.14rem;
  line-height: 1.55;
}

.card h3 a {
  color: var(--text-dark);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--primary);
}

.card p {
  margin: 0 0 18px;

  color: var(--muted);

  font-size: 0.94rem;
}

.card-more,
.coming-soon {
  display: inline-block;

  margin-top: auto;

  font-size: 0.88rem;
  font-weight: 800;
}

.card-more {
  color: var(--primary);
  text-decoration: none;
}

.coming-soon {
  color: #9aa5b5;
}


/* ========================================
   About
======================================== */

.about-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 20px;
}

.about-card {
  padding: 30px;

  background: var(--card);

  border: 1px solid var(--line);
  border-radius: var(--radius);

  box-shadow: var(--shadow);
}

.about-card h2 {
  margin-bottom: 18px;
}

.about-card p {
  margin-top: 0;
  margin-bottom: 13px;

  color: var(--muted);
}

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

.topic-list {
  margin: 0;
  padding-left: 21px;

  color: var(--muted);
}

.topic-list li {
  margin-bottom: 7px;
}


/* ========================================
   Safety Notice
======================================== */

.notice-section {
  padding-bottom: 12px;
}

.notice-box {
  display: flex;
  align-items: flex-start;

  gap: 19px;

  padding: 27px;

  background: var(--warning);

  border: 1px solid var(--warning-line);
  border-radius: var(--radius);
}

.notice-icon {
  width: 37px;
  height: 37px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  color: #83691c;
  background: #f7e8ae;

  font-weight: 900;
}

.notice-box h2 {
  margin: 0 0 7px;

  color: #51431b;

  font-size: 1.24rem;
}

.notice-box p {
  margin: 0;

  color: #736534;

  font-size: 0.94rem;
}


/* ========================================
   Footer
======================================== */

.site-footer {
  padding: 31px 0;

  color: #aeb9c8;
  background: #182231;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.footer-title {
  margin: 0 0 2px !important;

  color: #ffffff;

  font-size: 1rem;
  font-weight: 800;
}

.site-footer p {
  margin: 3px 0;

  font-size: 0.88rem;
}

.footer-note {
  text-align: right;
}


/* ========================================
   Tablet
======================================== */

@media (max-width: 920px) {

  .header-wrap {
    display: block;
  }

  .main-nav {
    justify-content: flex-start;

    margin-top: 17px;
  }

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

  .hero-content {
    padding: 37px 30px;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .quick-link {
    min-height: auto;
  }

  .quick-number {
    margin-bottom: 12px;
  }

  .city-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* ========================================
   Mobile
======================================== */

@media (max-width: 680px) {

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

  section {
    padding: 29px 0;
  }

  .site-header {
    position: relative;
  }

  .header-wrap {
    min-height: auto;

    padding: 18px 0;
  }

  .brand h1 {
    font-size: 1.55rem;
  }

  .subtitle {
    font-size: 0.86rem;
  }

  .main-nav {
    gap: 3px;

    margin-top: 15px;
  }

  .main-nav a {
    padding: 7px 9px;

    font-size: 0.87rem;
  }

  .hero-section {
    padding-top: 25px;
  }

  .hero-content {
    padding: 27px 22px;

    border-radius: 18px;
  }

  .hero-panel {
    padding: 24px 22px;

    border-radius: 18px;
  }
.hero-content h2 {
    font-size: 1.75rem;
  }

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

  .btn {
    width: 100%;

    text-align: center;
  }

  .section-head {
    display: block;
  }

  .section-head > p {
    margin-top: 9px;

    text-align: left;
  }

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

  .city-card {
    min-height: auto;
  }

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

  .card {
    min-height: auto;
  }

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

  .about-card {
    padding: 24px 21px;
  }

  .notice-box {
    padding: 22px 20px;
  }

  .footer-wrap {
    display: block;
  }

  .footer-note {
    margin-top: 14px;

    text-align: left;
  }

}


/* ========================================
   Very Small Screens
======================================== */

@media (max-width: 400px) {

  .main-nav a {
    padding-left: 7px;
    padding-right: 7px;

    font-size: 0.83rem;
  }

  .hero-content h2 {
    font-size: 1.58rem;
  }
}

/* ========================================
   Inner Page Site Title
======================================== */

.inner-site-title {
  margin: 0;

  font-size: 1.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.inner-site-title a {
  color: var(--text-dark);
  text-decoration: none;
}



/* ========================================
   City Guide Cover
======================================== */

.city-cover-section {
  padding: 10px 0 34px;
}

.city-cover {
  position: relative;

  margin: 0;
  overflow: hidden;

  aspect-ratio: 16 / 9;

  background: var(--card);

  border: 1px solid var(--line);
  border-radius: 28px;

  box-shadow: var(--shadow);
}

.city-cover::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(10, 20, 38, 0.02) 35%,
      rgba(10, 20, 38, 0.72) 100%
    );

  pointer-events: none;
}

.city-cover img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.city-cover-caption {
  position: absolute;
  z-index: 2;

  left: 34px;
  right: 34px;
  bottom: 30px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 4px;

  color: #ffffff;

  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.city-cover-kicker {
  margin-bottom: 3px;

  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;

  opacity: 0.9;
}

.city-cover-caption strong {
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  line-height: 1.2;
}

.city-cover-caption > span:last-child {
  font-size: 0.96rem;
  font-weight: 600;

  opacity: 0.92;
}


/* ========================================
   Article Hero
======================================== */

.article-hero {
  padding-top: 48px;
  padding-bottom: 24px;
}

.article-container {
  max-width: 920px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 25px;

  color: #909bae;

  font-size: 0.86rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.article-category {
  display: inline-block;

  margin: 0 0 12px;

  padding: 5px 11px;

  border-radius: 999px;

  color: var(--primary);
  background: var(--primary-soft);

  font-size: 0.8rem;
  font-weight: 800;
}

.article-hero h1 {
  max-width: 820px;

  margin: 0 0 18px;

  color: var(--text-dark);

  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.3;

  letter-spacing: -0.025em;
}

.article-lead {
  max-width: 820px;

  margin: 0;

  color: var(--muted);

  font-size: 1.08rem;
  line-height: 1.9;
}


/* ========================================
   Article Layout
======================================== */

.article-section {
  padding-top: 18px;
}

.article-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 760px)
    minmax(240px, 1fr);

  gap: 30px;

  align-items: start;
}

.article-content {
  padding: 38px 42px;

  background: var(--card);

  border: 1px solid var(--line);
  border-radius: 20px;

  box-shadow: var(--shadow);
}

.article-content h2 {
  margin-top: 42px;
  margin-bottom: 15px;

  color: var(--text-dark);

  font-size: 1.48rem;
  line-height: 1.45;
}

.article-content h2:first-of-type {
  margin-top: 34px;
}

.article-content h3 {
  color: var(--text-dark);

  font-size: 1.08rem;
}

.article-content p {
  margin-top: 0;
  margin-bottom: 18px;

  color: #536074;

  line-height: 1.95;
}

.article-content ul,
.article-content ol {
  margin-top: 0;
  margin-bottom: 22px;

  padding-left: 24px;

  color: #536074;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content a {
  color: var(--primary);

  font-weight: 700;

  text-underline-offset: 3px;
}


/* ========================================
   Article Summary
======================================== */

.article-summary {
  padding: 20px 22px;

  border-radius: 14px;

  color: #44536a;
  background: var(--primary-soft);

  border: 1px solid #d8e4f5;

  line-height: 1.85;
}

.article-summary strong {
  color: var(--text-dark);
}


/* ========================================
   Article Internal Links
======================================== */

.article-links {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 10px;

  margin: 20px 0 30px;
}

.article-links a {
  display: block;

  padding: 12px 14px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: var(--bg-soft);

  text-decoration: none;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.article-links a:hover {
  border-color: var(--line-hover);
  background: var(--primary-soft);
}


/* ========================================
   Checklist
======================================== */

.checklist-box {
  display: grid;

  gap: 10px;

  margin: 20px 0 30px;

  padding: 22px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background: var(--bg-soft);
}

.checklist-box label {
  display: flex;
  align-items: flex-start;

  gap: 10px;

  color: #536074;

  cursor: pointer;
}

.checklist-box input {
  margin-top: 7px;
}


/* ========================================
   FAQ
======================================== */

.faq-item {
  padding: 20px 0;

  border-bottom: 1px solid var(--line);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0 0 8px;

  font-size: 1.08rem;
}

.faq-item p {
  margin-bottom: 0;
}


/* ========================================
   Article Notice
======================================== */

.article-notice {
  margin-top: 34px;

  padding: 22px;

  border-radius: 14px;

  background: var(--warning);

  border: 1px solid var(--warning-line);
}

.article-notice strong {
  display: block;

  margin-bottom: 6px;

  color: #66541e;
}

.article-notice p {
  margin: 0;

  color: #756737;
}


/* ========================================
   Sidebar
======================================== */

.article-sidebar {
  position: sticky;
  top: 135px;

  display: grid;

  gap: 18px;
}

.sidebar-card {
  padding: 23px;

  background: var(--card);

  border: 1px solid var(--line);
  border-radius: 16px;

  box-shadow: var(--shadow);
}

.sidebar-label {
  margin: 0 0 5px;

  color: var(--primary);

  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.sidebar-card h2 {
  margin: 0 0 15px;

  color: var(--text-dark);

  font-size: 1.15rem;
}

.sidebar-card > a {
  display: block;

  padding: 10px 0;

  border-bottom: 1px solid var(--line);

  color: #4a5970;

  font-size: 0.91rem;
  font-weight: 700;

  text-decoration: none;
}

.sidebar-card > a:last-child {
  border-bottom: 0;
}

.sidebar-card > a:hover {
  color: var(--primary);
}

.sidebar-warning {
  background: var(--warning);
  border-color: var(--warning-line);
}

.sidebar-warning ul {
  margin: 0;

  padding-left: 19px;

  color: #746634;

  font-size: 0.9rem;
}

.sidebar-warning li {
  margin-bottom: 7px;
}


/* ========================================
   Article Tablet
======================================== */

@media (max-width: 980px) {

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;

    grid-template-columns: repeat(2, 1fr);
  }

}


/* ========================================
   Article Mobile
======================================== */

@media (max-width: 680px) {

  .inner-site-title {
    font-size: 1.55rem;
  }

  .article-hero {
    padding-top: 28px;
  }

  .article-hero h1 {
    font-size: 2rem;
  }

  .article-lead {
    font-size: 1rem;
  }

  .article-content {
    padding: 26px 21px;

    border-radius: 17px;
  }

  .article-content h2 {
    margin-top: 34px;

    font-size: 1.32rem;
  }

  .article-links {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

}
.risk-box {
  margin: 24px 0;
  padding: 20px 22px;
  background: #fff4f2;
  border: 1px solid #efd1cc;
  border-left: 4px solid #c76b5d;
  border-radius: 12px;
}

.risk-box strong {
  display: block;
  margin-bottom: 6px;
  color: #8f473d;
}

.risk-box p {
  margin: 0;
  color: #745b57;
}

