/* 沉湖湿地 - 自然风格主题（全站系统字体，网页不加载自托管 Noto，约 88MB） */
:root {
    --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-serif: 'Songti SC', 'STSong', 'SimSun', serif;
    --primary: #1a4d3e;
    --primary-dark: #0f3028;
    --primary-light: #2d8a7b;
    
    --ink: #1a2a24;
    --text: #333333;
    --text-light: #666666;
    --gray: #999999;
    
    --bg-page: #f8faf9;
    --bg-card: #ffffff;
    --bg-cream: #f0f5f3;
    --bg-hero: linear-gradient(145deg, #1a4d3e 0%, #0f3028 60%, #1a2a24 100%);
    
    --gold: #c9a962;
    --gold-dark: #a88c3c;
    --accent: #2d8a7b;
    
    --border: #e0e5e2;
    --border-light: #f0f0f0;
    
    --orange: #d4842a;
    --success: #2e7d32;
    --danger: #c0392b;
    --bg: var(--bg-page);
    
    --nav-height: 70px;
    --product-cover-aspect: 3 / 2; /* 蟹卡/蟹礼封面统一横版比例 */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    background: var(--bg-page);
    color: var(--text);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
    padding-top: var(--nav-height);
}
.serif { font-family: var(--font-serif); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== Navigation ========== */
.site-nav {
    background: rgba(26, 77, 62, 0.98);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding-top: var(--safe-top);
    height: calc(var(--nav-height) + var(--safe-top));
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}
.nav-logo {
    color: #fff;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.nav-logo:hover { color: var(--gold); }
.nav-logo img { display: block; }
.nav-links {
    display: flex;
    gap: 0;
    list-style: none;
}
.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 22px 18px;
    font-size: 14px;
    transition: all 0.3s;
    display: block;
    position: relative;
}
.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}
.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}
.nav-user a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}
.nav-user a:hover { color: var(--gold); }
.nav-user-sep {
    display: none;
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
}
.nav-cs { color: var(--gold); font-size: 14px; }
.nav-cs:hover { color: #fff; }
.nav-phone { color: var(--gold); font-size: 15px; }

/* 汉堡菜单按钮 */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* 移动端抽屉菜单 */
.nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    pointer-events: none;
}
.nav-drawer.open {
    pointer-events: auto;
}
.nav-drawer-mask {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s;
}
.nav-drawer.open .nav-drawer-mask {
    opacity: 1;
}
.nav-drawer-body {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.nav-drawer.open .nav-drawer-body {
    transform: translateX(0);
}
.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--primary);
}
.nav-drawer-header img { filter: brightness(10); }
.nav-drawer-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.nav-drawer-links {
    flex: 1;
    min-height: 0;
    list-style: none;
    padding: 8px 0;
}
.nav-drawer-links li {
    border-bottom: 1px solid var(--border-light);
}
.nav-drawer-links a {
    display: block;
    padding: 14px 24px;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}
.nav-drawer-links a:active {
    background: var(--bg-cream);
}
.nav-drawer-user {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}
.nav-drawer-user a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
}
.nav-drawer-user a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    -webkit-user-select: none;
    user-select: none;
}
.btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 77, 62, 0.3);
}
.btn:active {
    transform: translateY(0);
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 77, 62, 0.3);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}
.btn-gold {
    display: inline-block;
    background: var(--gold);
    color: var(--ink);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
}
.btn-gold:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(201, 169, 98, 0.35);
}
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}
.card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 30px;
}
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff3e0; color: #e65100; }
.badge-secondary { background: var(--bg-cream); color: var(--gray); }
.badge-primary { background: #e0f2f1; color: var(--primary); }
.badge-danger { background: #fdecea; color: #b71c1c; }
.badge-info { background: #e3f2fd; color: #1565c0; }
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 77, 62, 0.1);
}
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

/* ========== Hero ========== */
.page-header {
    background: var(--bg-hero);
    padding: 80px 0;
    text-align: center;
}
.page-header h1 {
    font-family: var(--font-serif);
    font-size: 38px;
    color: #fff;
    margin-bottom: 12px;
}
.page-header p {
    color: rgba(255,255,255,0.75);
    font-size: 16px;
}
.section { padding: 80px 0; }
.section-cream { background: var(--bg-cream) !important; }
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-family: var(--font-serif);
    font-size: 34px;
    color: var(--ink);
    margin-bottom: 12px;
}
.section-header p {
    color: var(--gray);
    font-size: 16px;
}
.divider {
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 16px auto 0;
}

