:root {
    --brand: #0f766e;
    --brand-dark: #115e59;
    --ink: #172033;
    --muted: #64748b;
    --line: #dbe3ea;
    --soft: #f4f7f9;
}

html[data-theme="dark"] {
    --ink: #e2e8f0;
    --muted: #94a3b8;
    --line: #334155;
    --soft: #1f2937;
}

body {
    color: var(--ink);
    font-family: "Inter", "Noto Sans SC", Arial, Helvetica, sans-serif;
}

html[data-theme="dark"] body {
    background: #0b1220;
}

[data-live-viewing] {
    color: #1d4ed8;
    font-size: .9rem;
    font-weight: 700;
}

.hp-field {
    height: 0;
    left: -9999px;
    opacity: 0;
    position: absolute;
    width: 0;
}

.whatsapp-float {
    align-items: center;
    background: #16a34a;
    border-radius: 999px;
    bottom: 24px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .2);
    color: #fff;
    display: flex;
    font-weight: 800;
    height: 54px;
    justify-content: center;
    position: fixed;
    right: 24px;
    text-decoration: none;
    width: 54px;
    z-index: 30;
}

.floating-inquiry-btn {
    align-items: center;
    background: #2563eb;
    border-radius: 999px;
    bottom: 92px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .25);
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    height: 52px;
    justify-content: center;
    position: fixed;
    right: 24px;
    text-decoration: none;
    width: 98px;
    z-index: 1050;
}

.floating-inquiry-btn:hover {
    background: #1d4ed8;
    color: #fff;
}

.whatsapp-float:hover {
    color: #fff;
    background: #15803d;
}

.quick-contact-widget {
    bottom: 24px;
    position: fixed;
    right: 24px;
    z-index: 1100;
}

.quick-contact-toggle {
    align-items: center;
    background: #2563eb;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .24);
    color: #fff;
    display: flex;
    font-size: 24px;
    height: 56px;
    justify-content: center;
    position: relative;
    width: 56px;
}

.quick-contact-dot {
    animation: quickPulse 1.8s infinite;
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 999px;
    height: 11px;
    position: absolute;
    right: 5px;
    top: 5px;
    width: 11px;
}

@keyframes quickPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.quick-contact-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    bottom: 68px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, .2);
    min-width: 220px;
    opacity: 0;
    padding: 12px;
    pointer-events: none;
    position: absolute;
    right: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
    visibility: hidden;
}

html[data-theme="dark"] .quick-contact-panel {
    background: #111827;
}

.quick-contact-widget.is-open .quick-contact-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.quick-contact-head {
    margin-bottom: 10px;
}

.quick-contact-actions {
    display: grid;
    gap: 8px;
}

.quick-contact-wechat img {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    max-width: 180px;
    width: 100%;
}

.navbar-brand {
    color: var(--brand);
}

.navbar .navbar-toggler {
    margin-left: 0;
}

.brand-link {
    align-items: center;
    display: inline-flex;
    gap: 10px;
}

.brand-logo {
    display: block;
    height: 34px;
    object-fit: contain;
    width: auto;
}

