/*
Theme Name: Yuanqibang Showcase
Theme URI: https://example.com/
Author: Codex
Description: 元气邦品牌官网主题，配合 Brand Distribution 插件使用。
Version: 1.0.0
Text Domain: brand-showcase
*/

:root {
    --ink: #243026;
    --muted: #6b766e;
    --line: #e4e8ec;
    --brand: #2f6f45;
    --accent: #be5c2d;
    --soft: #f3e8dc;
    --leaf: #dcebd8;
    --paper: #fffaf3;
    --panel: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: var(--paper);
    line-height: 1.65;
}

a {
    color: inherit;
}

.announcement-bar {
    display: grid;
    place-items: center;
    min-height: 38px;
    padding: 6px 16px;
    color: #fff;
    background: var(--brand);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.site-header-inner,
.site-footer-inner,
.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

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

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.header-tools {
    display: flex;
    gap: 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.header-tools a {
    text-decoration: none;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #f4f0e8;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.language-switcher a {
    min-width: 34px;
    padding: 5px 9px;
    color: var(--muted);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
}

.language-switcher a.active {
    color: #fff;
    background: var(--brand);
}

.hero {
    min-height: 520px;
    display: grid;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(22, 34, 24, 0.83), rgba(22, 34, 24, 0.28)),
        url("assets/yuanqibang-banner.jpg") center/cover no-repeat;
    color: #fff;
}

.hero-content {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: 0;
}

.hero-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    color: #f8e8d3;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero p {
    max-width: 620px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn,
.bd-order-form button,
.bd-payment-box button,
.bd-pay-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--accent);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn.secondary {
    color: var(--ink);
    background: #fff;
}

.section-band {
    padding: 70px 0;
    border-bottom: 1px solid var(--line);
}

.icon-strip {
    padding: 18px 0;
    color: #fff;
    background: var(--accent);
}

.icon-strip .container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    text-align: center;
    font-weight: 900;
}

.section-title,
.bd-section-title {
    width: min(760px, 100%);
    margin-bottom: 28px;
}

.section-title span,
.bd-section-title span {
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-title h2,
.bd-section-title h2 {
    margin: 8px 0;
    font-size: 34px;
    line-height: 1.2;
}

.section-title p,
.bd-section-title p {
    margin: 0;
    color: var(--muted);
}

.center-title {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.collection-grid a {
    display: grid;
    align-content: end;
    min-height: 210px;
    padding: 20px;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 250, 243, 0.96)),
        var(--leaf);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
}

.collection-grid a:nth-child(2) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 250, 243, 0.96)),
        #f0d5c8;
}

.collection-grid a:nth-child(3) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 250, 243, 0.96)),
        #ded9bf;
}

.collection-grid strong {
    font-size: 21px;
}

.collection-grid span {
    color: var(--muted);
}

.value-grid,
.bd-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.value-item,
.bd-product-card {
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.value-item {
    padding: 24px;
}

.value-item strong {
    display: block;
    margin-bottom: 8px;
    font-size: 19px;
}

.value-item p,
.bd-product-card p {
    color: var(--muted);
}

.ad-band {
    background: #fff;
}

.image-story {
    background: var(--leaf);
}

.story-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
    align-items: center;
    gap: 42px;
}

.story-layout h2 {
    margin: 8px 0 14px;
    font-size: 40px;
    line-height: 1.18;
}

.story-layout p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 17px;
}

.story-layout img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(32, 53, 38, 0.16);
}

.bd-showcase,
.bd-order-panel {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

.bd-product-media {
    aspect-ratio: 4 / 3;
    background: #eef3f1;
}

.bd-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bd-product-body {
    padding: 20px;
}

.bd-product-body h3 {
    margin: 0 0 8px;
}

.bd-product-tag {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 3px 8px;
    color: #fff;
    background: var(--brand);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.bd-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.bd-price {
    font-size: 18px;
    font-weight: 900;
}

.bd-product-body a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.bd-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 0;
    flex-wrap: wrap;
}

.bd-pagination a,
.bd-pagination span,
.bd-pagination button {
    min-width: 38px;
    min-height: 38px;
    padding: 8px 12px;
    color: var(--brand);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.bd-pagination .active,
.bd-pagination button.active {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.product-detail-image {
    display: block;
    width: min(520px, 100%);
    height: auto;
    border-radius: 8px;
}

.product-detail-price {
    margin: 18px 0;
    color: var(--brand);
    font-size: 28px;
    font-weight: 900;
}

.wechat-share-box {
    display: grid;
    gap: 10px;
    margin: 26px 0;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.wechat-share-box h3,
.wechat-share-box p {
    margin: 0;
}

.share-link-row {
    display: flex;
    gap: 10px;
}

.share-link-row input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.share-link-row button {
    min-height: 42px;
    padding: 0 16px;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.bd-order-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.bd-order-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-weight: 700;
}

.bd-order-form label:nth-last-child(2) {
    grid-column: 1 / -1;
}

.bd-order-form input,
.bd-order-form select,
.bd-order-form textarea,
.bd-distributor-card input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.bd-order-form button {
    width: max-content;
}

.bd-notice {
    margin-bottom: 14px;
    padding: 12px 14px;
    color: #0f5132;
    background: #e7f6ed;
    border: 1px solid #badbcc;
    border-radius: 8px;
}

.bd-payment-box {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    scroll-margin-top: 96px;
}

.bd-payment-box h3,
.bd-payment-box p {
    margin: 0;
}

.bd-payment-summary {
    display: grid;
    gap: 10px;
    padding: 14px;
    background: #f7faf7;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.bd-payment-summary h4 {
    margin: 0;
    font-size: 18px;
}

.bd-payment-summary dl {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px 14px;
    margin: 0;
}

.bd-payment-summary dt {
    color: var(--muted);
}

.bd-payment-summary dd {
    margin: 0;
    min-width: 0;
    word-break: break-word;
}

.bd-payment-details {
    display: grid;
    gap: 8px;
    padding: 14px;
    background: #f7faf7;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.bd-payment-details pre {
    overflow-x: auto;
    white-space: pre-wrap;
    margin: 0;
    font: inherit;
}

.bd-payment-box img {
    width: min(240px, 100%);
    height: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.bd-distributor-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.bd-member-center {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

.bd-member-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.bd-member-summary div {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.bd-member-summary strong {
    display: block;
    color: var(--brand);
    font-size: 24px;
}

.bd-member-summary span {
    color: var(--muted);
    font-weight: 800;
}

.bd-front-table {
    margin-bottom: 22px;
    background: #fff;
}

.bd-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 0;
    flex-wrap: wrap;
}

.bd-pagination a,
.bd-pagination span,
.bd-pagination button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 8px 12px;
    color: var(--brand);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.bd-pagination a.active,
.bd-pagination span.active,
.bd-pagination button.active {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.site-footer {
    padding: 34px 0;
    color: var(--muted);
    background: #10191a;
}

.site-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

@media (max-width: 820px) {
    .site-header-inner,
    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 14px;
    }

    .header-tools {
        display: none;
    }

    .language-switcher {
        max-width: 100%;
        flex-wrap: wrap;
    }

    .hero {
        min-height: 500px;
    }

    .value-grid,
    .bd-product-grid,
    .collection-grid,
    .bd-member-summary,
    .story-layout,
    .bd-order-form {
        grid-template-columns: 1fr;
    }

    .icon-strip .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-detail-image {
        width: 100%;
    }

    .bd-payment-summary dl {
        grid-template-columns: 72px minmax(0, 1fr);
    }
}