.hero {
    background: var(--bg-hero);
    padding: 120px 0 140px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232d8a7b' fill-opacity='0.06'%3E%3Cpath d='M40 36c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4zm0-24c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4zm0 48c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4zm-24-24c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4zm0-24c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4zm48 0c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4zm0 24c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    background: rgba(201, 169, 98, 0.2);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(201, 169, 98, 0.4);
}
.hero-title {
    font-family: var(--font-serif);
    font-size: 68px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 6px;
}
.hero-title span {
    color: var(--gold);
}
.hero-sub {
    color: rgba(255,255,255,0.75);
    font-size: 17px;
    margin-bottom: 40px;
    letter-spacing: 2px;
}
.hero-btn {
    display: inline-block;
    padding: 16px 48px;
    background: var(--gold);
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    letter-spacing: 2px;
}
.hero-btn:hover {
    background: #d4b872;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* 首页轮播（后台 banners 表） */
.hero-banner {
    position: relative;
    overflow: hidden;
    background: var(--primary-dark);
}
.hero-banner-track {
    position: relative;
    min-height: 420px;
}
.hero-banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
}
.hero-banner-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.hero-banner-overlay {
    min-height: 420px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(15, 48, 40, 0.88) 0%, rgba(15, 48, 40, 0.45) 55%, rgba(15, 48, 40, 0.2) 100%);
    padding: 80px 0;
}
.hero-banner-overlay--light {
    background: linear-gradient(90deg, rgba(15, 48, 40, 0.72) 0%, rgba(15, 48, 40, 0.28) 45%, rgba(15, 48, 40, 0.08) 100%);
}
.hero-banner-inner {
    max-width: 560px;
    text-align: left;
}
.hero-banner-inner .hero-badge { margin-bottom: 16px; }
.hero-banner-inner .hero-title {
    font-size: 48px;
    letter-spacing: 4px;
    text-align: left;
    margin-bottom: 12px;
}
.hero-banner-inner .hero-sub {
    text-align: left;
    margin-bottom: 28px;
    font-size: 16px;
}
.hero-banner-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.hero-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}
.hero-banner-dot.is-active {
    background: var(--gold);
    transform: scale(1.15);
}
.hero-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
.hero-banner-arrow:hover { background: rgba(0, 0, 0, 0.45); }
.hero-banner-arrow--prev { left: 12px; }
.hero-banner-arrow--next { right: 12px; }

