/* ============================================
   永富商業文儀公司 Wing Fu Office Machine Co.
   style.css — Mobile-First Responsive Design
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #0a3d7c;
  --primary-dark: #062a56;
  --primary-light: #1565c0;
  --accent: #f5a623;
  --accent-hover: #e09000;
  --text: #333333;
  --text-light: #666666;
  --text-white: #ffffff;
  --bg: #ffffff;
  --bg-light: #f7f9fc;
  --bg-grey: #eef1f5;
  --border: #dde3ea;
  --success: #27ae60;
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe57;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --header-h: 70px;
  --font-main: "Noto Sans TC", "Microsoft JhengHei", "PingFang HK", sans-serif;
  --font-en: "Inter", "Segoe UI", sans-serif;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* --- Utility --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-alt { background: var(--bg-light); }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--primary-dark); }
h1 { font-size: 2rem; margin-bottom: 20px; }
h2 { font-size: 1.65rem; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }
p { margin-bottom: 16px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { position: relative; display: inline-block; padding-bottom: 12px; }
.section-title h2::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px; background: var(--accent); border-radius: 2px;
}
.section-title p { color: var(--text-light); margin-top: 10px; font-size: 1.05rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 600;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-hover); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* --- Header --- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm); height: var(--header-h);
  transition: box-shadow var(--transition);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
}
.logo img { height: 45px; width: auto; }
.logo span { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin-left: 10px; }

/* Desktop Nav */
.main-nav > ul { display: flex; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 14px; font-size: 0.95rem; font-weight: 500;
  color: var(--text); border-radius: var(--radius-sm); transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--bg-light); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: block; list-style: none; margin: 0; padding: 8px 0;
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all var(--transition); z-index: 100;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { display: block; }
.dropdown a { padding: 10px 20px; font-size: 0.9rem; border-radius: 0; }
.dropdown a:hover { background: var(--bg-light); color: var(--primary); }

/* Header CTA */
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .phone-link {
  font-weight: 600; color: var(--primary); font-size: 0.95rem;
  display: flex; align-items: center; gap: 6px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  width: 40px; height: 40px; justify-content: center; align-items: center;
}
.menu-toggle span {
  display: block; width: 24px; height: 2.5px; background: var(--text);
  border-radius: 2px; transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* --- Hero --- */
.hero {
  position: relative; padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.4;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 2.4rem; color: #fff; margin-bottom: 16px; }
.hero .banner-title { font-size: 2.4rem; color: #fff; margin: 0 0 16px; font-weight: 700; line-height: 1.25; }
.hero .subtitle { font-size: 1.15rem; opacity: 0.92; margin-bottom: 8px; line-height: 1.7; }
.hero .hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; background: rgba(255,255,255,0.15); border-radius: 50px;
  font-size: 0.9rem; backdrop-filter: blur(4px);
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-buttons .btn-accent { font-size: 1.05rem; }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 14px 0; background: var(--bg-light); border-bottom: 1px solid var(--border);
  margin-top: var(--header-h);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.88rem; }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: #aaa; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: var(--primary); font-weight: 600; }

/* --- Service Cards --- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.service-card {
  background: #fff; border-radius: var(--radius-md); padding: 32px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: all var(--transition); text-align: center;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-card .icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: var(--bg-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--primary);
}
.service-card:hover .icon { background: var(--primary); color: #fff; }
.service-card h3 a { color: var(--primary-dark); }
.service-card p { color: var(--text-light); font-size: 0.95rem; }

/* --- Product Grid --- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
}
.product-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: all var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .product-img {
  width: 100%; height: 200px; object-fit: contain;
  background: var(--bg-light); padding: 16px;
}
.product-card .product-info { padding: 20px; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.product-card .price { font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.product-card .specs { font-size: 0.85rem; color: var(--text-light); margin: 8px 0; }
.product-card .specs span { display: inline-block; margin-right: 12px; }

/* --- Feature List --- */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
}
.feature-item {
  display: flex; gap: 16px; padding: 20px;
  background: #fff; border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.feature-item .feature-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  background: var(--bg-light); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--primary);
}
.feature-item h4 { margin-bottom: 4px; font-size: 1rem; }
.feature-item p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* --- Stats Bar --- */
.stats-bar {
  background: var(--primary-dark); color: #fff; padding: 40px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item .number { font-size: 2.4rem; font-weight: 800; color: var(--accent); font-family: var(--font-en); }
.stat-item .label { font-size: 0.95rem; opacity: 0.9; margin-top: 4px; }

/* --- Comparison Table --- */
.comparison-table { width: 100%; overflow-x: auto; margin: 20px 0; }
.comparison-table table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
}
.comparison-table th {
  background: var(--primary); color: #fff; padding: 14px 16px;
  text-align: left; font-weight: 600; font-size: 0.95rem;
}
.comparison-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.95rem;
}
.comparison-table tr:hover td { background: var(--bg-light); }
.comparison-table .highlight { background: rgba(245,166,35,0.08); }

