/* ===== base.css — 重置与基础 ===== */
 
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --pc-width: 800px;

    /* 首页四个区块统一左右内边距，PC/移动端完全相同 */
    --section-px: 16px;

    /* 主题色 */
    --color-red:       #8B0000;
    --color-red-dark:  #5C0000;
    --color-red-light: #A02020;
    --color-gold:      #C9A050;
    --color-gold-light:#E8C878;
    --color-gold-dark: #8B6420;

    /* 背景与文字 */
    --color-bg:        #FAF6F0;
    --color-bg-card:   #FFFFFF;
    --color-bg-dark:   #1A0A00;
    --color-text:      #2C2C2C;
    --color-text-sec:  #666666;
    --color-text-light:#999999;
    --color-border:    rgba(201, 160, 80, 0.25);

    /* 阴影 */
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
    --shadow-red: 0 4px 20px rgba(139, 0, 0, 0.3);

    /* 圆角 */
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    /* 安全区 */
    --safe-top:    env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    /* 字体 */
    --font-main: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================
   #app — 全站内容容器
   移动端：全宽铺满
   PC端：居中限宽 800px，内容区滚动
   fixed 元素单独用 calc 居中对齐
   ======================== */
#app {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-bg);
    overflow-x: hidden;
}

/* ========================
   PC 端布局（>= 800px）
   ======================== */
@media (min-width: 800px) {

    /* body 两侧背景 */
    body {
        background-color: #D6C9B8;
    }

    /* 内容容器居中限宽，普通滚动 */
    #app {
        width: var(--pc-width);
        margin: 0 auto;
        box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 8px 48px rgba(0,0,0,0.18);
        /* 不加 transform，避免破坏 fixed 定位 */
    }

    /*
     * fixed 元素：相对视口定位，用 calc 手动居中对齐 800px 容器
     * left = 50vw - 400px，right = 50vw - 400px
     * 等价于 left: calc(50% - 400px)（此处 % 相对视口宽度）
     */
    .app-header,
    .app-tabbar,
    .top-category-nav,
    .detail-footer {
        left:  calc(50vw - calc(var(--pc-width) / 2)) !important;
        right: calc(50vw - calc(var(--pc-width) / 2)) !important;
        width: var(--pc-width) !important;
        bottom: 0 !important;
        transform: none !important;
    }

    /* 模态框遮罩：同样对齐容器 */
    .modal-overlay {
        left:  calc(50vw - calc(var(--pc-width) / 2)) !important;
        right: calc(50vw - calc(var(--pc-width) / 2)) !important;
        width: var(--pc-width) !important;
    }

    .modal-sheet {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Toast 居中于容器 */
    .toast {
        left: calc(50vw) !important;
    }
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    -webkit-appearance: none;
    appearance: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

img {
    display: block;
    max-width: 100%;
}

.hidden {
    display: none !important;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
}

/* 选中文字 */
::selection {
    background: rgba(139, 0, 0, 0.15);
    color: var(--color-red);
}

/* 通用工具类 */
.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== style.css — 全站样式 ===== */

/* ========================
   顶部标题栏（小程序风格）
   ======================== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(135deg, #7A0000 0%, #8B0000 40%, #5C0000 100%);
    padding: var(--safe-top) 0 0;
    box-shadow: 0 2px 12px rgba(139, 0, 0, 0.4);
	height:50px;
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0.5;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 12px;
    max-width: 100%;
}

.header-back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.header-back:active { opacity: 0.6; }

.header-logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    overflow: hidden;
}

.header-logo-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.header-title-group {
    overflow: hidden;
}

.header-title {
    font-size: 17px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-subtitle {
    display: none;
}

/* 首页专有 logo 模式 */
body.home .header-inner {
    justify-content: center;
    padding: 0 16px;
}

/* ========================
   Banner 轮播
   ======================== */
.banner-section {
    margin-top: calc(44px + var(--safe-top));
    padding: 12px var(--section-px) 8px;
}

/* PC端 header 仍是 fixed，margin-top 保持不变 */
.banner-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-red);
}

.banner-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-slide {
    width: 100%;
    flex-shrink: 0;
    min-height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    inset: 0;
}