/* 轮播内：选购 / 兑换 / 溯源 */
.hero-banner-slide--quick {
    background-size: cover;
    background-position: center;
}
.hero-banner-slide-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.hero-banner-overlay--quick {
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 48, 40, 0.92) 0%, rgba(26, 77, 62, 0.75) 100%);
}
.hero-banner-inner--quick {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
}
.hero-banner-inner--quick .hero-title,
.hero-banner-inner--quick .hero-sub {
    text-align: center;
}
.hero-quick-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--gold);
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(212, 160, 23, 0.45);
}
.hero-banner-slide--shop {
    background-image: linear-gradient(145deg, #1a5c4a 0%, #0f3028 50%, #2d4a3e 100%);
}
.hero-banner-slide--redeem {
    background-image: linear-gradient(145deg, #1a4d5c 0%, #0f2830 50%, #1e3d4a 100%);
}
.hero-banner-slide--trace {
    background-image: linear-gradient(145deg, #3d4a1a 0%, #28300f 50%, #2a3d1e 100%);
}
.hero-banner-slide--quick:hover .hero-btn {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* ========== Auth / Login ========== */
body.page-login {
    background: #0f3028;
}
body.page-login .site-footer {
    display: none;
}
.auth-page {
    background-color: #1a4d3e;
    background-image: linear-gradient(145deg, #1a4d3e 0%, #0f3028 60%, #1a2a24 100%);
    min-height: calc(100vh - var(--nav-height, 70px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 60px;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%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");
    pointer-events: none;
}
.auth-page-inner {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}
.auth-brand {
    text-align: center;
    margin-bottom: 24px;
}
.auth-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(201, 169, 98, 0.18);
    border: 1px solid rgba(201, 169, 98, 0.55);
    border-radius: 30px;
    color: #e8d5a0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.auth-title {
    color: #fff;
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.auth-subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    margin-top: 6px;
    letter-spacing: 1px;
}
.auth-card {
    padding: 28px 24px !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18) !important;
}
.auth-card .form-group { margin-bottom: 18px; }
.auth-card .form-group label { font-size: 14px; margin-bottom: 6px; }
.auth-code-row { display: flex; gap: 10px; }
.auth-code-row .form-control { flex: 1; min-width: 0; }
.auth-send-btn { white-space: nowrap; flex-shrink: 0; padding: 12px 14px !important; }
.auth-submit {
    width: 100%;
    padding: 14px !important;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 4px;
}
.auth-alert {
    background: #fff7f0;
    border: 1px solid #f0c0a0;
    color: #a05020;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}
.auth-agreement {
    text-align: center;
    color: rgba(0,0,0,0.4);
    font-size: 12px;
    margin-top: 20px;
}
.auth-agreement a { color: var(--primary); text-decoration: none; }

/* ========== Features ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.feature-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border-radius: 16px;
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 77, 62, 0.1);
    border-color: var(--primary-light);
}
.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #fff;
}
.feature-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}
.feature-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ========== Products ========== */
/* ========== Trace Section ========== */
.trace-section {
    background: var(--bg-body, #fff);
}
.trace-panel {
    max-width: 640px;
    margin: 0 auto;
    padding: 28px 24px 24px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(26, 77, 62, 0.06);
    text-align: center;
}
.trace-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.trace-steps .step {
    text-align: center;
    flex: 0 0 auto;
    min-width: 72px;
}
.trace-steps .step-icon {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-cream);
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.trace-steps .step-text {
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 0.5px;
}
.trace-steps .step-connector {
    flex: 0 0 48px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 22px 4px 0;
    opacity: 0.55;
}
.trace-query-box {
    display: flex;
    align-items: stretch;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background: var(--bg-cream);
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-sizing: border-box;
    text-align: left;
}
.trace-query-box:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(45, 138, 123, 0.12);
}
.trace-query-box .input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 14px;
    gap: 8px;
    min-width: 0;
}
.trace-query-box .input-icon {
    color: var(--gray);
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}
.trace-query-box input {
    flex: 1;
    min-width: 0;
    padding: 14px 0;
    border: none;
    font-size: 15px;
    outline: none;
    background: transparent;
    color: var(--ink);
}
.trace-query-box input::placeholder {
    color: var(--gray);
    font-size: 14px;
}
.trace-query-box .input-wrapper:focus-within .input-icon {
    color: var(--primary);
}
.trace-query-box button {
    padding: 0 22px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s;
    flex-shrink: 0;
    letter-spacing: 1px;
}
.trace-query-box button:hover {
    background: var(--primary-dark);
}
.trace-section .section-header h2 {
    font-family: var(--font-serif);
    letter-spacing: 2px;
}
.trace-section .section-header .divider {
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    height: 2px;
    width: 64px;
}
.trace-hint {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--gray);
    letter-spacing: 0.5px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(var(--product-cols, 3), 1fr);
    gap: 24px;
}
.grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
    font-size: 15px;
}
.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    opacity: 0.3;
    color: var(--gold);
}
.product-info-sub {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.5;
}
.product-info-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    gap: 12px;
}
.product-card {
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(26, 77, 62, 0.04);
}
.product-card > a {
    display: block;
    color: inherit;
    text-decoration: none;
    line-height: 0;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 77, 62, 0.12);
    border-color: var(--primary-light);
}
.product-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: var(--product-cover-aspect);
    min-height: 160px;
    background: var(--bg-card);
    border-radius: 14px 14px 0 0;
    line-height: 0;
    /* 内缩“画框”，遮住素材四角黑点，呈现圆角卡外形 */
    --product-img-inset: clamp(6px, 1.8%, 14px);
    --product-img-inner-radius: 12px;
}
.product-img img,
.product-img .product-cover-img {
    position: absolute;
    inset: var(--product-img-inset);
    width: calc(100% - 2 * var(--product-img-inset));
    height: calc(100% - 2 * var(--product-img-inset));
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
    background: var(--bg-cream);
    border-radius: var(--product-img-inner-radius);
    transform: scale(1.07);
    transform-origin: center center;
    clip-path: inset(0 round var(--product-img-inner-radius));
}
.product-img .tag {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #fff;
    padding: 4px 14px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}
