/* --- 全局与初始化样式 (黑金 & 幽绿风格) --- */
/* latin */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/css/CmBoWgzfDAlp7lk.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary-gold: #E0B86F; /* 主色调 - 金色 */
    --accent-teal: #4DD0E1;  /* 辅色 - 幽绿/青色 */
    --bg-color: #111111;      /* 背景色 - 深黑 */
    --card-bg-color: #1D1D1D; /* 卡片背景色 - 深灰 */
    --text-color: #F5F5F5;    /* 主文字颜色 - 亮灰 */
    --text-light-color: #888888; /* 次要文字颜色 - 中灰 */
    --border-color: rgba(255, 255, 255, 0.1); /* 边框颜色 */
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-title: 'Orbitron', sans-serif; /* Banner 标题字体 */
}

body { 
    margin: 0; 
    font-family: var(--font-family-base); 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    overscroll-behavior-y: contain; 
    -webkit-font-smoothing: antialiased; 
}

* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

.hidden { 
    display: none !important; 
}

/* --- 主容器与页面切换 --- */
.app-container { 
    max-width: 480px; 
    margin: 0 auto; 
    background-color: var(--bg-color); 
    min-height: 100vh; 
    position: relative; 
    overflow-x: hidden; 
}

.page { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: var(--bg-color); 
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    overflow-y: auto; 
    padding-bottom: 60px; 
}

.page.enter { 
    transform: translateX(0); 
}

.page.exit-left { 
    transform: translateX(-100%); 
}

.page.enter-right { 
    transform: translateX(100%); 
}

/* --- 公共组件 --- */
.header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px; 
    background-color: var(--bg-color); 
    border-bottom: 1px solid var(--border-color); 
    position: sticky; 
    top: 0; 
    z-index: 10; 
}

.header .back-btn { 
    font-size: 28px; 
    font-weight: bold; 
    cursor: pointer; 
    width: 30px; 
    color: var(--text-color); 
}

.header .title { 
    font-size: 18px; 
    font-weight: 600; 
    color: var(--text-color); 
}

.header .placeholder { 
    width: 30px; 
}

/* --- 首页样式 --- */
.home-header { 
    display: flex; 
    align-items: center; 
    padding: 15px; 
    background: var(--bg-color); 
    border-bottom: 1px solid var(--border-color); 
}

.search-box { 
    flex-grow: 1; 
    background-color: var(--card-bg-color); 
    border-radius: 20px; 
    padding: 10px 15px; 
    color: var(--text-light-color); 
    font-size: 14px; 
    cursor: pointer; 
    border: 1px solid var(--card-bg-color); 
}

.profile-icon { 
    margin-left: 15px; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    border: 1px solid var(--primary-gold); 
}

.profile-icon svg { 
    width: 22px; 
    height: 22px; 
    color: var(--primary-gold); 
}