.banner-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(201,160,80,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

.banner-pattern-gold {
    background-image:
        radial-gradient(circle at 70% 70%, rgba(255,220,100,0.2) 0%, transparent 50%),
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08) 0%, transparent 40%);
}

.banner-pattern-blue {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(80,160,200,0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 20px 24px;
    color: white;
}

.banner-badge {
    display: inline-block;
    background: rgba(201,160,80,0.9);
    color: #5C0000;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.banner-badge-gold {
    background: linear-gradient(135deg, #FFD700, #C9A050);
    color: #3D2000;
}

.banner-badge-blue {
    background: rgba(80,160,200,0.85);
    color: white;
}

.banner-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.banner-desc {
    font-size: 13px;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s;
    cursor: pointer;
}

.dot.active {
    width: 18px;
    border-radius: 3px;
    background: var(--color-gold);
}

/* ========================
   快捷入口卡片
   ======================== */
.quick-entry-section {
    padding: 8px var(--section-px);
}

.quick-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--color-border);
}

.quick-card:active {
    transform: scale(0.95);
    box-shadow: var(--shadow-sm);
}

.quick-card-red  { border-top: 3px solid var(--color-red); }
.quick-card-gold { border-top: 3px solid var(--color-gold); }
.quick-card-dark { border-top: 3px solid #3D2000; }

.quick-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 6px;
}

.quick-card-red .quick-icon { color: var(--color-red); }
.quick-card-gold .quick-icon { color: var(--color-gold-dark); }
.quick-card-dark .quick-icon { color: #3D2000; }

.quick-icon svg {
    width: 100%;
    height: 100%;
}

.quick-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quick-text strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.quick-text span {
    font-size: 11px;
    color: var(--color-text-light);
}

/* ========================
   产品展示区
   ======================== */
.products-section {
    padding: 12px 16px 16px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-title-group {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--color-red);
    border-radius: 2px;
}

.section-title-en {
    font-size: 10px;
    color: var(--color-text-light);
    letter-spacing: 1px;
    font-family: 'Arial', sans-serif;
}

.section-more {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    color: var(--color-gold-dark);
    font-weight: 500;
}

.section-more svg {
    transition: transform 0.2s;
}
.section-more:active svg {
    transform: translateX(2px);
}

/* 首页商品网格展示 */
.home-products-section {
    padding: 12px var(--section-px) 16px;
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.section-cta {
    margin-top: 12px;
    text-align: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--color-red), var(--color-red-light));
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(139, 0, 0, 0.3);
    transition: all 0.2s;
}

.btn-primary:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

/* 通用产品卡片（首页横向滚动用） */
.product-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(201, 160, 80, 0.15);
    transition: all 0.2s;
}

.product-card:active {
    transform: scale(0.97);
    box-shadow: var(--shadow-sm);
}

.product-img-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 正方形 */
    background: linear-gradient(135deg, #f5f0e8, #ede5d8);
    overflow: hidden;
}

.product-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    color: white;
    letter-spacing: 0.5px;
}