.product-info { padding: 20px; }
.product-info h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.product-info .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}
.product-info .price small {
    font-size: 14px;
    font-weight: 400;
}
.btn-detail {
    display: inline-block;
    color: var(--text-light);
    font-size: 13px;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: color 0.25s, border-color 0.25s;
}
.btn-detail:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* ========== About ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text h2 {
    font-family: var(--font-serif);
    font-size: 34px;
    color: var(--ink);
    margin-bottom: 20px;
}
.about-text p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}
.about-text p.about-highlight {
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
}

/* 首页评价 */
.review-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 6px 14px;
    background: var(--bg-cream);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-light);
}
.review-summary strong {
    color: var(--primary);
    font-weight: 600;
}
.review-summary .stars {
    color: #f0a500;
    letter-spacing: 1px;
}
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.review-card.card {
    padding: 24px;
}
.review-card {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: box-shadow 0.25s, border-color 0.25s;
}
.review-card:hover {
    box-shadow: 0 12px 32px rgba(26, 77, 62, 0.08);
    border-color: rgba(45, 138, 123, 0.25);
}
.review-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    overflow: hidden;
    flex-shrink: 0;
}
.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.review-stars {
    font-size: 12px;
    color: #f0a500;
    letter-spacing: 1px;
}
.review-body {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0 0 8px;
}
.review-product {
    font-size: 12px;
    color: var(--gray);
}

/* 产品页企业定制 */
.products-cta-wrap {
    max-width: 700px;
    margin: 0 auto;
}
.products-cta-card {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    padding: 48px 32px;
    text-align: center;
    border-radius: 16px;
    border: 1px solid rgba(201, 169, 98, 0.2);
    box-shadow: 0 16px 40px rgba(26, 77, 62, 0.15);
}
.products-cta-card h2 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 12px;
    font-family: var(--font-serif);
}
.products-cta-card h2 em {
    font-style: normal;
    color: var(--gold);
}
.products-cta-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.nav-logo-img {
    height: 44px;
    width: auto;
    max-width: min(240px, 56vw);
    display: block;
    object-fit: contain;
}
.nav-drawer-logo {
    height: 36px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}
.footer-desc,
.footer-contact {
    font-size: 13px;
    line-height: 1.8;
}
.footer-contact i {
    margin-right: 6px;
    width: 14px;
    text-align: center;
    color: var(--gold);
}

.btn-more {
    display: inline-block;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
}
.btn-more:hover { color: var(--primary-light); }

.about-visual { position: relative; }
.about-img {
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.about-img-seal {
    position: relative;
    padding: 0;
    background: #0f3028;
    box-shadow: 0 16px 40px rgba(26, 77, 62, 0.15);
    border: 1px solid rgba(201, 169, 98, 0.2);
}
.about-seal-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: -45px;
    position: relative;
    z-index: 1;
}
.about-stat {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}
.about-stat .num {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-serif);
}
.about-stat .label {
    font-size: 13px;
    color: var(--gray);
    margin-top: 4px;
}

/* ========== CTA ========== */
.cta-bar {
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    text-align: center;
}
.cta-bar h2 {
    font-family: var(--font-serif);
    font-size: 34px;
    color: #fff;
    margin-bottom: 16px;
}
.cta-bar h2 span { color: var(--gold); }
.cta-bar p {
    color: rgba(255,255,255,0.75);
    font-size: 16px;
    margin-bottom: 30px;
}
.cta-bar .btn-gold {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
}
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.6);
    padding: 50px 0 20px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.footer-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    display: block;
    line-height: 2;
    font-size: 14px;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* ========== Toast ========== */
