/* ==========================================================================
   桃園會計師.tw (昇徽合署會計師事務所) - 專業高信任度 Design System
   Color Scheme: 權威海軍藍 (Navy Blue) x 穩健灰白 x 低調金色點綴 (Subtle Gold Accent)
   ========================================================================== */

:root {
  /* 主色系 - 權威深藍 */
  --primary-dark: #0a192f;
  --primary: #112240;
  --primary-light: #233554;
  --primary-border: #2e476d;
  
  /* 強調色 - 專業雅緻金 (Subtle Gold) */
  --accent-gold: #c59b27;
  --accent-gold-light: #dfb752;
  --accent-gold-dark: #9a7618;
  --accent-gold-bg: rgba(197, 155, 39, 0.08);
  --accent-gold-border: rgba(197, 155, 39, 0.28);
  
  /* 中性色系 */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-alt: #f1f5f9;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  
  /* 邊框與陰影 */
  --border-subtle: #e2e8f0;
  --border-focus: #3b82f6;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  
  /* 功能色 */
  --success: #0d9488;
  --info: #0284c7;
  --warning: #d97706;
  
  /* 版面尺寸 */
  --max-width: 1200px;
  --nav-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* 基礎重置與排版 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.8;
  font-weight: 400;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

p {
  line-height: 1.85;
}

ul, ol {
  line-height: 1.85;
  list-style-position: inside;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  overflow-wrap: anywhere;
  word-break: break-word;
}

a:hover {
  color: var(--accent-gold-dark);
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul, ol {
  list-style-position: inside;
}

/* 容器與佈局 */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-dark {
  background-color: var(--primary-dark);
  color: var(--text-inverse);
}

/* 頁首與導覽列 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--nav-height);
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold-border);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
  white-space: nowrap;
}

.logo-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* 桌面版導覽選單 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 7px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--bg-alt);
}

.nav-link.active {
  font-weight: 600;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--accent-gold);
}

/* 下拉選單 */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-surface);
  min-width: 240px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-item a:hover {
  background-color: var(--bg-alt);
  color: var(--primary);
  padding-left: 22px;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 按鈕系統 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border: 1px solid var(--primary-border);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.35);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--bg-alt);
  border-color: var(--text-muted);
  color: var(--primary);
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-line {
  background-color: #06c755;
  color: #ffffff;
}

.btn-line:hover {
  background-color: #05b04c;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

/* 手機版漢堡選單切換器 */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary-dark);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* 麵包屑導航 */
.breadcrumb-wrap {
  background-color: var(--bg-alt);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

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

.breadcrumb-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--text-light);
  font-size: 0.75rem;
}

.breadcrumb-item.active {
  color: var(--text-main);
  font-weight: 600;
}

/* Hero 首頁主視覺區 */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #15294a 60%, #0d1e38 100%);
  color: var(--text-inverse);
  padding: 80px 0 72px 0;
  overflow: hidden;
  border-bottom: 3px solid var(--accent-gold);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(197, 155, 39, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(197, 155, 39, 0.15);
  border: 1px solid var(--accent-gold-border);
  color: var(--accent-gold-light);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.25rem;
  line-height: 1.28;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: #cbd5e1;
  margin-bottom: 32px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

/* 信任查核卡片 (Hero Card) */
.hero-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card-icon {
  width: 44px;
  height: 44px;
  background-color: var(--accent-gold-bg);
  border: 1px solid var(--accent-gold-border);
  color: var(--accent-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #e2e8f0;
}

.hero-card-list svg {
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 4px;
}

/* 區塊標題 */
.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px auto;
}

.section-tag {
  display: inline-block;
  color: var(--accent-gold-dark);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* 網格卡片系統 (Grid Cards) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-2, .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
}

@media (max-width: 768px) {
  .grid-2, .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .contact-card {
    padding: 20px 16px !important;
  }
}

.service-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--border-subtle);
  transition: background var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold-border);
}

.service-card:hover::before {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-gold) 100%);
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-alt);
  color: var(--text-muted);
  margin-bottom: 16px;
}

.card-badge.gold {
  background-color: var(--accent-gold-bg);
  color: var(--accent-gold-dark);
  border: 1px solid var(--accent-gold-border);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, #e2e8f0 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

.card-link:hover {
  color: var(--accent-gold-dark);
  gap: 10px;
}

/* 會計師審計簽證特設卡片 (Audit Feature Card) */
.audit-highlight-box {
  background: linear-gradient(135deg, #0d1e36 0%, #152b4d 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 40px 0;
  border: 1px solid rgba(197, 155, 39, 0.35);
  box-shadow: var(--shadow-xl);
}

.audit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.audit-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-fast);
}

.audit-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-gold-border);
}

.audit-item-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-bottom: 10px;
}

.audit-item-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.7;
}

/* 資格查核權威宣導區 (Verification Trust Banner) */
.trust-banner {
  background-color: var(--bg-surface);
  border: 2px solid var(--accent-gold-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
}

.trust-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.trust-card-inner {
  background-color: var(--bg-alt);
  padding: 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.trust-card-inner.gold {
  border-left-color: var(--accent-gold);
}

/* 表格樣式 (Responsive Tables) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-surface);
  font-size: 0.92rem;
  text-align: left;
}

.data-table th {
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 14px 18px;
  font-weight: 600;
  white-space: nowrap;
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background-color: var(--bg-alt);
}

/* 常見問題 Accordion (FAQ) */
.faq-wrap {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--accent-gold-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 22px 20px 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* 呼籲行動區 (CTA) */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  padding: 64px 0;
  text-align: center;
  border-top: 1px solid var(--primary-border);
}

.cta-box {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.cta-title {
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.4;
}

@media (min-width: 900px) {
  .cta-title {
    white-space: nowrap;
  }
}

.cta-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 32px;
  line-height: 1.8;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* 地區專屬導覽與產業徽章 */
.district-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.district-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.district-pill:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* 頁尾 Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  padding: 64px 0 24px 0;
  border-top: 4px solid var(--accent-gold);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #cbd5e1;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

/* 手機底部懸浮聯絡列 */
.mobile-floating-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 25, 47, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--accent-gold-border);
  padding: 8px 16px;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.site-header .container {
  max-width: 1360px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

@media (max-width: 1180px) {
  .logo-subtitle {
    display: none;
  }
  .nav-link {
    padding: 8px 6px;
    font-size: 0.88rem;
  }
  .header-cta-group .btn {
    padding: 8px 10px;
    font-size: 0.88rem;
  }
}

/* 響應式媒體查詢 (RWD Media Queries) */
@media (max-width: 1024px) {
  :root {
    --nav-height: 64px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .trust-banner-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 48px 0;
  }
  .hero {
    padding: 48px 0 40px 0;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .mobile-toggle {
    display: block;
  }
  .main-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-xl);
  }
  .main-nav.active {
    transform: translateX(0);
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }
  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-link {
    width: 100%;
    padding: 14px 8px;
    font-size: 1.05rem;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: var(--bg-alt);
    padding: 4px 0 8px 12px;
    display: none;
  }
  .nav-item.open-sub .dropdown-menu {
    display: block;
  }
  .header-cta-group {
    display: none;
  }
  .cards-grid-3, .cards-grid-4, .audit-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mobile-floating-bar {
    display: block;
  }
  body {
    padding-bottom: 60px; /* 防止浮動列遮住內容 */
  }
}

@media (max-width: 390px) {
  .hero-title {
    font-size: 1.65rem;
  }
  .btn {
    width: 100%;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-card {
    padding: 20px 16px;
  }
}
