:root {
  --blue: #1a8cff;
  --blue-dark: #0066cc;
  --orange: #ff6b2c;
  --orange-dark: #e55a1f;
  --dark: #1a1a1a;
  --gray: #555;
  --gray-light: #f5f7fa;
  --white: #fff;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --font: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-desktop {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-desktop a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--blue);
}

.header-cta {
  display: flex;
  gap: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: 0.3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(300px, 85%);
  background: var(--white);
  padding: 24px;
  overflow-y: auto;
}

.nav-mobile-panel ul {
  list-style: none;
  margin-top: 40px;
}

.nav-mobile-panel li {
  border-bottom: 1px solid #eee;
}

.nav-mobile-panel a {
  display: block;
  padding: 14px 0;
  color: var(--dark);
  font-weight: 500;
}

.nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-phone {
  background: var(--blue);
  color: var(--white);
}

.btn-phone:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.btn-line {
  background: #06c755;
  color: var(--white);
}

.btn-line:hover {
  background: #05a847;
  color: var(--white);
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
}

.btn-orange:hover {
  background: var(--orange-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0d47a1 0%, var(--blue) 50%, #42a5f5 100%);
  color: var(--white);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 12px;
}

.hero-phone {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--dark);
  box-shadow: var(--shadow);
  max-width: 380px;
  text-align: center;
}

.hero-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-icon svg {
  width: 40px;
  height: 40px;
  color: var(--white);
}

.hero-card h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.hero-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Sections */
section {
  padding: 72px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.bg-light {
  background: var(--gray-light);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon.legal {
  background: #e3f2fd;
  color: var(--blue);
}

.feature-icon.safe {
  background: #fff3e0;
  color: var(--orange);
}

.feature-icon.fast {
  background: #e8f5e9;
  color: #2e7d32;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-content h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.about-content p {
  color: var(--gray);
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: var(--gray-light);
  border-radius: var(--radius);
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-illus .photo-figure img {
  max-height: 360px;
  object-fit: cover;
}

@media (max-width: 600px) {
  .hero-illus .photo-figure img {
    max-height: 240px;
  }
}

.about-image-inner {
  text-align: center;
  color: var(--white);
}

.about-image-inner svg {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}

/* Process */
.process-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 24px;
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: 0.2s;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--blue);
  color: var(--white);
}

.process-panel {
  display: none;
}

.process-panel.active {
  display: block;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}

.step-card h3 {
  margin-bottom: 10px;
}

.step-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 40px 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  color: var(--dark);
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--blue);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 0 20px;
  color: var(--gray);
}

/* Locations */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.location-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.location-card h3 {
  color: var(--blue);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.location-card ul {
  list-style: none;
}

.location-card li {
  padding: 6px 0;
  color: var(--gray);
  font-size: 0.95rem;
  border-bottom: 1px solid #f0f0f0;
}

.location-card li:last-child {
  border-bottom: none;
}

/* Articles */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.article-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-thumb svg {
  width: 48px;
  height: 48px;
  color: var(--white);
  opacity: 0.8;
}

.article-body {
  padding: 20px;
}

.article-date {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.article-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-body p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--orange), #ff8f50);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 12px;
}

.cta-banner p {
  margin-bottom: 24px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Warning */
.warning-box {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 800px;
  margin: 0 auto;
}

.warning-box h3 {
  color: #f57f17;
  margin-bottom: 10px;
}

.warning-box p,
.warning-box li {
  color: var(--gray);
  font-size: 0.95rem;
}

.warning-box ul {
  margin-top: 10px;
  padding-left: 20px;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #ccc;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #ccc;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-cta .btn {
  padding: 12px 18px;
  font-size: 0.85rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Page header (sub pages) */
.page-hero {
  background: linear-gradient(135deg, #0d47a1, var(--blue));
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.page-hero p {
  opacity: 0.9;
  margin-top: 8px;
}

/* Article page */
.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 72px;
}

.article-content h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
  color: var(--dark);
}

.article-content h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
}

.article-content p,
.article-content li {
  color: var(--gray);
  margin-bottom: 14px;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--blue);
}