.toast {
    position: fixed;
    top: 90px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    max-width: 300px;
}
.toast.show { opacity: 1; }
.toast.error { background: #dc3545; }
.toast.success { background: #28a745; }

/* ========== Tables ========== */
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th,
.table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.table th {
    font-weight: 600;
    color: var(--text);
    background: var(--bg-cream);
}
.table tbody tr:hover {
    background: var(--bg-cream);
}

/* ========== Product Detail Page ========== */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

/* ========== Member Page ========== */
.member-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 30px;
    overflow: visible;
    max-width: 100%;
}
.member-tabs::-webkit-scrollbar { display: none; }
.member-tab {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    -webkit-tap-highlight-color: transparent;
}
.member-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ========== Responsive — Tablet ========== */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; --product-cols: 2 !important; }
    .hero-banner-inner .hero-title { font-size: 36px; }
    .hero-banner-track,
    .hero-banner-overlay { min-height: 360px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ========== Responsive — Mobile ========== */
@media (max-width: 768px) {
    :root {
        --nav-height: 56px;
    }
    
    body {
        padding-top: var(--nav-height);
    }
    
    .container { padding: 0 16px; }
    
    /* 导航栏移动端 */
    .nav-links { display: none; }
    .nav-user .nav-phone-text { display: none; }
    .nav-user .nav-cs-text { display: none; }
    .nav-user {
        gap: 0;
        margin-right: 4px;
    }
    .nav-user-sep {
        display: block;
        height: 20px;
        margin: 0 10px;
    }
    .nav-user a {
        font-size: 13px;
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 10px;
        border-radius: 8px;
        -webkit-tap-highlight-color: transparent;
    }
    .nav-user a.nav-login,
    .nav-user a.nav-account {
        padding-right: 6px;
    }
    .nav-user a.nav-cs {
        margin-left: 2px;
        padding: 8px 14px;
        background: rgba(201, 169, 98, 0.14);
        border: 1px solid rgba(201, 169, 98, 0.35);
        border-radius: 22px;
    }
    .nav-user a.nav-cs:active {
        background: rgba(201, 169, 98, 0.28);
    }
    .nav-hamburger { display: flex; margin-left: 6px; }
    .nav-drawer { display: block; }
    .nav-logo img { height: 36px !important; }
    
    /* Hero 移动端 */
    .hero-banner-arrow { width: 36px; height: 36px; font-size: 22px; }
    .hero-quick-icon { width: 56px; height: 56px; font-size: 24px; margin-bottom: 14px; }
    .hero { padding: 80px 0 100px; }
    .hero-banner-inner .hero-title { font-size: 32px; }
    .hero-banner-inner .hero-sub { font-size: 14px; }
    .hero-banner-track,
    .hero-banner-overlay { min-height: 320px; padding: 60px 0; }
    .review-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 40px; letter-spacing: 3px; margin-bottom: 12px; }
    .hero-sub { font-size: 14px; margin-bottom: 30px; letter-spacing: 1px; }
    .hero-badge { font-size: 10px; letter-spacing: 1.5px; padding: 6px 14px; margin-bottom: 16px; }
    .hero-btn { padding: 14px 36px; font-size: 15px; }
    
    /* Section 移动端 */
    .section { padding: 50px 0; }
    .section-header { margin-bottom: 30px; }
    .section-header h2 { font-size: 26px; }
    .section-header p { font-size: 14px; }
    
    /* Page Header 移动端 */
    .page-header { padding: 50px 0; }
    .page-header h1 { font-size: 26px; }
    .page-header p { font-size: 14px; }
    
    /* Features 移动端 */
    .feature-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .feature-item { padding: 24px 14px; }
    .feature-icon { width: 56px; height: 56px; font-size: 22px; margin-bottom: 14px; }
    .feature-item h4 { font-size: 15px; margin-bottom: 8px; }
    .feature-item p { font-size: 12px; line-height: 1.6; }
    
    /* Products 移动端 */
    /* Trace 移动端 */
    .trace-panel { padding: 22px 16px 18px; }
    .trace-steps { gap: 4px; margin-bottom: 18px; }
    .trace-steps .step-icon { width: 40px; height: 40px; font-size: 15px; }
    .trace-steps .step-text { font-size: 12px; }
    .trace-steps .step-connector { flex-basis: 28px; margin-top: 20px; }
    .trace-query-box input { padding: 12px 0; font-size: 14px; }
    .trace-query-box button { padding: 0 16px; font-size: 13px; }
    .product-grid { grid-template-columns: 1fr !important; gap: 16px; }
    .product-card { border-radius: 12px; }
    .product-img { border-radius: 12px 12px 0 0; }
    .product-info { padding: 14px; }
    .product-info h3 { font-size: 14px; margin-bottom: 6px; }
    .product-info .price { font-size: 20px; margin-bottom: 8px; }
    .product-info .price small { font-size: 12px; }
    .btn-detail { font-size: 13px; }
    
    /* About 移动端 */
    .about-text h2 { font-size: 26px; margin-bottom: 16px; }
    .about-text p { font-size: 14px; }
    .about-img { height: 280px; border-radius: 16px; }
    .crab-art { width: 200px; height: 200px; }
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: -30px; }
    .about-stat { padding: 14px 10px; }
    .about-stat .num { font-size: 22px; }
    .about-stat .label { font-size: 11px; }
    
    /* CTA 移动端 */
    .cta-bar { padding: 40px 0; }
    .cta-bar h2 { font-size: 26px; margin-bottom: 10px; }
    .cta-bar p { font-size: 14px; margin-bottom: 24px; }
    .btn-gold { padding: 12px 32px; font-size: 15px; }
    
    /* Footer 移动端 */
    .site-footer { padding: 20px 0 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 16px; }
    .footer-grid > div:nth-child(n+3) { display: none; }
    .footer-title { font-size: 14px; margin-bottom: 8px; }
    .footer-links a { font-size: 13px; line-height: 2; }
    .footer-bottom { font-size: 11px; }
    .site-footer p { line-height: 1.6; }
    .footer-grid > div:nth-child(n+3) { display: none; }
    
    /* Product Detail 移动端 */
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    /* Card 移动端 */
    .card { padding: 20px; border-radius: 12px; }
    
    /* Table 移动端 */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table th, .table td { padding: 10px 8px; font-size: 13px; }
    
    /* Member tabs 移动端 */
    .member-tab { padding: 12px 16px; font-size: 14px; }
}

