/* ========================================================================
   桂记鲜果 —— 榴莲主题高端电商样式
   主色：金色 #C88A1A（榴莲果肉），深绿 #2D6A4F（榴莲外壳）
   辅色：琥珀金 #E8B923，翠绿 #52B788，奶油 #FFFBEB
   ======================================================================== */

:root {
    --hx-gold: #C88A1A;
    --hx-gold-light: #E8B923;
    --hx-gold-dark: #8B6508;
    --hx-green: #2D6A4F;
    --hx-green-light: #52B788;
    --hx-green-dark: #1B4332;
    --hx-cream: #FFFBEB;
    --hx-bg: #FAF6EC;
    --hx-bg-alt: #F5EED9;
    --hx-text: #2C1810;
    --hx-text-light: #6B5545;
    --hx-text-muted: #9E8E7E;
    --hx-border: #F0E6D2;
    --hx-border-light: #F7F1E1;
    --hx-gradient: linear-gradient(135deg, #C88A1A 0%, #E8B923 50%, #F4D06F 100%);
    --hx-gradient-green: linear-gradient(135deg, #2D6A4F 0%, #52B788 100%);
    --hx-gradient-dark: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    --hx-shadow: 0 4px 20px rgba(139, 101, 8, 0.08);
    --hx-shadow-hover: 0 8px 30px rgba(139, 101, 8, 0.15);
    --hx-shadow-lg: 0 20px 60px rgba(139, 101, 8, 0.25);
    --hx-radius: 16px;
    --hx-radius-sm: 10px;
    --hx-radius-lg: 24px;
}

* { box-sizing: border-box; }

body {
    background: var(--hx-bg);
    color: var(--hx-text);
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main.content { padding-top: 74px; min-height: 99vh; }
.container { max-width: 1200px; }

/* ===== 通用按钮 ===== */
.hx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 28px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all .3s ease;
    cursor: pointer;
    border: none;
}
.hx-btn-primary {
    background: var(--hx-gradient);
    color: #fff;
    box-shadow: 0 6px 20px rgba(200, 138, 26, 0.35);
}
.hx-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(200, 138, 26, 0.45);
    text-decoration: none;
}
.hx-btn-ghost {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}
.hx-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    border-color: #fff;
    text-decoration: none;
}
.hx-btn-light {
    background: #fff;
    color: var(--hx-gold);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.hx-btn-light:hover {
    color: var(--hx-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* ===== 顶部导航 ===== */
.navbar-hxshop {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--hx-border);
    box-shadow: 0 2px 20px rgba(139, 101, 8, 0.06);
    padding: 0;
    backdrop-filter: blur(10px);
}
.navbar-hxshop .navbar-brand {
    color: var(--hx-gold-dark);
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 2px;
}
.navbar-hxshop .navbar-brand::before {
    content: "👑";
    margin-right: 6px;
}
.navbar-hxshop .navbar-nav > li > a {
    color: var(--hx-text-light);
    font-weight: 500;
    padding: 22px 18px !important;
    transition: color .25s;
    position: relative;
}
.navbar-hxshop .navbar-nav > li > a:hover {
    color: var(--hx-gold);
    background: transparent;
}
.navbar-hxshop .navbar-nav > li > a:hover::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 10px;
    height: 3px;
    background: var(--hx-gradient);
    border-radius: 2px;
}
.navbar-hxshop .btn-mp-open {
    background: var(--hx-gradient);
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 24px;
    margin-top: 14px;
    transition: all .3s;
    box-shadow: 0 3px 12px rgba(200, 138, 26, 0.35);
}
.navbar-hxshop .btn-mp-open:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(200, 138, 26, 0.45);
}

/* ===== Hero 大图 ===== */
.hx-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 0;
    border-radius: 0;
}
.hx-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hx-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(27, 67, 50, 0.85) 0%, 
        rgba(45, 106, 79, 0.6) 40%, 
        rgba(200, 138, 26, 0.3) 100%);
}
.hx-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 80px 0;
    color: #fff;
}
.hx-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.hx-hero-title {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}
.hx-hero-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 600px;
}
.hx-hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}
.hx-hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.hx-stat {
    text-align: left;
}
.hx-stat b {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.hx-stat span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}
.hx-hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: bounce 2s infinite;
    z-index: 2;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* ===== 通用区块 ===== */
