/**
 * 美国茶粉 DTC 前台主样式（精简色板版）
 * 仅两系：墨绿主色 + 灰阶中性色（无琥珀/多色强调）。与 seasonal-commerce.css 并存。
 * 演示图：public/images/tea-brand-demo.svg
 */
:root {
    --tea-primary: #1b4332;
    --tea-primary-soft: #2d6a4f;
    --tea-bg: #f6f7f5;
    --tea-surface: #ffffff;
    --tea-text: #1a1f1c;
    --tea-muted: #5c665f;
    --tea-border: #dfe3df;
    --tea-shadow: 0 1px 2px rgba(27, 67, 50, 0.06);
    --tea-shadow-hover: 0 8px 24px rgba(27, 67, 50, 0.08);
    --tea-radius: 10px;
}

body {
    font-family: "DM Sans", "Inter", system-ui, -apple-system, sans-serif;
    color: var(--tea-text);
    background-color: var(--tea-bg);
    font-variant-numeric: tabular-nums;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tea-storefront.seasonal-commerce,
main.tea-storefront {
    flex: 1 0 auto;
}

/* 主色：按钮、链接强调、图标 */
.tea-storefront .text-primary,
.tea-text-primary {
    color: var(--tea-primary) !important;
}

.tea-text-accent,
.tea-link-accent {
    color: var(--tea-primary) !important;
}
.tea-link-accent {
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
}
.tea-link-accent:hover {
    color: var(--tea-primary-soft) !important;
    border-bottom-color: rgba(27, 67, 50, 0.35);
}

.btn-tea-primary {
    --bs-btn-bg: var(--tea-primary);
    --bs-btn-border-color: var(--tea-primary);
    --bs-btn-hover-bg: var(--tea-primary-soft);
    --bs-btn-hover-border-color: var(--tea-primary-soft);
    --bs-btn-active-bg: var(--tea-primary-soft);
    --bs-btn-active-border-color: var(--tea-primary-soft);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
}

/* 次要 CTA：描边主色，与实心按钮形成二级层次（仍单色体系） */
.btn-tea-accent {
    background-color: transparent;
    border: 2px solid var(--tea-primary);
    color: var(--tea-primary);
    font-weight: 600;
}
.btn-tea-accent:hover {
    background-color: var(--tea-primary);
    border-color: var(--tea-primary);
    color: #fff;
}

.tea-announcement {
    background: var(--tea-primary);
    color: #fff;
    letter-spacing: 0.01em;
}

.tea-hero-slide {
    min-height: 400px;
    background-size: cover;
    background-position: center 40%;
    position: relative;
}
.tea-hero-slide--fallback {
    background-color: #e8ece9;
    background-image: linear-gradient(165deg, #eef1ee 0%, #dce2dd 100%);
    min-height: 440px;
}
.tea-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26, 31, 28, 0.42) 0%, rgba(26, 31, 28, 0.12) 65%, transparent 100%);
}
.tea-hero .carousel-control-prev,
.tea-hero .carousel-control-next {
    width: 3rem;
    opacity: 0.85;
}
.tea-hero .carousel-control-prev-icon,
.tea-hero .carousel-control-next-icon {
    filter: invert(1);
}
.tea-hero .carousel-indicators [data-bs-target] {
    background-color: #fff;
    opacity: 0.45;
}
.tea-hero .carousel-indicators .active {
    opacity: 1;
}

.tea-trust-bar {
    background: var(--tea-surface);
    border-color: var(--tea-border) !important;
}
.tea-trust-bar .tea-trust-icon {
    color: var(--tea-primary);
    opacity: 0.85;
}

.tea-section-muted {
    background: #ecefe9;
}

.tea-collection-card {
    border: 1px solid var(--tea-border);
    background: var(--tea-surface);
    box-shadow: var(--tea-shadow);
    border-radius: var(--tea-radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tea-collection-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tea-shadow-hover);
    border-color: rgba(27, 67, 50, 0.22);
}
.tea-collection-icon {
    font-size: 1.6rem;
    color: var(--tea-primary);
    opacity: 0.9;
}

.tea-teaser-card {
    border: 1px solid var(--tea-border);
    background: var(--tea-surface);
    border-radius: var(--tea-radius);
    box-shadow: var(--tea-shadow);
}

.tea-b2b-strip {
    background: var(--tea-primary);
}