/* ========== Responsive — Small Mobile ========== */
@media (max-width: 380px) {
    .hero { padding: 60px 0 80px; }
    .hero-title { font-size: 32px; letter-spacing: 2px; }
    .hero-sub { font-size: 13px; margin-bottom: 24px; }
    .hero-badge { font-size: 9px; padding: 5px 10px; letter-spacing: 1px; }
    .hero-btn { padding: 12px 28px; font-size: 14px; }
    
    .product-grid { grid-template-columns: 1fr !important; gap: 12px; }
    .product-img { min-height: 0; }
    .product-info { padding: 12px; }
    .product-info h3 { font-size: 13px; }
    .product-info .price { font-size: 18px; }
    .feature-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .about-stats { grid-template-columns: 1fr; gap: 10px; margin-top: -20px; }
    .about-img { height: 240px; }
    .crab-art { width: 150px; height: 150px; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .footer-title { font-size: 13px; margin-bottom: 8px; }
    .footer-links a { font-size: 12px; line-height: 2; }
    .footer-bottom { font-size: 11px; }
    .site-footer p { line-height: 1.6; }
    
    /* 会员中心 */
    .member-tab { padding: 10px 12px; font-size: 13px; }
    
    /* 购买弹窗移动端紧凑 */
    .modal-content { max-height: 90vh; overflow-y: auto; }
    .modal .product-detail { padding: 12px; }
    .modal h3 { font-size: 16px; margin-bottom: 8px; }
    .form-group { margin-bottom: 10px; }
    .form-group label { font-size: 13px; }
    .form-group input, .form-group select { padding: 8px 10px; font-size: 14px; }
    .btn { padding: 10px 16px; font-size: 14px; }
}

/* ========== Utility — 横屏手机 ========== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { padding: 40px 0 50px; }
    .hero-title { font-size: 28px; }
    .page-header { padding: 30px 0; }
    .page-header h1 { font-size: 22px; }
}

/* ========== Touch 优化 ========== */
@media (hover: none) and (pointer: coarse) {
    .btn { min-height: 30px; }
    .nav-drawer-links a { min-height: 48px; display: flex; align-items: center; }
    .form-control { font-size: 16px; } /* 防止 iOS 自动缩放 */
    select.form-control { font-size: 16px; }
}


/* ========== Member Center Mobile Fix ========== */

/* 蟹卡号溢出处理 */
.ecard-drop .card-no,
.card .card-no,
.card-number,
.mono {
    word-break: break-all;
    overflow-wrap: break-word;
    font-family: monospace !important;
}

/* 转让卡片移动端优化 */
.transfer-card {
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 768px) {
    /* 转让卡片布局优化 */
    .transfer-card > div:first-child {
        flex-direction: column !important;
        padding: 12px !important;
    }
    .transfer-card img,
    .transfer-card > div:first-child > div:last-child {
        width: 100% !important;
        flex: none !important;
    }
    .transfer-card > div:first-child img {
        width: 50px !important;
        height: 50px !important;
    }
    .transfer-card > div:first-child > div:last-child {
        margin-top: 8px;
    }
    
    /* 转让卡片按钮移动端 */
    .transfer-card button[onclick*="AcceptTransfer"] {
        padding: 8px 12px !important;
        font-size: 13px !important;
        white-space: nowrap;
    }
    
    /* 订单卡片布局 */
    .order-card {
        padding: 12px !important;
    }
    .order-card > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .order-card > div:first-child > div:last-child {
        text-align: left !important;
        margin-top: 0 !important;
    }
    
    /* 会员中心用户信息卡 */
    .user-card {
        padding: 16px !important;
    }
    .user-card > div:first-child {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }
    
    /* 蟹卡列表卡 */
    .card:has(.ecard-drop) {
        padding: 14px !important;
    }
    
    /* 表格移动端横向滚动 */
    table {
        font-size: 12px !important;
    }
    table th, table td {
        padding: 8px 6px !important;
        white-space: nowrap !important;
    }
    .section-member table th,
    .section-member table td {
        white-space: normal !important;
    }
    
    /* 佣金统计移动端 */
    .commission-stat {
        padding: 12px 8px !important;
        font-size: 12px !important;
    }
    .commission-stat .num {
        font-size: 18px !important;
    }
    
    /* 分销信息卡 */
    .distributor-card {
        padding: 16px !important;
    }
    
    /* 提货单信息移动端 */
    .delivery-info-box {
        padding: 8px 10px !important;
        font-size: 12px !important;
        word-break: break-all !important;
        overflow-wrap: break-word !important;
    }
}

/* ========== Product Center Mobile Fix ========== */
@media (max-width: 768px) {
    /* 与 PC 一致：3:2 + contain，蟹卡/蟹礼对齐 */
    .product-img {
        aspect-ratio: var(--product-cover-aspect);
        min-height: 0;
    }
    
    /* 产品名称溢出保护 */
    .product-info h3 {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.4;
        max-height: 2.8em;
    }
    
    /* CTA 区域 */
    .cta-bar .card {
        padding: 30px 20px !important;
    }
}

/* ========== Utility: 全局移动端安全 ========== */
@media (max-width: 768px) {
    /* 所有 flex 容器移动端允许换行 */
    .flex, [style*="display: flex"] {
        flex-wrap: wrap !important;
    }
    
    /* 响应式媒体（产品卡片主图由 .product-img 单独控制） */
    img:not(.product-cover-img),
    video, embed, object {
        max-width: 100%;
        height: auto;
    }
    
    /* 隐藏溢出的容器 */
    .overflow-hidden {
        overflow: hidden;
    }
}

/* ========== Product Page Styles ========== */
/* 类型标签 */
.type-label {
  background: rgba(255,255,255,0.15);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
}

/* 页面副标题 */
.page-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  margin-top: 10px;
}