.hx-section {
    padding: 60px 0;
}
.hx-section-alt {
    background: var(--hx-bg-alt);
}
.hx-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
}
.hx-section-header-center {
    text-align: center;
    margin-bottom: 48px;
}
.hx-section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--hx-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.hx-section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--hx-gold-dark);
    margin: 0;
    letter-spacing: 1px;
}
.hx-section-header .hx-section-title {
    position: relative;
    padding-bottom: 12px;
}
.hx-section-header .hx-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 4px;
    background: var(--hx-gradient);
    border-radius: 2px;
}
.hx-section-subtitle {
    display: block;
    font-size: 13px;
    color: var(--hx-text-muted);
    font-weight: normal;
    letter-spacing: 1px;
    margin-top: 4px;
}
.hx-section-desc {
    font-size: 15px;
    color: var(--hx-text-light);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}
.hx-more {
    color: var(--hx-gold);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .2s;
    font-weight: 500;
}
.hx-more:hover {
    color: var(--hx-gold-dark);
    text-decoration: none;
    gap: 10px;
}

/* ===== 特色卖点 ===== */
.hx-features {
    padding: 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}
.hx-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hx-feature-card {
    background: #fff;
    border-radius: var(--hx-radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--hx-shadow);
    border: 1px solid var(--hx-border-light);
    transition: transform .4s ease, box-shadow .4s ease;
}
.hx-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hx-shadow-hover);
}
.hx-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: var(--hx-gradient);
    color: #fff;
    font-size: 26px;
    box-shadow: 0 6px 20px rgba(200, 138, 26, 0.3);
}
.hx-feature-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--hx-text);
    margin-bottom: 8px;
}
.hx-feature-desc {
    font-size: 13px;
    color: var(--hx-text-light);
    line-height: 1.7;
}

/* ===== 榴莲品种 ===== */
.hx-varieties {
    padding: 60px 0;
}
.hx-varieties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.hx-variety-card {
    background: #fff;
    border-radius: var(--hx-radius-lg);
    overflow: hidden;
    box-shadow: var(--hx-shadow);
    border: 1px solid var(--hx-border-light);
    transition: transform .4s ease, box-shadow .4s ease;
}
.hx-variety-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hx-shadow-hover);
}
.hx-variety-img {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}
.hx-variety-img > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.hx-variety-card:hover .hx-variety-img > img {
    transform: scale(1.06);
}
.hx-variety-tags {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.hx-variety-tags span {
    background: rgba(255, 255, 255, 0.95);
    color: var(--hx-gold);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.hx-variety-info {
    padding: 20px 22px 24px;
}
.hx-variety-name {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.hx-variety-name h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--hx-text);
    margin: 0;
}
.hx-variety-en {
    font-size: 11px;
    color: var(--hx-text-muted);
    font-style: italic;
    letter-spacing: 1px;
}
.hx-variety-origin {
    font-size: 12px;
    color: var(--hx-green);
    margin-bottom: 10px;
    font-weight: 500;
}
.hx-variety-origin i {
    margin-right: 4px;
}
.hx-variety-desc {
    font-size: 13px;
    color: var(--hx-text-light);
    line-height: 1.7;
    margin: 0;
}

/* ===== 榴莲科普 ===== */
.hx-knowledge {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--hx-cream) 0%, #FFF4D6 100%);
}
.hx-knowledge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hx-knowledge-card {
    background: #fff;
    border-radius: var(--hx-radius);
    padding: 28px 24px;
    border: 1px solid var(--hx-border);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.hx-knowledge-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--hx-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}
.hx-knowledge-card:hover::before {
    transform: scaleX(1);
}
.hx-knowledge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hx-shadow-hover);
}
.hx-knowledge-icon {
    font-size: 36px;
    margin-bottom: 12px;
}
.hx-knowledge-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--hx-gold-dark);
    margin: 0 0 10px;
}
.hx-knowledge-card p {
    font-size: 13px;
    color: var(--hx-text-light);
    line-height: 1.8;
    margin: 0;
}

