:root {
    --primary: #e4393c;
    --primary-dark: #c1272d;
    --primary-light: #ff6b6b;
    --text-dark: #333;
    --text-gray: #666;
    --text-light: #999;
    --bg-page: #f5f5f5;
    --bg-white: #fff;
    --border-color: #eee;
    --price-color: #e4393c;
    --success-color: #07c160;
    --warning-color: #ff976a;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --bottom-nav-height: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-page); color: var(--text-dark); line-height: 1.5;
    min-height: 100vh; padding-bottom: var(--bottom-nav-height);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ========== Header ========== */
.mall-header {
    position: sticky; top: 0; z-index: 100; background: var(--bg-white);
    border-bottom: 1px solid var(--border-color); height: 48px;
    display: flex; align-items: center; padding: 0 12px;
}
.mall-header .header-back {
    width: 32px; height: 32px; display: flex; align-items: center;
    justify-content: center; font-size: 20px; color: var(--text-dark);
    flex-shrink: 0; cursor: pointer;
}
.mall-header .header-title {
    flex: 1; text-align: center; font-size: 17px; font-weight: 600;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.mall-header .header-action {
    width: 32px; height: 32px; display: flex; align-items: center;
    justify-content: center; font-size: 18px; color: var(--text-dark); flex-shrink: 0;
}

/* ========== Search Bar ========== */
.search-bar {
    background: var(--bg-page); padding: 8px 12px; position: sticky;
    top: 48px; z-index: 99;
}
.search-bar .search-input {
    display: flex; align-items: center; background: var(--bg-white);
    border-radius: 20px; padding: 0 12px; height: 36px; border: 1px solid var(--border-color);
}
.search-bar .search-input .icon-search { font-size: 16px; color: var(--text-light); margin-right: 8px; }
.search-bar .search-input input {
    flex: 1; border: none; outline: none; font-size: 14px; background: transparent;
}

/* ========== Banner / Swiper ========== */
.banner-wrap { width: 100%; overflow: hidden; background: var(--bg-white); }
.banner-wrap img { width: 100%; aspect-ratio: 750 / 360; object-fit: cover; }

/* ========== Category Icons ========== */
.category-icons { background: var(--bg-white); padding: 16px 0 8px; }
.category-icons .row { margin: 0; }
.category-icons .cat-item { text-align: center; padding: 8px 0; cursor: pointer; }
.category-icons .cat-item .cat-icon {
    width: 48px; height: 48px; margin: 0 auto 6px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
}
.category-icons .cat-item span { display: block; font-size: 12px; color: var(--text-gray); }

/* ========== Section Title ========== */
.section-title {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 12px 10px; background: var(--bg-white); margin-top: 10px;
}
.section-title h3 {
    font-size: 16px; font-weight: 600; position: relative; padding-left: 10px;
}
.section-title h3::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 16px; background: var(--primary); border-radius: 2px;
}
.section-title .more-link { font-size: 13px; color: var(--text-light); }

/* ========== Product Grid ========== */
.product-grid { padding: 0 8px 8px; background: var(--bg-white); }
.product-grid .row { margin: 0 -4px; }
.product-grid .col-6 { padding: 4px; }
.product-card {
    background: var(--bg-white); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border-color); margin-bottom: 8px; cursor: pointer;
    transition: transform 0.2s;
}
.product-card:active { transform: scale(0.98); }
.product-card .product-img {
    width: 100%; aspect-ratio: 1; background: var(--bg-page);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: var(--text-light); overflow: hidden;
}
.product-card .product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .product-info { padding: 8px 10px 10px; }
.product-card .product-name {
    font-size: 13px; color: var(--text-dark); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 36px;
}
.product-card .product-price { margin-top: 6px; display: flex; align-items: baseline; }
.product-card .product-price .price { font-size: 16px; font-weight: 700; color: var(--price-color); }
.product-card .product-price .price::before { content: "\00A5"; font-size: 12px; }
.product-card .product-price .original-price {
    font-size: 12px; color: var(--text-light); text-decoration: line-through; margin-left: 6px;
}
.product-card .product-sales { font-size: 11px; color: var(--text-light); margin-top: 4px; }

/* ========== Product List (horizontal) ========== */
.product-list-item {
    display: flex; background: var(--bg-white); padding: 12px;
    border-bottom: 1px solid var(--border-color); cursor: pointer;
}
.product-list-item .item-img {
    width: 100px; height: 100px; border-radius: 6px; overflow: hidden;
    flex-shrink: 0; background: var(--bg-page);
    display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--text-light);
}
.product-list-item .item-img img { width: 100%; height: 100%; object-fit: cover; }
.product-list-item .item-info {
    flex: 1; margin-left: 10px; display: flex; flex-direction: column; justify-content: space-between;
}
.product-list-item .item-name {
    font-size: 14px; color: var(--text-dark);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-list-item .item-bottom { display: flex; align-items: center; justify-content: space-between; }
.product-list-item .item-price { font-size: 16px; font-weight: 700; color: var(--price-color); }
.product-list-item .item-price::before { content: "\00A5"; font-size: 12px; }

/* ========== Bottom Navigation ========== */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottom-nav-height);
    background: var(--bg-white); border-top: 1px solid var(--border-color);
    display: flex; z-index: 100;
}
.bottom-nav .nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; font-size: 10px; color: var(--text-light);
    cursor: pointer; transition: color 0.2s; padding: 4px 0;
}
.bottom-nav .nav-item .nav-icon { font-size: 22px; margin-bottom: 2px; }
.bottom-nav .nav-item.active { color: var(--primary); }