/* Section 底部间距 */
.section-pb-lg {
  padding-bottom: 60px;
}

/* 产品主图（蟹卡/蟹礼统一 3:2 容器，圆角卡外形） */
.product-image-wrap {
    aspect-ratio: var(--product-cover-aspect);
    width: 100%;
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    --product-img-inset: clamp(8px, 2%, 16px);
    --product-img-inner-radius: 14px;
}
.product-image-wrap .product-image,
.product-image-wrap .product-image-placeholder {
  position: absolute;
  inset: var(--product-img-inset);
  width: calc(100% - 2 * var(--product-img-inset));
  height: calc(100% - 2 * var(--product-img-inset));
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--product-img-inner-radius);
  transform: scale(1.06);
  transform-origin: center center;
  clip-path: inset(0 round var(--product-img-inner-radius));
}
.product-image {
  box-shadow: none;
}

/* 产品详情长图（保持原始比例，不拉伸） */
.product-detail-images img,
.product-detail-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

/* 产品占位图 */
.product-image-placeholder {
  width: 100%;
  aspect-ratio: var(--product-cover-aspect);
  background: var(--bg-cream);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  opacity: 0.3;
}

.product-image-wrap .product-image-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  min-height: 100%;
  border-radius: var(--product-img-inner-radius);
  transform: none;
  clip-path: none;
  box-shadow: none;
}