/* ===== 分类九宫格 ===== */
.hx-cate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hx-cate-item {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--hx-radius);
    transition: all .3s;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--hx-border-light);
    text-decoration: none;
    color: var(--hx-text);
}
.hx-cate-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--hx-shadow-hover);
    text-decoration: none;
    color: var(--hx-text);
}
.hx-cate-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid var(--hx-cream);
    box-shadow: 0 4px 14px rgba(200, 138, 26, 0.12);
    transition: border-color .3s;
}
.hx-cate-item:hover .hx-cate-img {
    border-color: var(--hx-gold-light);
}
.hx-cate-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hx-cate-name {
    font-size: 14px;
    color: var(--hx-text);
    font-weight: 600;
}

/* ===== 轮播 ===== */
.hx-banner {
    border-radius: var(--hx-radius);
    overflow: hidden;
    margin: 18px 0;
    box-shadow: var(--hx-shadow);
}
.hx-banner .item img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}
.hx-banner .carousel-caption {
    background: linear-gradient(transparent, rgba(44, 24, 16, 0.7));
    left: 0;
    right: 0;
    bottom: 0;
    text-align: left;
    padding: 20px 30px;
}
.hx-banner .carousel-caption h3 {
    margin: 0;
    font-size: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.hx-banner .carousel-indicators li {
    width: 20px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border: none;
    border-radius: 2px;
}
.hx-banner .carousel-indicators li.active {
    background: var(--hx-gold-light);
}

/* ===== 拼团专区 ===== */
.hx-pintuan-scroll {
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--hx-gold-light) #f0f0f0;
}
.hx-pintuan-scroll::-webkit-scrollbar { height: 8px; }
.hx-pintuan-scroll::-webkit-scrollbar-thumb {
    background: var(--hx-gold-light);
    border-radius: 4px;
}
.hx-pintuan-list {
    display: inline-flex;
    gap: 18px;
}
.hx-pintuan-card {
    width: 240px;
    flex-shrink: 0;
    border-radius: var(--hx-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--hx-shadow);
    transition: transform .4s ease, box-shadow .4s ease;
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--hx-border-light);
}
.hx-pintuan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hx-shadow-hover);
    text-decoration: none;
    color: inherit;
}
.hx-pt-img-wrap {
    position: relative;
    width: 100%;
    height: 180px;
}
.hx-pt-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hx-pt-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--hx-gradient);
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(200, 138, 26, 0.4);
}
.hx-pt-info { padding: 16px; }
.hx-pt-name {
    font-size: 14px;
    color: var(--hx-text);
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 12px;
    font-weight: 600;
}
.hx-pt-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.hx-pt-cur { display: flex; align-items: baseline; }
.hx-pt-cur .sym { font-size: 14px; color: var(--hx-gold); font-weight: bold; }
.hx-pt-cur .val { font-size: 24px; font-weight: 800; color: var(--hx-gold); }
.hx-pt-tag {
    font-size: 11px;
    color: var(--hx-gold);
    background: rgba(200, 138, 26, 0.12);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}
.hx-pt-solo { font-size: 12px; color: var(--hx-text-muted); text-decoration: line-through; }
.hx-pt-progress { display: flex; align-items: center; gap: 10px; }
.hx-pt-bar {
    flex: 1;
    height: 6px;
    background: var(--hx-cream);
    border-radius: 3px;
    overflow: hidden;
}
.hx-pt-fill {
    height: 100%;
    background: var(--hx-gradient);
    border-radius: 3px;
    transition: width .5s;
}
.hx-pt-progress-text { font-size: 11px; color: var(--hx-text-light); white-space: nowrap; }

/* ===== 拼团列表网格 ===== */
.hx-pintuan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.hx-pintuan-grid .hx-pintuan-card { width: 100%; }

/* ===== 商品网格 ===== */
.hx-goods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hx-goods-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.hx-goods-card {
    border-radius: var(--hx-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--hx-shadow);
    transition: transform .4s ease, box-shadow .4s ease;
    position: relative;
    border: 1px solid var(--hx-border-light);
}
.hx-goods-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hx-shadow-hover);
}
.hx-goods-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.hx-goods-img {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}
.hx-goods-img > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.hx-goods-card:hover .hx-goods-img > img {
    transform: scale(1.06);
}
.hx-goods-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--hx-gradient-green);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 10px;
}
.hx-goods-info { padding: 16px; }
.hx-goods-name {
    font-size: 14px;
    color: var(--hx-text);
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
    font-weight: 600;
    line-height: 1.4;
}
.hx-goods-store {
    font-size: 12px;
    color: var(--hx-text-muted);
    margin-bottom: 10px;
}
.hx-goods-store i {
    font-size: 11px;
    margin-right: 4px;
}
.hx-goods-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.hx-goods-price { display: flex; align-items: baseline; gap: 6px; }
.hx-goods-cur { display: flex; align-items: baseline; }
.hx-goods-cur .sym { font-size: 13px; color: var(--hx-gold); font-weight: bold; }
.hx-goods-cur .val { font-size: 22px; font-weight: 800; color: var(--hx-gold); }
.hx-goods-old { font-size: 12px; color: var(--hx-text-muted); text-decoration: line-through; }
.hx-goods-sales { font-size: 12px; color: var(--hx-text-muted); }