.tea-journal-card {
    border-radius: var(--tea-radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tea-journal-card:hover {
    border-color: rgba(27, 67, 50, 0.35) !important;
    box-shadow: var(--tea-shadow-hover);
}

.tea-product-card {
    border-radius: var(--tea-radius);
    overflow: hidden;
}
.tea-product-card .ratio {
    background: #ecefe9;
}
.tea-product-card img {
    transition: transform 0.35s ease;
}
.tea-product-card:hover img {
    transform: scale(1.03);
}

.new-user-coupon-banner {
    background: var(--tea-primary) !important;
}

.main-header {
    border-bottom-color: var(--tea-border) !important;
}
.main-header.scrolled {
    background: var(--tea-surface) !important;
    box-shadow: var(--tea-shadow);
}
.navbar-brand-icon.tea-brand-mark {
    background: rgba(27, 67, 50, 0.1) !important;
}
/* 主导航：未选中偏灰、悬停浅底、选中为实心胶囊（与 hover 明显区分） */
.main-nav .nav-item {
    margin: 0 0.1rem;
}
.main-nav .nav-link {
    color: var(--tea-muted) !important;
    font-weight: 500;
    padding: 0.45rem 0.95rem !important;
    border-radius: 999px;
    transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.main-nav .nav-link:hover {
    color: var(--tea-primary) !important;
    background-color: rgba(27, 67, 50, 0.08) !important;
}
.main-nav .nav-link:focus-visible {
    color: var(--tea-primary) !important;
    outline: 2px solid var(--tea-primary);
    outline-offset: 2px;
}
.main-nav .nav-link.active {
    color: #fff !important;
    background-color: var(--tea-primary) !important;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(27, 67, 50, 0.25);
}
.main-nav .nav-link.active:hover {
    color: #fff !important;
    background-color: var(--tea-primary-soft) !important;
}

.site-footer-store .btn-tea-primary,
.site-footer-store .btn-success {
    background-color: var(--tea-primary) !important;
    border-color: var(--tea-primary) !important;
    color: #fff !important;
}
.site-footer-store .footer-nav-link:hover {
    color: #c5d4c9 !important;
}

footer.site-footer-store .btn-tea-primary:hover,
footer.site-footer-store .btn-success:hover {
    background-color: var(--tea-primary-soft) !important;
    border-color: var(--tea-primary-soft) !important;
}

.product-mobile-actions .btn-seasonal,
.product-mobile-actions .btn-tea-primary {
    background-color: var(--tea-primary);
    border-color: var(--tea-primary);
    color: #fff;
}
.product-mobile-actions .btn-outline-seasonal {
    border-color: var(--tea-primary);
    color: var(--tea-primary);
    background: #fff;
}

.commerce-hero {
    background: var(--tea-surface);
    border: 1px solid var(--tea-border);
    box-shadow: var(--tea-shadow);
    border-radius: var(--tea-radius);
}

.btn-seasonal {
    background-color: var(--tea-primary) !important;
    border-color: var(--tea-primary) !important;
    color: #fff !important;
}
.btn-outline-seasonal {
    color: var(--tea-primary) !important;
    border-color: var(--tea-primary) !important;
    background: transparent !important;
}
.btn-outline-seasonal:hover {
    background-color: rgba(27, 67, 50, 0.08) !important;
    color: var(--tea-primary) !important;
}

.lang-pill {
    background: rgba(27, 67, 50, 0.08) !important;
    color: var(--tea-text) !important;
}

.tea-storefront .nav-tabs .nav-link {
    color: var(--tea-muted);
    border: none;
    border-bottom: 2px solid transparent;
}
.tea-storefront .nav-tabs .nav-link:hover {
    color: var(--tea-primary);
    border-color: transparent;
}
.tea-storefront .nav-tabs .nav-link.active {
    color: var(--tea-primary);
    font-weight: 600;
    border-bottom-color: var(--tea-primary);
    background: transparent;
}

.tea-storefront .breadcrumb a {
    color: var(--tea-muted);
}
.tea-storefront .breadcrumb a:hover {
    color: var(--tea-primary);
}

@media (min-width: 992px) {
    .tea-hero-slide {
        min-height: 460px;
    }
}

/* 内页配图：与商品卡同一套边框与阴影 */
.tea-ourcraft-figure,
.tea-hero-thumb {
    border-color: var(--tea-border) !important;
    box-shadow: var(--tea-shadow);
    max-width: 100%;
    height: auto;
}

.tea-border-bottom {
    border-bottom: 1px solid var(--tea-border);
}

.tea-band-surface {
    background: var(--tea-surface);
}

/* Hero 深色底上的主按钮：白描边，悬停反白 */
.tea-hero-slide .btn-tea-accent {
    border-color: #fff !important;
    color: #fff !important;
    background: transparent !important;
}
.tea-hero-slide .btn-tea-accent:hover {
    background: #fff !important;
    color: var(--tea-primary) !important;
    border-color: #fff !important;
}

/* 前台内页：Bootstrap outline-primary 收拢为品牌绿 */
.tea-storefront .btn-outline-primary {
    --bs-btn-color: var(--tea-primary);
    --bs-btn-border-color: var(--tea-primary);
    --bs-btn-hover-bg: var(--tea-primary);
    --bs-btn-hover-border-color: var(--tea-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--tea-primary-soft);
    --bs-btn-active-border-color: var(--tea-primary-soft);
    --bs-btn-active-color: #fff;
}

.tea-teaser-card.tea-support-tile {
    display: block;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tea-teaser-card.tea-support-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--tea-shadow-hover);
    border-color: rgba(27, 67, 50, 0.22) !important;
}

/* 星级与 Bootstrap 默认黄拉开：仍用灰绿阶，避免多色 */
.tea-product-card .text-warning {
    color: var(--tea-primary-soft) !important;
    opacity: 0.75;
}