/* 产品标题 */
.product-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: var(--font-serif);
}

/* 产品描述文字 */
.product-desc {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 16px;
}

/* 价格区块 */
.price-box {
  background: var(--bg-cream);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* 价格行 */
.price-row {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 12px;
}

/* 主价格 */
.price-main {
  font-size: 38px;
  font-weight: 700;
  color: var(--primary);
}

/* 原价（划线） */
.price-original {
  color: var(--gray);
  font-size: 18px;
  text-decoration: line-through;
}

/* 价格说明文字 */
.price-note {
  color: var(--text-light);
  font-size: 14px;
}

/* 标签容器 */
.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 库存信息 */
.stock-info {
  margin-bottom: 16px;
  color: var(--text-light);
  font-size: 14px;
}

.stock-info p {
  margin-bottom: 6px;
}

/* 购买按钮 */
.btn-buy {
  padding: 14px 40px;
  font-size: 17px;
  width: 100%;
}

.btn-buy:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* 详情模块间距 */
.detail-section {
  margin-top: 60px;
}

/* 详情卡片 */
.detail-card {
  padding: 20px;
  margin-bottom: 16px;
}

/* 详情标题 */
.detail-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* 详情网格 */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

/* 详情图片 */
.detail-image {
  width: 100%;
  border-radius: 12px;
  max-height: 320px;
  object-fit: cover;
}


/* 产品详情画廊 */
.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gallery-main {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f8f8;
}
.gallery-main-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
  transition: opacity 0.25s;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}
.gallery-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
  flex-shrink: 0;
}
.gallery-thumb:hover {
  opacity: 0.9;
}
.gallery-thumb.active {
  border-color: var(--primary, #c0392b);
  opacity: 1;
}
@media (max-width: 768px) {
  .gallery-main-image {
    max-height: 260px;
  }
  .gallery-thumb {
    width: 48px;
    height: 48px;
  }
}

/* 特点标题 */
.feature-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* 特点列表 */
.feature-list {
  padding-left: 0;
  list-style: none;
  margin-bottom: 12px;
}

.feature-list li {
  padding: 6px 0;
  font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .product-detail-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  
  .product-title {
    font-size: 22px;
  }
  
  .price-main {
    font-size: 28px;
  }
}

/* 配送说明模块 */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.delivery-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-cream);
  border-radius: 12px;
}

.delivery-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.delivery-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.delivery-text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* 售后服务模块 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}

.service-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: #f0f9f4;
  border-radius: 12px;
}

.service-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.service-text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.service-contact {
  background: var(--primary);
  color: #fff;
  padding: 16px 24px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

/* 产品说明区块 */
.product-content {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  white-space: pre-line;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .delivery-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* 温馨提示模块 */
.notice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: #fff8e6;
  border-radius: 10px;
}

/* 分销中心 - 佣金概览网格（移动端单列） */
.comm-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    text-align: center;
}
@media (max-width: 480px) {
    .comm-overview-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* 分销中心 - 阶梯佣金网格（移动端2列） */
.tier-ladder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
    text-align: center;
}
@media (max-width: 480px) {
    .tier-ladder-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
}

/* 分销中心 - 推广工具网格（移动端垂直堆叠） */
.share-tools-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
}
@media (max-width: 480px) {
    .share-tools-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .share-tools-grid > div:last-child {
        text-align: center;
    }
}

/* 按钮居中 - 2026-05-22 */
.product-info .btn-buy, .product-actions .btn-buy { text-align: center; }