.hx-goods-plus {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    background: var(--hx-gradient);
    border-radius: 50%;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s;
    box-shadow: 0 4px 14px rgba(200, 138, 26, 0.4);
    z-index: 2;
}
.hx-goods-plus:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(200, 138, 26, 0.55);
    color: #fff;
}

/* ===== 筛选条 ===== */
.hx-filter {
    background: #fff;
    border-radius: var(--hx-radius);
    padding: 16px 24px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    box-shadow: var(--hx-shadow);
    border: 1px solid var(--hx-border-light);
}
.hx-filter a {
    padding: 8px 22px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--hx-text-light);
    background: var(--hx-cream);
    transition: all .25s;
    font-weight: 500;
    text-decoration: none;
}
.hx-filter a.active,
.hx-filter a:hover {
    background: var(--hx-gradient);
    color: #fff;
    text-decoration: none;
}
.hx-filter .search-box {
    margin-left: auto;
    display: flex;
}
.hx-filter .search-box input {
    border-radius: 20px 0 0 20px;
    border-color: var(--hx-border);
    border-right: none;
    width: 200px;
}
.hx-filter .search-box input:focus { border-color: var(--hx-gold-light); outline: none; }
.hx-filter .search-box .btn {
    border-radius: 0 20px 20px 0;
    background: var(--hx-gradient);
    border-color: var(--hx-gold);
    color: #fff;
}

/* ===== 详情页 ===== */
.hx-detail-top {
    background: #fff;
    border-radius: var(--hx-radius);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding: 32px;
    box-shadow: var(--hx-shadow);
    border: 1px solid var(--hx-border-light);
}
.hx-detail-gallery { flex: 0 0 420px; max-width: 420px; }
.hx-detail-gallery img { width: 100%; border-radius: var(--hx-radius-sm); }
.hx-detail-info { flex: 1; min-width: 280px; }
.hx-detail-info h1 {
    font-size: 24px;
    margin: 0 0 16px;
    color: var(--hx-text);
    font-weight: 700;
}
.hx-detail-price-box {
    background: linear-gradient(135deg, rgba(200, 138, 26, 0.08), rgba(232, 185, 35, 0.08));
    border-radius: var(--hx-radius-sm);
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 16px;
    border-left: 4px solid var(--hx-gold);
}
.hx-detail-price-box .cur { font-size: 36px; font-weight: 800; color: var(--hx-gold); }
.hx-detail-price-box .cur .sym { font-size: 20px; }
.hx-detail-price-box .old { font-size: 15px; color: var(--hx-text-muted); text-decoration: line-through; }
.hx-detail-meta { color: var(--hx-text-light); font-size: 14px; line-height: 2; }
.hx-detail-tip {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--hx-cream);
    border-radius: 10px;
    color: var(--hx-gold-dark);
    font-size: 13px;
    border-left: 3px solid var(--hx-gold-light);
}

.hx-detail-desc {
    background: #fff;
    border-radius: var(--hx-radius);
    padding: 32px;
    margin-top: 24px;
    box-shadow: var(--hx-shadow);
    border: 1px solid var(--hx-border-light);
}
.hx-detail-desc h3 { font-size: 20px; margin: 0 0 16px; color: var(--hx-gold-dark); font-weight: 700; }
.hx-detail-desc img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }

/* 拼团详情 */
.hx-pt-detail-top {
    background: #fff;
    border-radius: var(--hx-radius);
    padding: 32px;
    box-shadow: var(--hx-shadow);
    border: 1px solid var(--hx-border-light);
}
.hx-pt-detail-head { display: flex; gap: 24px; }
.hx-pt-detail-head img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: var(--hx-radius-sm);
    flex-shrink: 0;
}
.hx-pt-groups { margin-top: 16px; }
.hx-pt-group-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed var(--hx-border);
}
.hx-pt-group-row:last-child { border-bottom: none; }
.hx-pt-group-row .btn {
    color: var(--hx-gold);
    border-color: var(--hx-gold);
    background: transparent;
    font-weight: 600;
}
.hx-pt-group-row .btn:hover {
    background: var(--hx-gradient);
    color: #fff;
    border-color: var(--hx-gold);
}

/* 底部操作栏 */
.hx-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--hx-border);
    padding: 12px 24px;
    display: flex;
    gap: 16px;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 -2px 20px rgba(139, 101, 8, 0.08);
}
.hx-action-bar .btn-buy {
    flex: 1;
    max-width: 280px;
    background: var(--hx-gradient);
    color: #fff;
    border: none;
    font-size: 16px;
    padding: 14px;
    border-radius: 28px;
    box-shadow: 0 6px 20px rgba(200, 138, 26, 0.4);
    font-weight: 600;
}
.hx-action-bar .btn-buy:hover { color: #fff; transform: translateY(-1px); }
.hx-action-bar .btn-cart {
    flex: 1;
    max-width: 280px;
    background: #fff;
    color: var(--hx-gold);
    border: 2px solid var(--hx-gold);
    font-size: 16px;
    padding: 12px;
    border-radius: 28px;
    font-weight: 600;
}
.hx-action-bar .btn-cart:hover { background: var(--hx-cream); }
.hx-action-spacer { height: 90px; }

/* ===== 分页 ===== */
.pagination { margin: 32px 0 10px; text-align: center; }
.pagination li { display: inline-block; margin: 0 4px; }
.pagination li a,
.pagination li span {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--hx-border);
    color: var(--hx-text-light);
    font-size: 13px;
    transition: all .2s;
    font-weight: 500;
}
.pagination li.active span,
.pagination li.active a {
    background: var(--hx-gradient);
    color: #fff;
    border-color: var(--hx-gold);
    font-weight: 700;
}
.pagination li.disabled span { color: #ccc; }
.pagination li a:hover {
    border-color: var(--hx-gold);
    color: var(--hx-gold);
    text-decoration: none;
}

/* ===== 优惠券 ===== */
.hx-coupon-list { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.hx-coupon-item {
    flex: 1;
    min-width: 260px;
    max-width: 360px;
    background: var(--hx-gradient);
    border-radius: var(--hx-radius);
    padding: 24px 28px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(200, 138, 26, 0.3);
    position: relative;
    overflow: hidden;
}
.hx-coupon-item::before {
    content: "";
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 1px;
    border-left: 1px dashed rgba(255,255,255,0.5);
}
.hx-coupon-item .amt { font-size: 32px; font-weight: 800; }
.hx-coupon-item .amt .sym { font-size: 16px; }
.hx-coupon-item .meta { font-size: 13px; opacity: 0.95; margin-top: 4px; }
.hx-coupon-item .btn {
    background: #fff;
    color: var(--hx-gold);
    border: none;
    font-size: 14px;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    white-space: nowrap;
}
.hx-coupon-item .btn:hover { transform: translateY(-2px); }

/* ===== CTA 引导区 ===== */
.hx-cta {
    padding: 80px 0;
    background: var(--hx-gradient-dark);
    position: relative;
    overflow: hidden;
}
.hx-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.hx-cta-inner {
    text-align: center;
    position: relative;
    z-index: 1;
    color: #fff;
}
.hx-cta-inner h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: 2px;
}
.hx-cta-inner p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 32px;
}

