@charset "UTF-8";
/* ============================================
   custom.css — 自訂元件樣式（Tailwind 無法取代的部分）
   ============================================ */

/* ------------------------------------------
   CSS Variables
   ------------------------------------------ */
:root {
    --primary-color: #9a6809;
    --accent-gold: #C49A20;
    --warning-color: #ff4000;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-medium: #e5e5e5;
    --table-header-bg: rgba(214, 207, 172, 0.6);
    --transparent: transparent;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --section-py: 16px;
    --section-px: 0px;
    --card-padding: 16px;
    --heading-mb: 16px;
    --heading-pb: 12px;
}
@media (min-width: 992px) {
    :root { --section-py: 32px; }
}
@media (min-width: 1200px) {
    :root { --section-py: 48px; }
}

/* ------------------------------------------
   Base — 補充 Tailwind preflight 未涵蓋的部分
   ------------------------------------------ */
html {
    color-scheme: light only;
    background-color: #f9f7f2;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
}
body {
    font-family: "Microsoft JhengHei", Arial, sans-serif;
    background-color: #f9f7f2;
    color: #595959;
    font-size: 16px;
    line-height: 1.75;
    margin: 0;
}
body h1, body h2, body h3, body h4, body h5, body h6 {
    font-family: "Microsoft JhengHei", Arial, sans-serif;
    color: #333;
    line-height: 1.3;
    font-weight: 700;
}
body h1 { font-size: 1.75rem; margin-top: 1.5rem; margin-bottom: 1.5rem; }
.page-title { font-size: 1.5rem; font-weight: 600; }
body h2 { font-size: 1.5rem; margin-top: 1.25rem; margin-bottom: 1.25rem; }
body h3 { font-size: 1.25rem; margin-top: 1rem; margin-bottom: 1rem; }
body h4 { font-size: 1.1rem; margin-top: 0.75rem; margin-bottom: 0.75rem; }
body h5 { font-size: 1rem; margin-top: 0.625rem; }
body h6 { font-size: 1rem; margin-top: 0.5rem; }
h5 { margin-bottom: 0.625rem; }
h6 { margin-bottom: 0.5rem; }
@media (min-width: 992px) {
    body h1 { font-size: 2rem; }
    body h2 { font-size: 1.625rem; }
    body h3 { font-size: 1.375rem; }
}
p {
    color: #595959;
    font-size: 16px;
    line-height: 1.8;
}
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
body a { color: #595959; }
a:hover { color: #9a6809 !important; text-decoration: none; }
a:not([href]):not([tabindex]):hover { color: #9a6809; }
a, a:hover, a:focus, a:active, button, button:focus, input, select, textarea { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #9a6809;
    outline-offset: 2px;
}
._keyfocus :focus, input:not([disabled]):focus, textarea:not([disabled]):focus, select:not([disabled]):focus {
    outline: 2px solid #9a6809;
    outline-offset: 2px;
}
button { cursor: pointer; border: none; padding: 0; outline: none; background: transparent; }
input::-webkit-input-placeholder { color: #666; }
input::placeholder { color: #666; }

/* ------------------------------------------
   Skip to Content
   ------------------------------------------ */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 0;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    z-index: 99999;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-to-content:focus {
    top: 0;
    outline: 3px solid #9a6809;
    outline-offset: 2px;
}

/* ------------------------------------------
   Header
   ------------------------------------------ */
.header-middle_area {
    padding: 30px;
    background-color: #d6cfac;
}
.header-bottom_area {
    background-color: #9a6809;
}
.header-bottom_area > .container {
    position: relative;
}
.header-bottom_area .header-logo {
    padding-top: 15px;
}
@media (max-width: 991px) {
    .header-bottom_area .header-logo { padding: 15px 0 30px; }
}
@media only screen and (min-width: 576px) and (max-width: 767px) {
    .header-bottom_area .header-logo { padding: 15px 0 0; }
}
@media (max-width: 575px) {
    .header-bottom_area .header-logo { text-align: center; padding: 10px 0 0; }
    .header-bottom_area .header-logo img[src*="logo"] { max-width: 80%; }
}

/* Main Menu */
.header-bottom_area .main-menu_area {
    display: flex;
    justify-content: flex-start;
}
.header-bottom_area .main-menu_area > nav > ul > li {
    display: inline-block;
    padding-right: 30px;
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .header-bottom_area .main-menu_area > nav > ul > li { padding-right: 16px; }
}
.header-bottom_area .main-menu_area > nav > ul > li:last-child { padding-right: 0; }
.header-bottom_area .main-menu_area > nav > ul > li > a {
    font-weight: 700;
    color: #ffffff;
    display: block;
    padding: 18px 0;
    position: relative;
}
.header-bottom_area .main-menu_area > nav > ul > li > a:before,
.header-bottom_area .main-menu_area > nav > ul > li > a:after {
    content: "";
    border-left: 2px solid;
    border-left-color: inherit;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 13px;
    width: 2px;
    opacity: 0;
    visibility: hidden;
}
.header-bottom_area .main-menu_area > nav > ul > li > a:before { left: -20px; }
.header-bottom_area .main-menu_area > nav > ul > li > a:after { right: -20px; }
.header-bottom_area .main-menu_area > nav > ul > li:hover > a { color: #ffffff !important; }
.header-bottom_area .main-menu_area > nav > ul > li:hover > a:before { opacity: 1; visibility: visible; left: -10px; }
.header-bottom_area .main-menu_area > nav > ul > li:hover > a:after { opacity: 1; visibility: visible; right: -10px; }
.main-menu_area nav > ul > li.active > a { color: #fff; border-bottom: 2px solid #fff; }

/* Dropdown */
.header-bottom_area .main-menu_area > nav > ul > li .hm-dropdown {
    position: absolute;
    background: #ffffff;
    width: 230px;
    padding: 20px 0 24px;
    transform-origin: 0 0 0;
    transform: scaleY(0);
    box-shadow: 0 1px 2px 2px rgba(0, 0, 0, 0.2);
    z-index: 9;
}
.header-bottom_area .main-menu_area > nav > ul > li .hm-dropdown > li > a {
    padding: 10px 20px;
    display: block;
}
.header-bottom_area .main-menu_area > nav > ul > li .hm-dropdown > li.active > a { color: #9a6809; }
.header-bottom_area .main-menu_area > nav > ul > li:hover .hm-dropdown { transform: scaleY(1); }
.dropdown-holder { position: relative; }

/* Header Right */
.header-bottom_area .header-right_area {
    display: flex;
    justify-content: flex-end;
}
@media (max-width: 575px) {
    .header-bottom_area .header-right_area { justify-content: center; }
}
.header-right_area li .mobile-menu_btn p {
    color: #fff;
    display: inline-block;
    margin-left: 5px;
    position: absolute;
    top: 13px;
    width: 50px;
}
.header-bottom_area .header-right_area > ul > li { display: inline-block; border-right: 1px solid rgba(0, 0, 0, 0.07); }
.header-bottom_area .header-right_area > ul > li > a {
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    display: block;
    color: #ffffff;
    font-size: 16px;
}
@media (max-width: 991px) {
    .header-bottom_area .header-right_area > ul > li > a { height: 50px; line-height: 50px; }
}
.header-bottom_area .header-right_area > ul > li > a > i { font-size: 26px; }
.header-bottom_area .header-right_area > ul > li:first-child { border-left: 1px solid rgba(0, 0, 0, 0.07); }
@media (max-width: 993px) {
    .header-bottom_area .header-right_area > ul > li:first-child,
    .header-bottom_area .header-right_area > ul > li { border: 0; }
}
.header-bottom_area .header-right_area > ul > li.mobile-menu-wrap { display: none; }
@media (max-width: 991px) {
    .header-bottom_area .header-right_area > ul > li.mobile-menu-wrap { display: inline-block; }
}

/* Sticky Header */
.header-sticky { position: relative; }
.header-sticky.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    animation: slideInDown 0.4s ease-out;
}
@keyframes slideInDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ------------------------------------------
   Mobile Menu (Offcanvas)
   ------------------------------------------ */
.mobile-menu_wrapper .offcanvas-menu-inner {
    position: fixed;
    top: 0;
    right: -285px;
    width: 285px;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    visibility: hidden;
    border-left: 1px solid var(--bg-medium);
}
@media (max-width: 575px) {
    .mobile-menu_wrapper .offcanvas-menu-inner { width: 270px; }
}
.mobile-menu_wrapper.open .offcanvas-menu-inner {
    left: auto;
    right: 0;
    visibility: visible;
    padding: 20px 0 0;
}
#mobileMenu {
    position: fixed;
    top: 0;
    right: 0;
    width: 285px;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
}
#mobileMenu.open { transform: translateX(0); }
.btn-close {
    position: absolute;
    top: 0;
    left: -60px;
    background: #333;
    width: 60px;
    height: 60px;
    line-height: 63px;
    text-align: center;
    color: #ffffff;
    z-index: 10;
    font-size: 24px;
}
@media (max-width: 479px) { .btn-close { left: -50px; width: 50px; } }
.btn-close:hover > i { transform: rotate(90deg); }
.btn-close > i { transform: rotate(0); display: block; }

/* Offcanvas Navigation */
.offcanvas-navigation .mobile-menu { overflow-y: auto; min-height: 165px; }
.offcanvas-navigation .mobile-menu > li { height: 100%; }
.offcanvas-navigation .mobile-menu > li > a span { position: relative; font-weight: 600; }
.offcanvas-navigation .mobile-menu li { position: relative; }
.offcanvas-navigation .mobile-menu li > .menu-expand {
    position: absolute;
    right: 0;
    top: 2px;
    width: 50px;
    height: 100%;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}
.offcanvas-navigation .mobile-menu li > .menu-expand i { display: inline-block; transition: transform 0.3s ease; }
.offcanvas-navigation .mobile-menu li a {
    font-size: 16px;
    font-weight: 400;
    display: block;
    padding: 10px 25px;
}
.offcanvas-navigation .mobile-menu li a .mm-text { display: block; }
.offcanvas-navigation .mobile-menu li .sub-menu li a { padding: 10px 35px; font-size: 16px; }
.mobile-menu .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    opacity: 0;
}
.mobile-menu .menu-open > .sub-menu {
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.3s ease-in, opacity 0.3s ease-in;
}

/* ------------------------------------------
   Footer
   ------------------------------------------ */
.hiraola-footer_area { background-color: #f9f7f2; }
.hiraola-footer_area .footer-top_area { padding: var(--section-py) var(--section-px); }
.hiraola-footer_area .footer-top_area .footer-widgets_info .footer-widgets_logo { padding-bottom: 25px; }
.hiraola-footer_area .footer-top_area .footer-widgets_info .widget-short_desc > p { margin-bottom: 0; }
.footer-bottom_area {
    border-top: 4px ridge var(--accent-gold);
    background-color: #28221a;
    color: #9a9a9a;
    forced-color-adjust: none;
}
.footer-bottom_area .footer-bottom_nav { padding: 30px 0 35px; }
@media (max-width: 767px) { .footer-bottom_area .footer-bottom_nav { padding: 16px 0 20px; } }
.footer-bottom_area .footer-bottom_nav .footer-links { padding: 0 40px 20px; }
.footer-bottom_area .footer-bottom_nav .footer-links > ul { text-align: center; }
.footer-bottom_area .footer-bottom_nav .footer-links > ul > li { display: inline-block; position: relative; }
.footer-bottom_area .footer-bottom_nav .footer-links > ul > li > a { color: #9a9a9a; line-height: 24px; letter-spacing: 0.3px; }
.footer-bottom_area .footer-bottom_nav .footer-links > ul > li::after { content: " | "; color: #9a9a9a; }
.footer-bottom_area .footer-bottom_nav .footer-links > ul > li:last-child::after { content: ""; }
.footer-bottom_area .footer-bottom_nav .footer-links > ul > li > a:hover { color: #ffffff; text-decoration: underline; }
.footer-bottom_area .footer-bottom_nav .copyright { text-align: center; }

/* Store list in footer */
.store-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 24px;
}
.store-list .store-item {
    background: #fff;
    border: 1px solid #e8d9c0;
    border-radius: 6px;
    padding: var(--card-padding);
    transition: all 0.3s ease;
    margin-bottom: 0;
}
.store-list .store-item:hover { border-color: var(--accent-gold); }
.store-list .store-details { margin: 0; }
.store-list .store-details dt.store-name { font-weight: 700; margin-bottom: 6px; font-size: 1rem; }
.store-list .store-details dt.store-name a { color: #8b5e2b; }
.store-list .store-details dt.store-name a:hover { color: #b8860b; }
.store-list .store-details dd { margin: 0 0 4px; font-size: 1rem; color: #595959; }
.store-list .store-phone { font-weight: 600; color: #8b5e2b; }
.store-list .store-phone:hover { color: #b8860b; }
.store-list .store-links { font-size: 1rem; }
.store-list .store-links a { color: #8b5e2b; text-decoration: underline; }
.store-list .store-links a:hover { color: #b8860b; }

@media (max-width: 991px) {
    .store-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 16px;
    }
}

@media (max-width: 575px) {
    .store-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .store-list .store-item {
        padding: 14px;
    }
}

/* ------------------------------------------
   Shipping Area
   ------------------------------------------ */
.hiraola-shipping_area .shipping-nav { border-bottom: 1px solid #e5e5e5; padding: 50px 0 50px; }
.hiraola-shipping_area .shipping-nav .shipping-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hiraola-shipping_area .shipping-nav .shipping-item .shipping-icon { padding-bottom: 10px; font-size: 42px; }
.hiraola-shipping_area .shipping-nav .shipping-item .shipping-content > h6 { margin-bottom: 0; padding-bottom: 10px; font-size: 16px; }
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .hiraola-shipping_area .shipping-nav [class*="col"]:nth-child(-n + 2) .shipping-item { padding-bottom: 25px; }
}
@media (max-width: 767px) {
    .hiraola-shipping_area .shipping-nav [class*="col"]:nth-child(-n + 3) .shipping-item { padding-bottom: 25px; }
}
section.hiraola-shipping_area { background: #f9f7f2 !important; }
.hiraola-shipping_area.mt-5 { margin-top: 0 !important; }
@media (max-width: 767px) {
    .hiraola-shipping_area.mt-12 { margin-top: 1.5rem; }
    .hiraola-shipping_area .shipping-nav { padding: 24px 0; }
}

/* ------------------------------------------
   Slider
   ------------------------------------------ */
.slider-with-category_menu { padding-top: 30px; }
@media (max-width: 575px) { .slider-with-category_menu { padding-top: 10px; } }
.slider-with-category_menu .container-fluid { padding: 0 3%; }
.hiraola-slider_area .main-slider .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hiraola-slider_area .main-slider .slick-prev { left: 10px; }
.hiraola-slider_area .main-slider .slick-next { right: 10px; }
.hiraola-slider_area .main-slider .slick-arrow:hover { background: rgba(0,0,0,0.5); }
.animation-style-bg {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    min-height: 385px;
}
@media (max-width: 890px) { .animation-style-bg { min-height: 300px; background-size: contain; } }
@media (max-width: 479px) { .animation-style-bg { min-height: 180px; background-size: contain; } }
.single-slide { position: relative; }
.single-slide .hiraola-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(154, 123, 46, 0.85);
    color: #fff;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
}

/* ------------------------------------------
   Price Board
   ------------------------------------------ */
.price-board-row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e8d9c0;
    background-color: #fff;
}
.price-board-row:last-of-type { border-bottom: none; }
.price-board-col {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 16px 8px;
    text-align: center;
    border-right: 1px solid #e8d9c0;
}
.price-board-col:last-child { border-right: none; }
.price-board-section {
    background-color: #fef8ee;
    padding: 8px 14px;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #e8d9c0;
    border-left: 4px solid var(--accent-gold);
}
.price-board-value { font-size: 30px; display: inline-block; font-weight: 900; line-height: 1; color: #e31b1b !important; letter-spacing: -0.5px; vertical-align: text-bottom; }
.price-board-section strong { color: #6b4e06; font-weight: 700; letter-spacing: 0.5px; display: inline-block; vertical-align: middle; font-size: 16px; }
.price-board-note { color: #7a5a10; margin-left: 8px; font-weight: normal; display: inline-block; font-size: 16px; }
.price-board-col .mb-1 { white-space: nowrap; }
.price-board-purity {
    display: inline-block;
    background: #9a6809;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 700;
    color: #fff;
    font-size: 16px;
    margin-right: 3px;
    vertical-align: text-bottom;
}
.price-board-label { display: inline-block; color: #333; font-weight: 700; font-size: 16px; vertical-align: text-bottom; line-height: 1.3; letter-spacing: -0.4px; }
.price-board-unit { display: inline-block; color: #595959; font-weight: normal; margin-left: 2px; font-size: 16px; vertical-align: text-bottom; }
.price-promo-box { background: #fff9f9; border: 1px dashed #d9534f; border-radius: 8px; text-align: center; }
.price-promo-title { font-weight: 600; font-size: 16px; }
.price-promo-badge { border-radius: 20px; font-size: 16px; }
.branch-list-title { font-weight: 600; font-size: 16px; }
.branch-select {
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
    color: #6b4e06;
    background-color: #fef8ee;
    border: 1px solid #e8d9c0;
    border-radius: 6px;
    cursor: pointer;
    appearance: auto;
}
.branch-select:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 1px;
}
/* Price store panel toggle */
.price-store-panel { display: none; }
.price-store-panel.price-panel-active { display: block; }

@media (max-width: 575px) {
    .price-board-col { padding: 12px 4px; }
    .price-board-section { padding: 8px 12px; }
    .price-board-label { letter-spacing: -0.5px; }
    .price-board-note { display: inline-block; margin-left: 6px; margin-top: 0; }
    .price-board-purity { padding: 0 3px; }
}

/* Price compare table */
.price-compare-table {
    width: 100%;
    background: #fff;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-right: 1px solid #e8d9c0;
    border-bottom: 1px solid #e8d9c0;
}
.price-compare-table thead th {
    background-color: #fef8ee;
    color: #6b4e06;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    font-size: 1rem;
}
.price-compare-table th,
.price-compare-table td {
    border: none !important;
    border-top: 1px solid #e8d9c0 !important;
    border-left: 1px solid #e8d9c0 !important;
    padding: 12px 16px;
}
.price-compare-table td { text-align: center; vertical-align: middle; font-size: 1rem; }
.price-compare-table td:first-child {
    background-color: #fef8ee;
    color: #6b4e06;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}
.price-compare-table td:first-child a { color: #6b4e06; }
.price-compare-table td:first-child a:hover { color: #9a6809; text-decoration: none; }

/* Price board cards (4-category layout) */
.price-board-card {
    background: #fff;
    border: 1px solid #e8d9c0;
    border-radius: 6px;
    overflow: hidden;
}
.price-board-card-title {
    background-color: var(--table-header-bg);
    border-bottom: 1px solid #e8d9c0;
    color: #6b4e06 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0;
    padding: 8px 12px;
}
.price-board-card-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}
.price-board-card-table tbody tr {
    border-bottom: 1px solid #f0ebe0;
}
.price-board-card-table tbody tr:last-child {
    border-bottom: none;
}
.price-board-card-table td {
    padding: 10px 12px;
    font-size: 1rem;
    text-align: center;
    border: none;
}
.price-board-card-table td:first-child {
    text-align: left;
    padding-left: 16px;
    font-weight: 600;
}
.price-board-card-table td:first-child a {
    color: #333;
    text-decoration: none;
}
.price-board-card-table td:first-child a:hover {
    color: #9a6809;
}
.price-board-card-table tfoot tr {
    background-color: var(--table-header-bg);
    border-top: 1px solid #e8d9c0;
}
.price-board-card-table tfoot th {
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #6b4e06;
    text-align: center;
}
.price-board-card-table tfoot th:first-child {
    text-align: left;
    padding-left: 16px;
}
@media (max-width: 575px) {
    .price-board-card-table td {
        padding: 8px 6px;
        font-size: 1rem;
    }
    .price-board-card-table tfoot th {
        padding: 6px 6px;
        font-size: 1rem;
    }
    .price-board-card-table td:first-child,
    .price-board-card-table tfoot th:first-child {
        padding-left: 10px;
    }
}

/* ------------------------------------------
   Home Content Area
   ------------------------------------------ */
.home-content_area { background: #f9f7f2; }
.home-section { padding: var(--section-py) 0; }
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-gold);
}
.home-section h3 { font-size: 1.1rem; font-weight: 600; color: #333; margin-bottom: 0.75rem; }
.home-section .price-board-card-title { margin: 0; }
.home-section p { font-size: 1rem; line-height: 1.8; color: #595959; margin-bottom: 0.75rem; }
@media (max-width: 767px) {
    .section-title { font-size: 1.25rem; }
    .home-section h3 { font-size: 1rem; }
    .home-section p { font-size: 1rem; }
    .home-section.mb-12 { margin-bottom: 1.5rem; }
}
/* Step number */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #9a6809;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-right: 8px;
    flex-shrink: 0;
}
.step-title { display: flex; align-items: center; margin-bottom: 0.5rem; }
.step-title h3 { margin-top: 0; margin-bottom: 0; }
.step-card {
    background: #fff;
    border: 1px solid #e8d9c0;
    border-radius: 6px;
    padding: var(--card-padding);
    transition: all 0.3s ease;
}
.step-card:hover { border-color: var(--accent-gold); }
/* Promise cards */
.promise-card {
    background: #fff;
    border: 1px solid #e8d9c0;
    border-radius: 6px;
    padding: var(--card-padding);
    margin-bottom: var(--space-md);
    transition: all 0.3s ease;
}
.promise-card:hover { border-color: var(--accent-gold); }
.promise-card h3 { color: #6b4e06; font-size: 1.05rem; margin-top: 0; margin-bottom: 0.5rem; }
.google-rating { color: #b85a0a; font-weight: 600; font-size: 1rem; }

/* ------------------------------------------
   QA Section — details/summary 手風琴
   ------------------------------------------ */
.qa-section { padding: var(--section-py) 0; }
.qa-intro { line-height: 1.8; color: #595959; margin-bottom: var(--space-lg); }
.qa-intro p { margin-bottom: var(--space-sm); }
.qa-item {
    background: #fff;
    border: 1px solid #e8d9c0;
    border-radius: 6px;
    margin-bottom: var(--space-sm);
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.qa-item:last-child { margin-bottom: 0; }
.qa-item:hover { border-color: var(--accent-gold); }
.qa-item[open] { border-color: var(--accent-gold); }
.qa-question {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: var(--card-padding);
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    line-height: 1.5;
    list-style: none;
}
.qa-question::-webkit-details-marker { display: none; }
.qa-question::marker { content: ""; }
.qa-question i.fa-question-circle { color: #9a6809; flex-shrink: 0; margin-top: 2px; }
.qa-q-num {
    flex-shrink: 0;
    background: #9a6809;
    color: #fff;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
}
.qa-question span { flex: 1; }
.qa-question::after {
    content: "\f078";
    font-family: FontAwesome;
    font-size: 0.75rem;
    color: #9a6809;
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.3s ease;
    margin-top: 4px;
}
.qa-item[open] > .qa-question::after { transform: rotate(180deg); }
.qa-answer {
    padding: 0 var(--card-padding) var(--card-padding);
    border-top: 1px solid #f0ebe0;
}
.qa-answer > div { padding-top: var(--space-md); }
.qa-answer p { color: #595959; line-height: 1.8; margin: 0 0 var(--space-sm); }
.qa-answer p:last-child { margin-bottom: 0; }
.qa-answer a { color: #9a6809; text-decoration: underline; }
.qa-answer a:hover { color: #7a5207; }

/* CTA */
.qa-cta { margin-top: var(--space-xl); padding: var(--space-lg); background: #f9f7f2; border-radius: 8px; text-align: center; }
.qa-cta p { color: #595959; margin-bottom: var(--space-md); }
.qa-cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: var(--space-md) 0;
}
.qa-cta-link {
    display: inline-block;
    padding: 6px 16px;
    background: #fef8ee;
    color: #6b4e06;
    border: 1px solid #e8d9c0;
    border-radius: 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.qa-cta-link:hover { background: #9a6809; color: #fff; border-color: #9a6809; }

/* Bootstrap collapse 相容（其他頁面可能仍使用） */
.collapse { display: none; visibility: visible !important; }
.collapse.show { display: block; }

/* ------------------------------------------
   Content Section (gold overrides)
   ------------------------------------------ */
.content-section {
    background-color: var(--white);
    border: 1px solid var(--bg-medium);
    border-radius: 8px;
    padding: 16px;
    scroll-margin-top: 16px;
}
.content-section h3 {
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 3px solid var(--accent-gold);
    text-align: left;
    scroll-margin-top: 20px;
}
.content-section h3 .text-danger { font-size: inherit; font-weight: inherit; }
.content-section .faq-item h4 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 16px;
    text-align: left;
}
.latest-price h3 { border-bottom: none; padding-bottom: 0; margin: 16px 0; }
.latest-price { margin-bottom: 20px; }
.latest-price .table {
    background: var(--white);
    border: 1px solid var(--accent-gold);
    text-align: center;
    width: 100%;
    margin: 0;
    font-size: 16px !important;
}
.latest-price .table th, .latest-price .table td { border: 1px solid var(--accent-gold) !important; padding: 16px; }
.latest-price .table th { background-color: var(--table-header-bg); font-weight: 600; border-bottom: none; }
@media (max-width: 768px) {
    .content-section { padding: 15px; }
    .latest-price .table { font-size: 16px !important; }
    .latest-price .table th, .latest-price .table td { padding: 10px; }
}
@media (max-width: 576px) {
    .content-section .faq-item h4 { font-size: 16px; }
}

/* Price update time */
.price-update-time { color: var(--text-light); margin: 16px 0; text-align: right; font-size: 16px; }
/* Price notes */
.price-notes {
    background-color: var(--bg-light);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--accent-gold);
    margin: 16px 0;
}
.price-notes ul { list-style: none; padding: 0; margin: 0; }
.price-notes li { margin-bottom: 16px; color: var(--text-light); font-size: 16px; }
.price-notes li:last-child { margin-bottom: 0; }

/* ------------------------------------------
   Advantages Grid
   ------------------------------------------ */
.advantages-section { padding: 16px; margin-bottom: 16px; }
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}
@media (max-width: 991px) { .advantages-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .advantages-grid { grid-template-columns: 1fr; } }
.advantage-item {
    text-align: center;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--accent-gold);
    transition: transform 0.3s ease;
}
.advantage-item h4 { margin-bottom: 16px; }
.advantage-item:hover { transform: translateY(-5px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }

/* FAQ item (overrides) */
.faq-item {
    background: #fff;
    padding: var(--card-padding);
    border-radius: 6px;
    margin-bottom: 16px;
    border: 1px solid #e8d9c0;
    transition: all 0.3s ease;
}
.faq-item:last-child { margin-bottom: 0; }
.faq-item:hover { border-color: var(--accent-gold); }
.faq-item h3 { color: #9a6809; font-size: 1rem; margin-top: 0; }

/* ------------------------------------------
   Chart Section
   ------------------------------------------ */
.chart-section {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, "Microsoft JhengHei", sans-serif;
    color: #333;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}
.chart-section * { box-sizing: border-box; }
.chart-section .controls { text-align: center; margin-bottom: 20px; }
.chart-section .control-group { margin-bottom: 15px; }
.chart-section .control-group strong { display: block; margin-bottom: 10px; color: #333; font-weight: 600; font-size: 16px; }
.chart-section .chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.chart-section .share-buttons-container { display: flex; gap: 10px; justify-content: center; margin: 20px auto; }
.chart-section .btn {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    user-select: none;
}
.chart-section .btn:active { opacity: 0.8; }
.chart-section .btn:disabled { background: #e9ecef; color: #595959; cursor: not-allowed; opacity: 0.6; }
.chart-section .btn.gold, .chart-section .btn.platinum { background: #f8f9fa; color: var(--text-dark); font-weight: 500; border: 1px solid var(--bg-medium); }
.chart-section .btn.gold:hover, .chart-section .btn.platinum:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }
.chart-section .btn.gold.active, .chart-section .btn.platinum.active { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }
.chart-section .btn.period { background: #f8f9fa; color: var(--text-dark); font-weight: 500; border: 1px solid var(--bg-medium); }
.chart-section .btn.period:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }
.chart-section .btn.period.active { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }
.chart-section .btn.share { background: #038438; color: white; font-weight: 500; border: 1px solid #038438; }
.chart-section .btn.share:hover { background: #007a00; border-color: #007a00; }
.chart-section .btn.copy { background: #2a6cb8; color: white; font-weight: 500; border: 1px solid #2a6cb8; }
.chart-section .btn.copy:hover { background: #1f5a9e; border-color: #1f5a9e; }
.chart-section .loading-overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.95); display: flex; justify-content: center; align-items: center; border-radius: 8px; }
.chart-section .loading-spinner { width: 50px; height: 50px; border: 4px solid #f3f3f3; border-top: 4px solid #007BFF; border-radius: 50%; animation: chart-spin 1s linear infinite; }
@keyframes chart-spin { to { transform: rotate(360deg); } }
.chart-section #chart-message { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 18px; color: #595959; font-weight: 500; }
@media (max-width: 768px) {
    .chart-section .chart-container { height: 350px; margin: 10px 0; }
    .chart-section .btn { padding: 8px 16px; font-size: 16px; margin: 3px; }
}
@media (max-width: 480px) {
    .chart-section .chart-container { height: 300px; margin: 8px 0; }
    .chart-section .btn { padding: 8px 14px; font-size: 16px; margin: 2px; }
}

/* Video section */
.video-section { margin: 20px 0; width: 100%; }
.video-section lite-youtube { width: 100% !important; max-width: 100% !important; }

/* Copy button states */
.copy-success { background-color: #28a745 !important; color: white !important; border-color: #28a745 !important; transition: all 0.3s ease; }
.copy-error { background-color: #dc3545 !important; color: white !important; border-color: #dc3545 !important; transition: all 0.3s ease; }

/* ------------------------------------------
   Product Pages
   ------------------------------------------ */
.prod-content-section { padding: var(--section-py) var(--section-px); margin-bottom: 0; }
.prod-content-section + .prod-content-section { padding-top: 5px; }
.prod-content-section:last-of-type { padding-bottom: 0; }
.prod-content-section h2 { font-size: 24px; font-weight: 700; color: #333; margin-bottom: var(--heading-mb); padding-bottom: var(--heading-pb); border-bottom: 2px solid var(--accent-gold); }
.prod-content-section h2:first-child { margin-top: 10px; }
.prod-content-section h3 { font-size: 20px; font-weight: 600; color: #333; margin-top: var(--space-xl); margin-bottom: var(--space-md); }
.prod-content-section p { line-height: 1.8; color: #595959; margin-bottom: var(--space-md); }
.prod-content-section ul { padding-left: var(--space-lg); margin-bottom: var(--space-md); }
.prod-content-section li { line-height: 1.8; color: #595959; margin-bottom: var(--space-xs); }
.hiraola-content_wrapper { padding: var(--section-py) var(--section-px); margin-bottom: 0; }
.branch-entrance { background: #f9f7f2; padding: var(--space-lg); border-radius: 0; margin: 0; text-align: center; }
.branch-entrance p { color: #595959; margin-bottom: var(--space-sm); }
.branch-entrance a { color: #9a6809; font-weight: 600; text-decoration: none; }
.branch-entrance a:hover { text-decoration: underline; }

/* ------------------------------------------
   Branch Section (store pages)
   ------------------------------------------ */
.branch-section { padding: var(--section-py) 0; }
.branch-info-list { list-style: none; padding: 0; }
.branch-info-list li { padding: 8px 0; display: flex; align-items: flex-start; }
.branch-info-list li i { margin-right: 10px; color: #9a6809; width: 20px; text-align: center; flex-shrink: 0; margin-top: 3px; }
.branch-cta { margin-top: 16px; }
.branch-cta a {
    display: inline-block;
    padding: 10px 24px;
    background: #9a6809;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}
.branch-cta a:hover { background: #7a5207; color: #fff !important; }

/* ------------------------------------------
   Blog / Article
   ------------------------------------------ */
.hiraola-blog-sidebar { margin-bottom: 30px; }
.hiraola-blog-sidebar h4 { font-size: 18px; font-weight: 700; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #e5e5e5; }
.hiraola-blog-archive li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.hiraola-blog-archive li:last-child { border-bottom: none; }
.hiraola-blog-archive li a { display: block; }
.blog-item .blog-meta-2 .day { font-size: 16px; color: #666; }
.blog-additional_information { line-height: 1.8; }
.blog-additional_information img { max-width: 100%; height: auto; margin: 10px 0; }

/* ------------------------------------------
   News Section
   ------------------------------------------ */
.news-section { padding: var(--section-py) 0; }
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e8d9c0;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.news-card:hover { border-color: var(--accent-gold); }
.news-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #9a6809;
    color: #fff;
    padding: 16px 20px;
    min-width: 80px;
    text-decoration: none;
    text-align: center;
}
.news-date-month { font-size: 0.875rem; font-weight: 600; }
.news-date-day { font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.news-card-content {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-card-content h2 { font-size: 1.1rem; font-weight: 600; color: #333; margin: 0 0 8px; line-height: 1.5; }
.news-card-content h2 a { color: #333; text-decoration: none; }
.news-card-content h2 a:hover { color: #9a6809; }
.news-card-link {
    font-size: 0.9375rem;
    color: #9a6809;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}
.news-card-link:hover { gap: 8px; color: #7a5207; }
@media (min-width: 992px) {
    .news-card-date { padding: 20px 28px; min-width: 100px; }
    .news-date-month { font-size: 1rem; }
    .news-date-day { font-size: 2rem; }
    .news-card-content { padding: 20px 28px; }
    .news-card-content h2 { font-size: 1.25rem; }
}

/* ------------------------------------------
   Page Article (news detail)
   ------------------------------------------ */
.page-section { padding: var(--section-py) 0; }

/* Sidebar */
.page-sidebar { display: flex; flex-direction: column; gap: 16px; }
.page-sidebar-card {
    background: #fff;
    border: 1px solid #e8d9c0;
    border-radius: 6px;
    padding: 16px;
}
.page-sidebar-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #6b4e06;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-gold);
}
.page-sidebar-date {
    font-size: 0.9375rem;
    color: #595959;
    margin: 0 0 8px;
}
.page-sidebar-prices {
    list-style: none;
    padding: 0;
    margin: 0;
}
.page-sidebar-prices li { border-bottom: 1px solid #f0ebe0; }
.page-sidebar-prices li:last-child { border-bottom: none; }
.page-sidebar-prices a {
    display: block;
    padding: 8px 4px;
    color: #595959;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.page-sidebar-prices a:hover { color: #9a6809; padding-left: 8px; }
.page-sidebar-prices strong { font-size: 0.9375rem; }
.page-sidebar-more {
    display: block;
    margin-top: 12px;
    color: #9a6809;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
}
.page-sidebar-more:hover { color: #7a5207; }
.page-sidebar-chart {
    text-align: center;
    margin: 8px 0;
}
.page-sidebar-chart img { max-width: 100%; height: auto; }
.page-sidebar-note {
    font-size: 0.8125rem;
    color: #999;
    margin: 4px 0 0;
    line-height: 1.5;
}
.page-sidebar-note a { color: #9a6809; }

/* Article */
.page-article {
    background: #fff;
    border: 1px solid #e8d9c0;
    border-radius: 6px;
    padding: 24px;
}
.page-article-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #e8d9c0; }
.page-article-date {
    display: inline-block;
    background: #fef8ee;
    color: #6b4e06;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.page-article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.4;
}
.page-article-body {
    color: #595959;
    line-height: 1.8;
    margin-bottom: 24px;
}
.page-article-body img { max-width: 100%; height: auto; margin: 10px 0; }
.page-article-body p { margin-bottom: 0.75rem; }
.page-article-body a { color: #9a6809; text-decoration: underline; }

/* Article footer */
.page-article-footer {
    padding-top: 16px;
    border-top: 1px solid #e8d9c0;
}
.page-article-tags {
    margin-bottom: 16px;
    font-size: 0.9375rem;
    color: #595959;
}
.page-article-tags a {
    display: inline-block;
    padding: 3px 10px;
    background: #fef8ee;
    color: #6b4e06;
    border: 1px solid #e8d9c0;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    margin: 4px 4px 4px 0;
    transition: all 0.2s ease;
}
.page-article-tags a:hover { background: #9a6809; color: #fff; border-color: #9a6809; }
.page-article-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
@media (max-width: 991px) {
    .page-article { padding: 16px; }
    .page-article-title { font-size: 1.25rem; }
}
/* ------------------------------------------
   Table Responsive
   策略：保持完整語義化 HTML 結構供搜尋引擎爬取，
   僅用 CSS 處理行動裝置水平捲動與首欄固定。
   ------------------------------------------ */
.table-wrapper { margin-bottom: 0; }
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
/* 首欄固定（金價歷史表格） */
.table-responsive table th:first-child,
.table-responsive table td:first-child {
    position: sticky;
    left: 0;
    background: #ffffff;
    z-index: 1;
    box-shadow: 2px 0 4px -2px rgba(0,0,0,0.1);
}
.table-responsive table thead th:first-child { background: #fef8ee; z-index: 2; }
.price-compare-table thead th:first-child { z-index: 2; background: #fef8ee !important; }
/* 斑馬紋：奇數行淡暖色，首欄維持原色 */
.price-compare-table tbody tr:nth-of-type(even) td { background-color: #fdf5e6; }
.price-compare-table tbody tr:nth-of-type(even) td:first-child { background-color: #fef8ee; }
.price-compare-table caption {
    caption-side: bottom;
    text-align: left;
    padding: 10px 12px;
    font-size: 1rem;
    color: #595959;
}
@media (max-width: 767px) {
    .price-compare-table th,
    .price-compare-table td {
        padding: 10px 8px;
    }
}

/* Bootstrap embed-responsive replacement */
.gw-embed-responsive { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; }
.gw-embed-responsive::before { display: block; content: ""; }
.gw-embed-16by9::before { padding-top: 56.25%; }
.gw-embed-responsive .gw-embed-item,
.gw-embed-responsive iframe,
.gw-embed-responsive embed,
.gw-embed-responsive object,
.gw-embed-responsive video { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Bootstrap .table replacement */
.gw-table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.gw-table th, .gw-table td { padding: 0.75rem; vertical-align: top; border-top: 1px solid #dee2e6; }
.gw-table thead th { vertical-align: bottom; border-bottom: 2px solid #dee2e6; }
.gw-table-bordered { border: 1px solid #dee2e6; }
.gw-table-bordered th, .gw-table-bordered td { border: 1px solid #dee2e6; }
.gw-table-striped tbody tr:nth-of-type(odd) { background-color: rgba(0, 0, 0, 0.02); }
.gw-table-sm th, .gw-table-sm td { padding: 0.3rem 0.5rem; }
/* ------------------------------------------
   Sidebar Categories
   ------------------------------------------ */
.hiraola-sidebar-catagories_area .hiraola-sidebar_categories {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 10px 25px;
    margin-bottom: 10px;
}
.hiraola-sidebar-catagories_area .hiraola-sidebar_categories .hiraola-categories_title {
    border-bottom: 2px solid #e5e5e5;
    position: relative;
}
.hiraola-sidebar-catagories_area .hiraola-sidebar_categories .hiraola-categories_title:before {
    content: "";
    background-color: var(--accent-gold);
    width: 70px;
    height: 2px;
    position: absolute;
    bottom: -2px;
    left: 0;
}
.hiraola-sidebar-catagories_area .hiraola-sidebar_categories .hiraola-categories_title h5 {
    text-transform: uppercase;
    margin-bottom: 0;
    padding-bottom: 10px;
}
.hiraola-sidebar-catagories_area .btn-outline-secondary:hover,
.hiraola-sidebar-catagories_area .btn-outline-secondary:focus {
    background-color: #9a6809 !important;
    border-color: #9a6809 !important;
    color: #fff !important;
}

/* ------------------------------------------
   Category Navigation
   ------------------------------------------ */
/* 手機：水平捲動標籤 */
.cat-tags {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    padding: 10px 0;
    scrollbar-width: none;
}
.cat-tags::-webkit-scrollbar { display: none; }
.cat-tags ul {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
}
.cat-tags li { flex-shrink: 0; }
.cat-tags a {
    display: inline-block;
    padding: 10px 18px;
    background: #fef8ee;
    color: #6b4e06;
    border: 1px solid #e8d9c0;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 44px;
    line-height: 1.4;
}
.cat-tags a:hover {
    background: #9a6809;
    color: #fff;
    border-color: #9a6809;
}
.cat-tags a:active {
    background: #7a5207;
    color: #fff;
    border-color: #7a5207;
}
.cat-tags a[aria-current="category"] {
    background: #9a6809;
    color: #fff;
    border-color: #9a6809;
}
/* 桌面：垂直側邊欄 */
.cat-sidebar {
    background: #fff;
    border: 1px solid #e8d9c0;
    border-radius: 6px;
    padding: 16px;
}
.cat-sidebar h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #6b4e06;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-gold);
}
.cat-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cat-sidebar li { border-bottom: 1px solid #f0ebe0; }
.cat-sidebar li:last-child { border-bottom: none; }
.cat-sidebar a {
    display: block;
    padding: 8px 4px;
    color: #595959;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.cat-sidebar a:hover {
    color: #9a6809;
    padding-left: 8px;
}
.cat-sidebar a[aria-current="category"] {
    color: #9a6809;
    font-weight: 700;
    border-left: 3px solid var(--accent-gold);
    padding-left: 8px;
}

/* ------------------------------------------
   Product Grid & Card
   ------------------------------------------ */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
.product-card {
    background: #fff;
    border: 1px solid #e8d9c0;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.product-card:hover { border-color: var(--accent-gold); }
.product-card-img { display: block; }
.product-card-img img {
    width: 100%;
    height: auto;
}
.product-card-info {
    padding: 12px 16px;
}
.product-card-info h6 {
    font-weight: 600;
    margin: 0 0 8px;
    font-size: 1rem;
}
.product-card-info h6 a { color: #333; text-decoration: none; }
.product-card-info h6 a:hover { color: #9a6809; }
.product-card-info p {
    margin: 4px 0;
    color: #595959;
    font-size: 0.9375rem;
    line-height: 1.6;
}
.select-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-gold);
}

/* ------------------------------------------
   Product Detail
   ------------------------------------------ */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    background: #fff;
    padding: 24px;
    border-radius: 6px;
}
@media (min-width: 768px) {
    .product-detail-grid { grid-template-columns: 2fr 1fr; }
}
.product-detail-main-img {
    border: 1px solid #e8d9c0;
    border-radius: 4px;
}
.product-detail-main-img img { width: 100%; height: auto; }
.product-detail-gallery { margin-top: 16px; padding: 0 30px; }
.product-detail-gallery .slick-list { margin: 0 -8px; }
.product-detail-gallery .slick-list .slick-slide { border: 1px solid #e8d9c0; border-radius: 4px; margin: 0 8px; }
.product-detail-gallery .slick-list .slick-slide img { width: 100%; }
.product-detail-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}
.product-detail-info .product-spec {
    margin: 6px 0;
    color: #595959;
    font-size: 1rem;
}
.product-detail-info .product-meta {
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid #e8d9c0;
    list-style: none;
}
.product-detail-info .product-meta li {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}
.btn-back {
    display: inline-block;
    padding: 10px 24px;
    background: #9a6809;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 16px;
    transition: background 0.3s;
}
.btn-back:hover { background: #7a5207; color: #fff !important; }
.product-detail-social {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}
.product-detail-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: opacity 0.3s;
}
.product-detail-social .social-facebook { background: #3b5998; }
.product-detail-social .social-line { background: #00b900; }
.product-detail-social .social-email { background: #9a6809; }
.product-detail-social a:hover { opacity: 0.8; }
/* Product spec/description */
.product-detail-spec {
    margin-top: 24px;
    background: #fff;
    border-radius: 6px;
    padding: 20px;
}
.product-detail-spec h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* ------------------------------------------
   News / Media Reports Page
   ------------------------------------------ */
.news-hero {
    background: linear-gradient(135deg, #fef8ee 0%, #fdf5e6 100%);
    border-bottom: 3px solid #e8d9c0;
    padding: 2.5rem 0 2rem;
    text-align: center;
}
.news-hero__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 .5rem;
    line-height: 1.5;
}
.news-hero__title em { color: var(--primary-color); font-style: normal; }
.news-media-section { padding: 2.5rem 0; }
.news-video-card {
    background: #fff;
    border: 1px solid #e8d9c0;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}
.news-video-card:hover { border-color: var(--accent-gold); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.news-video-card__media {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}
.news-video-card__media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.news-video-card__body {
    padding: var(--card-padding) var(--card-padding) 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-video-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 .75rem;
    line-height: 1.6;
    flex: 1;
}
.news-video-card__title a { color: inherit; text-decoration: none; }
.news-video-card__title a:hover { color: var(--primary-color); }
.news-video-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color .2s ease, gap .2s ease;
}
.news-video-card__cta:hover { color: #7a5207; gap: 10px; }
.news-video-card__cta i { font-size: .75rem; }
.news-trust-banner {
    background: #fef8ee;
    border-top: 2px solid #e8d9c0;
    border-bottom: 2px solid #e8d9c0;
    padding: 2rem 0;
    text-align: center;
}
.news-trust-banner__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 2;
}
@media (max-width: 767px) {
    .news-hero { padding: 1.5rem 0 1.25rem; }
    .news-hero__title { font-size: 1.35rem; }
    .news-trust-banner__title { font-size: 1.05rem; }
    .news-video-card__body { padding: .75rem .875rem 1rem; }
    .news-video-card__title { font-size: .9375rem; }
}
@media (max-width: 575px) {
    .news-video-card__media { padding-top: 56.25%; }
}

/* ------------------------------------------
   Misc Utility
   ------------------------------------------ */
.text-danger { color: #d42020 !important; }
.price-arrow { border-color: var(--accent-gold) var(--transparent) var(--transparent) var(--transparent); }
.price-arrow.warning { border-color: var(--warning-color) var(--transparent) var(--transparent) var(--transparent); }

/* Scrollbar */
::-webkit-scrollbar-thumb { background-color: var(--primary-color); }
::-webkit-scrollbar-track { background-color: var(--bg-light); }

/* ------------------------------------------
   Page TOC (頁內目錄)  — A4
   ------------------------------------------ */
.page-toc {
    margin: 1.25rem 0 1.75rem;
    padding: 1rem 1.25rem;
    background: #fafaf6;
    border: 1px solid #ece6d5;
    border-left: 4px solid var(--primary-color, #9a6809);
    border-radius: 8px;
}
.page-toc.branch-toc {
    margin: 0 auto 1.5rem;
    border-radius: 0;
    border-left: 0;
    border-top: 1px solid #ece6d5;
    border-bottom: 1px solid #ece6d5;
    padding: 1.25rem 0;
}
.page-toc-title {
    margin: 0 0 .5rem !important;
    padding: 0 !important;
    font-size: 1rem !important;
    color: #6b4e06 !important;
    border-bottom: none !important;
    font-weight: 700;
}
.page-toc-list {
    margin: 0;
    padding-left: 1.25rem;
    list-style: decimal;
    line-height: 1.85;
}
.page-toc-list li { margin: 0; }
.page-toc-list a {
    color: var(--primary-color, #9a6809);
    text-decoration: none;
    font-size: .95rem;
}
.page-toc-list a:hover { text-decoration: underline; color: var(--primary-hover, #7a5207); }

/* qa.php 跳轉到 details 時的視覺強調 */
.qa-item:target > summary {
    background: #fff7e1;
    border-left: 3px solid var(--primary-color, #9a6809);
}

@media (max-width: 575px) {
    .page-toc { padding: .875rem 1rem; margin: 1rem 0 1.5rem; }
    .page-toc-list a { font-size: .9rem; }
}

/* ------------------------------------------
   Price unit toggle (每錢/每克切換)  — A6
   ------------------------------------------ */
.price-unit-toggle {
    display: inline-flex;
    gap: 0;
    margin: 0 0 .75rem;
    padding: 3px;
    background: #f0e7d2;
    border-radius: 6px;
    align-items: center;
}
.price-unit-toggle-label {
    font-size: .9rem;
    color: #6b4e06;
    margin-right: .5rem;
    padding-left: .5rem;
    font-weight: 600;
}
.price-unit-btn {
    padding: 6px 14px;
    border: 0;
    background: transparent;
    color: #6b4e06;
    font-size: .9rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background .15s ease;
}
.price-unit-btn:hover { background: rgba(255,255,255,.5); }
.price-unit-btn.is-active {
    background: var(--primary-color, #9a6809);
    color: #fff;
}
.price-unit-btn:focus-visible {
    outline: 2px solid var(--primary-color, #9a6809);
    outline-offset: 1px;
}

/* ------------------------------------------
   Reviews page (六店客戶評論)  — M-09 紅線 7、11 修正
   ------------------------------------------ */
.rating-box {
    background: #faf7f0;
    border: 1px solid #ece6d5;
    border-radius: 10px;
    padding: 22px 18px;
    margin: 20px 0 28px;
    text-align: center;
}
.rating-box .rating-score {
    font-size: 2.6rem;
    font-weight: 700;
    color: #b8450a;
    line-height: 1;
}
.rating-box .rating-stars {
    color: #f5a623;
    font-size: 1.3rem;
    letter-spacing: 3px;
    margin: 6px 0 8px;
}
.rating-box .rating-count {
    color: #595959;
    font-size: 0.98rem;
}
.rating-box .rating-note {
    font-size: 0.9rem;
    color: #767676;
    margin-top: 10px;
}
.rating-box .rating-note a {
    color: var(--primary-color, #9a6809);
    text-decoration: underline;
}

.reviews-list {
    margin: 20px 0;
}
.review-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 14px;
}
.review-card .review-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.review-card .review-author {
    font-weight: 600;
    color: #333;
    font-size: 0.98rem;
}
.review-card .review-date {
    color: #999;
    font-size: 0.85rem;
}
.review-card .review-stars {
    color: #f5a623;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.review-card .review-text {
    color: #555;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.review-card .review-image {
    margin-top: 14px;
    text-align: center;
}
.review-card .review-image img {
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    border-radius: 8px;
    aspect-ratio: auto;
}

/* 預設前 12 則顯示，其餘隱藏（SSR 全寫入 + CSS 隱藏，SEO 友善） */
.reviews-list.collapsed .review-card:nth-of-type(n+13) {
    display: none;
}

.reviews-toggle-btn {
    display: block;
    margin: 18px auto 28px;
    padding: 11px 26px;
    background: #fff;
    border: 1px solid var(--primary-color, #9a6809);
    color: var(--primary-color, #9a6809);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    transition: background .15s ease;
}
.reviews-toggle-btn:hover {
    background: #faf7f0;
}
.reviews-toggle-btn:focus-visible {
    outline: 2px solid var(--primary-color, #9a6809);
    outline-offset: 2px;
}

.reviews-cta {
    margin-top: 28px;
    padding: 18px 20px;
    background: #f9f7f2;
    border-radius: 8px;
    text-align: center;
}
.reviews-cta a {
    color: var(--primary-color, #9a6809);
    font-weight: 600;
}

@media (max-width: 575px) {
    .rating-box { padding: 18px 14px; }
    .rating-box .rating-score { font-size: 2.2rem; }
    .review-card { padding: 16px; }
}

/* ============================================================
   分店頁面美化（2026-06 階段 2-5~2-9）
   ============================================================ */

/* ---------- 通用：分店 hero 區（index.php H1 上方）---------- */
.branch-hero {
    position: relative;
    padding: 36px 0 28px;
    background:
        linear-gradient(180deg, #fbf8f1 0%, #f5ede0 100%);
    border-bottom: 1px solid #e8dcc4;
    overflow: hidden;
}
.branch-hero::before {
    content: "";
    position: absolute;
    top: 0; right: -40px; bottom: 0; width: 240px;
    background: radial-gradient(ellipse at center, rgba(196, 154, 32, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.branch-hero .branch-hero-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--primary-color);
    letter-spacing: 4px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--accent-gold);
}
.branch-hero h1 {
    font-family: "Noto Serif TC", "PMingLiU", "Microsoft JhengHei", serif;
    font-size: 1.85rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.4;
    letter-spacing: 1px;
}
.branch-hero .branch-hero-desc {
    max-width: 760px;
    color: #4d4d4d;
    line-height: 1.85;
    margin: 0;
}
@media (min-width: 768px) {
    .branch-hero { padding: 56px 0 44px; }
    .branch-hero h1 { font-size: 2.3rem; }
}

/* ---------- 分店資訊清單（地址/電話/營業時間 卡片化）---------- */
.branch-info-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 576px) {
    .branch-info-list { grid-template-columns: repeat(2, 1fr); }
}
.branch-info-list li {
    background: #fff;
    border: 1px solid #ece6d5;
    border-left: 3px solid var(--accent-gold);
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.branch-info-list li:hover {
    border-left-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(154, 104, 9, 0.08);
}
.branch-info-list li i {
    color: var(--primary-color);
    margin-right: 8px;
}
.branch-info-list li strong {
    color: #1a1a1a;
    margin-right: 4px;
}
.branch-info-list li a {
    color: var(--primary-color);
    text-decoration: none;
}
.branch-info-list li a:hover {
    text-decoration: underline;
}

/* ---------- 分店 H2 標題（與根層 .section-title 區隔）---------- */
.branch-section h2 {
    font-family: "Noto Serif TC", "PMingLiU", "Microsoft JhengHei", serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 12px;
    margin: 32px 0 24px;
    letter-spacing: 0.5px;
}
.branch-section h2::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 48px; height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
    border-radius: 2px;
}

.branch-section h3 {
    font-family: "Noto Serif TC", "PMingLiU", "Microsoft JhengHei", serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2a2a2a;
    margin: 24px 0 12px;
    padding-left: 12px;
    border-left: 3px solid var(--accent-gold);
}

/* ---------- 分店 FAQ 摘錄卡（在 index.php 的 .faq-excerpt）---------- */
.faq-excerpt {
    background: #fff;
    border: 1px solid #ece6d5;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    line-height: 1.85;
    color: #4d4d4d;
    transition: border-color .2s ease, transform .2s ease;
}
.faq-excerpt:hover {
    border-color: var(--accent-gold);
    transform: translateY(-1px);
}
.faq-excerpt strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.02rem;
    margin-bottom: 6px;
}

/* ---------- 分店服務項目清單（強化 ul）---------- */
.branch-section ul:not(.branch-info-list):not(.branch-toc):not(.page-toc-list):not(.faq-list):not(.no-decor) {
    list-style: none;
    padding-left: 0;
}
.branch-section ul:not(.branch-info-list):not(.branch-toc):not(.page-toc-list):not(.faq-list):not(.no-decor) li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    line-height: 1.75;
}
.branch-section ul:not(.branch-info-list):not(.branch-toc):not(.page-toc-list):not(.faq-list):not(.no-decor) li::before {
    content: "◆";
    position: absolute;
    left: 4px;
    top: 0;
    color: var(--accent-gold);
    font-size: 0.7rem;
    line-height: 1.75;
}

/* ---------- 分店 page-toc 強化 ---------- */
.branch-toc {
    background: #fbf8f1;
    border-top: 1px solid #e8dcc4;
    border-bottom: 1px solid #e8dcc4;
    padding: 16px 0;
    margin: 0;
}
.branch-toc .page-toc-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 8px;
    letter-spacing: 2px;
}
.branch-toc .page-toc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.92rem;
}
.branch-toc .page-toc-list a {
    color: #4d4d4d;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.branch-toc .page-toc-list a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--accent-gold);
}

/* ---------- 分店圖片美化 ---------- */
.branch-section img.img-fluid {
    box-shadow: 0 4px 16px rgba(74, 50, 22, 0.12);
    border-radius: 10px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.branch-section img.img-fluid:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(74, 50, 22, 0.18);
}

/* ---------- 分店間距節奏 ---------- */
.branch-section {
    padding: 32px 0;
}
.branch-section + .branch-section {
    border-top: 1px solid #f0ebe0;
}
@media (min-width: 768px) {
    .branch-section {
        padding: 44px 0;
    }
}

/* ============================================================
   階段 2-6 分店 store.php 美化（CSS-only）
   ============================================================ */

/* ---------- 品牌故事 / 客群與交易特色：襯紙樣式 ---------- */
.store-about-section {
    padding: 36px 0;
    position: relative;
}
.store-about-section h2 {
    font-family: "Noto Serif TC", "PMingLiU", "Microsoft JhengHei", serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 12px;
    margin: 0 0 24px;
    letter-spacing: 0.5px;
}
.store-about-section h2::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 48px; height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
    border-radius: 2px;
}
.store-about-section p {
    line-height: 2;
    color: #3a3a3a;
    margin-bottom: 16px;
    text-align: justify;
}
.store-about-section p:last-of-type {
    margin-bottom: 0;
}
.store-about-section p:first-of-type {
    font-size: 1.05rem;
    color: #2a2a2a;
}
@media (min-width: 768px) {
    .store-about-section { padding: 56px 0; }
}

/* ---------- 四項堅持 promise-list 卡片化 ---------- */
.promise-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 768px) {
    .promise-list { grid-template-columns: repeat(2, 1fr); }
}
.promise-list > li {
    background: #fff;
    border: 1px solid #ece6d5;
    border-top: 3px solid var(--accent-gold);
    border-radius: 8px;
    padding: 22px 24px;
    line-height: 1.85;
    color: #3a3a3a;
    transition: border-top-color .2s ease, box-shadow .2s ease, transform .2s ease;
    list-style: none;
}
.promise-list > li::before {
    display: none !important;
}
.promise-list > li:hover {
    border-top-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(154, 104, 9, 0.1);
    transform: translateY(-2px);
}
.promise-list > li > strong:first-child {
    display: block;
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e8dcc4;
    letter-spacing: 0.3px;
}
.promise-list > li > strong:first-child::first-letter {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--accent-gold);
    margin-right: 2px;
}
/* 內嵌 ul（精確條件三點） */
.promise-list > li ul {
    list-style: disc;
    margin: 6px 0 4px 22px !important;
    padding-left: 0 !important;
}
.promise-list > li ul li {
    margin-bottom: 6px !important;
    padding-left: 0 !important;
    line-height: 1.75;
    font-size: 0.95rem;
    color: #4a4a4a;
}
.promise-list > li ul li::before {
    display: none !important;
}
.promise-list > li p {
    margin: 6px 0 !important;
    color: #4a4a4a;
}

/* ---------- 「銀樓、當鋪、銀行黃金存摺怎麼選」連結卡 ---------- */
.branch-section a[href*="co.php"] {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    padding: 2px 0;
    border-bottom: 1px solid var(--accent-gold);
    transition: color .2s ease;
}
.branch-section a[href*="co.php"]:hover {
    color: #6b4807;
}
.branch-section a[href*="co.php"]::after {
    content: " →";
    transition: margin-left .2s ease;
}
.branch-section a[href*="co.php"]:hover::after {
    margin-left: 4px;
}

/* ============================================================
   階段 2-7 分店 price.php 美化（CSS-only）
   ============================================================ */

/* ---------- 即時牌價區 ---------- */
.branch-section > .container > p:first-of-type {
    color: #4a4a4a;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

/* ---------- 單位切換按鈕 ---------- */
.price-unit-toggle {
    display: inline-flex;
    align-items: center;
    background: #fbf8f1;
    border: 1px solid #ece6d5;
    border-radius: 24px;
    padding: 4px;
    margin: 16px 0 20px;
}
.price-unit-toggle-label {
    font-size: 0.88rem;
    color: #6a6a6a;
    margin: 0 12px 0 8px;
}
.price-unit-btn {
    background: transparent;
    border: none;
    color: #6a6a6a;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.price-unit-btn:hover {
    color: var(--primary-color);
}
.price-unit-btn.is-active {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}
.price-unit-btn:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* ---------- formula-box 計算公式區 ---------- */
.formula-box {
    background: linear-gradient(135deg, #fbf8f1 0%, #f5ede0 100%);
    border: 1px solid #e8dcc4;
    border-left: 4px solid var(--accent-gold);
    border-radius: 8px;
    padding: 18px 22px;
    margin: 12px 0 20px;
    line-height: 1.8;
}
.formula-box p:first-child strong {
    color: var(--primary-color);
    font-family: "Noto Serif TC", serif;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}
.formula-box p {
    margin: 6px 0;
    color: #3a3a3a;
}
.formula-box .k-table {
    width: 100%;
    margin-top: 12px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}
.formula-box .k-table th,
.formula-box .k-table td {
    padding: 8px 12px;
    border: 1px solid #ece6d5;
    text-align: center;
}
.formula-box .k-table th {
    background: rgba(196, 154, 32, 0.12);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}
.formula-box .k-table td {
    color: #3a3a3a;
    font-size: 0.92rem;
}

/* ---------- 店長觀察區（taipei 民生店到店黃金回收觀察）---------- */
.branch-section:has(h2:nth-of-type(1)) p {
    line-height: 2;
    color: #3a3a3a;
}
.branch-section h2[id$="-observation"],
.branch-section h2:last-of-type {
    /* 觀察區 H2 已自動套用 .branch-section h2 樣式 */
}

/* 將「觀察」H2 後的 p 改為引述體 */
.branch-section .container > h2 + p,
.branch-section .container > h2 ~ p {
    line-height: 2;
    color: #3a3a3a;
    text-align: justify;
    margin-bottom: 16px;
}

/* ---------- price.php 底部跨頁連結區（前次階段加的）---------- */
.branch-section[style*="background:#f9f7f2"] p:has(> a[href*="gold.php"]),
.branch-section .container > p > a[href*="gold.php"] {
    /* 內部連結強化 */
}
.branch-section a[href*="gold.php"]:not(.gold-calc-cta a),
.branch-section a[href*="qa.php"]:not(.gold-calc-cta a) {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}
.branch-section a[href*="gold.php"]:hover,
.branch-section a[href*="qa.php"]:hover {
    border-bottom-color: var(--accent-gold);
}

/* ============================================================
   階段 2-8 分店 faq.php 美化（CSS-only，作用於既有 qa-accordion）
   ============================================================ */

.qa-accordion {
    max-width: 920px;
    margin: 24px auto 0;
}
.qa-accordion #accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.qa-accordion .qa-card {
    background: #fff;
    border: 1px solid #ece6d5;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.qa-accordion .qa-card:hover {
    border-color: var(--accent-gold);
}
.qa-accordion .qa-card.actives {
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(154, 104, 9, 0.08);
}
.qa-accordion .qa-card-header {
    background: transparent;
    padding: 0;
    border: none;
}
.qa-accordion .qa-card-header h5 {
    margin: 0;
}
.qa-accordion .qa-card-header h5 > a {
    display: block;
    padding: 16px 22px 16px 18px;
    color: #2a2a2a;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.6;
    position: relative;
    transition: color .2s ease, background .2s ease;
}
.qa-accordion .qa-card-header h5 > a:hover {
    color: var(--primary-color);
    background: #fbf8f1;
}
.qa-accordion .qa-card-header h5 > a > i.fa-question-circle {
    color: var(--accent-gold);
    margin-right: 10px;
    font-size: 1.1rem;
}
.qa-accordion .qa-card-header h5 > a::after {
    content: "\f078";  /* fa-chevron-down */
    font-family: FontAwesome;
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
    font-size: 0.8rem;
    transition: transform .3s ease;
}
.qa-accordion .qa-card-header h5 > a.collapsed::after {
    transform: translateY(-50%) rotate(-90deg);
}
.qa-accordion .qa-card-body {
    padding: 0 22px 18px 50px;
    color: #4a4a4a;
    line-height: 1.9;
    text-align: justify;
}
.qa-accordion .collapse {
    transition: max-height .35s ease;
}
@media (max-width: 575px) {
    .qa-accordion .qa-card-header h5 > a {
        padding: 14px 42px 14px 16px;
        font-size: 0.98rem;
    }
    .qa-accordion .qa-card-body {
        padding: 0 18px 16px 42px;
    }
}

/* faq.php 底部回連卡 */
.branch-section > .container > div[style*="background:#f9f7f2"] {
    border-radius: 10px !important;
    background: linear-gradient(135deg, #fbf8f1, #f5ede0) !important;
    border: 1px solid #ece6d5;
    margin-top: 32px !important;
}
.branch-section > .container > div[style*="background:#f9f7f2"] p {
    margin: 8px 0;
    color: #4a4a4a;
}
.branch-section > .container > div[style*="background:#f9f7f2"] a {
    border-bottom: 1px solid var(--accent-gold);
    transition: color .2s ease;
}

/* ============================================================
   階段 2-9 分店 reviews.php 美化（強化既有 CSS）
   ============================================================ */

/* ---------- rating-box 強化（既有 CSS 之上覆寫）---------- */
.branch-section > .container > .rating-box {
    background: linear-gradient(135deg, #fbf8f1 0%, #f5ede0 100%);
    border: 1px solid #e8dcc4;
    border-radius: 12px;
    padding: 32px 28px;
    margin: 24px auto 32px;
    text-align: center;
    max-width: 720px;
    box-shadow: 0 2px 8px rgba(74, 50, 22, 0.06);
}
.rating-box .rating-score {
    font-family: "Noto Serif TC", "PMingLiU", "Microsoft JhengHei", serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.rating-box .rating-stars {
    color: #f5a623;
    font-size: 1.4rem;
    letter-spacing: 4px;
    margin-bottom: 8px;
}
.rating-box .rating-count {
    color: #4a4a4a;
    font-size: 0.95rem;
    margin-bottom: 14px;
}
.rating-box .rating-note {
    color: #3a3a3a;
    font-size: 0.95rem;
    line-height: 1.85;
    margin: 8px 0;
    text-align: justify;
    text-align-last: center;
}
.rating-box .rating-note a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-gold);
}

/* ---------- review-card 強化 ---------- */
.reviews-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
@media (min-width: 768px) {
    .reviews-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
.review-card {
    background: #fff;
    border: 1px solid #ece6d5;
    border-radius: 10px;
    padding: 20px 22px;
    position: relative;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.review-card::before {
    content: "\201C";
    position: absolute;
    top: 8px;
    right: 18px;
    font-family: "Noto Serif TC", serif;
    font-size: 3rem;
    color: rgba(196, 154, 32, 0.15);
    line-height: 1;
}
.review-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 6px 16px rgba(154, 104, 9, 0.08);
    transform: translateY(-2px);
}
.review-card .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ece6d5;
}
.review-card .review-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.98rem;
}
.review-card .review-date {
    color: #8a8a8a;
    font-size: 0.85rem;
}
.review-card .review-stars {
    color: #f5a623;
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.review-card .review-text {
    color: #3a3a3a;
    line-height: 1.9;
    font-size: 0.95rem;
    text-align: justify;
}

/* ---------- reviews-toggle-btn 強化 ---------- */
.reviews-toggle-btn {
    display: block;
    margin: 24px auto;
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--accent-gold);
    border-radius: 24px;
    padding: 12px 32px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.reviews-toggle-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
}
.reviews-toggle-btn:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
}