/* --- FAQ Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 12px; overflow: hidden; background: #fff;
}
.faq-question {
  width: 100%; padding: 18px 24px; display: flex; justify-content: space-between;
  align-items: center; font-size: 1rem; font-weight: 600;
  color: var(--text); text-align: left; transition: all var(--transition);
}
.faq-question:hover { color: var(--primary); background: var(--bg-light); }
.faq-question .arrow {
  font-size: 1.2rem; transition: transform var(--transition); flex-shrink: 0; margin-left: 12px;
}
.faq-item.active .faq-question { color: var(--primary); background: var(--bg-light); }
.faq-item.active .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  padding: 0 24px;
}
.faq-item.active .faq-answer { max-height: 500px; padding: 0 24px 20px; }
.faq-answer p { color: var(--text-light); font-size: 0.95rem; }

/* --- Blog Cards --- */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px;
}
.blog-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card .blog-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card .blog-content { padding: 24px; }
.blog-card .blog-meta {
  display: flex; gap: 16px; font-size: 0.82rem; color: var(--text-light); margin-bottom: 10px;
}
.blog-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card h3 a { color: var(--primary-dark); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card .excerpt { font-size: 0.92rem; color: var(--text-light); margin-bottom: 12px; }
.blog-card .read-more { font-size: 0.9rem; font-weight: 600; color: var(--primary); }

/* Blog Article */
.article-content { max-width: 800px; margin: 0 auto; }
.article-content h1 { font-size: 2rem; margin-bottom: 12px; }
.article-content .article-meta {
  color: var(--text-light); font-size: 0.9rem; margin-bottom: 30px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.article-content h2 { margin-top: 36px; font-size: 1.5rem; }
.article-content h3 { margin-top: 24px; }
.article-content p { font-size: 1.05rem; line-height: 1.9; }
.article-content ul, .article-content ol {
  margin: 16px 0; padding-left: 24px; list-style: disc;
}
.article-content li { margin-bottom: 8px; font-size: 1.02rem; }
.article-content blockquote {
  border-left: 4px solid var(--accent); padding: 16px 24px;
  background: var(--bg-light); margin: 20px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* --- Contact Section --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-item {
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px;
}
.contact-info-item .ci-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-light); display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--primary); flex-shrink: 0;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit;
  transition: border-color var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,61,124,0.1);
}
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.92rem; }

/* --- Google Map --- */
.map-container {
  width: 100%; height: 350px; border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--border);
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 50px 0; text-align: center; color: #fff;
}
.cta-banner h2 { color: #fff; font-size: 1.8rem; margin-bottom: 12px; }
.cta-banner p { opacity: 0.92; font-size: 1.1rem; margin-bottom: 24px; }
.cta-banner .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Brands Row --- */
.brands-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px;
  padding: 20px 0;
}
.brands-row img { height: 40px; width: auto; filter: grayscale(100%); opacity: 0.6; transition: all var(--transition); }
.brands-row img:hover { filter: grayscale(0); opacity: 1; }

/* --- Footer --- */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.85); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-col h4::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 2px; background: var(--accent);
}
.footer-col p { font-size: 0.9rem; line-height: 1.8; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 40px; padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5);
}

