:root {
    --beauty-1: #c8102e;
    --beauty-2: #1e3a8a;
    --beauty-3: #000000;
    --beauty-gold: #ffd700;
    --beauty-text: #111827;
    --beauty-muted: #6b7280;
    --beauty-border: #e5e7eb;
    --beauty-bg: #f9fafb;
    --beauty-footer: #0f172a;
    --beauty-white: #ffffff;
    --beauty-radius: 1rem;
    --beauty-header-h: 64px;
    --beauty-max: 80rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.page {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding-top: var(--beauty-header-h);
    min-height: 100vh;
    /* 压掉 header/main 之间因 BOM/换行产生的匿名行高，避免顶栏下白缝 */
    font-size: 0;
    line-height: 0;
    color: var(--beauty-text);
    background: var(--beauty-bg);
}

body.page > main {
    flex: 1 0 auto;
    width: 100%;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

body.page > .site-footer,
body.page > .cookie-banner {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: var(--beauty-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--beauty-1);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
    background: #a50d25;
}

.btn-hero-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 999px;
    background: #fff;
    color: var(--beauty-1);
    font-weight: 600;
}

.btn-hero-light:hover {
    background: var(--beauty-gold);
    color: var(--beauty-3);
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
}

.btn-hero-ghost:hover {
    background: #fff;
    color: var(--beauty-1);
}

.card-product {
    display: block;
    overflow: hidden;
    background: #fff;
    border-radius: var(--beauty-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.card-product:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.section-title {
    margin: 0 0 0.75rem;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--beauty-text);
}

.section-subtitle {
    margin: 0 0 2rem;
    font-size: 1.05rem;
    color: var(--beauty-muted);
}

.section-subtitle--left {
    margin-bottom: 0;
    text-align: left;
}

.line-clamp-2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    height: var(--beauty-header-h);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    max-width: var(--beauty-max);
    height: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-logo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.site-logo__img {
    display: block;
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.site-logo__name {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    color: #111827;
}

.site-nav {
    display: none;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: 0;
}

.site-nav__link {
    flex-shrink: 0;
    padding: 0.25rem 0.65rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.9375rem;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.site-nav__link:hover {
    color: var(--beauty-1);
}

.site-header__actions {
    display: none;
    flex-shrink: 0;
    align-items: center;
    gap: 1rem;
}

.site-header__quote {
    padding: 0.5rem 1.1rem;
    font-size: 0.875rem;
}

.site-header__mobile {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
}

.lang-switch__item {
    color: #6b7280;
    font-weight: 500;
}

.lang-switch__item:hover,
.lang-switch__item.is-active {
    color: var(--beauty-1);
}

.lang-switch__sep {
    color: #d1d5db;
}

.lang-switch--compact {
    margin-right: 0.15rem;
}

.currency-switch {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
}

.currency-switch__item {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6b7280;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.currency-switch__item:hover,
.currency-switch__item.is-active {
    color: var(--beauty-1);
}

.currency-switch__sep {
    color: #d1d5db;
}

.currency-switch--compact {
    margin-right: 0.15rem;
}

.currency-switch--mobile {
    margin: 0.75rem 0 0;
}

.site-nav__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.4rem;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.site-nav__hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #111827;
}

.site-nav-mobile {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
}

.site-nav-mobile.is-open {
    display: block;
}

.site-nav-mobile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.site-nav-mobile__inner {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(13.5rem, 58vw);
    height: 100%;
    background: #fff;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
}

.site-nav-mobile__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.site-nav-mobile__title {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
}

.site-nav-mobile__close {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #f9fafb;
    color: #374151;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.site-nav-mobile__link {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    font-weight: 500;
    border-left: 2px solid transparent;
}

.site-nav-mobile__link:hover {
    color: var(--beauty-1);
    background: #fef2f2;
}

.site-nav-mobile__quote {
    margin: auto 1rem 1rem;
}

.site-footer {
    background: var(--beauty-footer);
    color: #9ca3af;
    font-size: 0.875rem;
}

.site-footer__inner {
    max-width: var(--beauty-max);
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
}

.site-footer__top {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-footer__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.site-footer__name {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
}

.site-footer__links a:hover {
    color: #fff;
}

.site-footer__bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__copy {
    margin: 0;
    color: #9ca3af;
    font-size: 0.75rem;
    text-align: center;
}

.cookie-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    max-width: var(--beauty-max);
    margin: 0 auto;
    padding: 1rem;
}

.cookie-banner__text {
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1.5rem;
    color: var(--beauty-muted);
    font-size: 0.8125rem;
}

.breadcrumb a:hover {
    color: var(--beauty-1);
}

.breadcrumb__sep {
    color: #d1d5db;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.pagination__item {
    min-width: 2.5rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--beauty-border);
    border-radius: 0.5rem;
    background: #fff;
    color: #374151;
    text-align: center;
}

.pagination__item:hover {
    background: #f3f4f6;
}

.pagination__item.is-active {
    background: var(--beauty-1);
    border-color: var(--beauty-1);
    color: #fff;
}

@media (min-width: 640px) {
    .cookie-banner__inner {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .site-footer__top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .site-footer__copy {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    :root {
        --beauty-header-h: 80px;
    }

    .site-nav,
    .site-header__actions {
        display: flex;
    }

    .site-header__mobile,
    .site-nav-mobile,
    .site-nav-mobile.is-open {
        display: none !important;
    }
}