.product-tag-red   { background: var(--color-red); }
.product-tag-gold  { background: linear-gradient(135deg, #FFD700, #C9A050); color: #3D2000; }
.product-tag-dark   { background: #3D2000; }
.product-tag-brown { background: #6B3A00; }

.product-info {
    padding: 8px 8px 10px;
}

.product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-sub {
    font-size: 11px;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.product-price-contact {
    font-size: 12px;
    color: var(--color-red);
    font-weight: 600;
}

/* ========================
   品牌优势
   ======================== */
.features-section {
    padding: 16px var(--section-px) 100px; /* 留底部导航空间 */
    background: linear-gradient(180deg, var(--color-bg) 0%, #F5EDE0 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feature-item {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
}
.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-item h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 11px;
    color: var(--color-text-light);
    line-height: 1.5;
}
.feature-item p a{display:inline;}
/* ========================
   底部标签栏（小程序TabBar）
   ======================== */
.app-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    padding: 0 0 calc(var(--safe-bottom) + 4px);
    box-shadow: 0 -1px 0 var(--color-border), 0 -4px 16px rgba(0,0,0,0.06);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0;
    color: var(--color-text-light);
    transition: color 0.2s;
}

.tab-item.active {
    color: var(--color-red);
}

.tab-icon {
    width: 22px;
    height: 22px;
}
.tab-icon svg {
    width: 100%;
    height: 100%;
}

.tab-item span {
    font-size: 10px;
    font-weight: 500;
}

.tab-item.active span {
    font-weight: 600;
}

/* ========================
   模态框（小程序底部弹出式）
   ======================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal-sheet {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    overscroll-behavior: contain;
}

.modal-overlay.show .modal-sheet {
    transform: translateY(0);
}

.modal-handle {
    width: 36px;
    height: 4px;
    background: #DDD;
    border-radius: 2px;
    margin: 10px auto 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 10px;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
}

.modal-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
}
.modal-close svg { width: 20px; height: 20px; }

.modal-body {
    padding: 16px 20px 24px;
}

.modal-body-center {
    text-align: center;
}

.modal-intro {
    background: #FFF8F0;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 16px;
    border-left: 3px solid var(--color-gold);
}
.modal-intro p {
    font-size: 13px;
    color: var(--color-text-sec);
    line-height: 1.6;
}

/* ========================
   表单
   ======================== */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    background: #FAFAFA;
    border: 1px solid #E0D8CC;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 14px;
    color: var(--color-text);
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--color-gold);
    background: white;
}

.form-input::placeholder {
    color: #CCC;
}

textarea.form-input {
    resize: none;
    min-height: 80px;
}

select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--color-red), var(--color-red-light));
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    margin-top: 6px;
    box-shadow: 0 4px 16px rgba(139, 0, 0, 0.3);
    transition: all 0.2s;
    letter-spacing: 1px;
}

.btn-submit:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* ========================
   合伙人面板
   ======================== */
.partner-hero {
    background: linear-gradient(135deg, var(--color-red), var(--color-red-light));
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
    color: white;
}

.partner-num {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.partner-num-label {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

.partner-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #FFF8F0;
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: left;
}

.benefit-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.benefit-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.benefit-item p {
    font-size: 12px;
    color: var(--color-text-sec);
    line-height: 1.5;
}

/* ========================
   购买需知列表
   ======================== */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.notice-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: #FAFAFA;
    border-radius: var(--radius-sm);
    border: 1px solid #EEE;
}

.notice-num {
    width: 22px;
    height: 22px;
    background: var(--color-red);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notice-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.notice-content p {
    font-size: 12px;
    color: var(--color-text-sec);
    line-height: 1.6;
}

/* ========================
   联系我们
   ======================== */
.contact-wechat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.wechat-qr-placeholder {
    text-align: center;
}

.wechat-qr-placeholder .wechat-qr-img {
    display: block;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain;
    background: #f5f5f5;
}

.wechat-hint {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 8px;
}

.wechat-id-box {
    background: #FFF8F0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    width: 100%;
}

.wechat-id-label {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.wechat-id-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-red);
    letter-spacing: 2px;
    font-family: 'Arial', monospace;
    margin-bottom: 12px;
}

.wechat-actions {
    display: flex;
    gap: 10px;
}

.btn-copy-wechat {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--color-red);
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-copy-wechat:active {
    opacity: 0.85;
    transform: scale(0.97);
}

.btn-open-wechat {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--color-gold);
    color: #3D2000;
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-open-wechat:active {
    opacity: 0.85;
    transform: scale(0.97);
}

.contact-hotline {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FAFAFA;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    width: 100%;
    border: 1px solid var(--color-border);
}

.hotline-icon {
    width: 36px;
    height: 36px;
    background: #FFF0E0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hotline-label {
    font-size: 12px;
    color: var(--color-text-light);
}

.hotline-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-red);
    letter-spacing: 1px;
}

/* ========================
   Toast 提示
   ======================== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(40, 40, 40, 0.88);
    color: white;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ========================
   响应式
   ======================== */

/* 仅在移动端中等尺寸微调，PC端(>=800px)不触发 */
@media (min-width: 480px) and (max-width: 799px) {
    .banner-slide { min-height: 200px; }
    .banner-title { font-size: 26px; }
    /* 移动端中等屏幕品牌优势可展示4列 */
    .features-grid { grid-template-columns: repeat(4, 1fr); }
}

