/* ===== 一六廣告 靜態站樣式 — 明亮簡潔企業風 ===== */
:root {
  --primary: #0f4c81;
  --primary-dark: #0a3557;
  --accent: #e8a020;
  --accent-soft: #fdf3e0;
  --text: #24303c;
  --text-2: #5b6b7a;
  --line: #e4e9ef;
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  overflow-x: hidden;
  font-family: -apple-system, "PingFang SC", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ===== 頭部 ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 60px; width: auto; display: block; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 8px 14px; font-size: 15px; color: var(--text); border-radius: 6px; white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active { color: var(--primary); background: var(--bg-2); text-decoration: none; }
/* 下拉菜單（廣告字） */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 4px; }
.nav-caret { font-size: 10px; color: var(--text-2); }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 160px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.1); padding: 6px; z-index: 50;
}
.dropdown-menu a { display: block; padding: 9px 14px; font-size: 14px; border-radius: 6px; white-space: nowrap; }
.dropdown-menu a:hover, .dropdown-menu a.active { background: var(--bg-2); color: var(--primary); }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown.open .dropdown-menu { display: block; }
.nav-dropdown.active > .nav-dropdown-toggle { color: var(--primary); background: var(--bg-2); }
.header-cta {
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-radius: 6px; white-space: nowrap;
}
.header-cta:hover { background: #d8911a; text-decoration: none; }
.nav-toggle { display: none; border: none; background: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ===== 首頁 Hero ===== */
.hero {
  background: linear-gradient(180deg, var(--bg-2) 0%, #fff 100%);
  padding: 64px 0 56px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.3; font-weight: 700; margin-bottom: 16px; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero p { color: var(--text-2); font-size: 17px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 8px; font-size: 16px; font-weight: 600;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-collage img {
  border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%;
}
.hero-collage img:first-child { grid-column: span 2; aspect-ratio: 16/9; }
.hero-stats { display: flex; gap: 40px; margin-top: 36px; }
.hero-stats .stat b { font-size: 28px; color: var(--primary); display: block; }
.hero-stats .stat span { font-size: 13px; color: var(--text-2); }

/* ===== 通用 Section ===== */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-2); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .kicker { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 3px; }
.section-head h2 { font-size: 30px; margin: 6px 0 10px; }
.section-head p { color: var(--text-2); max-width: 640px; margin: 0 auto; }

/* ===== 卡片網格 ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 10px 30px rgba(15, 76, 129, .12); }
.card-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); display: block; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-size: 17px; margin-bottom: 8px; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--primary); text-decoration: none; }
.card-body p { font-size: 14px; color: var(--text-2); text-indent: 2em; }
.card-meta { font-size: 13px; color: var(--text-2); margin-top: 10px; }

/* ===== 我們的優勢（深色對比區塊） ===== */
.advantages {
  background: linear-gradient(135deg, #eef4fa 0%, #e4eef7 100%);
  padding: 72px 0;
}
.advantages .section-head h2 { color: var(--text); }
.advantages .section-head p { color: var(--text-2); }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 22px 30px;
  text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.adv-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15, 76, 129, .12);
  border-color: rgba(15, 76, 129, .28);
}
.adv-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  background: #e6eff8;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.adv-icon svg { width: 30px; height: 30px; }
.adv-item h3 { font-size: 19px; margin-bottom: 10px; color: var(--text); }
.adv-item p { font-size: 14px; color: var(--text-2); line-height: 1.75; }

/* ===== 產品頁組件（發光字等產品頁） ===== */
.product-intro p { font-size: 17px; line-height: 1.9; color: var(--text); }
.product-features h2, .gallery-grid + h2, .cta-band + h2 { margin-top: 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 24px 0 40px; }
.feature-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 20px; text-align: center; transition: box-shadow .2s, transform .2s;
}
.feature-item:hover { box-shadow: 0 8px 24px rgba(15, 76, 129, .1); transform: translateY(-3px); }
.feature-icon {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%;
  background: #e6eff8; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-item h3 { font-size: 16px; margin-bottom: 8px; }
.feature-item p { font-size: 13px; color: var(--text-2); line-height: 1.7; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 40px; }
.gallery-grid figure { margin: 0; text-align: left; }
.gallery-grid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px;
  box-shadow: 0 4px 16px rgba(15, 76, 129, .08);
}
.gallery-grid figcaption {
  font-size: 13px; color: var(--text-2); text-align: center; margin-top: 8px;
}

.spec-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 36px; }
.spec-chips span {
  background: #eef3f9; color: var(--primary); border: 1px solid #d7e3f0;
  padding: 7px 16px; border-radius: 20px; font-size: 14px;
}

.cta-band {
  background: linear-gradient(135deg, #eef4fa, #e0ebf6);
  border: 1px solid #d5e2f0; border-radius: 14px;
  text-align: center; padding: 40px 24px; margin: 48px 0 8px;
}
.cta-band h3 { font-size: 22px; margin-bottom: 10px; }
.cta-band p { font-size: 14.5px; color: var(--text-2); margin-bottom: 20px; }

/* ===== 頁面/文章主體 ===== */
.page-hero {
  background: var(--primary); color: #fff; padding: 48px 0; text-align: center;
}
.page-hero h1 { font-size: 32px; margin-bottom: 8px; }
.page-hero p { color: #bcd2e4; font-size: 15px; }
.content-wrap { max-width: 1120px; margin: 0 auto; padding: 48px 20px 56px; }
.post-info { color: var(--text-2); font-size: 14px; margin-bottom: 24px; display: flex; gap: 16px; flex-wrap: wrap; }
.post-info .cat { background: var(--accent-soft); color: #9a6a10; padding: 2px 12px; border-radius: 20px; font-size: 13px; }

/* 關於頁：數據統計帶 */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin: 32px 0 44px;
}
.stat-box {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 16px; text-align: center;
}
.stat-box b { display: block; font-size: 30px; color: var(--primary); margin-bottom: 6px; }
.stat-box span { font-size: 13.5px; color: var(--text-2); }

/* 關於頁：服務流程步驟 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 24px 0 44px; }
.step-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 20px; position: relative; text-align: center;
}
.step-num {
  width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.step-item h3 { font-size: 16px; margin-bottom: 8px; }
.step-item p { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }

/* 關於頁：理念引言 */
.quote-box {
  background: linear-gradient(135deg, #eef4fa, #e4eef7);
  border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0;
  padding: 28px 30px; margin: 32px 0 40px;
}
.quote-box p { font-size: 16px; color: var(--text); line-height: 1.9; }

/* 響應式視頻嵌入（16:9） */
.video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius); background: #000; max-width: 900px; margin: 0 auto;
}
.video-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* 文章正文（轉換自 WordPress 的 HTML） */
.prose p { margin: 0 0 18px; }
/* 中文段落首行縮進 2 字符（居中段落除外） */
.prose p { text-indent: 2em; }
.prose p.has-text-align-center, .prose p[style*="center"] { text-indent: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 32px 0 14px; line-height: 1.4; }
.prose h2 { font-size: 24px; } .prose h3 { font-size: 20px; }
.prose figure { margin: 28px 0; text-align: center; }
.prose figure img { border-radius: var(--radius); margin: 0 auto; max-width: 100%; }
.prose figcaption { font-size: 13px; color: var(--text-2); margin-top: 10px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 18px; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 8px 20px; background: var(--bg-2); margin: 24px 0; border-radius: 0 8px 8px 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 24px 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }

/* ===== 上一篇/下一篇 ===== */
.post-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; }
.post-nav a { max-width: 48%; font-size: 14px; }

/* ===== 聯繫頁 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 8px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: 0 6px 24px rgba(15, 76, 129, .07);
}
.contact-card h2 { font-size: 22px; margin-bottom: 20px; color: var(--primary); }
.contact-list { list-style: none; }
.contact-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; display: flex; gap: 12px; }
.contact-list li:last-child { border-bottom: none; }
.contact-list b { min-width: 84px; color: var(--text-2); font-weight: 500; }
.qr-box { text-align: center; padding: 24px; }
.qr-box img, .qr-box .qr-placeholder { width: 220px; height: 220px; margin: 0 auto 16px; border-radius: var(--radius); }
.qr-box .qr-placeholder {
  border: 2px dashed #c9d4de; background: var(--bg-2); color: var(--text-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px;
}

/* ===== 頁腳 ===== */
.site-footer { background: #16202b; color: #aab8c5; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 40px; padding: 56px 20px 40px; }
.footer-logo { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.footer-desc { font-size: 13.5px; margin-bottom: 10px; text-indent: 2em; }
.footer-note { font-size: 12.5px; color: #7d8fa0; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-links, .footer-contact { list-style: none; font-size: 14px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a, .footer-contact a { color: #aab8c5; }
.footer-links a:hover { color: #fff; }
.footer-contact li { margin-bottom: 8px; }
.footer-qr .qr-img { width: 130px; height: 130px; border-radius: 8px; margin-bottom: 8px; }
.footer-qr .qr-placeholder {
  width: 130px; height: 130px; border: 1px dashed #465666; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 11px; color: #7d8fa0; padding: 8px; margin-bottom: 8px;
}
.footer-qr .qr-caption { font-size: 12.5px; color: #aab8c5; }
.footer-bottom { border-top: 1px solid #2a3a49; padding: 18px 20px; font-size: 13px; color: #7d8fa0; }
.footer-bottom a { color: #aab8c5; }

/* ===== 分類徽章 ===== */
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.chips a {
  padding: 7px 18px; border: 1px solid var(--line); border-radius: 20px; font-size: 14px; color: var(--text-2);
}
.chips a:hover, .chips a.active { background: var(--primary); border-color: var(--primary); color: #fff; text-decoration: none; }

/* ===== 響應式 ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  /* 平板及以下：收起導航為漢堡菜單（避免溢出） */
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .site-nav.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .nav-dropdown { width: 100%; }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 4px 10px; min-width: 0; }
  .nav-dropdown.open .dropdown-menu { display: block; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 26px; }
  .hero-stats { gap: 20px; }
  .content-wrap { padding: 36px 20px 56px; }
  .page-hero h1 { font-size: 26px; }
}

/* 關於頁響應式 */
@media (max-width: 900px) {
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .stats-band { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}

/* ===== 智能客服小窗 ===== */
.cs-widget { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 999; font-family: inherit; }
.cs-fab {
  border: none; cursor: pointer; padding: 18px 10px;
  border-radius: 12px 0 0 12px;
  background: var(--primary); color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: -4px 0 16px rgba(15, 76, 129, .18); transition: background .2s;
}
.cs-fab:hover { background: #0a355c; }
.cs-fab svg { width: 24px; height: 24px; }
.cs-fab-text { writing-mode: vertical-rl; letter-spacing: 3px; font-size: 14px; font-weight: 600; }
.cs-panel {
  display: none; position: fixed; right: 64px; top: 50%; transform: translateY(-50%);
  width: 340px; max-width: calc(100vw - 80px);
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .18); border: 1px solid var(--line);
}
.cs-panel.open { display: block; }
.cs-head {
  background: linear-gradient(135deg, #0f4c81, #0a355c); color: #fff;
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
}
.cs-head strong { font-size: 15px; display: block; }
.cs-head small { font-size: 11.5px; color: #bcd2e4; }
.cs-close { background: none; border: none; color: #fff; font-size: 15px; cursor: pointer; }
.cs-tabs { display: flex; border-bottom: 1px solid var(--line); }
.cs-tab {
  flex: 1; padding: 10px; border: none; background: none; cursor: pointer; font-size: 13.5px; color: var(--text-2);
}
.cs-tab.active { color: var(--primary); font-weight: 600; border-bottom: 2px solid var(--primary); }
.cs-body { height: 320px; display: flex; flex-direction: column; }
.cs-view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cs-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.cs-msg {
  max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.6;
  word-break: break-word; white-space: pre-wrap;
}
.cs-bot { background: #f0f4f9; color: var(--text); align-self: flex-start; border-bottom-left-radius: 3px; }
.cs-user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.cs-input-row { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.cs-input-row input {
  flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; outline: none;
}
.cs-input-row input:focus { border-color: var(--primary); }
.cs-input-row button {
  background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 8px 16px; cursor: pointer; font-size: 13.5px;
}
.cs-input-row button:disabled { opacity: .6; }
.cs-note { font-size: 11.5px; color: var(--text-2); text-align: center; padding: 6px; }
.cs-form { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.cs-form input, .cs-form textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 13.5px; outline: none; font-family: inherit;
}
.cs-form input:focus, .cs-form textarea:focus { border-color: var(--primary); }
.cs-form textarea { resize: none; }
.cs-form button {
  background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 10px; cursor: pointer; font-size: 14px; font-weight: 600;
}
.cs-form button:disabled { opacity: .6; }
@media (max-width: 640px) {
  .cs-panel { width: calc(100vw - 88px); right: 56px; }
  .cs-fab { padding: 14px 8px; }
}