.hero-section {
    background: linear-gradient(180deg, #eef7f5 0%, #ffffff 100%);
    padding: 72px 0 56px;
}

html[data-theme="dark"] .hero-section {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.hero-section .carousel-item {
    padding: 10px 0;
}

.hero-section h1 {
    font-size: clamp(2.25rem, 4vw, 4.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
}

.hero-section .lead {
    color: var(--muted);
    margin: 22px 0 28px;
}

.hero-image,
.product-detail-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.product-thumbs {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
}

.product-thumb {
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 8px;
    padding: 4px;
}

.product-thumb.is-active {
    border-color: var(--brand);
}

.product-thumb img {
    aspect-ratio: 1 / 1;
    border-radius: 5px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.product-detail-image {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.product-image-zoom-wrap {
    position: relative;
}

.product-image-lens {
    background-color: rgba(255, 255, 255, .25);
    background-repeat: no-repeat;
    border: 1px solid rgba(15, 23, 42, .2);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .25);
    display: none;
    pointer-events: none;
    position: absolute;
    z-index: 6;
}

.trust-metrics {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
}

.trust-metric {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.trust-metric strong {
    color: #0f172a;
    display: block;
    font-size: 1rem;
}

.trust-metric span {
    color: var(--muted);
    font-size: .78rem;
}

.country-flag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.country-flag {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    font-size: .85rem;
    font-weight: 700;
    padding: 6px 10px;
}

.certificate-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.certificate-card img {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: contain;
    width: 100%;
}

.process-box {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.process-box ol {
    padding-left: 1.1rem;
}

.currency-switch-group {
    display: inline-flex;
    gap: 6px;
}

.image-lightbox-overlay {
    align-items: center;
    background: rgba(0, 0, 0, .82);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 2000;
}

.image-lightbox-overlay.is-open {
    display: flex;
}

.image-lightbox-img {
    border-radius: 8px;
    max-height: 90vh;
    max-width: min(96vw, 1200px);
    object-fit: contain;
}

.image-lightbox-close {
    background: rgba(255, 255, 255, .12);
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 26px;
    height: 42px;
    line-height: 1;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 42px;
}

.compare-table th,
.compare-table td {
    min-width: 180px;
}

.mobile-detail-bar {
    background: #fff;
    border-top: 1px solid var(--line);
    bottom: 0;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    left: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 1200;
}

.mobile-detail-btn {
    font-weight: 700;
}

.eyebrow,
.section-heading span {
    color: var(--brand-dark);
    display: inline-block;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: .55rem;
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: 1.5rem;
}

.section-heading h1,
.section-heading h2 {
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 0;
}

.metric-tile {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    font-weight: 700;
    justify-content: center;
    min-height: 96px;
    padding: 18px;
    text-align: center;
}

.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

html[data-theme="dark"] .product-card,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .contact-quick-card,
html[data-theme="dark"] .inquiry-panel,
html[data-theme="dark"] .trust-metric,
html[data-theme="dark"] .process-box,
html[data-theme="dark"] .mobile-detail-bar {
    background: #111827;
    border-color: var(--line);
}

html[data-theme="dark"] .navbar,
html[data-theme="dark"] .site-footer {
    background: #0f172a !important;
    border-color: var(--line) !important;
}

html[data-theme="dark"] .navbar .nav-link,
html[data-theme="dark"] .navbar-brand,
html[data-theme="dark"] .footer-link {
    color: var(--ink) !important;
}

html[data-theme="dark"] .btn-outline-secondary,
html[data-theme="dark"] .btn-outline-primary {
    border-color: #475569;
    color: #cbd5e1;
}

.product-card-link {
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.product-card-link:hover,
.product-card-link:focus-visible {
    border-color: var(--brand);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    transform: translateY(-2px);
}

.category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.category-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: block;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.category-card:hover {
    border-color: var(--brand);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    color: var(--ink);
    transform: translateY(-2px);
}

.category-card img {
    aspect-ratio: 4 / 3;
    background: var(--soft);
    display: block;
    object-fit: cover;
    width: 100%;
}

.category-card-body {
    padding: 16px;
}

.category-card-body strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: .25rem;
}

.category-card-body span {
    color: var(--muted);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.category-tag {
    color: var(--brand-dark);
    font-weight: 700;
    text-decoration: none;
}

.category-tag:hover {
    text-decoration: underline;
}

.site-pagination {
    margin-top: 2rem;
}

.site-pagination .page-link {
    border-color: var(--line);
    color: var(--brand-dark);
    min-width: 42px;
    text-align: center;
}

.site-pagination .page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.product-card img {
    aspect-ratio: 4 / 3;
    background: var(--soft);
    display: block;
    object-fit: cover;
    width: 100%;
}

.img-placeholder {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 37%, #e5e7eb 63%);
    background-size: 400% 100%;
    display: block;
    animation: imgShimmer 1.4s ease infinite;
}

.img-placeholder picture,
.img-placeholder img {
    display: block;
    width: 100%;
}

@keyframes imgShimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.product-card h2,
.product-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: .35rem 0 .45rem;
}

.product-card p {
    color: var(--muted);
}

.product-card .product-price,
.product-price {
    color: #dc2626 !important;
    font-size: 1.05rem;
    font-weight: 800 !important;
    line-height: 1.2;
}

.product-price-lg {
    font-size: 1.5rem;
}

.detail-list dt {
    color: var(--muted);
}

.inquiry-panel,
.contact-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

.contact-quick-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.wechat-qr-image {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    max-width: 260px;
    width: 100%;
}

.site-footer {
    background: #f8fafc;
    border-top: 1px solid var(--line);
}

.article-detail {
    margin: 0 auto;
    max-width: 860px;
}

.article-detail h1 {
    font-weight: 800;
    letter-spacing: 0;
}

.article-cover {
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    margin-bottom: 24px;
    object-fit: cover;
    width: 100%;
}

.article-content {
    color: #26364d;
    font-size: 1.05rem;
    line-height: 1.8;
}

.footer-link {
    color: var(--ink);
    display: block;
    margin-bottom: .4rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--brand);
    border-color: var(--brand);
}

.btn-primary:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
}

@media (max-width: 991.98px) {
    .quick-contact-widget {
        bottom: 16px;
        right: 16px;
    }

    .quick-contact-toggle {
        font-size: 20px;
        height: 48px;
        width: 48px;
    }

    .quick-contact-panel {
        bottom: 58px;
        min-width: 188px;
        padding: 10px;
    }

    .product-thumbs {
        grid-auto-flow: column;
        grid-auto-columns: 86px;
        grid-template-columns: none;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .product-thumbs::-webkit-scrollbar {
        display: none;
    }

    .trust-metrics {
        grid-template-columns: 1fr;
    }

    .product-detail-page {
        padding-bottom: 88px;
    }
}