/* PC端：四个首页区块内部布局与移动端完全一致，不扩列 */
@media (min-width: 800px) {
    /* 商品网格保持2列，与移动端相同 */
    .home-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* 品牌优势保持2列，与移动端相同 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* 快捷入口保持3列，与移动端相同 */
    .quick-entry-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 374px) {
    .header-title { font-size: 15px; }
    .quick-entry-grid { gap: 6px; }
}

/* ===== products.css（已合并） ===== */

/* ========================
   双栏布局
   ======================== */
.products-layout {
    /* 避让固定header的高度 */
    padding-top: calc(44px + var(--safe-top));
    padding-bottom: calc(26px + var(--safe-bottom));
    display: flex;
    width: 100%;
}

/* ========================
   左侧一级分类
   ======================== */
.cat-sidebar {
    width: 72px;
    min-width: 72px;
    flex-shrink: 0;
    background: #F5EDE0;
    border-right: 1px solid rgba(201, 160, 80, 0.2);
    display: flex;
    flex-direction: column;
    padding: 6px 0;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-sec);
    border-left: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    width: 100%;
    text-align: center;
    cursor: pointer;
    background: transparent;
}

.sidebar-item svg { display: block; }
.sidebar-item span { display: block; font-size: 11px; line-height: 1.2; }

.sidebar-item.active {
    color: var(--color-red);
    border-left-color: var(--color-red);
    background: #FFFFFF;
    font-weight: 700;
}

.sidebar-item:hover:not(.active) { background: rgba(201, 160, 80, 0.1); }
.sidebar-item:active { opacity: 0.75; }

/* ========================
   右侧内容区
   ======================== */
.cat-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
}

/* ========================
   分类区块（每个一级分类一个）
   ======================== */
.cat-block {
    display: none;
    flex-direction: column;
}

.cat-block.active {
    display: flex;
}

/* ========================
   二级Tab栏（sticky，贴在cat-main顶部）
   ======================== */
.sub-tab-bar {
    position: sticky;
    top: 0;
    flex-shrink: 0;
    display: flex;
    gap: 0;
    padding: 7px var(--section-px);
    background: #FFFFFF;
    border-bottom: 1px solid rgba(201, 160, 80, 0.2);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.sub-tab-bar::-webkit-scrollbar { display: none; }

/* ========================
   顶部搜索框
   ======================== */
.products-search-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    padding: 8px var(--section-px) 0;
    background: #FFFFFF;
}
.products-search-bar form {display:inline-block}
.products-search-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 6px 12px;
    border-radius: 999px;
    background: #F5F0E6;
    border: 1px solid rgba(201, 160, 80, 0.35);
}
.products-search-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--color-text-light);
}
.products-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--color-text);

}
.products-search-input::placeholder {
    color: var(--color-text-light);
}
.products-search-submit {
    font-size: 12px;
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-red), var(--color-red-light));
    box-shadow: 0 1px 5px rgba(139, 0, 0, 0.25);
}

.sub-tab-btn {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-sec);
    padding: 5px 10px;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s;
    cursor: pointer;
    background: transparent;
    border: none;
}

.sub-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-red);
    border-radius: 2px;
    transition: width 0.2s;
}

.sub-tab-btn.active { color: var(--color-red); font-weight: 700; }
.sub-tab-btn.active::after { width: 16px; }
.sub-tab-btn:active { opacity: 0.7; }

/* ========================
   产品网格（统一2列）
   ======================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px var(--section-px);
}

/* ========================
   产品卡片
   ======================== */
.product-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(201, 160, 80, 0.12);
    transition: transform 0.18s;
}
.product-card:active { transform: scale(0.97); }