/* Responsive */
@media (max-width: 900px) {
  .nav-desktop,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid,
  .about-grid,
  .features-grid,
  .steps-grid,
  .locations-grid,
  .articles-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 80px;
  }

  .hero-visual {
    order: -1;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Photo illustrations */
.illus-wrap,
.photo-figure {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.illus-wrap img,
.hero-illus img,
.photo-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.photo-figure figcaption {
  background: var(--gray-light);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--gray);
  text-align: center;
  line-height: 1.5;
  border-top: 1px solid #e8e8e8;
}

.hero-illus .photo-figure,
.hero-illus img {
  border-radius: var(--radius);
}

.hero-illus {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.benefit-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.benefit-item svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
  flex-shrink: 0;
}

.benefit-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.benefit-item p {
  font-size: 0.9rem;
  color: var(--gray);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.compare-table th {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .highlight {
  color: var(--orange);
  font-weight: 600;
}

.city-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.city-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  color: var(--dark);
}

.city-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  color: var(--blue);
}

.city-card svg {
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  color: var(--blue);
}

.city-card span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* City landing page */
.city-page-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 32px 0 64px;
}

.city-content h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.city-content h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--blue);
}

.city-content p,
.city-content li {
  color: var(--gray);
  margin-bottom: 12px;
}

.city-spots {
  list-style: none;
  padding: 0;
}

.city-spots li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  padding-left: 20px;
  position: relative;
}

.city-spots li::before {
  content: "📍";
  position: absolute;
  left: 0;
}

.city-sidebar img {
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.sidebar-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.sidebar-card h4 {
  color: var(--blue);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.sidebar-card p {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0;
}

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.footer-disclaimer {
  margin-top: 8px;
  font-size: 0.8rem;
}

.articles-list-header {
  margin: 24px 0 32px;
}

.articles-list-header p {
  color: var(--gray);
}

.article-list-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: transform 0.2s;
  color: var(--dark);
}

.article-list-item:hover {
  transform: translateY(-2px);
  color: var(--dark);
}

.article-list-thumb {
  background: linear-gradient(135deg, var(--blue), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  overflow: hidden;
}

.article-list-thumb-img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
}

.article-list-thumb svg {
  width: 48px;
  height: 48px;
  color: var(--white);
  opacity: 0.85;
}

.article-list-body {
  padding: 20px 20px 20px 0;
}

.article-list-body h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.article-list-body p {
  color: var(--gray);
  font-size: 0.95rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  background: #e3f2fd;
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* RWD enhancements */
@media (max-width: 1024px) {
  .city-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .split-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .city-page-grid {
    grid-template-columns: 1fr;
  }

  .city-sidebar {
    order: -1;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .article-list-item {
    grid-template-columns: 1fr;
  }

  .article-list-thumb {
    min-height: 100px;
  }

  .article-list-body {
    padding: 0 20px 20px;
  }

  .compare-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero-cta .btn-lg {
    width: 100%;
    justify-content: center;
  }

  section {
    padding: 56px 0;
  }
}

@media (max-width: 600px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .process-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .tab-btn {
    width: 100%;
    text-align: center;
  }

  .floating-cta {
    bottom: 16px;
    right: 16px;
    left: 16px;
    flex-direction: row;
  }

  .floating-cta .btn {
    flex: 1;
    min-height: 44px;
  }

  .city-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-inline .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .logo img {
    height: 40px;
  }

  .page-hero {
    padding: 36px 0;
  }

  .hero-phone {
    word-break: break-all;
  }
}

@media (max-width: 380px) {
  .city-cards {
    grid-template-columns: 1fr;
  }

  .container {
    width: 94%;
  }
}