/* === Banner 区域 - 动态黑金风格 START === */
@keyframes animated-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.banner {
    margin: 15px;
    padding: 40px 20px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 160px;
    color: #fff;
    /* 动态渐变背景 */
    background: linear-gradient(125deg, #2c2c2c, #1a1a1a, #daa520, #1a1a1a);
    background-size: 400% 400%;
    animation: animated-gradient 10s ease infinite;
    border: 1px solid rgba(224, 184, 111, 0.2);
}

.banner-content { 
    z-index: 1; 
}

.banner .main-title {
    font-family: var(--font-family-base); /* 使用基础字体显示中文 */
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 2px; /* 增加中文字间距 */
    /* 金色文字辉光 */
    text-shadow: 0 0 8px rgba(224, 184, 111, 0.8), 0 0 12px rgba(224, 184, 111, 0.5);
}

.banner .sub-title {
    font-size: 14px;
    color: #F5F5F5;
    opacity: 0.8;
    margin-top: 10px;
    letter-spacing: 1px;
}
/* === Banner 区域 END === */

.section-title { 
    padding: 0 15px; 
    font-size: 18px; 
    font-weight: 600; 
    margin-bottom: 15px; 
    margin-top: 10px;
}

/* --- 个人中心样式 --- */
.page-content {
    padding: 0;
}

.profile-info-header {
    background: linear-gradient(135deg, var(--card-bg-color), #2a2a2a);
    padding: 25px 15px;
    border-bottom: 1px solid var(--border-color);
}

.user-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-details .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    color: var(--bg-color);
    border: 2px solid var(--primary-gold);
}

.user-details .nickname {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.user-details .growth-value {
    font-size: 14px;
    color: var(--accent-teal);
    font-weight: 500;
}

.asset-card {
    display: flex;
    margin: 15px;
    background: var(--card-bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.asset-item {
    flex: 1;
    padding: 20px;
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.asset-item:last-child {
    border-right: none;
}

.asset-item .value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-gold);
    margin-bottom: 5px;
}

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

.menu-card {
    margin: 15px;
    background: var(--card-bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.menu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.menu-card-header .title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.menu-card-header .see-more {
    font-size: 14px;
    color: var(--accent-teal);
    cursor: pointer;
}

.menu-grid {
    display: flex;
    padding: 15px;
}

.menu-grid.space-around {
    justify-content: space-around;
}

.menu-grid.start {
    justify-content: flex-start;
    gap: 30px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

.menu-item .icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(224, 184, 111, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(224, 184, 111, 0.2);
}

.menu-item .icon-wrapper svg {
    width: 20px;
    height: 20px;
    color: var(--primary-gold);
}

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

/* 最近订单样式 */
.recent-orders {
    padding: 0;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.order-item:hover {
    background-color: rgba(224, 184, 111, 0.05);
}

.order-item:last-child {
    border-bottom: none;
}

.order-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-no {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.order-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.order-status.status-1 {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.order-status.status-2 {
    background: rgba(77, 208, 225, 0.2);
    color: var(--accent-teal);
}

.order-status.status-3 {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.order-status.status-4 {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.order-status.status-5 {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.order-status.status-6 {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

/* 未支付状态样式 */
.order-status.status-unpaid {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

/* --- 订单详情页 --- */
.detail-section {
    margin-bottom: 15px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    padding: 15px;
    background: var(--bg-color);
}

.detail-status-card {
    background: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    margin: 15px;
    border: 1px solid var(--border-color);
}

.status-icon {
    margin-bottom: 15px;
    color: var(--primary-gold);
}

.status-text h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.status-text p {
    font-size: 14px;
    color: var(--text-light-color);
}

.detail-card {
    background: var(--card-bg-color);
    border-radius: 12px;
    padding: 15px;
    margin: 0 15px;
    border: 1px solid var(--border-color);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

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

.detail-value {
    font-size: 14px;
    color: var(--text-color);
    text-align: right;
    word-break: break-all;
}

.item-subtotal {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-left: 15px;
}

.detail-btn {
    background: transparent;
    border: 1px solid var(--text-light-color);
    color: var(--text-color);
    padding: 12px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 48%;
}

.detail-btn.primary {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: #000;
}

.detail-btn.primary:hover {
    background: #f0c070;
    border-color: #f0c070;
}

.detail-btn.full-width {
    width: 100%;
}

.detail-section > div:last-child {
    padding: 0 15px;
}

.order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-amount {
    font-size: 13px;
    color: var(--text-light-color);
}

.order-saved {
    font-size: 13px;
    color: var(--accent-teal);
    font-weight: 500;
}

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

.order-arrow {
    font-size: 18px;
    color: var(--text-light-color);
    margin-left: 10px;
}

/* === 热门商品卡片 - 新风格 START === */
.hot-products { 
    display: flex; 
    overflow-x: auto; 
    padding: 0 0 15px 15px; 
    gap: 14px; 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

.hot-products::-webkit-scrollbar { 
    display: none; 
}

.product-card { 
    flex: 0 0 150px; 
    border-radius: 14px; 
    overflow: hidden; 
    background: var(--card-bg-color); 
    border: 1px solid rgba(224, 184, 111, 0.25);
    text-align: center; 
    padding: 10px 10px 14px; 
    cursor: pointer; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 6px 16px rgba(218, 165, 32, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* 热销角标 */
.product-card::after {
    content: '热销';
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #12151C;
    background: linear-gradient(135deg, #FFD87A, #E0B86F);
    border: 1px solid rgba(224, 184, 111, 0.8);
    padding: 2px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(224, 184, 111, 0.35);
}

.product-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.12);
}

.product-card-img { 
    margin-bottom: 12px; 
    width: 120px; height: 120px; 
    border-radius: 12px; 
    font-size: 18px; font-weight: bold; 
    color: var(--text-color); 
    background-color: var(--bg-color);
    display: flex; align-items: center; justify-content: center; 
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(224, 184, 111, 0.15);
}

.product-card-name { 
    font-size: 15px; 
    font-weight: 600; 
    color: var(--text-color); 
    margin-bottom: 10px; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-promo { 
    font-size: 14px; 
    font-weight: 700; 
    background: linear-gradient(135deg, #FFD87A, #E0B86F); 
    color: #12151C; 
    display: inline-block; 
    padding: 6px 12px; 
    border-radius: 999px; 
    box-shadow: 0 2px 8px rgba(224, 184, 111, 0.25);
}

/* 价格容器与原价样式（热门区） */
.product-card-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.product-card .original-price-list {
    font-size: 12px;
    color: var(--text-light-color);
    text-decoration: line-through;
}
/* === 热门商品卡片 END === */

.product-section { 
    background: var(--bg-color); 
    margin-top: 10px; 
}

.category-tabs { 
    display: flex; 
    border-bottom: 1px solid var(--border-color); 
    padding: 0 15px; 
    overflow-x: auto; 
    -ms-overflow-style: none; 
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar { 
    display: none; 
}

.tab-item { 
    padding: 15px 5px; 
    margin-right: 20px; 
    font-size: 15px; 
    color: var(--text-light-color); 
    cursor: pointer; 
    position: relative; 
    white-space: nowrap; 
    transition: color 0.3s; 
}

.tab-item.active { 
    color: var(--accent-teal); 
    font-weight: 600; 
}

.tab-item.active::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 24px; 
    height: 3px; 
    background-color: var(--accent-teal); 
    border-radius: 2px; 
}

.product-list { 
    padding: 0 15px; 
}

.product-list-item { 
    display: flex; 
    align-items: center; 
    padding: 15px 0; 
    cursor: pointer; 
    border-bottom: 1px solid var(--border-color); 
}

.product-list-item:last-child { 
    border-bottom: none; 
}

.list-item-img { 
    width: 48px; 
    height: 48px; 
    border-radius: 8px; 
    margin-right: 15px; 
    background-color: var(--card-bg-color); 
    color: var(--text-color); 
    flex-shrink: 0; 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    font-size:20px; 
    font-weight:bold; 
}

.list-item-info { 
    flex-grow: 1; 
}

.list-item-name { 
    font-size: 16px; 
    font-weight: 500; 
    color: var(--text-color); 
}

.list-item-price-container { 
    text-align: right; 
}

.final-price-list { 
    font-size: 18px; 
    color: var(--primary-gold); 
    font-weight: bold; 
}

.original-price-list { 
    font-size: 12px; 
    text-decoration: line-through; 
    color: var(--text-light-color); 
    display: block; 
}

/* --- 个人中心页 --- */
#profile-page .page-content, #orders-page .page-content { 
    padding-top: 15px; 
}

.profile-info-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 20px; 
    padding: 0 15px;
}

.profile-info-header .user-details { 
    display: flex; 
    align-items: center; 
}

.profile-info-header .avatar { 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    background-color: var(--card-bg-color); 
    margin-right: 15px;
    border: 2px solid var(--primary-gold); 
}

.profile-info-header .nickname { 
    font-size: 20px; 
    font-weight: 600; 
    color: var(--text-color); 
}

.profile-info-header .growth-value { 
    font-size: 12px; 
    margin-top: 5px;
    color: var(--primary-gold); 
}

.asset-card { 
    background: var(--card-bg-color); 
    border: none; 
    border-radius: 12px; 
    padding: 20px; 
    display: flex; 
    justify-content: space-around; 
    text-align: center; 
    margin: 0 15px 15px; 
}

.asset-item .value { 
    font-size: 28px; 
    font-weight: bold;
    color: var(--primary-gold); 
}

.asset-item .label { 
    font-size: 13px; 
    color: var(--text-light-color); 
    margin-top: 8px; 
}

.menu-card { 
    background-color: var(--card-bg-color); 
    border:none; 
    border-radius: 12px; 
    padding: 15px; 
    margin: 0 15px 15px; 
}

.menu-card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-bottom: 15px; 
    border-bottom: 1px solid var(--border-color); 
    margin-bottom: 15px; 
}

.menu-card-header .title { 
    font-size: 16px; 
    font-weight: 600; 
}

.menu-card-header .see-more { 
    font-size: 13px; 
    color: var(--text-light-color); 
    cursor: pointer; 
}

.menu-grid { 
    display: flex; 
    text-align: center; 
}

.menu-grid.space-around { 
    justify-content: space-around; 
}

.menu-grid.start { 
    justify-content: flex-start; 
    gap: 20px; 
}

.menu-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    cursor: pointer; 
    min-width: 50px; 
}

.menu-item .icon-wrapper { 
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 8px;
    color: var(--primary-gold); 
}

.menu-item .icon-wrapper svg { 
    width: 26px; 
    height: 26px; 
}

.menu-item .label { 
    font-size: 13px; 
    color: var(--text-light-color); 
}

/* --- 订单列表页 --- */
/* 统计信息区域 */
.stats-summary {
    background: linear-gradient(135deg, var(--card-bg-color), #252525);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin: 10px 15px;
}

/* 订单列表容器 */
.order-card-list {
    padding-bottom: 20px;
}

/* 空状态样式 */
.empty-state {
    background: var(--card-bg-color);
    border-radius: 12px;
    margin: 15px;
    border: 1px solid var(--border-color);
}

/* 分页样式 */
.pagination {
    background: var(--card-bg-color);
    margin: 0 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.page-btn {
    background: var(--primary-gold);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #f0c070;
}

.page-info {
    font-size: 14px;
    color: var(--text-light-color);
}
.order-card { 
    background-color: var(--card-bg-color); 
    border-radius: 12px; 
    margin: 15px; 
    padding: 15px; 
    border:none; 
}

.order-card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-bottom: 10px; 
    border-bottom: 1px solid var(--border-color); 
    font-size: 15px; 
    font-weight: 600; 
}

.order-status { 
    font-size: 14px; 
    font-weight: normal; 
}

.order-status.pending { 
    color: var(--primary-gold); 
}

.order-status.completed { 
    color: #5cb85c; 
}

.order-card-body { 
    display: flex; 
    padding: 15px 0; 
}

.order-item-img { 
    width: 80px; 
    height: 80px; 
    border-radius: 8px; 
    margin-right: 15px; 
    background-color: var(--card-bg-color); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 24px; 
    font-weight: bold; 
    color: var(--text-color); 
    flex-shrink: 0; 
}

.order-item-details .item-name { 
    font-size: 16px; 
    font-weight: 500; 
    margin-bottom: 8px; 
}

.order-item-details .item-sku { 
    font-size: 13px; 
    color: var(--text-light-color); 
}

.order-card-footer { 
    display:flex; 
    justify-content:space-between; 
    align-items:center; 
    padding-top: 10px; 
    border-top: 1px solid var(--border-color); 
}

.total-amount { 
    font-size: 14px; 
}

.total-amount .amount { 
    font-weight: bold; 
    font-size: 16px; 
}

.order-action-btn { 
    border: 1px solid var(--text-light-color); 
    background: transparent; 
    color: var(--text-color); 
    padding: 6px 14px; 
    border-radius: 15px; 
    cursor: pointer; 
    margin-left: 10px; 
    font-size: 13px; 
    transition: all 0.3s ease; 
}

.order-action-btn.primary { 
    border-color: var(--primary-gold); 
    background-color: var(--primary-gold); 
    color: #000; 
}

.order-action-btn.primary:hover { 
    background-color: #f0c070; 
    border-color: #f0c070; 
}

/* --- 商品选购弹窗 --- */
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.7); 
    z-index: 99; 
    opacity: 0; 
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px); 
}

.modal-overlay.visible { 
    opacity: 1; 
}

.product-modal { 
    position: fixed; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 100%; 
    max-width: 480px; 
    max-height: 90%; 
    border-radius: 16px 16px 0 0; 
    z-index: 100; 
    transform: translate(-50%, 100%); 
    transition: transform 0.3s ease-out; 
    display: flex; 
    flex-direction: column;
    background-color: var(--card-bg-color); 
    border-top: 1px solid var(--border-color); 
}

.product-modal.visible { 
    transform: translate(-50%, 0); 
}

.modal-header { 
    padding: 15px; 
    text-align: center; 
    font-size: 18px; 
    font-weight: 600; 
    position: relative; 
    border-radius: 16px 16px 0 0; 
    flex-shrink: 0; 
    border-bottom: 1px solid var(--border-color); 
}

.modal-close-btn { 
    position: absolute; 
    right: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    font-size: 28px; 
    color: var(--text-light-color); 
    cursor: pointer; 
    line-height: 1; 
}

.modal-content { 
    padding: 0 15px 15px; 
    overflow-y: auto; 
    flex-grow: 1; 
}

.sku-image-gallery { 
    display: flex; 
    overflow-x: auto; 
    gap: 12px; 
    padding: 15px 0; 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

.sku-image-gallery::-webkit-scrollbar { 
    display: none; 
}

.gallery-item { 
    flex: 0 0 120px; 
    aspect-ratio: 1 / 1; 
    border-radius: 12px; 
    background-size: cover; 
    background-position: center; 
    border: 2px solid transparent; 
    transition: all 0.2s ease; 
    cursor: pointer;
}

.gallery-item.selected { 
    border-color: var(--primary-gold); 
}

.price-display { 
    display: flex; 
    align-items: flex-end; 
    padding: 10px 0; 
    line-height: 1; 
}

.price-display .final-price { 
    font-size: 32px; 
    font-weight: bold; 
    margin-right: 12px;
    color: var(--primary-gold); 
}

.price-display .original-price-tag { 
    font-size: 12px; 
    padding: 4px 8px; 
    border-radius: 4px; 
    white-space: nowrap; 
    font-weight: 500; 
    margin-bottom: 4px;
    background-color: rgba(224, 184, 111, 0.1); 
    border: 1px solid var(--primary-gold); 
    color: var(--primary-gold); 
}

.sku-section-title { 
    font-weight: 600; 
    margin: 15px 0 10px; 
    color: var(--text-color); 
}

.sku-options { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
}

.sku-option { 
    padding: 10px 15px; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    cursor: pointer; 
    background-color: var(--bg-color); 
    transition: all 0.2s ease; 
}

.sku-option.selected { 
    border-color: var(--primary-gold); 
    background-color: rgba(224, 184, 111, 0.1); 
    color: var(--primary-gold); 
}

.product-details img { 
    width: 100%; 
    border-radius: 8px; 
    display: block; 
}

.phone-input { 
    width: 100%; 
    padding: 12px; 
    font-size: 16px; 
    border-radius: 8px; 
    border: 1px solid var(--border-color); 
    margin-top: 10px; 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    outline: none; 
    transition: all 0.3s ease; 
}

.phone-input:focus { 
    border-color: var(--primary-gold); 
    box-shadow: none; 
}

.modal-footer { 
    padding: 10px 15px 20px; 
    background-color: var(--card-bg-color); 
    border-top: 1px solid var(--border-color); 
    display: flex; 
    flex-direction: column; 
    align-items: stretch; 
    flex-shrink: 0; 
}

.pay-btn { 
    color: #000; 
    border: none; 
    padding: 14px; 
    font-size: 16px; 
    border-radius: 25px; 
    cursor: pointer; 
    font-weight: 600; 
    text-align: center; 
    transition: all 0.3s ease;
    background: var(--primary-gold); 
    box-shadow: none; 
}

.pay-btn:hover { 
    background: #f0c070; 
}

.pay-btn .savings-info { 
    color: #12151C; 
    font-size: 12px; 
    opacity: 0.8; 
    display: block; 
    margin-top: 2px; 
    font-weight: 500;
}

.success-modal { 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) scale(0.8); 
    background-color: var(--card-bg-color); 
    padding: 30px; 
    border-radius: 12px; 
    text-align: center; 
    z-index: 101; 
    opacity: 0; 
    visibility: hidden; 
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease; 
    border: 1px solid var(--border-color); 
    pointer-events: none; 
}

.success-modal.visible { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 1; 
    visibility: visible; 
    pointer-events: auto; 
}

.success-icon { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    background-color: #4CAF50; 
    color: white; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 30px; 
    margin-bottom: 15px; 
}

.success-title { 
    font-size: 18px; 
    font-weight: 600; 
    margin-bottom: 8px; 
    color: var(--text-color); 
}

.success-message { 
    font-size: 14px; 
    color: var(--text-light-color); 
    line-height: 1.5; 
}

.success-message strong { 
    color: var(--primary-gold); 
}

/* --- 搜索结果页 --- */
.search-page-header { 
    display: flex; 
    align-items: center; 
    padding: 10px 15px; 
    background-color: var(--bg-color); 
    border-bottom: 1px solid var(--border-color); 
    gap: 10px; 
}

.search-input-wrapper { 
    flex-grow: 1; 
    display: flex; 
    align-items: center; 
    background-color: var(--card-bg-color); 
    border-radius: 20px; 
    padding: 0 15px; 
}

.search-input-wrapper input { 
    flex-grow: 1; 
    border: none; 
    background: transparent; 
    height: 40px; 
    font-size: 14px; 
    outline: none; 
    color: var(--text-color); 
}

.search-page-header .search-btn { 
    color: #000; 
    border: none; 
    border-radius: 20px; 
    padding: 10px 20px; 
    font-size: 14px; 
    cursor: pointer; 
    transition: background-color 0.3s;
    background: var(--primary-gold); 
    font-weight: 500;
}

.search-page-header .search-btn:hover { 
    background-color: #f0c070; 
}

.no-results { 
    text-align: center; 
    padding: 60px 20px; 
    color: var(--text-light-color); 
}

/* --- 客服二维码弹窗 --- */
.qr-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1000; }
.qr-modal.show { display: flex; }
.qr-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.qr-content { position: relative; background: #fff; border-radius: 12px; padding: 20px 20px 28px; width: 300px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); text-align: center; }
.qr-title { font-size: 16px; margin-bottom: 12px; color: #333; }
.qr-img { width: 240px; height: 240px; object-fit: contain; border-radius: 8px; }
.qr-close { position: absolute; top: 8px; right: 12px; font-size: 22px; cursor: pointer; color: #888; }
.qr-tip { margin-top: 10px; font-size: 13px; color: #666; }