/* ===== 弹窗 ===== */
.mp-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(27, 67, 50, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.mp-modal {
    background: #fff;
    border-radius: var(--hx-radius-lg);
    width: 360px;
    max-width: 95vw;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    animation: mp-pop .35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes mp-pop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.mp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--hx-gradient);
    color: #fff;
}
.mp-modal-title { font-size: 18px; font-weight: 700; }
.mp-modal-close { font-size: 32px; cursor: pointer; line-height: 1; opacity: 0.8; transition: opacity .2s; }
.mp-modal-close:hover { opacity: 1; }
.mp-modal-body { padding: 28px 24px; text-align: center; }
.mp-qrcode-wrap { display: flex; align-items: center; justify-content: center; }
.mp-qrcode-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border: 2px solid var(--hx-border);
    border-radius: var(--hx-radius-sm);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.mp-qrcode-empty {
    width: 220px;
    height: 220px;
    border: 2px dashed var(--hx-gold-light);
    border-radius: var(--hx-radius-sm);
    flex-direction: column;
    color: var(--hx-text-light);
}
.mp-qrcode-empty i { font-size: 48px; margin-bottom: 12px; color: var(--hx-gold-light); }
.mp-qrcode-empty p { font-size: 13px; margin: 0; padding: 0 16px; }
.mp-guide {
    margin: 20px 0 0;
    font-size: 14px;
    color: var(--hx-text-light);
    line-height: 1.8;
    padding: 0 12px;
}
.mp-modal-footer { padding: 0 24px 24px; text-align: center; }
.mp-modal-footer .btn {
    min-width: 150px;
    border-radius: 24px;
    background: var(--hx-gradient);
    color: #fff;
    border: none;
    padding: 12px 0;
    font-weight: 600;
    font-size: 15px;
}
.mp-modal-footer .btn:hover { box-shadow: 0 6px 20px rgba(200, 138, 26, 0.4); }

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .hx-features-grid { grid-template-columns: repeat(2, 1fr); }
    .hx-varieties-grid { grid-template-columns: repeat(2, 1fr); }
    .hx-knowledge-grid { grid-template-columns: repeat(2, 1fr); }
    .hx-goods-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
    .hx-goods-grid { grid-template-columns: repeat(3, 1fr); }
    .hx-pintuan-grid { grid-template-columns: repeat(2, 1fr); }
    .hx-cate-grid { grid-template-columns: repeat(4, 1fr); }
    
    .hx-hero { min-height: 500px; }
    .hx-hero-title { font-size: 40px; }
    .hx-hero-stats { gap: 32px; }
    .hx-section-title { font-size: 26px; }
}

@media (max-width: 768px) {
    .hx-hero { min-height: 420px; }
    .hx-hero-content { padding: 60px 0; }
    .hx-hero-title { font-size: 32px; }
    .hx-hero-subtitle { font-size: 15px; }
    .hx-hero-actions { flex-direction: column; gap: 12px; }
    .hx-hero-actions .hx-btn { width: 100%; }
    .hx-hero-stats { gap: 24px; padding-top: 24px; }
    .hx-stat b { font-size: 22px; }
    .hx-hero-scroll { display: none; }

    .hx-features { margin-top: -20px; }
    .hx-features-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .hx-feature-card { padding: 24px 16px; }
    .hx-feature-icon { width: 52px; height: 52px; font-size: 22px; }

    .hx-varieties-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .hx-variety-info { padding: 14px 16px 18px; }
    .hx-variety-name h3 { font-size: 16px; }

    .hx-knowledge-grid { grid-template-columns: 1fr; }
    
    .hx-goods-grid,
    .hx-goods-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .hx-goods-cur .val { font-size: 18px; }
    
    .hx-cate-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .hx-cate-item { padding: 18px 10px; }
    .hx-cate-img { width: 60px; height: 60px; }
    .hx-cate-name { font-size: 12px; }

    .hx-pintuan-grid { grid-template-columns: 1fr; }
    
    .hx-section { padding: 40px 0; }
    .hx-section-title { font-size: 24px; }
    .hx-section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    
    .hx-detail-top { flex-direction: column; padding: 20px; }
    .hx-detail-gallery { flex: 0 0 100%; max-width: 100%; }
    .hx-pt-detail-head { flex-direction: column; }
    .hx-pt-detail-head img { width: 100%; height: 260px; }

    .hx-banner .item img { height: 200px; }

    .hx-action-bar .btn-buy,
    .hx-action-bar .btn-cart { font-size: 14px; padding: 10px; }

    .hx-filter { padding: 12px; }
    .hx-filter a { padding: 6px 14px; font-size: 12px; }
    .hx-filter .search-box { width: 100%; margin-left: 0; }
    .hx-filter .search-box input { width: 100%; }

    .hx-cta { padding: 50px 0; }
    .hx-cta-inner h2 { font-size: 26px; }
}

@media (max-width: 480px) {
    .hx-varieties-grid { grid-template-columns: 1fr; }
    .hx-coupon-list { flex-direction: column; }
    .hx-coupon-item { max-width: 100%; }
}