/* --- WhatsApp Float Button --- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: all var(--transition);
  font-size: 28px;
}
.whatsapp-float:hover { transform: scale(1.1); background: var(--whatsapp-hover); color: #fff; }
.whatsapp-float .tooltip {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%);
  background: #fff; color: var(--text); padding: 8px 16px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  font-size: 0.85rem; white-space: nowrap; opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.whatsapp-float:hover .tooltip { opacity: 1; visibility: visible; }

/* --- Back to Top --- */
.back-to-top {
  position: fixed; bottom: 96px; right: 28px; z-index: 998;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden;
  transition: all var(--transition); font-size: 18px;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-light); color: #fff; transform: translateY(-3px); }

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  padding: 100px 0 50px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; text-align: center;
}
.page-hero h1 { color: #fff; font-size: 2.2rem; }
.page-hero p { opacity: 0.9; font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* --- Sidebar --- */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.sidebar .widget {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; margin-bottom: 24px;
}
.sidebar .widget h4 { font-size: 1rem; margin-bottom: 16px; color: var(--primary-dark); }
.sidebar .widget ul li { margin-bottom: 10px; }
.sidebar .widget ul a { color: var(--text-light); font-size: 0.92rem; }
.sidebar .widget ul a:hover { color: var(--primary); }
.sidebar .cta-widget {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; text-align: center;
}
.sidebar .cta-widget h4 { color: #fff; }
.sidebar .cta-widget p { font-size: 0.9rem; opacity: 0.9; }

/* --- Pagination --- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: 0.95rem; color: var(--text);
}
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a:hover { background: var(--bg-light); color: var(--primary); }

/* ==============================
   Responsive Breakpoints
   ============================== */

/* Tablet */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1, .hero .banner-title { font-size: 2rem; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  .section { padding: 40px 0; }

  /* Mobile Nav */
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; width: 100%; height: calc(100vh - var(--header-h));
    background: #fff; padding: 20px; overflow-y: auto;
    transform: translateX(-100%); transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 16px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; padding: 0; background: var(--bg-light);
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown a { padding-left: 32px; font-size: 0.95rem; }
  .header-cta .btn { display: none; }
  .header-cta .phone-link { font-size: 0.85rem; }

  /* Mobile Hero */
  .hero { padding: 90px 0 50px; }
  .hero h1, .hero .banner-title { font-size: 1.7rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero .hero-badges { gap: 8px; }

  /* Mobile Grid */
  .services-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-item .number { font-size: 1.8rem; }

  /* Mobile CTA */
  .cta-banner h2 { font-size: 1.4rem; }
  .cta-banner .btn-group { flex-direction: column; align-items: center; }

  /* Mobile WhatsApp */
  .whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; font-size: 24px; }
  .back-to-top { bottom: 78px; right: 20px; width: 38px; height: 38px; }

  /* Page Hero */
  .page-hero { padding: 80px 0 40px; }
  .page-hero h1 { font-size: 1.7rem; }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.4rem; }
  .hero h1, .hero .banner-title { font-size: 1.4rem; }
  .btn { padding: 10px 20px; font-size: 0.92rem; }
  .brands-row { gap: 24px; }
  .brands-row img { height: 30px; }
}

/* Print */
@media print {
  .site-header, .site-footer, .whatsapp-float, .back-to-top, .cta-banner { display: none; }
  body { color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .section { padding: 20px 0; }
}

/* ===== CMS 內容樣式 ===== */
.cms-content { line-height: 1.9; }
.cms-content h2 { font-size: 1.5rem; margin: 28px 0 14px; color: var(--primary-dark); }
.cms-content h3 { font-size: 1.25rem; margin: 22px 0 10px; color: var(--primary-dark); }
.cms-content p { margin-bottom: 16px; }
.cms-content ul, .cms-content ol { padding-left: 24px; margin-bottom: 16px; }
.cms-content li { margin-bottom: 6px; }
.cms-content table { width: 100%; border-collapse: collapse; margin-bottom: 18px; overflow-x: auto; display: block; }
.cms-content th, .cms-content td { border: 1px solid var(--border); padding: 10px 14px; }
.cms-content th { background: var(--bg-light); font-weight: 700; }
.cms-content img { max-width: 100%; border-radius: var(--radius-sm); }
.cms-content blockquote { border-left: 4px solid var(--accent); padding: 12px 20px; background: #fdf8f0; margin: 20px 0; border-radius: 0 8px 8px 0; }

/* ===== Hero Slider ===== */
.hero-slider { position: relative; min-height: calc(100vh - var(--header-h)); }
.hero-slider .hero-content { padding-top: 100px; padding-bottom: 80px; }

/* ===== 後台預覽：診斷面板 ===== */
.debug-panel { position: fixed; bottom: 60px; left: 10px; background: #1a1a1a; color: #0f0; font-family: monospace; font-size: 11px; padding: 8px 12px; border-radius: 6px; z-index: 9999; opacity: 0.85; }