/* ========== Button Styles ========== */
.btn-primary-custom {
    background: var(--primary); color: #fff; border: none; border-radius: var(--radius);
    padding: 12px 24px; font-size: 16px; font-weight: 600; width: 100%;
    cursor: pointer; transition: background 0.2s;
}
.btn-primary-custom:active { background: var(--primary-dark); }
.btn-outline-custom {
    background: transparent; color: var(--primary); border: 1px solid var(--primary);
    border-radius: var(--radius); padding: 8px 16px; font-size: 14px; cursor: pointer;
}

/* ========== Tags ========== */
.tag { display: inline-block; padding: 2px 6px; border-radius: 3px; font-size: 11px; margin-right: 4px; }
.tag-danger { background: #fff0f0; color: var(--primary); }
.tag-success { background: #e8f5e9; color: var(--success-color); }
.tag-warning { background: #fff3e0; color: var(--warning-color); }

/* ========== Order Status ========== */
.order-status-bar {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 20px 16px;
}
.order-status-bar .status-text { font-size: 18px; font-weight: 600; }
.order-status-bar .status-icon { font-size: 28px; margin-bottom: 8px; }

/* ========== Empty State ========== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state .empty-icon { font-size: 60px; margin-bottom: 16px; }
.empty-state .empty-text { font-size: 14px; }

/* ========================================================================
   list.html - 分类列表页
   ======================================================================== */
.category-tabs {
    display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 0 8px;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs .tab-item {
    flex-shrink: 0; padding: 10px 14px; font-size: 14px;
    color: var(--text-gray); white-space: nowrap; cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.2s;
}
.category-tabs .tab-item.active {
    color: var(--primary); font-weight: 600; border-bottom-color: var(--primary);
}
.filter-bar {
    display: flex; background: #fff; padding: 8px 12px;
    border-bottom: 1px solid var(--border-color); gap: 16px;
}
.filter-bar .filter-item {
    font-size: 13px; color: var(--text-gray); cursor: pointer;
    display: flex; align-items: center; gap: 2px;
}
.filter-bar .filter-item.active { color: var(--primary); }
.sub-category-bar {
    background: #fff; padding: 8px 12px; display: flex;
    flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--border-color);
}
.sub-category-bar .sub-tag {
    padding: 4px 12px; font-size: 12px; border-radius: 16px;
    background: var(--bg-page); color: var(--text-gray); cursor: pointer;
}
.sub-category-bar .sub-tag.active { background: var(--primary); color: #fff; }

/* ========================================================================
   detail.html - 商品详情页
   ======================================================================== */
.detail-gallery {
    width: 100%; aspect-ratio: 1; background: linear-gradient(135deg,#f5f5f5,#e8e8e8);
    display: flex; align-items: center; justify-content: center; font-size: 80px; color: #ccc;
}
.detail-price-section { background: #fff; padding: 16px; }
.detail-price-section .current-price { font-size: 28px; font-weight: 700; color: var(--price-color); }
.detail-price-section .current-price::before { content: "\00A5"; font-size: 16px; }
.detail-price-section .original-price {
    font-size: 14px; color: var(--text-light); text-decoration: line-through; margin-left: 8px;
}
.detail-price-section .product-title {
    font-size: 16px; font-weight: 600; margin-top: 10px; line-height: 1.5;
}
.detail-price-section .product-subtitle { font-size: 13px; color: var(--text-light); margin-top: 6px; }
.detail-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.detail-section { background: #fff; margin-top: 10px; padding: 14px 16px; }
.detail-section .section-label { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.review-item { padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.review-avatar {
    width: 28px; height: 28px; border-radius: 50%; background: #ddd;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.review-name { font-size: 13px; color: var(--text-dark); }
.review-stars { font-size: 12px; color: #ff9900; }
.review-content { font-size: 13px; color: var(--text-gray); line-height: 1.6; }
.review-date { font-size: 11px; color: var(--text-light); margin-top: 4px; }
.detail-bottom-bar {
    position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
    border-top: 1px solid var(--border-color); display: flex; align-items: center;
    padding: 8px 12px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 100;
}
.bottom-action-icons { display: flex; gap: 16px; }
.bottom-action-icons .action-item {
    display: flex; flex-direction: column; align-items: center;
    font-size: 10px; color: var(--text-light); cursor: pointer;
}
.bottom-action-icons .action-item .action-icon { font-size: 20px; }
.bottom-btns { flex: 1; display: flex; margin-left: 12px; }
.bottom-btns .btn-buy-now {
    flex: 1; background: var(--primary); color: #fff; border: none;
    padding: 12px; font-size: 14px; font-weight: 600;
    border-radius: var(--radius); cursor: pointer;
}

/* ========================================================================
   theme.html / theme-list.html / theme-detail.html - 主题页
   ======================================================================== */
.theme-banner {
    width: 100%; height: 200px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex; align-items: center; justify-content: center;
}
.theme-banner .theme-title {
    color: #fff; font-size: 24px; font-weight: 700; text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.theme-banner .theme-desc {
    color: rgba(255,255,255,0.85); font-size: 14px; margin-top: 8px; text-align: center;
}
.theme-tabs {
    display: flex; background: #fff; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 10;
}
.theme-tabs::-webkit-scrollbar { display: none; }
.theme-tabs .theme-tab {
    flex-shrink: 0; padding: 14px 20px; font-size: 14px;
    color: var(--text-gray); white-space: nowrap; cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.2s;
}
.theme-tabs .theme-tab.active {
    color: var(--primary); font-weight: 600; border-bottom-color: var(--primary);
}
.theme-card {
    background: #fff; margin: 12px; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); cursor: pointer;
}
.theme-card .card-header-img {
    width: 100%; height: 160px; display: flex; align-items: center;
    justify-content: center; font-size: 50px;
}
.theme-card .card-body { padding: 14px 16px; }
.theme-card .card-title { font-size: 16px; font-weight: 600; }
.theme-card .card-desc {
    font-size: 13px; color: var(--text-light); margin-top: 6px; line-height: 1.5;
}
.theme-card .card-footer {
    display: flex; align-items: center; justify-content: space-between; margin-top: 10px;
}
.theme-card .card-price { font-size: 18px; font-weight: 700; color: var(--price-color); }
.theme-card .card-price::before { content: "\00A5"; font-size: 13px; }
.theme-card .card-btn {
    background: var(--primary); color: #fff; border: none;
    padding: 6px 16px; border-radius: 16px; font-size: 13px; cursor: pointer;
}
.collection-card {
    background: #fff; margin: 12px; border-radius: var(--radius); padding: 16px; cursor: pointer;
}
.collection-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.collection-icon {
    width: 40px; height: 40px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 20px; color: #fff;
}
.collection-name { font-size: 15px; font-weight: 600; }
.collection-count { font-size: 12px; color: var(--text-light); }
.collection-products {
    display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.collection-products::-webkit-scrollbar { display: none; }
.collection-products .mini-product { flex-shrink: 0; width: 100px; }
.collection-products .mini-product .mini-img {
    width: 100px; height: 100px; border-radius: 6px; background: #f5f5f5;
    display: flex; align-items: center; justify-content: center; font-size: 30px; color: #ccc;
}
.collection-products .mini-product .mini-name {
    font-size: 11px; color: var(--text-dark); margin-top: 4px;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.collection-products .mini-product .mini-price {
    font-size: 13px; font-weight: 700; color: var(--price-color); margin-top: 2px;
}
.collection-products .mini-product .mini-price::before { content: "\00A5"; font-size: 10px; }

/* theme-list */
.theme-list-item {
    background: #fff; margin: 12px; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); cursor: pointer;
}
.theme-list-item .theme-cover {
    width: 100%; height: 180px; display: flex; align-items: center;
    justify-content: center; font-size: 50px; color: #fff; position: relative;
}
.theme-list-item .theme-cover .theme-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    padding: 20px 16px 14px; color: #fff;
}
.theme-list-item .theme-cover .theme-overlay .overlay-title {
    font-size: 18px; font-weight: 700;
}
.theme-list-item .theme-cover .theme-overlay .overlay-desc {
    font-size: 12px; opacity: 0.85; margin-top: 4px;
}
.theme-list-item .theme-meta {
    padding: 12px 16px; display: flex; align-items: center;
    justify-content: space-between;
}
.theme-list-item .theme-meta .meta-label {
    font-size: 13px; color: var(--text-gray);
}
.theme-list-item .theme-meta .meta-count {
    font-size: 13px; color: var(--primary); font-weight: 600;
}

/* theme-detail */
.theme-detail-banner {
    width: 100%; height: 220px; display: flex; align-items: center;
    justify-content: center; font-size: 60px; color: #fff; position: relative;
}
.theme-detail-banner .banner-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 30px 20px 20px; color: #fff;
}
.theme-detail-banner .banner-overlay .overlay-title {
    font-size: 22px; font-weight: 700;
}
.theme-detail-banner .banner-overlay .overlay-desc {
    font-size: 13px; opacity: 0.85; margin-top: 6px;
}
.theme-detail-banner .banner-overlay .overlay-meta {
    font-size: 12px; opacity: 0.7; margin-top: 8px;
}
.theme-detail-info {
    background: #fff; padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}
.theme-detail-info .info-title { font-size: 16px; font-weight: 600; }
.theme-detail-info .info-desc {
    font-size: 13px; color: var(--text-gray); margin-top: 6px; line-height: 1.6;
}

/* ========================================================================
   login.html - 登录页
   ======================================================================== */
.login-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 60px 0 40px; text-align: center; color: #fff;
}
.login-header .logo {
    width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.2);
    margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
    font-size: 36px; border: 2px solid rgba(255,255,255,0.3);
}
.login-header .app-name { font-size: 22px; font-weight: 700; }
.login-header .app-desc { font-size: 13px; opacity: 0.85; margin-top: 6px; }
.login-form { background: #fff; padding: 24px 20px; }
.login-form .form-item {
    border-bottom: 1px solid var(--border-color); padding: 14px 0;
    display: flex; align-items: center;
}
.login-form .form-item .form-icon {
    width: 30px; font-size: 18px; color: var(--text-light); flex-shrink: 0;
}
.login-form .form-item input {
    flex: 1; border: none; outline: none; font-size: 15px; background: transparent;
}
.login-form .form-item input::placeholder { color: #ccc; }
.login-form .agreement {
    display: flex; align-items: flex-start; gap: 6px; margin: 20px 0;
    font-size: 12px; color: var(--text-light); line-height: 1.5;
}
.login-form .agreement input[type="checkbox"] { margin-top: 2px; accent-color: var(--primary); }
.login-form .agreement a { color: var(--primary); }
.login-btn {
    width: 100%; padding: 14px; background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius); font-size: 16px;
    font-weight: 600; cursor: pointer;
}
.login-btn:active { background: var(--primary-dark); }
.login-btn:disabled { background: #ccc; cursor: default; }

/* ========================================================================
/* giftcard-bind.html 绑定页 */
.giftcard-rules {
    background: #fff; margin: 16px; border-radius: var(--radius); padding: 16px 20px;
}
.giftcard-rules .rules-title {
    font-size: 15px; font-weight: 600; margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
}
.giftcard-rules .rule-item {
    font-size: 13px; color: var(--text-gray); line-height: 2;
    padding-left: 16px; position: relative;
}
.giftcard-rules .rule-item::before {
    content: ""; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%); width: 4px; height: 4px;
    border-radius: 50%; background: var(--primary);
}

/* giftcard-bind */
.bind-banner {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 40px 20px; text-align: center; color: #fff;
}
.bind-banner .bind-icon { font-size: 50px; margin-bottom: 12px; }
.bind-banner .bind-title { font-size: 20px; font-weight: 700; }
.bind-banner .bind-desc { font-size: 13px; opacity: 0.85; margin-top: 6px; }
.bind-form-section {
    background: #fff; margin: -20px 16px 0; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 24px 20px; position: relative; z-index: 1;
}
.bind-form-section .bind-form-title {
    font-size: 16px; font-weight: 600; margin-bottom: 20px; text-align: center;
}
.bind-input-group {
    margin-bottom: 16px;
}
.bind-input-group .input-label {
    font-size: 14px; color: var(--text-dark); margin-bottom: 8px; font-weight: 600;
}
.bind-input-group .bind-input {
    width: 100%; height: 48px; border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 0 14px; font-size: 16px;
    outline: none; letter-spacing: 1px;
}
.bind-input-group .bind-input:focus { border-color: var(--primary); }
.bind-input-group .bind-input::placeholder { letter-spacing: 0; font-size: 14px; color: #ccc; }
.bind-tips {
    font-size: 12px; color: var(--text-light); margin-top: 12px; line-height: 1.8;
}
.bind-btn {
    width: 100%; padding: 14px; background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; border: none; border-radius: var(--radius); font-size: 16px;
    font-weight: 600; cursor: pointer; margin-top: 20px;
}
.bind-btn:active { opacity: 0.9; }

/* cards.html - 礼品卡列表 */
.card-list-item {
    background: #fff; margin: 10px 12px; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); position: relative;
}
.card-list-item .card-top {
    display: flex; align-items: center; padding: 16px; gap: 14px;
}
.card-list-item .card-icon {
    width: 50px; height: 50px; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; font-size: 24px; color: #fff;
    flex-shrink: 0;
}
.card-list-item .card-detail { flex: 1; }
.card-list-item .card-detail .card-title {
    font-size: 15px; font-weight: 600; color: var(--text-dark);
}
.card-list-item .card-detail .card-desc {
    font-size: 12px; color: var(--text-light); margin-top: 4px;
}
.card-list-item .card-amount-big {
    font-size: 22px; font-weight: 700; color: var(--primary); flex-shrink: 0;
}
.card-list-item .card-amount-big::before { content: "\00A5"; font-size: 13px; }
.card-list-item .card-divider {
    height: 1px; border-top: 1px dashed var(--border-color); margin: 0 16px;
    position: relative;
}
.card-list-item .card-divider::before,
.card-list-item .card-divider::after {
    content: ""; position: absolute; top: -10px; width: 20px; height: 20px;
    border-radius: 50%; background: var(--bg-page);
}
.card-list-item .card-divider::before { left: -26px; }
.card-list-item .card-divider::after { right: -26px; }
.card-list-item .card-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
}
.card-list-item .card-bottom .card-date {
    font-size: 12px; color: var(--text-light);
}
.card-list-item .card-bottom .card-use-btn {
    background: var(--primary); color: #fff; border: none;
    padding: 6px 16px; border-radius: 16px; font-size: 12px; cursor: pointer;
}
.card-list-item .card-bottom .card-use-btn.used {
    background: #f5f5f5; color: var(--text-light); cursor: default;
}

/* ========================================================================
   order-confirm.html - 填写订单页
   ======================================================================== */
.address-card {
    background: #fff; margin: 10px 12px; border-radius: var(--radius);
    padding: 16px; cursor: pointer; box-shadow: var(--shadow);
    position: relative; overflow: hidden;
}
.address-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.address-card .receiver-info { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.address-card .receiver-name { font-size: 16px; font-weight: 600; }
.address-card .receiver-phone { font-size: 14px; color: var(--text-gray); }
.address-card .receiver-tag {
    padding: 2px 6px; background: #fff0f0; color: var(--primary);
    font-size: 11px; border-radius: 3px;
}
.address-card .address-detail { font-size: 14px; color: var(--text-gray); line-height: 1.5; }
.address-card .address-arrow {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    font-size: 18px; color: var(--text-light);
}
.order-product {
    background: #fff; margin: 10px 12px; border-radius: var(--radius);
    padding: 14px; display: flex; gap: 12px;
}
.order-product .product-img {
    width: 80px; height: 80px; border-radius: 6px; background: #f5f5f5;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: #ccc;
}
.order-product .product-info { flex: 1; }
.order-product .product-name {
    font-size: 14px; color: var(--text-dark); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.order-product .product-spec { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.order-product .product-bottom {
    display: flex; align-items: center; justify-content: space-between; margin-top: 8px;
}
.order-product .product-price { font-size: 16px; font-weight: 700; color: var(--price-color); }
.order-product .product-price::before { content: "\00A5"; font-size: 12px; }
.order-product .product-qty { font-size: 13px; color: var(--text-light); }
.order-info-section {
    background: #fff; margin: 10px 12px; border-radius: var(--radius); overflow: hidden;
}
.order-info-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--border-color);
}
.order-info-row:last-child { border-bottom: none; }
.order-info-row .row-label { font-size: 14px; color: var(--text-dark); }
.order-info-row .row-value { font-size: 14px; color: var(--text-gray); }
.order-info-row .row-value.price { color: var(--price-color); font-weight: 600; }
.order-info-row .row-value.green { color: var(--success-color); }
.order-info-row .row-arrow { color: var(--text-light); margin-left: 6px; }
.remark-input {
    width: 100%; border: none; outline: none; font-size: 14px;
    text-align: right; color: var(--text-gray);
}
.remark-input::placeholder { color: #ccc; }
.coupon-item {
    display: inline-flex; align-items: center; border: 1px solid var(--primary);
    border-radius: 4px; padding: 2px 8px; margin-left: 8px; font-size: 12px;
    color: var(--primary); cursor: pointer;
}
.order-bottom-bar {
    position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
    border-top: 1px solid var(--border-color); display: flex; align-items: center;
    justify-content: flex-end; padding: 10px 16px; z-index: 100;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.order-bottom-bar .total-info { margin-right: 12px; text-align: right; }
.order-bottom-bar .total-price { font-size: 20px; font-weight: 700; color: var(--price-color); }
.order-bottom-bar .total-price::before { content: "\00A5"; font-size: 14px; }
.order-bottom-bar .total-label { font-size: 13px; color: var(--text-light); }
.order-bottom-bar .submit-btn {
    background: var(--primary); color: #fff; border: none;
    padding: 12px 32px; border-radius: var(--radius); font-size: 16px;
    font-weight: 600; cursor: pointer;
}
.address-popup-mask {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 200; display: none;
}
.address-popup {
    position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
    border-radius: 16px 16px 0 0; padding: 20px 16px; z-index: 201;
    max-height: 70vh; overflow-y: auto; transform: translateY(100%);
    transition: transform 0.3s;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
.address-popup.show { transform: translateY(0); }
.address-popup .popup-title { font-size: 16px; font-weight: 600; text-align: center; margin-bottom: 16px; }
.address-popup .address-form-item {
    display: flex; align-items: center; padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.address-popup .address-form-item .item-label {
    width: 70px; font-size: 14px; color: var(--text-dark); flex-shrink: 0;
}
.address-popup .address-form-item input,
.address-popup .address-form-item select {
    flex: 1; border: none; outline: none; font-size: 14px;
    background: transparent; color: var(--text-dark);
}
.address-popup .address-form-item select { appearance: auto; }
.address-popup .save-btn {
    width: 100%; padding: 14px; background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius); font-size: 16px;
    font-weight: 600; cursor: pointer; margin-top: 20px;
}
.address-selector {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #fff; z-index: 300; display: none; flex-direction: column;
}
.address-selector.show { display: flex; }
.address-selector .selector-header {
    display: flex; align-items: center; padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}
.address-selector .selector-header .selector-title {
    flex: 1; font-size: 16px; font-weight: 600; text-align: center;
}
.address-selector .selector-header .selector-close {
    font-size: 20px; cursor: pointer; color: var(--text-gray);
}
.address-selector .selector-tabs { display: flex; border-bottom: 1px solid var(--border-color); }
.address-selector .selector-tab {
    flex: 1; text-align: center; padding: 12px; font-size: 14px;
    color: var(--text-gray); border-bottom: 2px solid transparent; cursor: pointer;
}
.address-selector .selector-tab.active {
    color: var(--primary); font-weight: 600; border-bottom-color: var(--primary);
}
.address-selector .selector-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.address-selector .selector-item {
    padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border-color); cursor: pointer;
}
.address-selector .selector-item:active { background: #f5f5f5; }
.address-selector .selector-item.selected { color: var(--primary); font-weight: 600; }

/* ========================================================================
   orders.html - 订单列表页
   ======================================================================== */
.order-tabs {
    display: flex; background: #fff; border-bottom: 1px solid var(--border-color);
    position: sticky; top: 48px; z-index: 10;
}
.order-tabs .order-tab {
    flex: 1; text-align: center; padding: 12px 0; font-size: 14px;
    color: var(--text-gray); border-bottom: 2px solid transparent; cursor: pointer;
}
.order-tabs .order-tab.active {
    color: var(--primary); font-weight: 600; border-bottom-color: var(--primary);
}
.order-card {
    background: #fff; margin: 10px 12px; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
}
.order-card .order-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; border-bottom: 1px solid var(--border-color);
}
.order-card .order-header .order-sn { font-size: 13px; color: var(--text-gray); }
.order-card .order-header .order-status { font-size: 13px; font-weight: 600; }
.order-card .order-header .status-ship { color: var(--warning-color); }
.order-card .order-header .status-receive { color: #1296db; }
.order-card .order-header .status-complete { color: var(--success-color); }
.order-card .order-header .status-cancel { color: var(--text-light); }
.order-card .order-product {
    display: flex; padding: 12px 14px; gap: 10px; border-bottom: 1px solid var(--border-color);
}
.order-card .order-product:last-child { border-bottom: none; }
.order-card .order-product .prod-img {
    width: 80px; height: 80px; border-radius: 6px; background: #f5f5f5;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #ccc;
}
.order-card .order-product .prod-info { flex: 1; }
.order-card .order-product .prod-name {
    font-size: 14px; color: var(--text-dark); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.order-card .order-product .prod-spec { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.order-card .order-product .prod-right { flex-shrink: 0; text-align: right; }
.order-card .order-product .prod-price { font-size: 15px; font-weight: 700; color: var(--price-color); }
.order-card .order-product .prod-price::before { content: "\00A5"; font-size: 11px; }
.order-card .order-product .prod-qty { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.order-card .order-footer {
    display: flex; align-items: center; justify-content: flex-end;
    padding: 12px 14px; gap: 10px;
}
.order-card .order-footer .total-text {
    font-size: 13px; color: var(--text-gray); margin-right: auto;
}
.order-card .order-footer .total-text b { color: var(--price-color); font-size: 15px; }
.order-card .order-footer .order-btn {
    padding: 6px 16px; border-radius: 16px; font-size: 13px; cursor: pointer; border: none;
}
.order-card .order-footer .btn-default-outline {
    background: #fff; color: var(--text-gray); border: 1px solid var(--border-color);
}
.order-card .order-footer .btn-primary-outline {
    background: #fff; color: var(--primary); border: 1px solid var(--primary);
}
.order-card .order-footer .btn-primary-solid {
    background: var(--primary); color: #fff; border: none;
}

/* ========================================================================
   order-detail.html - 订单详情页
   ======================================================================== */
.address-info {
    background: #fff; margin: 10px 12px; border-radius: var(--radius);
    padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start;
}
.address-info .addr-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.address-info .addr-info { flex: 1; }
.address-info .addr-name { font-size: 15px; font-weight: 600; }
.address-info .addr-phone { font-size: 14px; color: var(--text-gray); margin-left: 10px; }
.address-info .addr-detail { font-size: 13px; color: var(--text-light); margin-top: 6px; line-height: 1.5; }
.detail-product {
    background: #fff; margin: 10px 12px; border-radius: var(--radius); overflow: hidden;
}
.detail-product .store-name {
    padding: 12px 14px; font-size: 14px; font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 6px;
}
.detail-product .prod-item {
    display: flex; padding: 12px 14px; gap: 10px;
    border-bottom: 1px solid var(--border-color); cursor: pointer;
}
.detail-product .prod-item:last-child { border-bottom: none; }
.detail-product .prod-img {
    width: 80px; height: 80px; border-radius: 6px; background: #f5f5f5;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #ccc;
}
.detail-product .prod-info { flex: 1; }
.detail-product .prod-name {
    font-size: 14px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.detail-product .prod-spec { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.detail-product .prod-right { flex-shrink: 0; text-align: right; }
.detail-product .prod-price { font-size: 15px; font-weight: 700; color: var(--price-color); }
.detail-product .prod-price::before { content: "\00A5"; font-size: 11px; }
.detail-product .prod-qty { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.order-meta {
    background: #fff; margin: 10px 12px; border-radius: var(--radius); padding: 14px 16px;
}
.order-meta .meta-row {
    display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px;
}
.order-meta .meta-row .meta-label { color: var(--text-light); }
.order-meta .meta-row .meta-value { color: var(--text-gray); }
.detail-bottom-bar {
    position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
    border-top: 1px solid var(--border-color); display: flex; align-items: center;
    justify-content: flex-end; padding: 10px 16px; gap: 10px; z-index: 100;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.detail-bottom-bar .order-btn {
    padding: 8px 20px; border-radius: 16px; font-size: 13px; cursor: pointer; border: none;
}
.detail-bottom-bar .btn-outline { background: #fff; color: var(--text-gray); border: 1px solid var(--border-color); }
.detail-bottom-bar .btn-solid { background: var(--primary); color: #fff; }

/* ========================================================================
   user.html - 个人中心
   ======================================================================== */
.user-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 40px 20px 30px; color: #fff;
}
.user-header .user-info { display: flex; align-items: center; gap: 14px; }
.user-header .user-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(255,255,255,0.25); display: flex; align-items: center;
    justify-content: center; font-size: 30px; border: 2px solid rgba(255,255,255,0.4);
}
.user-header .user-name { font-size: 18px; font-weight: 600; }
.user-header .user-id { font-size: 13px; opacity: 0.8; margin-top: 4px; }
.order-nav {
    background: #fff; margin: 12px; border-radius: var(--radius); padding: 16px;
}
.order-nav .order-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.order-nav .order-header h4 { font-size: 16px; font-weight: 600; }
.order-nav .order-header .all-orders { font-size: 13px; color: var(--text-light); cursor: pointer; }
.order-nav .order-types { display: flex; }
.order-nav .order-type { flex: 1; text-align: center; cursor: pointer; position: relative; }
.order-nav .order-type .type-icon { font-size: 26px; margin-bottom: 6px; }
.order-nav .order-type .type-label { font-size: 12px; color: var(--text-gray); }
.order-nav .order-type .type-badge {
    position: absolute; top: -4px; right: 20%; background: var(--primary);
    color: #fff; font-size: 10px; min-width: 16px; height: 16px; line-height: 16px;
    text-align: center; border-radius: 8px; padding: 0 4px;
}
.function-section { background: #fff; margin: 0 12px 12px; border-radius: var(--radius); }
.function-section + .function-section { margin-top: 10px; }
.function-section .section-title {
    padding: 14px 16px 10px; font-size: 15px; font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}
.function-grid { display: flex; flex-wrap: wrap; }
.function-grid .func-item { width: 25%; text-align: center; padding: 16px 0; cursor: pointer; }
.function-grid .func-item .func-icon { font-size: 24px; margin-bottom: 6px; }
.function-grid .func-item .func-label { font-size: 12px; color: var(--text-gray); }
.function-list .func-row {
    display: flex; align-items: center; padding: 14px 16px;
    border-bottom: 1px solid var(--border-color); cursor: pointer;
}
.function-list .func-row:last-child { border-bottom: none; }
.function-list .func-row .row-icon { font-size: 20px; margin-right: 12px; width: 24px; text-align: center; }
.function-list .func-row .row-label { flex: 1; font-size: 14px; }
.function-list .func-row .row-arrow { color: var(--text-light); font-size: 14px; }

/* ========================================================================
   profile.html - 个人资料页
   ======================================================================== */
.profile-avatar-section {
    background: #fff; margin-top: 10px; padding: 20px 16px;
    display: flex; align-items: center; cursor: pointer;
}
.profile-avatar-section .avatar-label {
    font-size: 15px; color: var(--text-dark); flex-shrink: 0; width: 80px;
}
.profile-avatar-section .avatar-img {
    flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 10px;
}
.profile-avatar-section .avatar-circle {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff;
}
.profile-avatar-section .avatar-arrow { color: var(--text-light); font-size: 16px; }
.profile-form-section { background: #fff; margin-top: 10px; }
.profile-form-section .form-row {
    display: flex; align-items: center; padding: 15px 16px;
    border-bottom: 1px solid var(--border-color); cursor: pointer;
}
.profile-form-section .form-row:last-child { border-bottom: none; }
.profile-form-section .form-row .row-label {
    width: 80px; font-size: 15px; color: var(--text-dark); flex-shrink: 0;
}
.profile-form-section .form-row .row-value {
    flex: 1; font-size: 14px; color: var(--text-gray); text-align: right;
}
.profile-form-section .form-row .row-placeholder {
    flex: 1; font-size: 14px; color: #ccc; text-align: right;
}
.profile-form-section .form-row .row-arrow {
    color: var(--text-light); font-size: 14px; margin-left: 8px; flex-shrink: 0;
}
.profile-form-section .form-row .row-icon {
    width: 24px; margin-right: 8px; text-align: center; font-size: 18px; flex-shrink: 0;
}
.save-section { padding: 24px 16px; }
.edit-popup-mask {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 200; display: none;
}
.edit-popup {
    position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
    border-radius: 16px 16px 0 0; padding: 20px 16px; z-index: 201;
    transform: translateY(100%); transition: transform 0.3s;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
.edit-popup.show { transform: translateY(0); }
.edit-popup .popup-title { font-size: 16px; font-weight: 600; text-align: center; margin-bottom: 16px; }
.edit-popup .popup-input {
    width: 100%; border: 1px solid var(--border-color); border-radius: var(--radius);
    padding: 12px 14px; font-size: 15px; outline: none; margin-bottom: 16px;
}
.edit-popup .popup-input:focus { border-color: var(--primary); }
.edit-popup .popup-btns { display: flex; gap: 10px; }
.edit-popup .popup-btns button {
    flex: 1; padding: 12px; border-radius: var(--radius); font-size: 15px;
    cursor: pointer; font-weight: 600;
}
.edit-popup .btn-cancel { background: #f5f5f5; color: var(--text-gray); border: none; }
.edit-popup .btn-save { background: var(--primary); color: #fff; border: none; }
.gender-options { display: flex; gap: 12px; margin-bottom: 16px; }
.gender-options .gender-opt {
    flex: 1; text-align: center; padding: 12px; border: 1px solid var(--border-color);
    border-radius: var(--radius); cursor: pointer; font-size: 14px;
}
.gender-options .gender-opt.active {
    border-color: var(--primary); color: var(--primary); background: #fff0f0;
}

/* ========================================================================
   theme-detail.html - 主题详情商品网格
   ======================================================================== */
.redeem-grid { padding: 8px; background: #fff; }
.redeem-grid .row { margin: 0 -4px; }
.redeem-grid .col-6 { padding: 4px; }
.redeem-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border-color); cursor: pointer; transition: transform 0.2s;
}
.redeem-card:active { transform: scale(0.97); }
.redeem-card .rc-img {
    width: 100%; aspect-ratio: 1; background: #f5f5f5;
    display: flex; align-items: center; justify-content: center;
    font-size: 44px; color: #ccc; position: relative;
}
.redeem-card .rc-img .rc-tag {
    position: absolute; top: 8px; left: 8px;
    padding: 2px 8px; border-radius: 3px; font-size: 11px; color: #fff;
}
.redeem-card .rc-info { padding: 10px; }
.redeem-card .rc-name {
    font-size: 13px; color: var(--text-dark); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 36px;
}
.redeem-card .rc-price-row { margin-top: 8px; display: flex; align-items: baseline; }
.redeem-card .rc-price { font-size: 16px; font-weight: 700; color: var(--price-color); }
.redeem-card .rc-price::before { content: "\00A5"; font-size: 12px; }
.redeem-card .rc-original {
    font-size: 11px; color: var(--text-light); text-decoration: line-through; margin-left: 6px;
}
.redeem-card .rc-btn {
    display: block; width: 100%; margin-top: 8px; padding: 7px 0;
    background: var(--primary); color: #fff; border: none; border-radius: 16px;
    font-size: 12px; font-weight: 600; cursor: pointer; text-align: center;
}

/* ========================================================================
   redeem.html - 兑换商品页
   ======================================================================== */
.redeem-product {
    background: #fff; margin: 10px 12px; border-radius: var(--radius);
    padding: 14px; display: flex; gap: 12px;
}
.redeem-product .rp-img {
    width: 80px; height: 80px; border-radius: 6px; background: #f5f5f5;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: #ccc;
}
.redeem-product .rp-info { flex: 1; }
.redeem-product .rp-name {
    font-size: 14px; color: var(--text-dark); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.redeem-product .rp-price-row { margin-top: 8px; display: flex; align-items: baseline; gap: 8px; }
.redeem-product .rp-price { font-size: 18px; font-weight: 700; color: var(--price-color); }
.redeem-product .rp-price::before { content: "\00A5"; font-size: 13px; }
.redeem-product .rp-original {
    font-size: 12px; color: var(--text-light); text-decoration: line-through;
}
.card-select-section {
    background: #fff; margin: 10px 12px; border-radius: var(--radius); overflow: hidden;
}
.card-select-section .section-header {
    padding: 14px 16px; font-size: 15px; font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
}
.card-select-section .section-header .header-action {
    font-size: 13px; color: var(--primary); cursor: pointer;
}
.card-option {
    display: flex; align-items: center; padding: 14px 16px;
    border-bottom: 1px solid var(--border-color); cursor: pointer;
}
.card-option:last-child { border-bottom: none; }
.card-option .co-radio {
    width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-color);
    flex-shrink: 0; margin-right: 12px; display: flex; align-items: center;
    justify-content: center; transition: all 0.2s;
}
.card-option .co-radio.checked {
    border-color: var(--primary); background: var(--primary);
}
.card-option .co-radio.checked::after {
    content: "\2713"; color: #fff; font-size: 12px; font-weight: 700;
}
.card-option .co-icon {
    width: 36px; height: 36px; border-radius: 8px; display: flex;
    align-items: center; justify-content: center; font-size: 18px;
    color: #fff; flex-shrink: 0; margin-right: 10px;
}
.card-option .co-info { flex: 1; }
.card-option .co-title { font-size: 14px; color: var(--text-dark); }
.card-option .co-desc { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.card-option .co-amount { font-size: 16px; font-weight: 700; color: var(--price-color); flex-shrink: 0; }
.card-option .co-amount::before { content: "\00A5"; font-size: 12px; }
.card-option.disabled { opacity: 0.5; cursor: default; }
.redeem-bottom {
    position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
    border-top: 1px solid var(--border-color); display: flex; align-items: center;
    justify-content: space-between; padding: 10px 16px; z-index: 100;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.redeem-bottom .rb-info { font-size: 13px; color: var(--text-gray); }
.redeem-bottom .rb-info b { color: var(--price-color); font-size: 18px; font-weight: 700; }
.redeem-bottom .rb-info b::before { content: "\00A5"; font-size: 13px; }
.redeem-bottom .rb-btn {
    background: var(--primary); color: #fff; border: none;
    padding: 12px 36px; border-radius: var(--radius); font-size: 16px;
    font-weight: 600; cursor: pointer;
}
.redeem-bottom .rb-btn:disabled { background: #ccc; }

/* ========================================================================
   collection - 产品合集
   ======================================================================== */
.no-bottom-nav { padding-bottom: 0 !important; }

/* 主容器 */
.collection-wrap {
    display: flex; min-height: calc(100vh - 180px); background: var(--bg-page);
}

/* 左侧分类菜单 */
.collection-sidebar {
    width: 100px; background: var(--bg-white); flex-shrink: 0;
    border-right: 1px solid var(--border-color); overflow-y: auto;
}
.collection-sidebar .sidebar-item {
    display: block; padding: 14px 8px; text-align: center;
    font-size: 13px; color: var(--text-gray); text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}
.collection-sidebar .sidebar-item.active {
    color: var(--primary); background: #fff5f5; font-weight: 600;
    border-right: 2px solid var(--primary);
}

/* 右侧内容 */
.collection-main { flex: 1; overflow-y: auto; }

/* 详情页 */
.collection-article { background: var(--bg-white); padding: 20px 16px; }
.collection-article-title {
    font-size: 20px; font-weight: bold; color: var(--text-dark);
    line-height: 1.4; margin: 0 0 16px;
}
.collection-article-body { font-size: 15px; line-height: 1.8; color: var(--text-dark); }

/* === 合集/主题 通用补全 === */
.redeem-card .rc-img img { width: 100%; height: 120px; object-fit: cover; }
.rc-img-placeholder { font-size: 40px; }
.rc-tag { background: var(--primary); }

/* 主题封面装饰 */
.theme-cover-icon {
    font-size: 60px; opacity: 0.3; position: absolute;
    right: 20px; top: 50%; transform: translateY(-50%);
}
.theme-overlay--simple { position: relative; background: none; padding: 20px; }

/* 通用工具 */
.btn-block { width: 100%; display: block; }

/* 微信登录按钮 */
.wechat-login-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 36px; background: #07c160; color: #fff;
    border-radius: 8px; text-decoration: none; font-size: 16px; font-weight: 500;
}
.wechat-login-btn .btn-icon { font-size: 22px; }

/* 登录页面 */
.login-subtitle { padding-top: 30px; text-align: center; }
.login-welcome-title { font-size: 16px; color: #333; font-weight: 500; margin-bottom: 20px; }
.login-welcome-desc { font-size: 12px; color: #999; margin-top: 6px; }
.login-auto-tip { margin-top: 16px; font-size: 12px; color: #999; }
.login-agreement-text { margin-top: 30px; font-size: 11px; color: #bbb; }
.login-agreement-link { color: #07c160 !important; }

/* 协议弹窗 */
.agreement-popup { display: flex; flex-direction: column; height: 100%; }
.agreement-popup-header {
    padding: 12px 16px; background: #f5f5f5; border-bottom: 1px solid #ddd;
    display: flex; justify-content: space-between; align-items: center;
}
.agreement-popup-title { font-weight: 600; }
.agreement-popup-body { flex: 1; overflow: auto; padding: 16px; line-height: 1.8; font-size: 14px; color: #333; }