.product-img-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 正方形 */
    background: linear-gradient(135deg, #f5f0e8, #ede5d8);
    overflow: hidden;
}
.product-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 图片加载失败或未加载时显示占位图 */
.product-img-wrap.placeholder .product-img-placeholder {
    background: linear-gradient(135deg, #f5f0e8, #ede5d8);
}
.product-img-wrap.placeholder .product-img-placeholder::before {
    content: '';
    display: block;
    width: 40px;
    height: 60px;
    background: linear-gradient(135deg, #C9A050 0%, #8B0000 100%);
    border-radius: 4px;
    opacity: 0.4;
}

.product-info { padding: 7px 8px 9px; }
.product-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}
.product-sub { font-size: 10px; color: var(--color-text-light); margin-bottom: 3px; }
.product-price-contact { font-size: 11px; color: var(--color-red); font-weight: 600; }

/* 产品标签 */
.product-tag {
    position: absolute;
    top: 5px; left: 5px;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 2px;
}
.product-tag-red   { background: var(--color-red); color: #fff; }
.product-tag-gold  { background: linear-gradient(135deg, #FFD700, #C9A050); color: #3D2000; }
.product-tag-dark  { background: #3D2000; color: #fff; }
.product-tag-brown { background: #6B3A00; color: #fff; }

/* ========================
   分页条样式
   ======================== */
.page{text-align:center;}
.pagination{display: inline-block; padding-left: 0; margin: 0px 0; border-radius: 4px;}
.pagination > li{display: inline;}
.pagination > li > a,
.pagination > li > span{position: relative; float: left; padding: 6px 12px; line-height: 1.42857; text-decoration: none; color:var(--color-text-sec); background-color: #fff; border: 1px solid #ddd; margin-left: -1px;}
.pagination > li:first-child > a,
.pagination > li:first-child > span{margin-left: 0; border-bottom-left-radius: 4px; border-top-left-radius: 4px;}
.pagination > li:last-child > a,
.pagination > li:last-child > span{border-bottom-right-radius: 4px; border-top-right-radius: 4px;}
.pagination > li > a:hover, .pagination > li > a:focus,
.pagination > li > span:hover,
.pagination > li > span:focus{z-index: 2; color: #fff; background-color:var(--color-red); border-color: #FFFFFF;}
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus,
.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > span:focus{z-index: 3; color: #fff; background-color:var(--color-red);  cursor: default;}




/* ========================
   产品详情页
   ======================== */
.detail-main {
    padding-top: calc(44px + var(--safe-top));
    padding-bottom: calc(72px + var(--safe-bottom));
}

/* 搜索结果页：顶部有搜索条，整体稍微更紧凑 */
.search-main {
    padding-top: calc(44px + var(--safe-top) + 6px);
    padding-bottom: calc(90px + var(--safe-bottom));
}
.search-main .products-search-bar {
    margin-bottom: 4px;
}
.search-main .detail-section {
    padding: 10px var(--section-px);
    border-bottom-width: 4px;
}

.detail-swiper { background: linear-gradient(135deg, #f5f0e8, #ede5d8); padding: 0 0 16px; }
.detail-swiper-window { width: 100%; margin: 0; border-radius: 0; overflow: hidden; box-shadow: none; }
.detail-swiper-track { display: flex; width: 100%; transition: transform 0.3s ease; touch-action: pan-y; }
.detail-img-container { flex: 0 0 100%; width: 100%; aspect-ratio: 1 / 1; }
.detail-img-placeholder { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5f0e8, #ede5d8); width: 100%; height: 100%; gap: 10px; }
.detail-img-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-img-hint { font-size: 12px; color: var(--color-text-light); position: relative; z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,0.25); color: #fff; }

.detail-swiper-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.detail-swiper-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: #CCC; }
.detail-swiper-dots .dot.active { width: 18px; border-radius: 3px; background: var(--color-red); }

.detail-info { padding: 14px var(--section-px); border-bottom: 6px solid #F5EDE0; }
.detail-tags { display: flex; gap: 5px; margin-bottom: 7px; }
.detail-name { font-size: 19px; font-weight: 700; color: var(--color-text); margin-bottom: 3px; line-height: 1.3; }
.detail-sub { font-size: 13px; color: var(--color-text-sec); margin-bottom: 13px; }

.detail-section { padding: 14px var(--section-px); border-bottom: 6px solid #F5EDE0; }
.detail-section-title { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.detail-section-title span { font-size: 14px; font-weight: 700; color: var(--color-text); position: relative; padding-left: 9px; }
.detail-section-title span::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 13px; background: var(--color-red); border-radius: 2px; }
.detail-text-content p { font-size: 12px; color: var(--color-text-sec); line-height: 1.75; margin-bottom: 6px; }
.detail-text-content p:last-child { margin-bottom: 0; }
.detail-text-content strong { color: var(--color-text); font-weight: 600; }
.detail-text-content a {
    display: inline;
    color: var(--color-red);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.detail-photo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.detail-photo-item {
    position: relative;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden; /* 大图溢出裁切 */
    background: linear-gradient(135deg, #f5f0e8, #ede5d8);
    aspect-ratio: 1 / 1;
}
.detail-photo-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 大图按容器填充裁切 */
}
.detail-photo-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f0e8, #ede5d8);
}
.detail-photo-item.placeholder .detail-photo-placeholder {
    display: flex;
}
.detail-photo-item.placeholder .detail-photo-placeholder::before {
    content: '';
    width: 36px;
    height: 52px;
    border-radius: 4px;
    background: linear-gradient(135deg, #C9A050 0%, #8B0000 100%);
    opacity: 0.35;
}

.detail-cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cert-item { display: flex; flex-direction: column; align-items: center; gap: 5px; background: #FAFAFA; border-radius: var(--radius-sm); padding: 12px; text-align: center; border: 1px solid #EEE; }
.cert-icon { width: 32px; height: 32px; }
.cert-icon svg { width: 100%; height: 100%; }
.cert-item span { font-size: 11px; color: var(--color-text-sec); font-weight: 500; }

/* 详情页底部操作栏：样式对齐通用底部导航，移动端与 PC 均固定贴底（PC 由 base.css 限制在 800px 容器内） */
.detail-footer {
    position: fixed;
    bottom: 0 !important;
    left: 0;
    right: 0;
    z-index: 100;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    /* 避免与底部安全区内边距重复累加高度；安全区只放在 padding-bottom */
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px var(--section-px) max(8px, var(--safe-bottom));
    box-shadow: 0 -1px 0 var(--color-border), 0 -4px 16px rgba(0,0,0,0.06);
    border-top: 1px solid var(--color-border);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
.detail-footer-left { flex-shrink: 0; display: flex; align-items: center; }
.detail-footer-right { flex: 1; display: flex; align-items: center; min-width: 0; }
.detail-footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color:#ffffff;
    padding: 4px 12px;
    min-width: 64px;
	background:#9B1919;
	border-radius:12px;
	
}
.detail-footer-btn svg { width: 22px; height: 22px; }
.detail-footer-btn span { font-size: 11px; font-weight: 600; }
.detail-footer-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, var(--color-red), var(--color-red-light));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    box-shadow: 0 3px 12px rgba(139, 0, 0, 0.28);
    transition: all 0.18s;
}
.detail-footer-btn-primary:active { transform: scale(0.98); opacity: 0.92; }

/* ========================
   移动端中等屏幕（可3列）
   ======================== */
@media (min-width: 600px) and (max-width: 799px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 10px var(--section-px); }
    .detail-cert-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ========================
   PC端布局（>= 800px）
   ======================== */
@media (min-width: 800px) {
    .cat-sidebar { width: 72px !important; min-width: 72px !important; }
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; padding: 8px var(--section-px) !important; }
    .detail-cert-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ===== list.css（已合并） ===== */

/* 列表页特有的小样式：sticky 顶部避让固定 header */
.list-main .products-search-bar {
    /* 避免粘住时与 fixed 顶部 header 重叠 */
    top: calc(44px + var(--safe-top)) !important;
}

/* 单列列表：每排一篇文章 */
#articleGrid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 10px var(--section-px) 12px !important;
}

/* 更像“文章列表”的卡片视觉 */
#articleGrid .article-card {
    position: relative;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(201, 160, 80, 0.25);
    overflow: hidden;
}

#articleGrid .article-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-red), var(--color-gold));
}

#articleGrid .article-card::after {
    content: '›';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(201, 160, 80, 0.9);
    font-size: 26px;
    line-height: 1;
    pointer-events: none;
}

#articleGrid .article-card .product-info {
    padding: 14px 46px 14px 14px !important; /* 右侧给箭头留空间 */
}

#articleGrid .article-card .product-name {
    font-size: 14px !important;
    white-space: normal !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px !important;
}

#articleGrid .article-card .product-sub {
    font-size: 12px !important;
    color: var(--color-text-sec) !important;
    margin-bottom: 6px !important;
}

#articleGrid .article-card .product-sub:last-child {
    margin-bottom: 0 !important;
}
