/* ============================================
   陨石项链外贸独立站 - 全局样式
   主色调：深空黑 / 星空银 / 极简白
   风格：极简轻奢、科技星际风
   ============================================ */

/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #222;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===== 容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 头部导航 ===== */

/* 用户导航入口（登录/注册 或 用户菜单） */
.user-nav-entry {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.auth-nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-link-login {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.auth-link-login:hover {
    color: #d4af37;
}

.auth-link-register {
    font-size: 14px;
    font-weight: 600;
    color: #0a0c14;
    background: #d4af37;
    padding: 8px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.auth-link-register:hover {
    background: #b8941f;
    transform: translateY(-1px);
}

/* 用户下拉菜单 */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-menu-trigger:hover {
    background: #f5f5f7;
}

.user-avatar-sm {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #0a0c14 0%, #2a2a38 100%);
    color: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid #d4af37;
}

.user-name-sm {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-arrow {
    font-size: 11px;
    color: #999;
    transition: transform 0.2s;
}

.user-menu-trigger:hover .user-menu-arrow {
    color: #d4af37;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.user-menu-item:hover {
    background: #f5f5f7;
    color: #d4af37;
}

.user-menu-item span:first-child {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.user-menu-divider {
    height: 1px;
    background: #f0f0f2;
    margin: 8px 6px;
}

.user-menu-logout {
    color: #d9534f;
}

.user-menu-logout:hover {
    background: #fdf0ef;
    color: #d9534f;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 12, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(200, 200, 220, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    white-space: nowrap;
}
.logo img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.logo span {
    color: #c0c0d0;
    font-weight: 300;
}

.nav ul {
    display: flex;
    gap: 32px;
}

.nav a {
    color: #c0c0d0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav a:hover,
.nav a.active {
    color: #fff;
}

.currency-select {
    background: transparent;
    color: #c0c0d0;
    border: 1px solid rgba(200, 200, 220, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* ===== 悬浮信任标签 ===== */
.trust-badge {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trust-badge-item {
    background: rgba(10, 12, 20, 0.9);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 1px;
    border: 1px solid rgba(200, 200, 220, 0.2);
    text-align: center;
}

/* ===== 隐私同意横幅（底部固定悬浮，GDPR 风格） ===== */
.privacy-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0a0c14;
    color: #e0e0ee;
    padding: 18px 0;
    z-index: 9999;
    border-top: 2px solid #d4af37;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    /* 默认隐藏，由 JS 判断是否显示，避免闪烁 */
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.privacy-banner.show {
    transform: translateY(0);
}

.privacy-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.privacy-banner p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    flex: 1;
    color: #c0c0d0;
}

.privacy-banner a {
    color: #d4af37;
    text-decoration: underline;
}

.privacy-banner a:hover {
    color: #f0c955;
}

.privacy-banner-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-privacy-decline,
.btn-privacy-accept {
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.btn-privacy-decline {
    background: transparent;
    color: #a0a0b8;
    border: 1px solid #3a3d4e;
}

.btn-privacy-decline:hover {
    background: #1a1d2e;
    color: #ffffff;
}

.btn-privacy-accept {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #0a0c14;
}

.btn-privacy-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* 移动端：竖排显示 */
@media (max-width: 768px) {
    .privacy-banner-inner {
        flex-direction: column;
        text-align: center;
    }
    .privacy-banner-btns {
        width: 100%;
        justify-content: center;
    }
    .btn-privacy-decline,
    .btn-privacy-accept {
        flex: 1;
        max-width: 160px;
    }
}

/* ===== Banner 区域 ===== */
.hero {
    margin-top: 70px;
    min-height: 90vh;
    background: linear-gradient(135deg, #0a0c14 0%, #1a1d2e 50%, #0a0c14 100%);
    color: #fff;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 星空背景效果 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(1px 1px at 40px 70px, #d0d0e0, transparent),
        radial-gradient(1.5px 1.5px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, #c0c0d0, transparent),
        radial-gradient(2px 2px at 160px 120px, #fff, transparent),
        radial-gradient(1px 1px at 200px 50px, #e0e0f0, transparent),
        radial-gradient(1.5px 1.5px at 250px 90px, #fff, transparent),
        radial-gradient(1px 1px at 300px 130px, #d0d0e0, transparent);
    background-size: 350px 200px;
    opacity: 0.6;
    animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
    from { opacity: 0.4; }
    to { opacity: 0.8; }
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 20px;
}

.hero-content h1 {
    font-size: 42px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff 0%, #c0c0d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .subtitle {
    font-size: 18px;
    color: #a0a0b8;
    margin-bottom: 36px;
    letter-spacing: 0.5px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.hero-tag {
    background: rgba(200, 200, 220, 0.1);
    border: 1px solid rgba(200, 200, 220, 0.3);
    color: #e0e0f0;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #0a0c14;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #c0c0d0;
    color: #fff;
}

.btn-outline:hover {
    background: rgba(200, 200, 220, 0.1);
    border-color: #fff;
}

/* 浅色背景下的深色描边按钮（用于白色背景CTA区域） */
.btn-outline-dark {
    background: transparent;
    border: 1.5px solid #0a0c14;
    color: #0a0c14;
}

.btn-outline-dark:hover {
    background: #0a0c14;
    color: #fff;
}

/* 小尺寸按钮（订单列表操作按钮） */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    letter-spacing: 0.3px;
    border-radius: 4px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-box {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180, 180, 200, 0.15) 0%, transparent 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-box::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(200, 200, 220, 0.2);
    animation: pulse-ring 3s ease-in-out infinite;
}

.hero-image-box::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 1px solid rgba(200, 200, 220, 0.1);
    animation: pulse-ring 3s ease-in-out infinite 0.5s;
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.meteorite-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3a3a4a 0%, #1a1a28 50%, #2a2a3a 100%);
    position: relative;
    box-shadow:
        0 0 60px rgba(180, 180, 200, 0.2),
        inset 0 0 40px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

/* 首页 Hero 产品图样式 */
.hero-product-img {
    width: 340px;
    height: 340px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.meteorite-placeholder::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        linear-gradient(45deg, transparent 40%, rgba(200, 200, 220, 0.1) 50%, transparent 60%),
        linear-gradient(-30deg, transparent 45%, rgba(180, 180, 200, 0.08) 55%, transparent 65%),
        linear-gradient(60deg, transparent 35%, rgba(220, 220, 240, 0.12) 45%, transparent 55%);
}

.meteorite-text {
    color: #c0c0d0;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 3;
}

/* ===== 通用 Section 样式 ===== */
.section {
    padding: 100px 0;
}

.section-dark {
    background: #0a0c14;
    color: #fff;
}

.section-gray {
    background: #f5f5f7;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-title .subtitle {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 查看全部链接：section 标题右下方入口 */
.view-all-link {
    display: inline-block;
    margin-top: 16px;
    color: #d4af37;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    color: #b8941f;
    letter-spacing: 0.5px;
}

.section-dark .section-title .subtitle {
    color: #a0a0b8;
}

/* ===== 核心差异化模块 ===== */
.differentiation {
    padding: 100px 0;
}

.diff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.diff-card {
    padding: 40px;
    border-radius: 8px;
}

.diff-card.negative {
    background: #f5f5f7;
    border: 1px solid #e0e0e0;
}

.diff-card.positive {
    background: linear-gradient(135deg, #0a0c14 0%, #1a1d2e 100%);
    color: #fff;
}

.diff-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.diff-card.negative h3 { color: #999; }
.diff-card.positive h3 { color: #d4af37; }

.diff-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.diff-card.negative ul li { color: #666; }
.diff-card.positive ul li { color: #d0d0e0; border-color: rgba(255, 255, 255, 0.08); }

.diff-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.diff-badge {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e5ea;
    transition: all 0.3s ease;
}

.diff-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.diff-badge .icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.diff-badge h4 {
    font-size: 15px;
    font-weight: 600;
    color: #0a0c14;
}

/* ===== 产品价值模块 ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.value-card {
    text-align: center;
    padding: 35px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(200, 200, 220, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.value-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.value-card p {
    font-size: 13px;
    color: #a0a0b8;
    line-height: 1.6;
}

/* ===== 产品展示模块 ===== */
.product-showcase {
    padding: 100px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e5ea;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
    aspect-ratio: 1;
    background: linear-gradient(145deg, #f0f0f2 0%, #d8d8dc 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image .meteorite-small {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(145deg, #4a4a5a 0%, #2a2a38 50%, #3a3a4a 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.product-image .meteorite-small::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 30%;
    height: 20%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
    transform: rotate(-30deg);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #d4af37;
    color: #0a0c14;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0a0c14;
}

.product-info .desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: #0a0c14;
}

.price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.product-btn {
    width: 100%;
    padding: 12px;
    background: #0a0c14;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background: #1a1d2e;
}

/* ===== 产品列表页：大图产品网格（3列） ===== */
.product-list-section {
    padding: 60px 0 100px;
    background: #ffffff;
}

/* 筛选按钮栏 */
.product-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-label {
    font-size: 14px;
    color: #718096;
    font-weight: 600;
    margin-right: 6px;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #4a5568;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.filter-btn.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #ffffff;
    border-color: #d4af37;
    font-weight: 600;
}

/* 大图产品网格：一行3个 */
.product-grid-lg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* 大图产品卡片 */
.product-card-lg {
    background: #ffffff;
    border: 1px solid #e8e8ee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.product-card-lg:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #d4af37;
}

/* 产品大图区域 */
.product-image-lg {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 正方形，大图展示 */
    background: #f5f5f7;
    overflow: hidden;
}

.product-img-lg {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 65%;
    max-height: 85%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    transition: transform 0.4s ease;
}

.product-card-lg:hover .product-img-lg {
    transform: translate(-50%, -50%) scale(1.1);
}

/* 角标 */
.product-badge-lg {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #ffffff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge-lg.premium {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.product-badge-lg.new {
    background: linear-gradient(135deg, #38a169 0%, #276749 100%);
}

.product-badge-lg.hot {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

/* 角标变体：Best Seller（金色，默认色，保留显式声明） */
.product-badge-lg.best-seller {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
}

/* 角标变体：Sale（红色促销） */
.product-badge-lg.sale {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

/* 角标变体：Wellness（青绿色健康标签） */
.product-badge-lg.wellness {
    background: linear-gradient(135deg, #319795 0%, #285e61 100%);
}

/* 快速查看按钮：hover 显示 */
.quick-view-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: #0a0c14;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 2;
}

.product-card-lg:hover .quick-view-btn {
    bottom: 16px;
}

.quick-view-btn:hover {
    background: #d4af37;
    color: #0a0c14;
}

/* 产品信息 */
.product-info-lg {
    padding: 24px;
    text-align: center;
}

.product-info-lg h3 {
    font-size: 17px;
    color: #1a1d2e;
    margin: 0 0 6px 0;
    font-weight: 600;
    line-height: 1.4;
}

.product-cat {
    font-size: 12px;
    color: #a0a0b0;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price-lg {
    margin-bottom: 16px;
}

.product-price-lg .price-current {
    font-size: 22px;
    font-weight: 700;
    color: #d4af37;
}

.product-price-lg .price-original {
    font-size: 14px;
    color: #a0a0b0;
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

.product-btn-lg {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: #0a0c14;
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.product-btn-lg:hover {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #0a0c14;
}

/* 产品列表页响应式：平板 2 列，手机 1 列 */
@media (max-width: 992px) {
    .product-grid-lg {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .product-grid-lg {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* 产品卡片真实图片样式 */
.product-img-real {
    max-width: 70%;
    max-height: 80%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.product-card:hover .product-img-real {
    transform: translate(-50%, -50%) scale(1.08);
}

/* ===== 工厂实力模块 ===== */
.factory-section {
    background: #f5f5f7;
    padding: 100px 0;
}

.factory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.factory-card {
    background: #fff;
    padding: 36px 24px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e5e5ea;
}

.factory-card .num {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #0a0c14, #3a3d4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.factory-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0a0c14;
}

.factory-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* ===== 信任背书模块 ===== */
.trust-section {
    padding: 100px 0;
    background: #0a0c14;
    color: #fff;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.trust-item {
    text-align: center;
    padding: 40px 30px;
    border: 1px solid rgba(200, 200, 220, 0.15);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.trust-item:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.02);
}

.trust-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.trust-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #d4af37;
}

.trust-item p {
    font-size: 14px;
    color: #a0a0b8;
    line-height: 1.7;
}

/* ===== 客户评价模块 Customer Experiences ===== */
.reviews-section {
    padding: 80px 0;
    background: #ffffff;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.review-card {
    background: #ffffff;
    border: 1px solid #e8e8ee;
    border-left: 4px solid #d4af37;   /* 金色左边框，强调感 */
    padding: 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.review-stars {
    color: #d4af37;
    font-size: 16px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 15px;
    line-height: 1.7;
    color: #2d3748;
    margin: 0 0 16px 0;
    font-style: italic;
}

.review-author {
    font-size: 13px;
    font-weight: 600;
    color: #718096;
}

/* 评价模块响应式：窄屏单列 */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .review-card {
        padding: 16px;
    }

    .review-stars {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .review-text {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    .review-author {
        font-size: 12px;
    }
}

/* ===== CTA 区域 ===== */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-section .container {
    max-width: 800px;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 16px;
    color: #666;
    margin-bottom: 36px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== 法律免责声明 Disclaimer ===== */
.disclaimer-section {
    padding: 40px 0;
    background: #f5f5f7;
}

.disclaimer-box {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px 28px;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
}

.disclaimer-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 12px 0;
    letter-spacing: 0.3px;
}

.disclaimer-box p {
    margin: 0 0 8px 0;
}

.disclaimer-box p:last-child {
    margin-bottom: 0;
}

/* ===== 政策类页面（Privacy / Terms）通用样式 ===== */
.policy-section {
    padding: 60px 0;
    background: #ffffff;
}

.policy-content {
    max-width: 880px;
    margin: 0 auto;
    color: #2d3748;
    line-height: 1.7;
    font-size: 15px;
}

.policy-block {
    margin-bottom: 36px;
}

.policy-block h2 {
    font-size: 20px;
    color: #1a365d;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #d4af37;
    display: inline-block;
}

.policy-block p {
    margin: 0 0 10px 0;
    color: #4a5568;
}

.policy-block ul {
    margin: 8px 0 10px 20px;
    padding: 0;
}

.policy-block li {
    margin-bottom: 8px;
    color: #4a5568;
}

.policy-block a {
    color: #d4af37;
    text-decoration: none;
}

.policy-block a:hover {
    text-decoration: underline;
}

/* ===== 底部 ===== */
.footer {
    background: #0a0c14;
    color: #a0a0b8;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(200, 200, 220, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(200, 200, 220, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0c0d0;
    font-size: 16px;
}

.social-links a:hover {
    background: #d4af37;
    color: #0a0c14;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    color: #a0a0b8;
}

.footer-col ul li a:hover {
    color: #d4af37;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(200, 200, 220, 0.1);
    font-size: 13px;
}

/* ===== 产品详情页 ===== */
.product-detail {
    margin-top: 70px;
    padding: 60px 0;
}

.product-detail-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    aspect-ratio: 1;
    background: linear-gradient(145deg, #f0f0f2 0%, #d8d8dc 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.main-image .meteorite-large {
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(145deg, #4a4a5a 0%, #2a2a38 50%, #3a3a4a 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    position: relative;
}

.main-image .meteorite-large::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 35%;
    height: 25%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent);
    border-radius: 50%;
    transform: rotate(-30deg);
}

/* 产品详情页主图样式 */
.detail-main-img {
    max-width: 70%;
    max-height: 85%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.4s ease;
}

/* 产品详情页主视频样式 */
.detail-main-video {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    background: #000;
}

/* 视频缩略图按钮 */
.thumb-img.thumb-video {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
}

.thumb-img.thumb-video .thumb-play-icon {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s, transform 0.2s;
}

.thumb-img.thumb-video:hover .thumb-play-icon,
.thumb-img.thumb-video.active .thumb-play-icon {
    color: #fff;
    transform: scale(1.15);
}

.thumb-img.thumb-video.active {
    border-color: #b49b78;
}

/* 放大镜容器 - 鼠标移入主图时显示圆形放大区域 */
.main-image {
    cursor: zoom-in;
}

.image-loupe {
    display: none;
    position: fixed;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px solid rgba(180, 155, 120, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 0 10px rgba(0, 0, 0, 0.05);
    pointer-events: none;
    z-index: 9999;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%);
}

/* 缩略图真实图片样式 */
.thumb-img-real {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.thumb-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.thumb-img {
    aspect-ratio: 1;
    background: #f0f0f2;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-img.active,
.thumb-img:hover {
    border-color: #0a0c14;
}

.thumb-img .mini-stone {
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(145deg, #4a4a5a 0%, #2a2a38 100%);
}

.product-info-block h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    color: #0a0c14;
}

.product-short-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.7;
}

.product-highlight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.highlight-tag {
    background: #f0f0f2;
    color: #333;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
}

.product-detail-price {
    padding: 24px 0;
    border-top: 1px solid #e5e5ea;
    border-bottom: 1px solid #e5e5ea;
    margin-bottom: 24px;
}

.detail-price-current {
    font-size: 36px;
    font-weight: 700;
    color: #0a0c14;
}

.detail-price-original {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    margin-left: 12px;
}

/* 已卖出数量展示：营造热销氛围 */
.sold-count {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(90deg, #fff5f5 0%, #fff9f0 100%);
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.sold-icon {
    font-size: 18px;
}

.sold-number {
    font-weight: 700;
    color: #e74c3c;
    font-size: 16px;
}

.sold-text {
    color: #666;
}

.sold-rating {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sold-rating .stars {
    color: #f5a623;
    font-size: 14px;
    letter-spacing: 1px;
}

.sold-rating .rating-text {
    color: #666;
    font-size: 13px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.quantity-selector label {
    font-weight: 600;
    font-size: 15px;
    min-width: 80px;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.qty-control button {
    width: 40px;
    height: 40px;
    background: #f5f5f7;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.qty-control input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.add-to-cart-btn {
    width: 100%;
    padding: 16px;
    background: #0a0c14;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover { background: #1a1d2e; }

.buy-now-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #0a0c14;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-now-btn:hover { transform: translateY(-2px); }

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.payment-icons span {
    font-size: 12px;
    color: #999;
    padding: 4px 10px;
    background: #f5f5f7;
    border-radius: 4px;
}

/* 物流提示：运费以结算页为准，减少售前疑问 */
.shipping-note {
    text-align: center;
    font-size: 13px;
    color: #718096;
    margin-top: 12px;
    font-weight: 500;
}

/* ===== 详情Tab内容 ===== */
.detail-tabs {
    border-top: 1px solid #e5e5ea;
    padding-top: 60px;
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    border-bottom: 1px solid #e5e5ea;
}

.tab-nav button {
    background: none;
    border: none;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.3s ease;
}

.tab-nav button.active {
    color: #0a0c14;
    border-bottom-color: #d4af37;
}

.tab-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #0a0c14;
}

.tab-content p {
    margin-bottom: 16px;
    color: #444;
    line-height: 1.8;
}

/* 产品功效 */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.benefit-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: #f5f5f7;
    border-radius: 8px;
}

.benefit-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.benefit-text h4 {
    font-size: 17px;
    margin-bottom: 8px;
    color: #0a0c14;
}

.benefit-text p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.7;
}

/* 优势列表 */
.advantages-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 30px 0;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f5f5f7;
    border-radius: 6px;
    font-weight: 500;
    color: #333;
}

.advantage-item .check {
    color: #d4af37;
    font-weight: bold;
    font-size: 18px;
}

/* 产品参数表格 */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.spec-table tr {
    border-bottom: 1px solid #e5e5ea;
}

.spec-table td {
    padding: 16px 20px;
    font-size: 15px;
}

.spec-table td:first-child {
    font-weight: 600;
    color: #333;
    width: 30%;
    background: #f9f9fb;
}

.spec-table td:last-child {
    color: #555;
}

/* 鉴别模块 */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.compare-card {
    padding: 30px;
    border-radius: 8px;
}

.compare-card.real {
    background: #f0f7f0;
    border: 1px solid #c8e6c8;
}

.compare-card.fake {
    background: #fff5f5;
    border: 1px solid #f0c8c8;
}

.compare-card h4 {
    margin-bottom: 16px;
    font-size: 18px;
}

.compare-card.real h4 { color: #2d7d2d; }
.compare-card.fake h4 { color: #b84a4a; }

.compare-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
}

/* 售后保障 */
.guarantee-section {
    background: linear-gradient(135deg, #0a0c14 0%, #1a1d2e 100%);
    color: #fff;
    padding: 60px;
    border-radius: 12px;
    margin: 40px 0;
}

.guarantee-section h3 {
    color: #d4af37;
    font-size: 28px;
    margin-bottom: 24px;
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.guarantee-item {
    text-align: center;
    padding: 20px;
}

.guarantee-item .g-icon {
    font-size: 40px;
    margin-bottom: 14px;
}

.guarantee-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #fff;
}

.guarantee-item p {
    font-size: 13px;
    color: #a0a0b8;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== 用户好评Tab样式 ===== */
/* 好评总览：评分摘要 + 分布条 */
.reviews-summary {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    padding: 40px;
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 40px;
}

.reviews-score {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-big {
    font-size: 56px;
    font-weight: 700;
    color: #0a0c14;
    line-height: 1;
}

.stars-big {
    font-size: 22px;
    color: #f5a623;
    letter-spacing: 2px;
    margin: 10px 0 8px;
}

.score-total {
    font-size: 13px;
    color: #888;
}

.reviews-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.review-bar-row {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.bar-label {
    color: #666;
}

.bar-bg {
    height: 8px;
    background: #e5e5ea;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f5a623, #ffcc66);
    border-radius: 4px;
}

.bar-count {
    color: #888;
    text-align: right;
}

/* 好评列表 */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-item {
    padding: 24px;
    border: 1px solid #e5e5ea;
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f5d670);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.review-info {
    flex: 1;
}

.review-name {
    font-weight: 600;
    color: #0a0c14;
    font-size: 14px;
    margin-bottom: 3px;
}

.verified {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    margin-left: 6px;
}

.review-stars {
    color: #f5a623;
    font-size: 13px;
    letter-spacing: 1px;
}

.review-date {
    color: #999;
    font-size: 12px;
    flex-shrink: 0;
}

.review-title {
    font-size: 16px;
    font-weight: 600;
    color: #0a0c14;
    margin-bottom: 8px;
}

.review-content {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== 评论图片（缩略图） ===== */
.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.review-image-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid #eee;
}

.review-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.review-image-thumb:hover img {
    transform: scale(1.05);
}

/* ===== 评论图片大图预览弹层 ===== */
.review-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.review-lightbox.active {
    display: flex;
}

.review-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.review-lightbox-inner img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.review-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #333;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ===== 页面标题条 ===== */
.page-header {
    margin-top: 70px;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #0a0c14 0%, #1a1d2e 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
        radial-gradient(1px 1px at 50px 70px, #d0d0e0, transparent),
        radial-gradient(1px 1px at 100px 40px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 150px 90px, #c0c0d0, transparent);
    background-size: 200px 150px;
    opacity: 0.5;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 16px;
    color: #a0a0b8;
    position: relative;
    z-index: 2;
}

.breadcrumb {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    font-size: 14px;
    color: #a0a0b8;
}

.breadcrumb a:hover { color: #d4af37; }

/* ===== About Us 页面 ===== */
.about-content {
    padding: 80px 0;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-section.reverse {
    direction: rtl;
}

.about-section.reverse > * {
    direction: ltr;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #0a0c14;
}

.about-text p {
    margin-bottom: 16px;
    color: #555;
    line-height: 1.8;
}

.about-image-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e0e0e8 0%, #c8c8d0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 18px;
    letter-spacing: 2px;
    overflow: hidden;
}

.about-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== FAQ 页面 ===== */
.faq-section {
    padding: 80px 0;
}

/* FAQ 选项卡容器样式 */
.faq-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ 选项卡按钮基础样式 */
.faq-tab {
    background: none;
    border: 1px solid #e5e5ea;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* FAQ 选项卡按钮悬停效果 */
.faq-tab:hover {
    border-color: #d4af37;
    color: #d4af37;
}

/* FAQ 选项卡激活状态 */
.faq-tab.active {
    background: #d4af37;
    border-color: #d4af37;
    color: #fff;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: #0a0c14;
    transition: all 0.3s ease;
}

.faq-question:hover { background: #f9f9fb; }

.faq-question .toggle {
    font-size: 20px;
    font-weight: 300;
    color: #999;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question .toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9f9fb;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 24px 20px;
    color: #555;
    line-height: 1.8;
}

/* ===== Contact 页面 ===== */
.contact-section {
    padding: 80px 0;
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #0a0c14;
}

.contact-info p {
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: #f5f5f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 15px;
    margin-bottom: 4px;
    color: #0a0c14;
}

.contact-info-text p {
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #e5e5ea;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0a0c14;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #0a0c14;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover { background: #1a1d2e; }

/* ===== Shipping 页面 ===== */
.shipping-content {
    padding: 80px 0;
}

.shipping-content .container {
    max-width: 900px;
}

.content-block {
    margin-bottom: 40px;
}

.content-block h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #0a0c14;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f2;
}

.content-block h3 {
    font-size: 20px;
    margin: 24px 0 12px;
    color: #333;
}

.content-block p,
.content-block ul li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}

.content-block ul {
    padding-left: 20px;
    list-style: disc;
}

/* ===== 响应式 ===== */
@media (max-width: 968px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; padding: 60px 20px; }
    .hero-tags { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .hero-image-box { width: 320px; height: 320px; margin: 0 auto; }
    .meteorite-placeholder { width: 220px; height: 220px; }

    .diff-grid { grid-template-columns: 1fr; }
    .diff-badges { grid-template-columns: repeat(2, 1fr); }

    .values-grid { grid-template-columns: repeat(2, 1fr); }

    .product-grid { grid-template-columns: repeat(2, 1fr); }

    .factory-grid { grid-template-columns: repeat(2, 1fr); }

    .trust-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; }

    .product-detail-wrap { grid-template-columns: 1fr; gap: 40px; }
    .product-gallery { position: static; }

    .benefits-grid { grid-template-columns: 1fr; }
    .advantages-list { grid-template-columns: 1fr; }
    .compare-grid { grid-template-columns: 1fr; }
    .guarantee-grid { grid-template-columns: 1fr; }

    .about-section { grid-template-columns: 1fr; }
    .about-section.reverse { direction: ltr; }

    .contact-wrap { grid-template-columns: 1fr; }

    /* 移动菜单按钮在968px以下显示 */
    .mobile-menu-btn { display: block; }

    .trust-badge { display: none; }

    .section { padding: 60px 0; }
    .section-title h2 { font-size: 28px; }
}

@media (max-width: 576px) {
    .hero-content h1 { font-size: 30px; }
    .diff-badges { grid-template-columns: 1fr 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .factory-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 30px; }
    .guarantee-section { padding: 30px 20px; }
    /* 移动端：好评总览改为竖排 */
    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 16px;
    }
    .score-big { font-size: 44px; }
    .review-bar-row { grid-template-columns: 50px 1fr 45px; }
    /* 移动端：已卖出数量紧凑布局 */
    .sold-count { padding: 10px 12px; font-size: 13px; gap: 6px; }
    .sold-rating { width: 100%; margin-left: 0; justify-content: flex-start; }
    .tab-nav { gap: 16px; }
    .tab-nav button { font-size: 13px; padding: 12px 0; }
    
    /* FAQ 选项卡移动端适配 */
    .faq-tabs {
        gap: 8px;
        margin-bottom: 30px;
    }
    .faq-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ========== 结算弹层样式（侧边栏滑出） ========== */
.checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.checkout-overlay.active {
    opacity: 1;
    visibility: visible;
}

.checkout-panel {
    width: 100%;
    max-width: 480px;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.checkout-overlay.active .checkout-panel {
    transform: translateX(0);
}

.checkout-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5ea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.checkout-header h3 {
    font-size: 20px;
    color: #0a0c14;
    margin: 0;
}

.checkout-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.checkout-close:hover { color: #0a0c14; }

.checkout-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.checkout-section {
    margin-bottom: 28px;
}

.checkout-section h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #0a0c14;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f2;
}

/* 订单商品行 */
.checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.checkout-item-img {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #4a4a5a, #2a2a38);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.checkout-item-img-real {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
    background: #f5f5f7;
    padding: 4px;
}

.checkout-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #0a0c14;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-item-qty {
    font-size: 13px;
    color: #888;
}

.checkout-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #0a0c14;
}

/* 表单 */
.checkout-section .form-group {
    margin-bottom: 14px;
}

.checkout-section .form-group label {
    font-size: 13px;
}

.checkout-section .form-group input,
.checkout-section .form-group select,
.checkout-section .form-group textarea {
    padding: 10px 14px;
    font-size: 14px;
}

/* 已保存地址下拉框：与 country 下拉样式完全一致 */
.checkout-section #savedAddressSelector select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
    font-family: inherit;
    color: #333;
}

.checkout-section #savedAddressSelector select:focus {
    outline: none;
    border-color: #0a0c14;
}

/* 支付方式列表 */
.checkout-tip {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    color: #8b6914;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.payment-method-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-method-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid #e5e5ea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method-item:hover {
    border-color: #c0c0d0;
}

.payment-method-item.active {
    border-color: #d4af37;
    background: #fffdf5;
}

.payment-method-item input[type="radio"] {
    accent-color: #d4af37;
    margin: 0;
}

.pm-info {
    flex: 1;
}

.pm-name {
    font-size: 14px;
    font-weight: 600;
    color: #0a0c14;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pm-recommended {
    font-size: 10px;
    background: #d4af37;
    color: #0a0c14;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.pm-desc {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.pm-icon {
    background: #f5f5f7;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    letter-spacing: 0.5px;
}

/* 金额行 */
.checkout-total-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}

.checkout-total-row.final {
    font-size: 18px;
    font-weight: 700;
    color: #0a0c14;
    padding-top: 12px;
    margin-top: 10px;
    border-top: 2px solid #f0f0f2;
}

/* 底部支付按钮 */
.checkout-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e5ea;
    background: #fff;
}

.checkout-pay-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #0a0c14;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-pay-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

.checkout-pay-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pay-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(10, 12, 20, 0.2);
    border-top-color: #0a0c14;
    border-radius: 50%;
    animation: pay-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes pay-spin {
    to { transform: rotate(360deg); }
}

.checkout-secure {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* ============================================
   用户认证页面样式 - 注册 / 登录
   ============================================ */
.auth-section {
    padding: 60px 0 80px;
    background: #f5f5f7;
}

.auth-wrap {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.auth-info {
    padding: 40px;
}

.auth-info h2 {
    font-size: 28px;
    color: #0a0c14;
    margin-bottom: 30px;
    line-height: 1.3;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0a0c14 0%, #2a2a38 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefits-list h4 {
    font-size: 17px;
    color: #0a0c14;
    margin-bottom: 6px;
}

.benefits-list p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 认证表单卡片 */
.auth-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.auth-form-card h3 {
    font-size: 24px;
    color: #0a0c14;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 28px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.auth-form .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e5ea;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
}

.auth-form .form-group input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.form-checkbox {
    margin: 8px 0 20px;
}

.form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
    font-weight: normal;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #d4af37;
    width: auto;
}

.form-checkbox a {
    color: #d4af37;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

/* 表单消息提示 */
.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.form-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* 按钮块级样式 */
.btn-block {
    width: 100%;
    justify-content: center;
}

/* 分隔线 */
.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e5ea;
}

.auth-divider span {
    background: #fff;
    padding: 0 16px;
    position: relative;
    color: #999;
    font-size: 13px;
}

/* 访客入口 */
.auth-guest {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f2;
}

.auth-guest p {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.auth-guest a {
    color: #d4af37;
    font-size: 14px;
    font-weight: 600;
}

.auth-guest a:hover {
    text-decoration: underline;
}

/* 表单行（记住我/忘记密码） */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.forgot-link {
    font-size: 13px;
    color: #d4af37;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* ============================================
   用户中心页面样式
   ============================================ */
.user-center-section {
    padding: 40px 0 80px;
    background: #f5f5f7;
    min-height: calc(100vh - 300px);
}

.user-center-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

/* 侧边栏 */
.user-sidebar {
    position: sticky;
    top: 20px;
}

.user-profile-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.user-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0a0c14 0%, #2a2a38 100%);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 28px;
    font-weight: 700;
    border: 3px solid #d4af37;
}

.user-profile-card h3 {
    font-size: 18px;
    color: #0a0c14;
    margin-bottom: 4px;
}

.user-nav {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.user-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.user-nav .nav-item:last-child {
    margin-bottom: 0;
}

.user-nav .nav-item:hover {
    background: #f5f5f7;
    color: #0a0c14;
}

.user-nav .nav-item.active {
    background: linear-gradient(135deg, #0a0c14 0%, #2a2a38 100%);
    color: #d4af37;
    font-weight: 600;
}

.user-nav .nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.user-nav .nav-logout {
    border-top: 1px solid #f0f0f2;
    margin-top: 8px;
    padding-top: 16px;
    color: #d9534f;
}

.user-nav .nav-logout:hover {
    background: #fdf0ef;
    color: #d9534f;
}

/* 右侧内容区 */
.user-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    min-height: 500px;
}

.user-tab-panel {
    display: none;
}

.user-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f2;
}

.tab-header h2 {
    font-size: 22px;
    color: #0a0c14;
    margin-bottom: 6px;
}

.tab-header p {
    color: #888;
    font-size: 14px;
}

/* 订单列表：一行展示两个订单卡片 */
.order-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 空状态与分页横跨整行，避免被挤到半列 */
.order-list > .empty-state,
.order-list > .pagination {
    grid-column: 1 / -1;
}

.order-card {
    border: 1.5px solid #f0f0f2;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.order-card:hover {
    border-color: #e0e0ea;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #fafafc;
    border-bottom: 1px solid #f0f0f2;
}

/* 用户中心订单卡片：订单号与下单日期上下分行显示 */
.order-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-card-no {
    font-weight: 700;
    color: #0a0c14;
    font-size: 15px;
}

.order-card-date {
    color: #888;
    font-size: 13px;
}

.order-meta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.order-no {
    font-weight: 700;
    color: #0a0c14;
    font-size: 15px;
}

.order-date {
    color: #888;
    font-size: 13px;
}

.order-status {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.order-card-body {
    padding: 20px 24px;
}

.order-item-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.order-item-name {
    flex: 1;
    color: #333;
}

.order-item-qty {
    color: #888;
    width: 60px;
    text-align: center;
}

.order-item-price {
    width: 80px;
    text-align: right;
    font-weight: 600;
    color: #0a0c14;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f2;
    background: #fafafc;
}

.order-total {
    font-size: 15px;
    color: #555;
}

.order-total strong {
    color: #d4af37;
    font-size: 18px;
}

.order-actions {
    display: flex;
    gap: 10px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    color: #0a0c14;
    margin-bottom: 10px;
}

.empty-state p {
    color: #888;
    margin-bottom: 24px;
}

/* 地址列表 */
.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.address-card {
    position: relative;
    padding: 20px;
    border: 1.5px solid #f0f0f2;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: #fff;
}

.address-card:hover {
    border-color: #e0e0ea;
}

.address-card.is-default {
    border-color: #d4af37;
    background: #fffdf5;
}

.default-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #d4af37;
    color: #0a0c14;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 700;
}

.address-card h4 {
    font-size: 16px;
    color: #0a0c14;
    margin-bottom: 4px;
    padding-right: 60px;
}

.addr-phone {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.addr-email {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    word-break: break-all;
}

.addr-text {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 4px;
}

.address-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f2;
}

.btn-link {
    background: none;
    border: none;
    color: #d4af37;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-link.btn-delete {
    color: #d9534f;
}

.btn-link.btn-delete:hover {
    text-decoration: underline;
}

/* 个人信息表单 */
.profile-form-wrap {
    max-width: 600px;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.profile-form .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e5ea;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
}

.profile-form .form-group input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.profile-form .form-group input:disabled {
    background: #f5f5f7;
    color: #999;
    cursor: not-allowed;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ============================================
   弹窗通用样式
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f2;
}

.modal-header h3 {
    font-size: 18px;
    color: #0a0c14;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #0a0c14;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

/* 订单详情弹窗 */
.order-detail-modal {
    max-width: 600px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    font-size: 15px;
    color: #0a0c14;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f2;
}

.order-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.order-detail-table th,
.order-detail-table td {
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f2;
}

.order-detail-table th {
    background: #fafafc;
    font-weight: 600;
    color: #555;
}

/* 订单时间线 */
.order-timeline {
    position: relative;
    padding-left: 24px;
}

.timeline-item {
    position: relative;
    padding-bottom: 16px;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: -19px;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: #e5e5ea;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d4af37;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #d4af37;
}

.timeline-status {
    font-weight: 600;
    color: #0a0c14;
    font-size: 14px;
    text-transform: capitalize;
}

.timeline-time {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.timeline-remark {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* ============================================
   Toast 消息提示
   ============================================ */
.toast-message {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 20000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 320px;
}

.toast-message.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background: #fff;
    border-left: 4px solid #52c41a;
    color: #333;
}

.toast-error {
    background: #fff;
    border-left: 4px solid #f5222d;
    color: #333;
}

/* ============================================
   个人资料编辑页样式
   ============================================ */
.edit-profile-section {
    padding: 40px 0 80px;
    background: #f5f5f7;
    min-height: calc(100vh - 300px);
}

.edit-profile-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

.edit-profile-sidebar {
    position: sticky;
    top: 20px;
}

.member-since {
    font-size: 12px;
    color: #aaa;
    margin-top: 6px;
}

.sidebar-links {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.sidebar-link:last-child {
    margin-bottom: 0;
}

.sidebar-link:hover {
    background: #f5f5f7;
    color: #0a0c14;
}

.sidebar-link.active {
    background: linear-gradient(135deg, #0a0c14 0%, #2a2a38 100%);
    color: #d4af37;
    font-weight: 600;
}

.sidebar-link span:first-child {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-logout {
    border-top: 1px solid #f0f0f2;
    margin-top: 8px;
    padding-top: 16px;
    color: #d9534f;
}

.sidebar-logout:hover {
    background: #fdf0ef;
    color: #d9534f;
}

/* 右侧内容区 */
.edit-profile-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 资料卡片 */
.profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.profile-card-header {
    padding: 24px 30px;
    border-bottom: 2px solid #f0f0f2;
}

.profile-card-header h2 {
    font-size: 20px;
    color: #0a0c14;
    margin-bottom: 4px;
}

.profile-card-header p {
    font-size: 14px;
    color: #888;
}

.profile-card-body {
    padding: 30px;
}

.profile-card-body .form-group {
    margin-bottom: 20px;
}

.profile-card-body .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.profile-card-body .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e5ea;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
}

.profile-card-body .form-group input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.profile-card-body .form-group input:disabled {
    background: #f5f5f7;
    color: #999;
    cursor: not-allowed;
}

/* 表单操作按钮区 */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f2;
}

/* 双列表单行 */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 安全提示卡片 */
.profile-tip-card {
    display: flex;
    gap: 20px;
    padding: 24px 30px;
    background: #fffdf5;
    border: 1.5px solid #f5e6b8;
}

.tip-icon {
    font-size: 36px;
    flex-shrink: 0;
    line-height: 1;
}

.tip-content h4 {
    font-size: 16px;
    color: #0a0c14;
    margin-bottom: 10px;
}

.tip-content ul {
    list-style: none;
    padding: 0;
}

.tip-content ul li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.6;
}

.tip-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: 700;
}

/* 响应式 */
@media (max-width: 968px) {
    .edit-profile-wrap {
        grid-template-columns: 1fr;
    }

    .edit-profile-sidebar {
        position: static;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 576px) {
    .profile-card-header {
        padding: 20px;
    }

    .profile-card-body {
        padding: 20px;
    }

    .profile-tip-card {
        flex-direction: column;
        gap: 12px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* ============================================
   订单详情页样式
   ============================================ */
.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.order-detail-header h1 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 4px;
}

.order-detail-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.order-status-badge {
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: capitalize;
}

.order-detail-section {
    padding: 40px 0 80px;
    background: #f5f5f7;
    min-height: calc(100vh - 300px);
}

.order-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.order-detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-detail-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.card-title {
    font-size: 17px;
    color: #0a0c14;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tracking-no {
    font-size: 13px;
    font-weight: 500;
    color: #d4af37;
    background: #fffdf5;
    padding: 4px 12px;
    border-radius: 6px;
}

/* 订单进度条 */
.progress-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    position: relative;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f0f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 10px;
    border: 2px solid #e5e5ea;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    line-height: 1.4;
}

.progress-step.step-done .step-icon {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    border-color: #d4af37;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.progress-step.step-done .step-label {
    color: #0a0c14;
    font-weight: 600;
}

.progress-step.step-active .step-icon {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    border-color: #d4af37;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.progress-step.step-active .step-label {
    color: #d4af37;
    font-weight: 700;
}

.progress-step.step-cancelled .step-icon {
    background: #ffebee;
    border-color: #f44336;
}

.progress-step.step-cancelled .step-label {
    color: #f44336;
    font-weight: 600;
}

.step-line {
    flex: 0.5;
    height: 3px;
    background: #e5e5ea;
    margin-top: 24px;
    border-radius: 2px;
}

.step-line.line-done {
    background: linear-gradient(90deg, #d4af37, #b8941f);
}

/* 商品清单 */
.order-items-list {
    display: flex;
    flex-direction: column;
}

.order-item-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f2;
}

.order-item-detail:last-child {
    border-bottom: none;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background: linear-gradient(145deg, #4a4a5a, #2a2a38);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.item-img-real {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 15px;
    font-weight: 600;
    color: #0a0c14;
    margin-bottom: 4px;
}

.item-sku {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 4px;
}

.item-qty {
    font-size: 13px;
    color: #666;
}

.item-price {
    font-size: 17px;
    font-weight: 700;
    color: #0a0c14;
    flex-shrink: 0;
    text-align: right;
}

/* 物流轨迹 */
.tracking-timeline {
    position: relative;
    padding-left: 28px;
}

.tracking-timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.tracking-timeline-item:last-child {
    padding-bottom: 0;
}

.tracking-timeline-item::before {
    content: '';
    position: absolute;
    left: -17px;
    top: 10px;
    bottom: -8px;
    width: 2px;
    background: #e5e5ea;
}

.tracking-timeline-item:last-child::before {
    display: none;
}

.tracking-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e5e5ea;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e5e5ea;
}

.tracking-dot.dot-active {
    background: #d4af37;
    box-shadow: 0 0 0 2px #d4af37, 0 0 10px rgba(212, 175, 55, 0.5);
}

.tracking-status {
    font-size: 14px;
    font-weight: 600;
    color: #0a0c14;
    margin-bottom: 2px;
}

.tracking-timeline-item.latest .tracking-status {
    color: #d4af37;
}

.tracking-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 2px;
}

.tracking-time {
    font-size: 12px;
    color: #999;
}

/* 收货地址 */
.shipping-address-box {
    font-size: 14px;
    line-height: 1.8;
}

.addr-name {
    font-weight: 700;
    color: #0a0c14;
    margin-bottom: 4px;
    font-size: 15px;
}

.addr-detail {
    color: #555;
    margin-bottom: 4px;
}

.addr-phone {
    color: #888;
    font-size: 13px;
}

.addr-email {
    color: #888;
    font-size: 13px;
    word-break: break-all;
}

/* 支付方式 */
.payment-info-box {
    padding: 4px 0;
}

.payment-method-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.pm-icon-mini {
    font-size: 20px;
}

/* 订单金额汇总 */
.order-total-card {
    background: linear-gradient(135deg, #0a0c14 0%, #1a1a2a 100%);
    color: #fff;
    border: none;
}

.order-total-card .card-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.order-summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.summary-discount {
    color: #d4af37;
}

.summary-total {
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.summary-total span:last-child {
    color: #d4af37;
}

.order-actions-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.order-total-card .btn-outline-dark {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.order-total-card .btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* 订单详情响应式 */
@media (max-width: 968px) {
    .order-detail-layout {
        grid-template-columns: 1fr;
    }

    .order-detail-sidebar {
        position: static;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 10px;
    }

    .step-line {
        display: none;
    }

    .progress-step {
        flex: 1 1 30%;
    }
}

@media (max-width: 576px) {
    .order-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .order-detail-card {
        padding: 20px;
    }

    .order-item-detail {
        flex-wrap: wrap;
    }

    .item-price {
        width: 100%;
        text-align: left;
    }

    .progress-step {
        flex: 1 1 50%;
    }
}

/* ============================================
   评论页 & 星级评分样式
   ============================================ */
.review-section {
    padding: 40px 0 80px;
    background: #f5f5f7;
    min-height: calc(100vh - 300px);
}

.review-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.review-form-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 36px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.review-card-title {
    font-size: 22px;
    color: #0a0c14;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f2;
}

/* 评论商品信息卡 */
.review-product-info {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #0a0c14 0%, #1a1a2a 100%);
    border-radius: 10px;
    margin-bottom: 30px;
    color: #fff;
}

.rp-image {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rp-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.rp-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rp-order-no {
    font-size: 12px;
    color: #d4af37;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.rp-detail h3 {
    font-size: 17px;
    color: #fff;
    margin-bottom: 6px;
}

.rp-verified {
    font-size: 13px;
    color: #4caf50;
    font-weight: 600;
}

/* 评分块 */
.rating-block {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f2;
}

.rating-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #0a0c14;
    margin-bottom: 14px;
}

.required {
    color: #d9534f;
}

.optional {
    color: #999;
    font-weight: normal;
}

.rating-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
}

/* 星级评分 - 大星星 */
.star-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.star-rating .star {
    font-size: 36px;
    color: #e5e5ea;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1;
}

.star-rating .star:hover {
    transform: scale(1.15);
}

.star-rating .star.active,
.star-rating .star.hover {
    color: #d4af37;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.star-rating-large .star {
    font-size: 42px;
}

.star-rating-small .star {
    font-size: 22px;
}

.rating-text {
    margin-left: 12px;
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

.star-rating-large .rating-text {
    font-size: 15px;
}

/* 多维度评分网格 */
.rating-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f2;
}

.rating-item {
    text-align: center;
    padding: 16px;
    background: #fafafc;
    border-radius: 10px;
}

.rating-sub-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.rating-item .star-rating {
    justify-content: center;
}

/* 宇宙能量感应 */
.cosmic-energy-block {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f2;
}

.cosmic-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cosmic-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1.5px solid #e5e5ea;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.cosmic-option:hover {
    border-color: #d4af37;
    background: #fffdf5;
}

.cosmic-option input[type="radio"] {
    accent-color: #d4af37;
    margin: 0;
}

.cosmic-option:has(input:checked) {
    border-color: #d4af37;
    background: #fffdf5;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.cosmic-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.cosmic-text {
    flex: 1;
    line-height: 1.4;
}

.cosmic-text strong {
    display: block;
    font-size: 14px;
    color: #0a0c14;
    margin-bottom: 2px;
}

.cosmic-text small {
    font-size: 12px;
    color: #888;
}

/* 表单 */
.review-card .form-group {
    margin-bottom: 22px;
}

.review-card .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.review-card .form-group input[type="text"],
.review-card .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e5ea;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.review-card .form-group input:focus,
.review-card .form-group textarea:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.review-card .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #aaa;
    margin-top: 6px;
}

/* 图片上传 */
.photo-upload-area {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.photo-slot {
    width: 80px;
    height: 80px;
    border: 2px dashed #e5e5ea;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafc;
}

.photo-slot:hover {
    border-color: #d4af37;
    background: #fffdf5;
}

.photo-slot .plus {
    font-size: 22px;
    color: #aaa;
    font-weight: 300;
}

.photo-slot:hover .plus {
    color: #d4af37;
}

.slot-label {
    font-size: 11px;
    color: #aaa;
}

.photo-slot:hover .slot-label {
    color: #d4af37;
}

/* 提交按钮 */
.review-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f2;
}

/* 侧边栏 */
.review-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-side-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.review-side-card h3 {
    font-size: 16px;
    color: #0a0c14;
    margin-bottom: 16px;
}

.review-tips {
    list-style: none;
    padding: 0;
}

.review-tips li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f2;
}

.review-tips li:last-child {
    border-bottom: none;
}

.review-tips li span:first-child {
    font-size: 18px;
    flex-shrink: 0;
}

.side-accent {
    background: linear-gradient(135deg, #0a0c14 0%, #1a1a2a 100%);
    color: #fff;
}

.side-accent h3 {
    color: #d4af37;
}

.side-accent p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 12px;
}

.side-accent .small-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

/* 评论成功弹窗 */
.review-success-modal {
    text-align: center;
    padding: 40px 36px;
    max-width: 440px;
}

.success-icon {
    font-size: 72px;
    margin-bottom: 20px;
    animation: bounce-in 0.6s ease;
}

@keyframes bounce-in {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

.review-success-modal h2 {
    font-size: 24px;
    color: #0a0c14;
    margin-bottom: 12px;
}

.review-success-modal p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 28px;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* 已评论按钮 */
.btn-reviewed {
    pointer-events: none;
    opacity: 0.6;
}

/* 评论页响应式 */
@media (max-width: 968px) {
    .review-wrap {
        grid-template-columns: 1fr;
    }

    .review-sidebar {
        position: static;
    }

    .rating-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .review-card {
        padding: 20px;
    }

    .review-product-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .star-rating-large .star {
        font-size: 32px;
    }

    .review-form-actions {
        flex-direction: column;
    }

    .review-form-actions .btn {
        width: 100%;
    }
}

/* ============================================
   响应式 - 用户相关页面
   ============================================ */
@media (max-width: 968px) {
    .auth-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .auth-info {
        padding: 0 20px;
    }

    .user-center-wrap {
        grid-template-columns: 1fr;
    }

    .user-sidebar {
        position: static;
    }

    .address-grid {
        grid-template-columns: 1fr;
    }

    .order-list {
        grid-template-columns: 1fr;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 576px) {
    .auth-section {
        padding: 30px 0 50px;
    }

    .auth-form-card {
        padding: 24px;
    }

    .auth-info h2 {
        font-size: 22px;
    }

    .user-content {
        padding: 20px;
    }

    .tab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .order-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .toast-message {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* ========== WhatsApp Chat 客服按钮：页面右侧固定悬浮 ========== */
.whatsapp-chat-btn {
    /* 固定在页面右侧中间偏下位置 */
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366; /* WhatsApp 品牌绿色 */
    color: #fff;
    padding: 12px 18px 12px 14px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-chat-btn:hover {
    /* 悬停时放大并增强阴影 */
    transform: translateX(-4px) scale(1.05);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
    color: #fff;
}

.whatsapp-chat-btn svg {
    /* WhatsApp 图标尺寸 */
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.whatsapp-chat-text {
    /* 文字默认显示 */
    display: inline;
    white-space: nowrap;
}

/* 移动端适配：只显示图标，隐藏文字，节省空间 */
@media (max-width: 768px) {
    .whatsapp-chat-btn {
        right: 15px;
        bottom: 80px;
        padding: 12px;
        border-radius: 50%;
    }

    .whatsapp-chat-text {
        display: none;
    }
}

/* ============================================
   H5 手机端全面适配
   断点：768px 以下为手机端
   核心：移动菜单、底部导航栏、触控优化
   ============================================ */

/* ===== 移动端菜单遮罩层 ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ===== 移动端菜单面板（从右侧滑出）：968px以下生效 ===== */
@media (max-width: 968px) {
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #0a0c14;
        z-index: 1002;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        padding: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* 确保底部内容不被遮挡 */
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .nav.show {
        transform: translateX(0);
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 70px 0 20px;
    }

    .nav ul li {
        border-bottom: 1px solid rgba(200, 200, 220, 0.1);
    }

    .nav ul li a {
        display: block;
        padding: 16px 24px;
        font-size: 15px;
        color: #c0c0d0;
        letter-spacing: 0.5px;
        min-height: 50px;
        display: flex;
        align-items: center;
    }

    .nav ul li a:hover,
    .nav ul li a.active {
        color: #d4af37;
        background: rgba(212, 175, 55, 0.08);
    }

    /* 移动菜单关闭按钮：确保在header之上可点击 */
    .mobile-menu-close {
        position: absolute;
        top: 6px;
        right: 6px;
        background: none;
        border: none;
        color: #c0c0d0;
        font-size: 28px;
        cursor: pointer;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s;
        z-index: 1006;
    }

    .mobile-menu-close:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
    }

    /* 移动菜单内的用户操作区 */
    .mobile-menu-user {
        display: block;
        padding: 16px 0;
        border-top: 1px solid rgba(200, 200, 220, 0.1);
        margin-top: auto;
        flex-shrink: 0;
    }

    .mobile-menu-user .auth-nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .mobile-menu-user .auth-link-login {
        display: block;
        text-align: center;
        padding: 12px;
        color: #c0c0d0;
        font-size: 15px;
    }

    .mobile-menu-user .auth-link-register {
        display: block;
        text-align: center;
        padding: 14px 20px;
    }

    /* 移动端菜单用户功能入口样式 */
    .mobile-menu-user-item {
        display: block;
        padding: 14px 24px;
        color: #c0c0d0;
        font-size: 15px;
        border-bottom: 1px solid rgba(200, 200, 220, 0.1);
        transition: all 0.2s;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .mobile-menu-user-item:first-child {
        border-top: none;
    }

    .mobile-menu-user-item:hover {
        color: #d4af37;
        background: rgba(212, 175, 55, 0.08);
    }

    .mobile-menu-user-divider {
        height: 1px;
        background: rgba(200, 200, 220, 0.2);
        margin: 4px 24px;
    }

    .mobile-menu-register {
        color: #0a0c14;
        background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
        font-weight: 600;
        border-radius: 6px;
        margin: 12px 24px;
        justify-content: center;
        min-height: 48px;
    }

    .mobile-menu-register:hover {
        background: linear-gradient(135deg, #b8941f 0%, #9a7a1a 100%);
        color: #0a0c14;
    }

    .mobile-menu-logout {
        color: #ff6b6b;
    }

    .mobile-menu-logout:hover {
        background: rgba(255, 107, 107, 0.1);
        color: #ff4757;
    }

    /* 移动端汉堡按钮激活态 */
    .mobile-menu-btn.active {
        font-size: 20px;
    }

    /* 遮罩层在968px以下生效 */
    .mobile-menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

/* 移动端专用元素：桌面端默认隐藏 */
.mobile-menu-close,
.mobile-menu-user {
    display: none;
}

/* ===== 移动端头部优化 ===== */
@media (max-width: 768px) {
    .header .container {
        height: 56px;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .logo img {
        height: 30px !important;
    }

    /* 移动端隐藏头部登录注册按钮 */
    .user-nav-entry {
        display: none;
    }

    .mobile-menu-btn {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
    }
}

/* ===== 移动端 Hero 区域优化 ===== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        margin-top: 56px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 16px 50px;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 26px;
        line-height: 1.3;
        margin-bottom: 14px;
    }

    .hero-content .subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-tags {
        justify-content: center;
        gap: 8px;
        margin-bottom: 24px;
    }

    .hero-tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 15px;
    }

    .hero-image-box {
        width: 240px;
        height: 240px;
        margin: 0 auto;
    }

    .hero-image-box::before {
        width: 180px;
        height: 180px;
    }

    .hero-image-box::after {
        width: 210px;
        height: 210px;
    }

    .meteorite-placeholder {
        width: 160px;
        height: 160px;
    }

    .meteorite-text {
        font-size: 12px;
    }
}

/* ===== 移动端产品筛选栏：横向滚动 ===== */
@media (max-width: 768px) {
    .product-filter {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        margin-bottom: 24px;
        gap: 8px;
        scrollbar-width: none;
    }

    .product-filter::-webkit-scrollbar {
        display: none;
    }

    .filter-label {
        flex-shrink: 0;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
        min-height: 40px;
    }
}

/* ===== 移动端产品卡片优化 ===== */
@media (max-width: 768px) {
    .product-card-lg {
        border-radius: 10px;
    }

    .product-card-lg .product-image-lg {
        height: 180px;
    }

    .product-info-lg {
        padding: 12px;
    }

    .product-info-lg h3 {
        font-size: 14px;
        margin-bottom: 4px;
        /* 产品标题最多显示2行 */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-info-lg .product-cat {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .product-price-lg {
        margin-bottom: 10px;
    }

    .product-price-lg .price-current {
        font-size: 16px;
    }

    .product-btn-lg {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        min-height: 40px;
        font-size: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .quick-view-btn {
        padding: 8px 16px;
        font-size: 12px;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 首页价值卡片紧凑样式 */
    .value-card {
        padding: 20px 12px;
    }

    .value-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
        font-size: 22px;
    }

    .value-icon img {
        width: 36px;
        height: 36px;
    }

    .value-card h4 {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .value-card p {
        font-size: 11px;
        line-height: 1.5;
    }

    /* 首页工厂数据卡片紧凑样式 */
    .factory-card {
        padding: 20px 12px;
    }

    .factory-card .num {
        font-size: 28px;
        margin-bottom: 4px;
    }

    .factory-card h4 {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .factory-card p {
        font-size: 11px;
        line-height: 1.5;
    }

    /* 信任背书模块紧凑样式 */
    .trust-item {
        padding: 24px 16px;
    }

    .trust-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .trust-item h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .trust-item p {
        font-size: 13px;
        line-height: 1.6;
    }

    /* 首页产品卡片紧凑样式 */
    .product-grid .product-card {
        border-radius: 10px;
    }

    .product-grid .product-image {
        aspect-ratio: auto;
        height: 160px;
    }

    .product-grid .product-info {
        padding: 10px 12px;
    }

    .product-grid .product-info h3 {
        font-size: 13px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-grid .product-info p {
        font-size: 12px;
    }

    .product-grid .product-info .price {
        font-size: 15px;
    }

    .product-grid .product-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
    }
}

/* ===== 移动端 Section 优化 ===== */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 36px;
    }

    .section-title h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .section-title .subtitle {
        font-size: 14px;
    }

    .container {
        padding: 0 16px;
    }
}

/* ===== 移动端按钮触控优化 ===== */
@media (max-width: 768px) {
    .btn {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 15px;
    }

    .btn-sm {
        min-height: 40px;
        padding: 10px 16px;
        font-size: 14px;
    }

    /* 所有可点击元素最小触控区域 44px */
    a, button, .filter-btn, .product-btn-lg, .quick-view-btn {
        min-height: 44px;
    }
}

/* ===== 移动端表单优化 ===== */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
        /* 防止 iOS 自动缩放 */
        padding: 12px 14px !important;
        min-height: 44px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ===== 移动端产品详情页优化 ===== */
@media (max-width: 768px) {
    .product-detail {
        margin-top: 56px;
        padding: 24px 0 100px;
    }

    .product-detail-wrap {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-gallery {
        position: static;
    }

    .gallery-main {
        border-radius: 10px;
        overflow: hidden;
    }

    .gallery-thumbs {
        gap: 8px;
    }

    .gallery-thumb {
        width: 60px;
        height: 60px;
    }

    .product-detail-info {
        padding: 0 4px;
    }

    .product-detail-info h1 {
        font-size: 20px;
        line-height: 1.4;
    }

    .detail-price {
        font-size: 24px;
    }

    .detail-actions {
        flex-direction: column;
        gap: 12px;
    }

    .detail-actions .btn {
        width: 100%;
    }

    .qty-control {
        min-height: 44px;
    }

    .qty-control button {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .qty-control input {
        height: 44px;
        font-size: 16px;
    }
}

/* ===== 移动端 Footer 优化 ===== */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 80px;
        /* 底部留出底部导航栏空间 */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand .logo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .social-links {
        justify-content: center;
    }

    /* 移动端隐藏footer链接列，只保留品牌介绍和版权 */
    .footer-col {
        display: none;
    }

    .footer-bottom {
        font-size: 12px;
        padding-top: 20px;
    }
}

/* ===== 移动端结算弹层全屏 ===== */
@media (max-width: 768px) {
    .checkout-panel {
        max-width: 100%;
    }

    .checkout-header {
        padding: 16px 20px;
    }

    .checkout-body {
        padding: 16px 20px;
    }

    .checkout-footer {
        padding: 16px 20px;
    }
}

/* ===== 移动端页面头部 ===== */
@media (max-width: 768px) {
    .page-header {
        margin-top: 56px;
        padding: 30px 0;
    }

    .page-header h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    .page-header p {
        font-size: 14px;
    }

    .breadcrumb {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

/* ===== 移动端用户中心优化 ===== */
@media (max-width: 768px) {
    .user-center-wrap {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .user-sidebar {
        position: static;
    }

    .user-content {
        padding: 16px;
    }

    .profile-card-header {
        padding: 16px;
    }

    .profile-card-body {
        padding: 16px;
    }

    .order-card {
        padding: 16px;
    }

    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .order-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .address-card {
        padding: 16px;
    }

    .address-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 移动端登录注册页优化 ===== */
@media (max-width: 768px) {
    .auth-section {
        margin-top: 56px;
        padding: 24px 0 50px;
    }

    .auth-wrap {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .auth-form-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .auth-info {
        padding: 0 16px;
        text-align: center;
    }

    .auth-info h2 {
        font-size: 22px;
    }

    .auth-info p {
        font-size: 14px;
    }
}

/* ===== 移动端 FAQ 优化 ===== */
@media (max-width: 768px) {
    .faq-section {
        padding: 24px 0 80px;
    }

    .faq-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .faq-tabs::-webkit-scrollbar {
        display: none;
    }

    .faq-tab {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 13px;
        min-height: 40px;
    }

    .faq-item {
        padding: 16px;
    }

    .faq-question {
        font-size: 14px;
        padding-right: 30px;
    }

    .faq-answer {
        font-size: 14px;
        padding-top: 12px;
    }
}

/* ===== 移动端联系页优化 ===== */
@media (max-width: 768px) {
    .contact-section {
        padding: 24px 0 80px;
    }

    .contact-info-card {
        padding: 20px;
    }

    .contact-form-card {
        padding: 20px;
    }
}

/* ===== 移动端订单详情优化 ===== */
@media (max-width: 768px) {
    .order-detail-section {
        padding: 24px 0 100px;
    }

    .order-detail-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .order-detail-sidebar {
        position: static;
    }

    .order-detail-card {
        padding: 16px;
        border-radius: 10px;
    }

    .order-item-detail {
        flex-wrap: wrap;
        gap: 8px;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 8px;
    }

    .step-line {
        display: none;
    }

    .progress-step {
        flex: 1 1 45%;
        min-height: 44px;
    }
}

/* ===== H5 底部导航栏 ===== */
.h5-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e8e8ee;
    z-index: 1000;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .h5-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
}

.h5-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 12px;
    color: #666;
    font-size: 11px;
    text-decoration: none;
    transition: color 0.2s;
    min-width: 56px;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.h5-bottom-nav-item:hover,
.h5-bottom-nav-item.active {
    color: #d4af37;
}

.h5-bottom-nav-item svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.h5-bottom-nav-item span {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* 购物车图标带数量角标 */
.h5-bottom-nav-item .cart-badge {
    position: relative;
}

.h5-bottom-nav-item .cart-badge-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #d4af37;
    color: #0a0c14;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* ===== 移动端通用：避免固定定位元素遮挡 ===== */
@media (max-width: 768px) {
    /* WhatsApp 按钮位置调整，避免与底部导航冲突 */
    .whatsapp-chat-btn {
        bottom: 70px;
        right: 12px;
    }

    /* Toast 提示位置调整 */
    .toast-message {
        bottom: 80px;
    }
}

/* ===== 移动端 414px 及以下（iPhone SE 等小屏） ===== */
@media (max-width: 414px) {
    .hero-content h1 {
        font-size: 22px;
    }

    .hero-content .subtitle {
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .product-card-lg .product-image-lg {
        height: 150px;
    }

    .product-info-lg h3 {
        font-size: 13px;
    }

    .factory-card .num {
        font-size: 24px;
    }

    .factory-card h4 {
        font-size: 12px;
    }

    .factory-card p {
        font-size: 10px;
    }

    .detail-price {
        font-size: 22px;
    }

    .page-header h1 {
        font-size: 22px;
    }
}

/* ===== 移动端横屏适配 ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero .container {
        padding: 30px 16px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-image-box {
        width: 180px;
        height: 180px;
    }

    .meteorite-placeholder {
        width: 120px;
        height: 120px;
    }
}

/* ===== iOS Safari 安全区域适配 ===== */
@supports (padding: env(safe-area-inset-bottom)) {
    .h5-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .footer {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}
