﻿/* ============================================================
   MyShopSite 会员中心与交易模块样式
   文件：Content/site.member.css
   职责：
     1. 会员中心首页（欢迎区、统计卡片、快捷操作）
     2. 个人资料、账号安全、收货地址
     3. 购物车页面特有样式（列宽、商品信息、数量控件等）
     4. 订单确认页特有样式（地址、金额、支付区块）
     5. 订单列表页、订单详情页特有样式
     6. 下载页、素材库、支付记录等
   注意：
     全局按钮、表格基础、模态框、分页、工具类等已移至 site.css。
     本文件只保留会员中心与交易模块的专属组合样式。
   颜色约定：
     资金相关金额显示采用中国习惯 —— 正数（入账）红 #e74c3c，负数（消费）绿 #27ae60
   ============================================================ */

/* ==================== 1. 会员中心通用卡片 ==================== */

.member-main-card {
    background: #fff;
    border: 1px solid #3d61a5;
    border-radius: 8px;
    padding: 25px 30px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 1050px;
    margin: 0 auto;
}

.member-card-gray {
    border-color: #3d61a5 !important;
}

.member-welcome {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

    .member-welcome h1 {
        font-size: 22px;
        color: #333;
        margin: 0 0 8px 0;
    }

    .member-welcome .level-tag {
        display: inline-block;
        background: #3d61a5;
        color: #fff;
        font-size: 12px;
        padding: 3px 10px;
        border-radius: 10px;
        margin-left: 10px;
        vertical-align: middle;
    }

    .member-welcome p {
        font-size: 14px;
        color: #666;
        margin: 0;
    }

.member-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.member-card {
    flex: 1;
    background: #f8f9fb;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .member-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
        text-decoration: none;
        color: #333;
    }

.member-card-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.member-card-number {
    font-size: 24px;
    font-weight: bold;
    color: #3d61a5;
}

.member-card-label {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.member-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

    .member-actions .btn-continue {
        flex: 1;
        text-align: center;
        padding: 12px 0;
        border-radius: 6px;
        font-size: 14px;
        font-weight: bold;
        color: #fff;
        background: #5a7fc2;
        border: none;
        text-decoration: none;
        transition: opacity 0.2s ease;
    }

        .member-actions .btn-continue:hover {
            opacity: 0.85;
            text-decoration: none;
            color: #fff;
        }

.member-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #3d61a5;
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 3px solid #3d61a5;
}

.member-no-data {
    color: #999;
    font-size: 14px;
    padding: 20px 0;
}

    .member-no-data a {
        color: #3d61a5;
        text-decoration: underline;
    }

.member-view-all {
    text-align: right;
    margin-top: 10px;
}

    .member-view-all a {
        color: #3d61a5;
        font-size: 14px;
        text-decoration: none;
    }

        .member-view-all a:hover {
            text-decoration: underline;
        }

/* ==================== 欢迎区 flex + 待办事项 ==================== */

.member-welcome-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

    .member-welcome-flex > div:first-child {
        flex: 1;
        min-width: 0;
    }

.member-goto-shop {
    flex-shrink: 0;
    font-size: 14px;
    color: #3d61a5;
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid #3d61a5;
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
    align-self: center;
}

    .member-goto-shop:hover {
        background: #3d61a5;
        color: #fff;
        text-decoration: none;
    }

.member-section-more {
    float: right;
    font-size: 13px;
    font-weight: normal;
    color: #3d61a5;
    text-decoration: none;
}

    .member-section-more:hover {
        text-decoration: underline;
    }

.todo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.todo-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #e8ecf1;
    background: #fff;
    transition: all 0.2s;
    color: #333;
}

    .todo-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
        text-decoration: none;
        color: #333;
    }

.todo-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.todo-body {
    flex: 1;
    min-width: 0;
}

.todo-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a2634;
}

.todo-count {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.todo-action {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.todo-card-pay {
    border-left: 3px solid #f97316;
}

    .todo-card-pay .todo-action {
        color: #f97316;
    }

.todo-card-ship {
    border-left: 3px solid #3d61a5;
}

    .todo-card-ship .todo-action {
        color: #3d61a5;
    }

.todo-card-asset {
    border-left: 3px solid #00acc1;
}

    .todo-card-asset .todo-action {
        color: #00acc1;
    }

.todo-empty {
    padding: 20px 24px;
    background: #f8f9fb;
    border: 1px dashed #d0d7e2;
    border-radius: 8px;
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 25px;
}

    .todo-empty a {
        color: #3d61a5;
        text-decoration: none;
        font-weight: 600;
    }

        .todo-empty a:hover {
            text-decoration: underline;
        }

/* ==================== 2. 个人资料 ==================== */

.edit-profile-form {
    max-width: 600px;
    margin-left: 60px;
}

.avatar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
    max-width: 550px;
}

.avatar-option {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ddd;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

    .avatar-option.avatar-selected {
        border-color: #3d61a5;
    }

    .avatar-option img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.auth-input-select {
    padding-left: 42px !important;
}

.region-selector {
    display: flex;
    gap: 10px;
}

.edit-profile-actions {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    margin-bottom: 20px;
}

    .edit-profile-actions .auth-btn {
        flex: 1;
    }

.btn-change-password {
    flex: 1;
    background: #f97316;
    text-align: center;
    text-decoration: none;
    line-height: 48px;
    color: #fff;
}

    .btn-change-password:hover {
        background: #ea5a0c;
        color: #fff;
        text-decoration: none;
    }

.auth-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.member-content-shift {
    max-width: 500px;
    margin-left: 60px;
}

    .member-content-shift textarea.auth-input {
        padding: 10px 14px 10px 42px;
        line-height: 1.6;
        resize: vertical;
    }

/* ==================== 3. 账号安全 ==================== */

.account-security-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-top: 20px;
}

.security-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
}

    .security-item:last-child {
        border-bottom: none;
    }

    .security-item .label {
        font-size: 14px;
        color: #333;
    }

    .security-item .value {
        font-size: 14px;
        color: #666;
        margin-left: 10px;
    }

.action-btn {
    padding: 6px 16px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    color: #3d61a5;
}

    .action-btn:hover {
        background: #3d61a5;
        color: #fff;
        border-color: #3d61a5;
    }

    .action-btn.danger {
        color: #e74c3c;
        border-color: #e74c3c;
    }

        .action-btn.danger:hover {
            background: #e74c3c;
            color: #fff;
        }

    .action-btn.link {
        border: none;
        background: none;
        color: #3d61a5;
        padding: 0;
        text-decoration: underline;
        cursor: pointer;
    }

.security-hint {
    font-size: 13px;
    color: #999;
}

/* ==================== 4. 收货地址 ==================== */

.address-empty {
    padding: 40px;
    text-align: center;
}

.address-empty-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
}

.address-empty-hint {
    color: #3d61a5;
    margin-bottom: 20px;
}

.address-empty-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.address-btn-inline,
.address-btn-block {
    display: inline-block;
    width: auto;
    padding: 0 32px;
    text-decoration: none;
    text-align: center;
    line-height: 48px;
    color: #fff !important;
}

    .address-btn-inline:hover,
    .address-btn-block:hover {
        color: #fff !important;
        text-decoration: none !important;
    }

.address-btn-orange {
    background: #f97316 !important;
}

.address-info-header {
    text-align: left;
    padding-left: 16px;
}

.address-operation-header {
    width: 120px;
}

.address-info-cell {
    text-align: left;
    padding: 14px 16px;
}

.address-consignee {
    font-weight: 600;
    font-size: 15px;
    color: #1a2634;
    margin-bottom: 6px;
}

.address-mobile {
    font-weight: normal;
    font-size: 14px;
    color: #666;
    margin-left: 8px;
}

.address-default-tag {
    display: inline-block;
    background: #3d61a5;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.address-full {
    font-size: 13px;
    color: #888;
}

.address-operation-cell {
    text-align: center;
    vertical-align: middle;
}

.address-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.address-action-btn {
    padding: 5px 14px;
    font-size: 13px;
    width: 70px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    background: #3d61a5;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1.42857143;
}

    .address-action-btn:hover {
        background: #2a4a7a;
        color: #fff !important;
        text-decoration: none;
    }

.address-action-btn-outline {
    padding: 5px 14px;
    font-size: 13px;
    width: 70px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    color: #3d61a5 !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1.42857143;
}

    .address-action-btn-outline:hover {
        background: #3d61a5;
        color: #fff !important;
        border-color: #3d61a5;
    }

.address-form {
    margin: 0;
}

.address-add-wrapper {
    margin-top: 20px;
}

.address-default-check {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.address-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #3d61a5;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}

.address-check-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    line-height: 20px;
    margin-top: 10px;
}

.address-back-link {
    margin-top: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.btn-save-address {
    background: #f97316;
}

    .btn-save-address:hover {
        background: #ea5a0c;
    }

/* ==================== 5. 购物车页面特有样式 ==================== */

.cart-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a2634;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3d61a5;
}
.cart-title-tip {
    font-size: 14px;
    font-weight: normal;
    color: #3d61a5;
    margin-left: 12px;
    letter-spacing: 0;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fafcff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.cart-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.cart-empty-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.cart-empty-btn {
    display: inline-block;
    background: #3d61a5;
    color: #fff;
    padding: 10px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

    .cart-empty-btn:hover {
        background: #2c4a8c;
        color: #fff;
        text-decoration: none;
    }

.col-check {
    width: 50px;
}

/* 购物车：第一列（复选框）和最后一列（操作）表头与正文居中 */
.cart-table th:first-child,
.cart-table td:first-child,
.cart-table th:last-child,
.cart-table td:last-child {
    text-align: center;
}

/* 购物车复选框放大 */
.cart-table .cart-select,
#selectAll {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3d61a5;
    vertical-align: middle;
    margin: 0;
}

    .cart-table .cart-select:disabled {
        cursor: not-allowed;
    }

.col-product {
    text-align: left;
}

.col-price {
    width: 130px;
}

.col-quantity {
    width: 160px;
}

.col-subtotal {
    width: 120px;
}

.col-action {
    width: 70px;
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-product-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
    flex-shrink: 0;
    display: block;
}

.cart-product-image-link {
    display: inline-block;
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px #ddd;
    transition: box-shadow 0.2s;
}

    .cart-product-image-link:hover {
        box-shadow: 0 0 0 1px #3d61a5;
    }

    .cart-product-image-link .cart-product-image {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 0;
        transition: transform 0.3s ease;
    }

    .cart-product-image-link:hover .cart-product-image {
        transform: scale(1.1);
    }

.cart-product-details {
    flex: 1;
    min-width: 0;
}

.cart-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a2634;
    min-height: 22px;
    line-height: 22px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cart-product-meta {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.cart-product-link {
    color: inherit;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0;
    line-height: 22px;
    transition: color 0.2s;
}

    .cart-product-link:hover {
        color: #3d61a5;
        text-decoration: none;
    }

.cart-product-link-disabled {
    cursor: not-allowed;
    text-decoration: none;
}

.cart-virtual-badge,
.cart-virtual-tag {
    display: inline-block;
    background: #e8f0fe;
    color: #3d61a5;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

.cart-virtual-tag {
    margin-top: 4px;
    color: #f97316;
    background: #fff3e0;
    font-weight: 500;
}

/* ==================== V27.3 新增：购物车虚拟产品 ==================== */

/* 虚拟产品方形标（两行竖排「虚拟」「素材」） */
.cart-virtual-badge-square {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #28a745;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.15;
    border-radius: 4px;
    letter-spacing: 1px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.25);
}

/* 虚拟产品第一行：标 +（产品名 + 编号）横向排列，垂直居中 */
.cart-virtual-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 名称 + 编号竖向排列 */
.cart-virtual-main {
    flex: 1;
    min-width: 0;
}

/* 虚拟产品说明文字（第二行，左边缘与标左边缘对齐） */
.cart-virtual-desc {
    color: #1e7e34;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 4px;
}


/* ==================== V27.3 新增结束 ==================== */

.price-changed-notice {
    font-size: 12px;
    color: #f97316;
    margin-top: 2px;
}

.cart-price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
}

.qty-control {
    display: inline-flex;
    align-items: center;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    background: #f8fbfe;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .qty-btn:hover {
        background: #3d61a5;
        border-color: #3d61a5;
        color: #fff;
    }

    .qty-btn:active {
        transform: scale(0.9);
    }

.qty-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #ccc;
    border-left: none;
    border-right: none;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cart-subtotal {
    font-size: 16px;
    font-weight: 700;
    color: #e83e3e;
}

.cart-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 20px;
}

.total-section {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.total-price {
    font-size: 24px;
    font-weight: 800;
    color: #e83e3e;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-status-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

.cart-status-offline {
    background: #fdecea;
    color: #e74c3c;
}

.cart-item-unavailable {
    background-color: #fafafa;
}

    .cart-item-unavailable .cart-product-name,
    .cart-item-unavailable .cart-product-meta,
    .cart-item-unavailable .cart-price-current,
    .cart-item-unavailable .cart-price-original,
    .cart-item-unavailable .cart-subtotal,
    .cart-item-unavailable .price-changed-notice {
        color: #999 !important;
    }

    .cart-item-unavailable .cart-product-image {
        opacity: 0.7;
    }

    .cart-item-unavailable .qty-input,
    .cart-item-unavailable .qty-btn {
        color: #999 !important;
        background-color: #f0f0f0 !important;
    }

    .cart-item-unavailable .cart-status-tag {
        opacity: 1;
        color: #e74c3c;
        background: #fdecea;
    }

/* ==================== 6. 订单确认页特有样式 ==================== */

.order-confirm-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid #eee;
    border-radius: 4px;
    flex-shrink: 0;
    background: #fafafa;
    display: block;
    margin-left: 25px;
}

.order-address-section {
    border: 1px solid #e0e0e0;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

    .order-address-section.has-error {
        border-color: #e74c3c;
        box-shadow: 0 0 0 3px rgba(232, 62, 62, 0.1);
    }

.order-address-display {
    margin-bottom: 12px;
}

.order-address-card {
    display: none;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 6px;
    align-items: center;
    gap: 12px;
}

    .order-address-card.selected {
        display: flex;
        border-color: #b8d4fe;
        background: #f0f5ff;
    }

.order-address-info {
    flex: 1;
}

.order-address-default-tag {
    display: inline-block;
    background: #3d61a5;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

.order-address-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.order-address-option {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    cursor: pointer;
}

    .order-address-option:hover {
        border-color: #3d61a5;
    }

    .order-address-option.selected {
        border-color: #3d61a5;
        background: #f0f5ff;
    }

.address-new-form {
    display: none;
    width: 98%;
    margin: 10px auto 0 auto;
    padding: 14px 16px 8px 16px;
    box-sizing: border-box;
}

    .address-new-form.show {
        display: block;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: #fafafa;
    }

.order-address-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.order-address-form-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
}

.order-address-form-item-full {
    flex: 1 1 100%;
}

.order-address-form-label {
    white-space: nowrap;
    font-size: 14px;
    color: #333;
    width: 60px;
    text-align: right;
    flex-shrink: 0;
}

.order-address-form-input,
.order-address-form-input-address {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.region-selector-inline {
    flex: 1;
    display: flex;
    gap: 6px;
    min-width: 0;
}

    .region-selector-inline select {
        flex: 1;
        min-width: 0;
        padding: 8px 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        box-sizing: border-box;
    }

.order-virtual-tip {
    background: #e8f0fe;
    border: 1px solid #b8d0f0;
    color: #3d61a5;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 14px;
}

/* ★ 订单确认页顶部提示条 */
.order-place-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
    border: 1px solid #b8d4fe;
    border-left: 4px solid #3d61a5;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 15px;
    color: #3d61a5;
    font-weight: 600;
    line-height: 1.5;
}

.order-place-tip-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.order-place-tip-text {
    flex: 1;
    min-width: 0;
}

.order-amount-section,
.order-pay-section {
    border: 1px solid #e0e0e0;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.order-amount-highlight {
    font-size: 1.5em;
    color: #e74c3c;
    font-weight: bold;
}

.order-confirm-actions {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: flex-end;
}

.hidden-radio {
    display: none;
}

#setAsDefaultContainer {
    margin-bottom: 0;
}

    #setAsDefaultContainer .address-default-check {
        margin-bottom: 15px;
    }

/* ========================================================
   订单确认页支付方式卡片（V27.x 新增）
   突出、可选、不默认；40px 图标 + 卡片边框 + 选中高亮
   ======================================================== */

.place-pay-methods {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.place-pay-method {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    margin: 0;
    font-weight: normal;
    user-select: none;
}

    .place-pay-method:hover {
        border-color: #3d61a5;
    }

    .place-pay-method.active {
        border-color: #3d61a5;
        background: #f0f7ff;
        box-shadow: 0 0 0 3px rgba(61, 97, 165, 0.12);
    }

.place-pay-radio {
    display: none;
}

.place-pay-icon {
    margin-bottom: 8px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.place-pay-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    display: block;
}

.place-pay-method.active .place-pay-name {
    color: #3d61a5;
}

/* ==================== 7. 订单成功页特有样式 ==================== */

.order-success-wrapper {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.order-success-assets {
    background: #fafbfc;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.order-asset-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    background: #fff;
    text-align: center;
    transition: box-shadow 0.2s;
}

    .order-asset-card:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

.order-success-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

    .order-success-actions .btn-continue {
        background: #3d61a5;
        color: #fff;
        border: 1px solid #3d61a5;
        padding: 12px 30px;
        border-radius: 25px;
        font-weight: 500;
    }

        .order-success-actions .btn-continue:hover {
            background: #2a4a7a;
            border-color: #2a4a7a;
        }

/* ==================== 8. 订单列表页特有样式 ==================== */

.order-list-table th,
.order-list-table td {
    vertical-align: middle;
}

.order-list-table .cart-price-current {
    white-space: nowrap;
}

.order-info-header,
.order-info-cell {
    text-align: center;
    min-width: 260px;
}

.order-info-cell {
    padding: 12px 10px;
}

.order-no-line {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
    text-align: center;
}

.order-thumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 6px;
}

.order-item-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    text-align: center;
}

    .order-item-thumb img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        background: #f5f5f5;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

.order-item-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #f8f9fb;
    border: 1px dashed #3d61a5;
    border-radius: 4px;
    font-size: 14px;
    color: #3d61a5;
    font-weight: bold;
    box-sizing: border-box;
}

.order-summary-line {
    font-size: 13px;
    color: #555;
    margin-top: 2px;
    text-align: center;
}

.order-amount-header,
.order-amount-cell {
    text-align: center;
    min-width: 120px;
}

.order-pay-amount {
    color: #e74c3c;
    font-weight: bold;
    font-size: 14px;
}

.order-total-amount {
    font-size: 12px;
    color: #999;
}

.order-status-header,
.order-status-cell {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    text-align: center;
    vertical-align: middle;
    padding: 12px 10px;
}

    .order-status-cell .order-status {
        display: inline-block;
        margin-bottom: 10px;
    }

    .order-status-cell .btn-pay-now,
    .order-status-cell .btn-repurchase {
        display: inline-block;
        margin: 0 auto;
        white-space: nowrap;
        color: #fff;
        padding: 4px 12px;
        font-size: 12px;
        border-radius: 14px;
        text-decoration: none;
    }

    .order-status-cell .btn-pay-now {
        background: #f97316;
    }

        .order-status-cell .btn-pay-now:hover {
            background: #ea5a0c;
            color: #fff;
            text-decoration: none;
        }

    .order-status-cell .btn-repurchase {
        background: #3d61a5;
    }

        .order-status-cell .btn-repurchase:hover {
            background: #2a4a7a;
            color: #fff;
            text-decoration: none;
        }

.order-time-header,
.order-time-cell {
    text-align: center;
    min-width: 150px;
    white-space: nowrap;
}

/* 订单列表页：中间三列表头居中（仅本页生效） */
.order-list-table th.order-amount-header,
.order-list-table th.order-status-header,
.order-list-table th.order-time-header {
    text-align: center;
}

.order-action-header {
    text-align: center;
    min-width: 100px;
}

.order-action-cell {
    text-align: center;
    min-width: 100px;
    padding: 12px 10px;
}

    .order-action-cell .btn-continue,
    .order-action-cell .btn-cancel-order {
        display: block;
        margin: 6px auto;
        width: 90px;
        padding: 5px 0;
        font-size: 13px;
        border-radius: 18px;
        text-align: center;
        line-height: normal;
    }



    .order-action-cell .btn-continue {
        border: 1px solid #ccc;
        background: #fff;
        color: #666;
    }

        .order-action-cell .btn-continue:hover {
            background: #3d61a5;
            color: #fff;
            border-color: #3d61a5;
        }

    .order-action-cell .btn-cancel-order {
        border: 1px solid #dc3545;
        background: #fff;
        color: #dc3545;
    }

        .order-action-cell .btn-cancel-order:hover {
            background: #dc3545;
            color: #fff;
        }

        /* ★ 操作列多个按钮时，第二个及以后的按钮增加 10px 上间距
   （块级 margin 折叠，取 max(10, 6) = 10px，实际间距正好 10px） */
        .order-action-cell .btn-continue + .btn-continue,
        .order-action-cell .btn-continue + .btn-cancel-order,
        .order-action-cell .btn-cancel-order + .btn-continue,
        .order-action-cell .btn-cancel-order + .btn-cancel-order {
            margin-top: 10px;
        }

.order-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.order-status-pending {
    background: #ffc107;
    color: #333;
}

.order-status-confirmed {
    background: #3d61a5;
    color: #fff;
}

.order-status-shipped {
    background: #f97316;
    color: #fff;
}

.order-status-completed {
    background: #28a745;
    color: #fff;
}

.order-status-cancelled {
    background: #6c757d;
    color: #fff;
}

.order-status-partial {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* ==================== 9. 订单详情页特有样式 ==================== */

.order-detail-header {
    margin-bottom: 20px;
}

.order-time {
    margin-left: 12px;
    color: #888;
    font-size: 13px;
}

.order-detail-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.order-detail-top {
    margin-bottom: 20px;
}

.order-item-name {
    font-weight: 600;
    color: #333;
}

.order-item-sku {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.order-amount-summary {
    max-width: 400px;
}

.amount-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px dashed #eee;
}

    .amount-row.total {
        font-weight: bold;
        font-size: 16px;
        color: #e74c3c;
        border-bottom: none;
        padding-top: 12px;
    }

    .amount-row.online-pay {
        color: #f97316;
        font-weight: bold;
    }

.order-info-block {
    background: #fafbfc;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 15px;
}

    .order-info-block p {
        margin: 4px 0;
        font-size: 14px;
        color: #555;
    }

.order-detail-table .col-product {
    width: auto;
}

.order-detail-table .col-price,
.order-detail-table .col-quantity,
.order-detail-table .col-subtotal,
.order-detail-table .col-delivery {
    white-space: nowrap;
    width: auto;
    text-align: center;
}

.order-detail-table th.text-center {
    text-align: center;
}

.cart-product-link-disabled[data-unavailable="true"] {
    cursor: pointer;
    color: #999;
}

.btn-pay-now,
.btn-repurchase {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
    color: #fff;
}

.btn-pay-now {
    background: #f97316;
}

    .btn-pay-now:hover {
        background: #ea5a0c;
        color: #fff;
        text-decoration: none;
    }

.btn-repurchase {
    background: #3d61a5;
}

    .btn-repurchase:hover {
        background: #2a4a7a;
        color: #fff;
        text-decoration: none;
    }

.btn-cancel-order {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #dc3545;
    background: #fff;
    color: #dc3545;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-cancel-order:hover {
        background: #dc3545;
        color: #fff;
    }

.delivery-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
}

    .delivery-status.delivered {
        background: #e8f5e9;
        color: #27ae60;
    }

    .delivery-status.pending {
        background: #fff3e0;
        color: #f97316;
    }

    .delivery-status.normal {
        background: #f0f0f0;
        color: #666;
    }

.order-download-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fafbfc;
    border: 1px solid #eee;
    border-radius: 6px;
}

.download-item-name {
    font-size: 14px;
    color: #333;
}

.download-btn {
    padding: 6px 18px;
    font-size: 13px;
    border-radius: 20px;
}

.order-detail-bottom-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.order-detail-back-btn {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid #3d61a5;
    background: #fff;
    color: #3d61a5;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

    .order-detail-back-btn:hover {
        background: #3d61a5;
        color: #fff;
        text-decoration: none;
    }

/* ★ P0-2 新增：确认收货按钮
   形状复用 order-detail-back-btn（圆角、padding、字号、过渡）
   颜色用主色覆盖，hover 用深主色
   放在 order-detail-back-btn 之后，保证同特异性下覆盖成功 */
.order-detail-confirm-btn {
    background: #3d61a5;
    color: #fff;
    border-color: #3d61a5;
    font-family: inherit;
    line-height: inherit;
}

    .order-detail-confirm-btn:hover {
        background: #2a4a7a;
        border-color: #2a4a7a;
        color: #fff;
    }

/* ==================== 10. 下载页与素材库 ==================== */

.dl-container {
    max-width: 1050px;
    margin: 0 auto;
}

.dl-header {
    text-align: center;
    padding: 30px 0 20px;
}

    .dl-header h1 {
        font-size: 22px;
        color: #333;
        margin-bottom: 8px;
    }

.dl-order-info {
    font-size: 13px;
    color: #888;
}

.dl-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

    .dl-card h3 {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0 0 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid #f0f0f0;
    }

.dl-product-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: #fafbfc;
    border-radius: 6px;
    margin-bottom: 20px;
}

.dl-product-icon {
    font-size: 40px;
}

.dl-product-detail {
    flex: 1;
}

.dl-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.dl-product-meta {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #3d61a5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

    .dl-btn:hover {
        background: #2a4a7a;
        color: #fff;
        text-decoration: none;
    }

    .dl-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

.dl-btn-expired {
    background: #e74c3c;
}

    .dl-btn-expired:hover {
        background: #c0392b;
    }

.dl-btn-refresh {
    background: #27ae60;
}

    .dl-btn-refresh:hover {
        background: #1e8449;
    }

.dl-countdown-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    margin-left: 8px;
}

.dl-countdown-valid {
    background: #e8f5e9;
    color: #27ae60;
}

.dl-countdown-expired {
    background: #fdecea;
    color: #e74c3c;
}

.dl-baidu-link-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.dl-baidu-link-input {
    flex: 1;
    min-width: 260px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    background: #fafbfc;
    word-break: break-all;
}

    .dl-baidu-link-input:focus {
        outline: none;
        border-color: #3d61a5;
    }

.dl-copy-btn {
    padding: 10px 18px;
    font-size: 13px;
    color: #3d61a5;
    background: #fff;
    border: 1px solid #3d61a5;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

    .dl-copy-btn:hover {
        background: #3d61a5;
        color: #fff;
    }

    .dl-copy-btn.copied {
        background: #27ae60;
        color: #fff;
        border-color: #27ae60;
    }

.dl-limit-info {
    font-size: 12px;
    color: #888;
    margin-top: 12px;
}

.dl-limit-remaining {
    color: #e74c3c;
    font-weight: 600;
}

.dl-guide-section {
    padding: 16px;
    background: #fffbf0;
    border: 1px solid #f0e6c0;
    border-radius: 6px;
}

    .dl-guide-section h4 {
        font-size: 14px;
        font-weight: 600;
        color: #8b6914;
        margin: 0 0 10px;
    }

    .dl-guide-section ol {
        margin: 0;
        padding-left: 20px;
        font-size: 13px;
        color: #666;
        line-height: 1.8;
    }

    .dl-guide-section li {
        margin-bottom: 4px;
    }

.dl-error-message {
    padding: 16px;
    background: #fdecea;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #e74c3c;
    font-size: 14px;
    text-align: center;
}

.dl-refresh-section {
    text-align: center;
    padding: 16px 0;
}

.dl-refresh-hint {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.dl-back-btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    color: #3d61a5;
    border: 1px solid #3d61a5;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

    .dl-back-btn:hover {
        background: #3d61a5;
        color: #fff;
        text-decoration: none;
    }

.dl-limit-hint {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f0f7ff;
    border-left: 3px solid #3d61a5;
    border-radius: 4px;
}

.dl-baidu-hint {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
    padding: 6px 12px;
    background: #fffbf0;
    border-left: 3px solid #f0ad4e;
    border-radius: 4px;
}

/* ----- 10.1 下载页左右两栏布局（V26.1） ----- */

.dl-two-col {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 20px 0;
}

.dl-col-left {
    flex: 0 0 420px;
    max-width: 420px;
}

.dl-col-right {
    flex: 1;
    min-width: 0;
}

.dl-image-box {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

    .dl-image-box img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        border-radius: 4px;
    }

.dl-product-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    word-break: break-word;
}

.dl-product-subtitle {
    font-size: 13px;
    color: #6b7280;
    font-family: monospace;
}

.dl-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 16px 0;
}

.dl-section {
    margin-bottom: 8px;
}

.dl-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #3d61a5;
    margin: 0 0 12px 0;
}

.dl-btn-row {
    text-align: center;
    margin-bottom: 12px;
}

.dl-zip-info {
    padding: 6px 0;
    font-size: 14px;
    color: #374151;
    text-align: center;
    margin-bottom: 8px;
}

    .dl-zip-info strong {
        color: #3d61a5;
        font-weight: 600;
    }

.dl-baidu-label {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.dl-footer {
    text-align: center;
    padding: 20px 0 4px 0;
    border-top: 1px solid #f3f4f6;
    margin-top: 16px;
}

@media (max-width: 767px) {
    .dl-two-col {
        flex-direction: column;
        gap: 16px;
    }

    .dl-col-left {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }
}

/* ----- 10.2 素材库卡片 ----- */

.asset-card {
    background: #fff;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.12);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

    .asset-card:hover {
        border-color: #3d61a5;
        box-shadow: none;
    }

.asset-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
    box-sizing: border-box;
}

    .asset-card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        border: 1px solid #e5e7eb;
        border-radius: 4px;
    }

.asset-card-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.asset-card-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.asset-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 0 8px 0;
    overflow: hidden;
    white-space: nowrap;
}

.asset-card-no {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: normal;
    color: #666;
}

.asset-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 11. 支付记录相关（充值、提现） ==================== */

/* ==================== 12. 订单来源标记与提示 ==================== */

.repurchase-excluded-tip {
    background: #fff8e1;
    border: 1px solid #ffcc80;
    color: #e65100;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.repurchase-virtual-tip {
    background: #e8f0fe;
    border: 1px solid #b8d0f0;
    color: #3d61a5;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.repurchase-adjusted-tip {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.btn-repurchase-disabled,
.btn-repurchase:disabled {
    background: #ccc !important;
    color: #999 !important;
    cursor: not-allowed;
    border: none;
}

.btn-repurchase-wrapper {
    display: inline-block;
    cursor: not-allowed;
}

/* ==================== 13. 其他会员中心专属组件 ==================== */

.order-view-btn {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    color: #fff;
    background: #3d61a5;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

    .order-view-btn:hover {
        background: #2a4a7a;
        color: #fff;
        text-decoration: none;
    }

.member-actions .btn-continue-blue {
    background: #3d61a5;
}

.member-actions .btn-continue-orange {
    background: #f97316;
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 22px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #3d61a5;
}

    input:checked + .slider:before {
        transform: translateX(22px);
    }

/* ==================== 14. 收藏页样式 ==================== */

.favorite-list-grid {
    max-width: 100%;
    margin: 0 auto;
    padding: 25px 0px 10px 0px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.favorite-card {
    position: relative;
}

    .favorite-card .img-card {
        width: 100%;
        margin: 0;
    }

    .favorite-card .img-card-image-link {
        padding: 10px 10px 0 10px;
    }

    .favorite-card .img-card-image-wrap {
        width: 100%;
        height: 280px;
    }

.favorite-card-offline {
    opacity: 0.6;
    filter: grayscale(0.8);
}

.favorite-card-offline-mask {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 2;
}

.favorite-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    color: #ff4d4f;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0;
    line-height: 1;
}

    .favorite-remove-btn:hover {
        background: #ff4d4f;
        color: #fff;
    }

.favorite-card-offline .favorite-remove-btn {
    opacity: 1;
    filter: none;
}

/* ===== 14.1 收藏页筛选栏 ===== */

.favorite-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
    border: 1px solid #b8d4fe;
    border-radius: 8px;
    padding: 18px 24px;
    margin-bottom: 20px;
}

    .favorite-filter-bar .filter-row {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .favorite-filter-bar .filter-label {
        font-size: 13px;
        font-weight: 600;
        color: #3d61a5;
        white-space: nowrap;
        letter-spacing: 0.5px;
    }

    .favorite-filter-bar .filter-divider {
        width: 1px;
        height: 28px;
        background: #b8d4fe;
        margin: 0 24px;
        flex-shrink: 0;
    }

    .favorite-filter-bar .filter-select {
        height: 36px;
        padding: 0 32px 0 14px;
        border: 1px solid #b8d4fe;
        border-radius: 6px;
        font-size: 14px;
        background-color: #fff;
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%233d61a5' d='M6 8.5L1.5 4h9z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 10px;
        cursor: pointer;
        color: #333;
        min-width: 140px;
        transition: all 0.2s;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

        .favorite-filter-bar .filter-select:hover {
            border-color: #3d61a5;
            background-color: #f5f9ff;
        }

        .favorite-filter-bar .filter-select:focus {
            outline: none;
            border-color: #3d61a5;
            box-shadow: 0 0 0 3px rgba(61, 97, 165, 0.12);
        }

    .favorite-filter-bar .filter-radio-group {
        display: inline-flex;
        background: #fff;
        border: 1px solid #b8d4fe;
        border-radius: 6px;
        overflow: hidden;
        height: 36px;
    }

    .favorite-filter-bar .filter-radio {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 18px;
        margin: 0;
        font-size: 14px;
        color: #555;
        cursor: pointer;
        transition: all 0.2s;
        border-right: 1px solid #d8e6f8;
        font-weight: normal;
        line-height: 1;
        user-select: none;
    }

        .favorite-filter-bar .filter-radio:last-child {
            border-right: none;
        }

        .favorite-filter-bar .filter-radio input[type="radio"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
            pointer-events: none;
        }

        .favorite-filter-bar .filter-radio:hover {
            background: #f0f6ff;
            color: #3d61a5;
        }

        .favorite-filter-bar .filter-radio.active {
            background: #3d61a5;
            color: #fff;
        }

            .favorite-filter-bar .filter-radio.active span {
                color: #fff;
                font-weight: 600;
            }

            .favorite-filter-bar .filter-radio.active:hover {
                background: #35548f;
                color: #fff;
            }

/* ===== 14.2 收藏页固定分页栏 ===== */

.favorite-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
    border: 1px solid #b8d4fe;
    border-radius: 8px;
    padding: 14px 24px;
    margin-top: 24px;
    font-size: 14px;
    color: #555;
}

    .favorite-pagination-bar .fp-info strong {
        color: #3d61a5;
        font-size: 15px;
        margin: 0 3px;
    }

    .favorite-pagination-bar .fp-pagesize {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: #3d61a5;
        font-weight: 600;
    }

        .favorite-pagination-bar .fp-pagesize select {
            height: 32px;
            padding: 0 28px 0 12px;
            border: 1px solid #b8d4fe;
            border-radius: 6px;
            font-size: 13px;
            background-color: #fff;
            background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%233d61a5' d='M6 8.5L1.5 4h9z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 8px center;
            background-size: 9px;
            cursor: pointer;
            color: #333;
            font-weight: normal;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            transition: all 0.2s;
        }

            .favorite-pagination-bar .fp-pagesize select:hover {
                border-color: #3d61a5;
                background-color: #f5f9ff;
            }

            .favorite-pagination-bar .fp-pagesize select:focus {
                outline: none;
                border-color: #3d61a5;
                box-shadow: 0 0 0 3px rgba(61, 97, 165, 0.12);
            }

    .favorite-pagination-bar .fp-nav {
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .favorite-pagination-bar .fp-nav a,
        .favorite-pagination-bar .fp-nav .active,
        .favorite-pagination-bar .fp-nav .disabled {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 34px;
            height: 32px;
            padding: 0 10px;
            border: 1px solid #b8d4fe;
            border-radius: 6px;
            background: #fff;
            color: #3d61a5;
            font-size: 13px;
            text-decoration: none;
            transition: all 0.2s;
            box-sizing: border-box;
        }

            .favorite-pagination-bar .fp-nav a:hover {
                background: #3d61a5;
                color: #fff;
                border-color: #3d61a5;
                text-decoration: none;
            }

        .favorite-pagination-bar .fp-nav .active {
            background: #3d61a5;
            color: #fff;
            border-color: #3d61a5;
            font-weight: 600;
            cursor: default;
        }

        .favorite-pagination-bar .fp-nav .disabled {
            color: #c0c9d6;
            border-color: #e2e8f0;
            background: #fafbfc;
            cursor: not-allowed;
        }

        .favorite-pagination-bar .fp-nav .ellipsis {
            display: inline-flex;
            align-items: center;
            padding: 0 4px;
            color: #8894a8;
            font-size: 13px;
            cursor: default;
        }

/* ==================== 15. 充值页专用样式 ==================== */

.recharge-balance-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.recharge-balance-card {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

.recharge-balance-primary {
    background: #f0f7ff;
    border: 1px solid #b8d4fe;
}

.recharge-balance-gift {
    background: #fff8f0;
    border: 1px solid #fdd9b5;
}

.recharge-balance-label {
    font-size: 13px;
    color: #666;
}

.recharge-balance-value {
    font-size: 22px;
    font-weight: bold;
}

.recharge-balance-primary .recharge-balance-value {
    color: #2c3e50;
}

.recharge-balance-gift .recharge-balance-value {
    color: #e67e22;
}

.recharge-amount-preset {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.recharge-amount-btn {
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

    .recharge-amount-btn:hover {
        border-color: #3d61a5;
        background: #f0f7ff;
    }

    .recharge-amount-btn.active {
        border-color: #3d61a5;
        background: #f0f7ff;
    }

.recharge-amount-number {
    font-weight: bold;
}

.recharge-gift-badge {
    color: #e67e22;
    font-size: 13px;
    display: block;
}

.recharge-custom-row {
    margin-bottom: 15px;
}

.recharge-custom-input {
    font-size: 18px;
    height: 45px;
}

.recharge-gift-info {
    display: none;
}

.recharge-gift-amount {
    font-size: 22px;
    font-weight: bold;
    color: #e67e22;
    padding: 8px 0;
}

.recharge-pay-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.recharge-pay-method {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

    .recharge-pay-method:hover {
        border-color: #3d61a5;
    }

    .recharge-pay-method.active {
        border-color: #3d61a5;
        background: #f0f7ff;
    }

.recharge-pay-icon {
    font-size: 36px;
    margin-bottom: 5px;
}

.recharge-pay-icon-alipay {
    color: #1677ff;
}

.recharge-pay-icon-wechat {
    color: #07c160;
}

.recharge-pay-name {
    font-size: 14px;
    font-weight: bold;
}

.recharge-submit-btn {
    width: 100%;
    height: 50px;
    font-size: 18px;
    background: #3d61a5;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

    .recharge-submit-btn:hover {
        background: #2a4a7a;
        color: #fff;
    }

    .recharge-submit-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

.recharge-error {
    color: #e74c3c;
    margin-top: 10px;
    text-align: center;
    display: none;
}

.recharge-record-title {
    margin-top: 30px;
}

.recharge-record-table {
    font-size: 13px;
}

.recharge-record-amount {
    font-weight: bold;
}

.recharge-record-gift {
    color: #e67e22;
}

.recharge-status-pending {
    color: #f0ad4e;
}

.recharge-status-paid {
    color: #5cb85c;
}

.recharge-status-cancelled {
    color: #999;
}

.recharge-status-unknown {
    color: #999;
}

/* ==================== 16. 账号安全页模态框样式 ==================== */

.modal-form-header {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef2f6;
}

    .modal-form-header h3 {
        margin: 0 0 6px 0;
        font-size: 18px;
        font-weight: 700;
        color: #1a2634;
        letter-spacing: 0.5px;
    }

.modal-form-desc {
    margin: 0;
    font-size: 13px;
    color: #8a99b4;
    line-height: 1.6;
}

.modal-box .auth-form-group {
    margin-bottom: 16px;
}

.modal-box .auth-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.modal-box .auth-input {
    height: 42px;
    font-size: 14px;
}

.modal-box .auth-code-btn {
    height: 42px;
    width: 120px;
    font-size: 13px;
}

.modal-box .auth-field-error {
    display: none;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.5;
}

.modal-btn-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eef2f6;
}

.modal-btn-cancel,
.modal-btn-submit {
    min-width: 96px;
    height: 40px;
    padding: 0 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.modal-btn-cancel {
    background: #f0f2f5;
    color: #666;
    border: 1px solid #ddd;
}

    .modal-btn-cancel:hover {
        background: #e0e4ec;
        color: #333;
    }

.modal-btn-submit {
    background: #3d61a5;
    color: #fff;
}

    .modal-btn-submit:hover {
        background: #2a4a7a;
    }

    .modal-btn-submit.modal-btn-danger {
        background: #e74c3c;
    }

        .modal-btn-submit.modal-btn-danger:hover {
            background: #c0392b;
        }

/* ==================== 17. 会员等级进度卡片 ==================== */

.level-progress-card {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
    border: 1px solid #b8d4fe;
    border-radius: 8px;
    padding: 18px 24px;
    margin-bottom: 20px;
}

.level-progress-header {
    margin-bottom: 12px;
}

.current-level-badge {
    display: inline-block;
    background: #3d61a5;
    color: #fff;
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.level-progress-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.level-progress-bar-wrap {
    width: 100%;
    height: 12px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.level-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #5a7fc2, #3d61a5);
    transition: width 0.4s ease;
    border-radius: 6px;
}

.level-progress-text {
    font-size: 13px;
    color: #3d61a5;
    font-weight: 600;
    margin-top: 8px;
}

.level-progress-hint {
    font-size: 13px;
    color: #333333;
    margin-top: 4px;
}

.level-steps {
    position: relative;
    margin: 18px 0 8px;
    padding: 0 8px;
}

.level-steps-track {
    position: relative;
    height: 8px;
    background: #e6ecf5;
    border-radius: 4px;
}

.level-steps-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #4a90e2, #2f6fc4);
    border-radius: 4px;
    transition: width .4s ease;
}

.level-step-node {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #c8d4e3;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

    .level-step-node.reached {
        border-color: #2f6fc4;
        background: #2f6fc4;
    }

        .level-step-node.reached .level-step-dot {
            color: #fff;
            font-size: 11px;
            line-height: 1;
        }

    .level-step-node.current {
        box-shadow: 0 0 0 4px rgba(74, 144, 226, .2);
    }

.level-steps-labels {
    position: relative;
    height: 56px;
    margin-top: 10px;
}

.level-step-label {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

    .level-step-label.first {
        transform: translateX(0);
        text-align: left;
    }

    .level-step-label.last {
        transform: translateX(-100%);
        text-align: right;
    }

    .level-step-label.current {
        color: #2f6fc4;
        font-weight: normal;
    }

.level-step-name {
    font-size: 12px;
}

.level-step-amount {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}

.level-step-label.current .level-step-amount {
    color: #333333;
}

.level-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.6;
    vertical-align: middle;
    background: #3d61a5;
    white-space: nowrap;
}

.level-badge-sm {
    padding: 1px 8px;
    font-size: 11px;
    border-radius: 8px;
    line-height: 1.5;
    font-weight: normal;
}

.level-badge-1 {
    background: #9aa8b8;
}

.level-badge-2 {
    background: #f97316;
}

.level-badge-3 {
    background: #00acc1;
}

.level-badge-4 {
    background: #8e24aa;
}

.level-progress-title {
    font-size: 13px;
    color: #666;
    margin-right: 6px;
    vertical-align: middle;
}

.level-text {
    font-size: 13px;
    font-weight: normal;
    line-height: 1.6;
    white-space: nowrap;
    color: #666;
}

.level-text-1 {
    color: #9aa8b8;
}

.level-text-2 {
    color: #f97316;
}

.level-text-3 {
    color: #00acc1;
}

.level-text-4 {
    color: #8e24aa;
}

.level-step-label.current .level-step-amount.level-step-amount-first {
    color: #aaa;
}

.level-progress-benefit-link {
    color: #3d61a5;
    text-decoration: none;
}

    .level-progress-benefit-link:hover {
        text-decoration: underline;
    }

/* ========================================================
   §18 订单状态筛选 Tab
   ======================================================== */

.order-status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-status-tab {
    display: inline-block;
    padding: 6px 16px;
    font-size: 14px;
    color: #666;
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s;
}

    .order-status-tab:hover {
        color: #3d61a5;
        border-color: #3d61a5;
        text-decoration: none;
    }

    .order-status-tab.active {
        color: #fff;
        background: #3d61a5;
        border-color: #3d61a5;
        font-weight: 600;
    }

        .order-status-tab.active:hover {
            color: #fff;
            text-decoration: none;
        }

/* ========================================================
   §19 重新购买：数量调整 + 删除
   ======================================================== */

.place-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .place-qty-control .qty-minus,
    .place-qty-control .qty-plus {
        width: 28px;
        height: 28px;
        border: 1px solid #ddd;
        background: #fff;
        color: #333;
        cursor: pointer;
        font-size: 16px;
        line-height: 1;
        border-radius: 4px;
    }

        .place-qty-control .qty-minus:hover,
        .place-qty-control .qty-plus:hover {
            border-color: #3d61a5;
            color: #3d61a5;
        }

    .place-qty-control .place-qty-input {
        width: 50px;
        height: 28px;
        text-align: center;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
    }

.place-qty-fixed {
    display: inline-block;
    color: #666;
    font-weight: bold;
}

.place-remove-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    color: #999;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
}

    .place-remove-btn:hover {
        border-color: #d9534f;
        color: #d9534f;
        background: #fff5f5;
    }

/* ========================================================
   §20 订单确认页支付方式图标
   ======================================================== */

.pay-method-icon-wechat {
    color: #07c160;
    vertical-align: middle;
}

.pay-method-icon-alipay {
    color: #1677ff;
    vertical-align: middle;
}

/* ========================================================
   §21 资金账户首页（Account）
   ======================================================== */

.account-balance-cards {
    margin-bottom: 20px;
}

.member-card-primary {
    background: #f0f7ff;
    border-color: #b8d4fe;
}

    .member-card-primary .member-card-number {
        color: #2c3e50;
    }

.member-card-gift {
    background: #fff8f0;
    border-color: #fdd9b5;
}

    .member-card-gift .member-card-number {
        color: #e67e22;
    }

.member-card-frozen {
    background: #f9f9f9;
    border-color: #ddd;
}

    .member-card-frozen .member-card-number {
        color: #7f8c8d;
    }

.account-actions {
    margin-bottom: 25px;
}

    .account-actions .btn-recharge {
        background: #3d61a5;
    }

    .account-actions .btn-withdraw {
        background: #5a7fc2;
    }

    .account-actions .btn-paypwd {
        background: #f97316;
    }

/* 资金账户首页流水表（防变形） */
.txn-table {
    table-layout: fixed;
    width: 100%;
    font-size: 13px;
}

    .txn-table th,
    .txn-table td {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: middle;
    }

    .txn-table .col-no {
        width: 190px;
    }

    .txn-table .col-type {
        width: 70px;
    }

    .txn-table .col-amount {
        width: 100px;
    }

    .txn-table .col-gift {
        width: 90px;
    }

    .txn-table .col-balance {
        width: 130px;
    }

    .txn-table .col-time {
        width: 140px;
    }

.txn-amount {
    font-weight: bold;
}

.txn-table td.txn-col-in,
.txn-table td.txn-col-in span {
    color: #e74c3c !important;
}

.txn-table td.txn-col-out,
.txn-table td.txn-col-out span {
    color: #27ae60 !important;
}

.txn-balance-gift {
    color: #e67e22;
    font-size: 11px;
}

/* ========================================================
   §22 提现页（Withdraw）
   ======================================================== */

.withdraw-balance-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.withdraw-balance-card {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.withdraw-balance-primary {
    background: #f0f7ff;
    border: 1px solid #b8d4fe;
}

.withdraw-balance-gift {
    background: #fff8f0;
    border: 1px solid #fdd9b5;
}

.withdraw-balance-frozen {
    background: #f9f9f9;
    border: 1px solid #ddd;
}

.withdraw-balance-label {
    font-size: 13px;
    color: #666;
}

.withdraw-balance-value {
    font-size: 28px;
    font-weight: bold;
}

.withdraw-balance-primary .withdraw-balance-value {
    color: #2c3e50;
}

.withdraw-balance-gift .withdraw-balance-value {
    color: #e67e22;
}

.withdraw-balance-frozen .withdraw-balance-value {
    color: #7f8c8d;
}

.withdraw-cooldown-box {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    margin-bottom: 20px;
}

.withdraw-cooldown-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.withdraw-cooldown-icon {
    font-size: 24px;
}

.withdraw-cooldown-body {
    flex: 1;
}

.withdraw-cooldown-title {
    font-size: 14px;
    font-weight: bold;
    color: #856404;
    margin-bottom: 4px;
}

.withdraw-cooldown-desc {
    font-size: 13px;
    color: #856404;
    line-height: 1.6;
}

.withdraw-cooldown-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ffc107;
    font-size: 14px;
}

.withdraw-cooldown-amount {
    font-size: 20px;
    font-weight: bold;
    color: #d39e00;
}

.withdraw-rules-box {
    padding: 12px 15px;
    background: #fef9e7;
    border: 1px solid #f9e79f;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #7d6608;
}

    .withdraw-rules-box > p {
        margin: 0 0 5px 0;
    }

    .withdraw-rules-box > ul {
        margin: 0;
        padding-left: 20px;
    }

    .withdraw-rules-box .rules-footer {
        margin: 8px 0 0 0;
        font-size: 12px;
    }

        .withdraw-rules-box .rules-footer a {
            color: #3d61a5;
            text-decoration: underline;
        }

.withdraw-nopwd-box {
    padding: 15px;
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

    .withdraw-nopwd-box p {
        margin: 0;
        color: #c0392b;
        font-size: 14px;
    }

.withdraw-nopwd-btn {
    margin-top: 10px;
    display: inline-block;
    background: #3d61a5;
    padding: 8px 24px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

    .withdraw-nopwd-btn:hover {
        background: #2a4a7a;
        color: #fff;
        text-decoration: none;
    }

.withdraw-amount-input {
    font-size: 18px;
    height: 45px;
}

.withdraw-available-hint {
    color: #3d61a5;
}

    .withdraw-available-hint .cooldown-part {
        color: #d39e00;
    }

.withdraw-fee-display {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
    padding: 8px 0;
}

.withdraw-actual-display {
    font-size: 20px;
    font-weight: bold;
    color: #27ae60;
    padding: 8px 0;
}

.withdraw-gift-recall-box {
    display: none;
    padding: 12px 15px;
    background: #fff8f0;
    border: 1px solid #fdd9b5;
    border-radius: 6px;
    margin-bottom: 20px;
}

.withdraw-gift-recall-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.withdraw-gift-recall-label {
    font-size: 13px;
    color: #8a6d3b;
}

.withdraw-gift-recall-amount {
    font-size: 20px;
    font-weight: bold;
    color: #e67e22;
}

.withdraw-gift-recall-hint {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
}

    .withdraw-gift-recall-hint a {
        color: #3d61a5;
        text-decoration: underline;
    }

.withdraw-method-list {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.withdraw-method-card {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
}

    .withdraw-method-card:hover {
        border-color: #b8d4fe;
    }

    .withdraw-method-card.active {
        border-color: #3d61a5;
        background: #f0f7ff;
    }

.withdraw-method-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    margin-bottom: 8px;
}

.withdraw-method-icon-alipay {
    color: #1677ff;
}

.withdraw-method-name {
    font-size: 14px;
    font-weight: bold;
}

.withdraw-info-form {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    margin-top: 0;
    border-top: 0 dashed #e0e0e0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding-top 0.3s ease, margin-top 0.3s ease;
}

    .withdraw-info-form.show {
        max-height: 600px;
        opacity: 1;
        padding-top: 20px;
        margin-top: 5px;
        border-top: 1px dashed #e0e0e0;
    }

.withdraw-pick-method-hint {
    text-align: center;
    color: #d39e00;
    background: #fff3cd;
    border: 1px dashed #ffc107;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    max-height: 100px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin-bottom 0.3s ease;
}

    .withdraw-pick-method-hint.hide {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 0;
        border-color: transparent;
    }

.withdraw-bank-row {
    display: none;
    margin-bottom: 15px;
}

    .withdraw-bank-row.show {
        display: block;
    }

.withdraw-submit-btn {
    width: 100%;
    height: 50px;
    font-size: 18px;
    background: #3d61a5;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

    .withdraw-submit-btn:hover {
        background: #2a4a7a;
    }

    .withdraw-submit-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

#withdrawMsgModal .modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%) !important;
    width: 420px;
    max-width: 90vw;
}

#withdrawMsgModal.modal.fade .modal-dialog {
    transform: translate(-50%, -45%) !important;
    transition: transform .3s ease-out;
}

#withdrawMsgModal.modal.in .modal-dialog {
    transform: translate(-50%, -50%) !important;
}

.withdraw-msg-body {
    margin: 0;
    line-height: 1.7;
    word-break: break-all;
}

#cancelWithdrawModal .modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%) !important;
    width: 400px;
    max-width: 90vw;
}

#cancelWithdrawModal.modal.fade .modal-dialog {
    transform: translate(-50%, -45%) !important;
    transition: transform .3s ease-out;
}

#cancelWithdrawModal.modal.in .modal-dialog {
    transform: translate(-50%, -50%) !important;
}

/* ========================================================
   §22.1 支付方式确认页 金额卡片（PayMethodConfirm）
   ======================================================== */

.pay-method-amount-card {
    max-width: 420px;
    margin: 0 0 25px 0;
    background: #fafbfc;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 24px;
}

    .pay-method-amount-card .amount-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 7px 0;
        font-size: 14px;
        color: #555;
        border-bottom: none;
    }

        .pay-method-amount-card .amount-row.total {
            margin-top: 6px;
            padding-top: 12px;
            border-top: 1px solid #ddd;
            border-bottom: none;
            font-size: 15px;
            font-weight: 600;
            color: #333;
        }

    .pay-method-amount-card .amount-highlight {
        font-size: 20px;
        font-weight: bold;
        color: #e74c3c;
    }

/* ========================================================
   §23 资金流水页（Transactions）
   ======================================================== */

.flow-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
    border: 1px solid #b8d4fe;
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 20px;
}

    .flow-filter-bar + .flow-filter-bar {
        margin-top: -10px;
    }

    .flow-filter-bar .flow-filter-label {
        font-size: 13px;
        font-weight: 600;
        color: #3d61a5;
        margin-right: 10px;
        white-space: nowrap;
        letter-spacing: 0.5px;
    }

    .flow-filter-bar .flow-filter-checkbox {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 16px;
        font-size: 13px;
        color: #555;
        background: #fff;
        border: 1px solid #d8e6f8;
        border-radius: 16px;
        cursor: pointer;
        user-select: none;
        transition: all 0.2s;
        line-height: 1;
        margin: 0;
        font-weight: normal;
    }

        .flow-filter-bar .flow-filter-checkbox:hover {
            border-color: #3d61a5;
            color: #3d61a5;
        }

        .flow-filter-bar .flow-filter-checkbox input[type="checkbox"],
        .flow-filter-bar .flow-filter-checkbox input[type="radio"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
            margin: 0;
            pointer-events: none;
        }

        .flow-filter-bar .flow-filter-checkbox.active {
            background: #3d61a5;
            border-color: #3d61a5;
            color: #fff;
        }

            .flow-filter-bar .flow-filter-checkbox.active:hover {
                background: #35548f;
                color: #fff;
            }

    .flow-filter-bar .flow-filter-divider {
        width: 1px;
        height: 20px;
        background: #b8d4fe;
        margin: 0 8px;
        flex-shrink: 0;
    }

    .flow-filter-bar .flow-label-income {
        color: #e74c3c;
        font-weight: 600;
    }

    .flow-filter-bar .flow-label-expense {
        color: #27ae60;
        font-weight: 600;
    }

    .flow-filter-bar .flow-filter-checkbox.active .flow-label-income,
    .flow-filter-bar .flow-filter-checkbox.active .flow-label-expense {
        color: #fff;
    }

.flow-table {
    table-layout: fixed;
    width: 100%;
    font-size: 13px;
}

    .flow-table th,
    .flow-table td {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: middle;
    }

    .flow-table .col-no {
        width: 180px;
    }

    .flow-table .col-type {
        width: 70px;
    }

    .flow-table .col-amount {
        width: 90px;
    }

    .flow-table .col-gift {
        width: 80px;
    }

    .flow-table .col-balance {
        width: 90px;
    }

    .flow-table .col-gift-balance {
        width: 80px;
    }

    .flow-table .col-time {
        width: 140px;
    }

    .flow-table .flow-amount {
        font-weight: bold;
    }

    .flow-table td.flow-in,
    .flow-table td.flow-in span {
        color: #e74c3c !important;
    }

    .flow-table td.flow-out,
    .flow-table td.flow-out span {
        color: #27ae60 !important;
    }

.flow-pagination {
    margin-top: 20px;
    text-align: center;
}

/* ========================================================
   §24 交易密码页提示模态框（ChangePayPassword）
   ======================================================== */

#payPwdMsgModal .modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%) !important;
    width: 420px;
    max-width: 90vw;
}

#payPwdMsgModal.modal.fade .modal-dialog {
    transform: translate(-50%, -45%) !important;
    transition: transform .3s ease-out;
}

#payPwdMsgModal.modal.in .modal-dialog {
    transform: translate(-50%, -50%) !important;
}

.paypwd-msg-body {
    margin: 0;
    line-height: 1.7;
    word-break: break-all;
}

/* ============================================================
 * 第 21 节：消息中心通知列表（V26.4 新增）
 * ============================================================ */

.notification-list {
    margin-top: 20px;
    border-top: 1px solid #eef1f5;
}

.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid #eef1f5;
    transition: background 0.2s;
}

    .notification-item:hover {
        background: #f8fafc;
    }

.notification-item-new {
    background: #f0f9ff;
}

    .notification-item-new:hover {
        background: #e6f4ff;
    }

.notification-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.notification-new-tag {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
    line-height: 1.5;
}

.notification-title {
    font-size: 15px;
    font-weight: 600;
    color: #3d61a5;
}

.notification-time {
    margin-left: auto;
    font-size: 12px;
    color: #999;
}

.notification-content {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    word-break: break-word;
}

.notification-action {
    margin-top: 8px;
}

.notification-link {
    font-size: 13px;
    color: #0d6efd;
    text-decoration: none;
}

    .notification-link:hover {
        text-decoration: underline;
        color: #0a58ca;
    }

.todo-card-notify {
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
}

    .todo-card-notify .todo-icon {
        color: #e74c3c;
    }

.notification-delete-btn {
    margin-left: 8px;
    background: transparent;
    border: 1px solid #cccccc;
    border-radius: 3px;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 8px;
    line-height: 1.2;
    transition: all 0.2s;
}

    .notification-delete-btn:hover {
        color: #e74c3c;
        border-color: #e74c3c;
    }

    .notification-delete-btn:disabled {
        color: #ccc;
        border-color: #eee;
        cursor: not-allowed;
    }

.notification-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 0;
    border-top: 1px solid #eef1f5;
}

    .notification-pagination .page-link {
        display: inline-block;
        padding: 6px 14px;
        border: 1px solid #d0d7e5;
        border-radius: 4px;
        color: #3d61a5;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.2s;
    }

        .notification-pagination .page-link:hover {
            background: #f0f5ff;
            border-color: #3d61a5;
        }

        .notification-pagination .page-link.disabled {
            color: #bbb;
            border-color: #eee;
            cursor: not-allowed;
            pointer-events: none;
        }

    .notification-pagination .page-info {
        font-size: 13px;
        color: #666;
    }

/* ========================================================
   §25 会员权益页（Benefits）
   ======================================================== */

.benefit-table-wrap {
    overflow-x: auto;
    border: 1px solid #b8c2d0;
    border-radius: 8px;
    margin-top: 6px;
}

.benefit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}

    .benefit-table th,
    .benefit-table td {
        padding: 12px 16px;
        text-align: center;
        border-bottom: 1px solid #d0d8e3;
        border-right: 1px solid #d0d8e3;
        white-space: nowrap;
    }

        .benefit-table th:last-child,
        .benefit-table td:last-child {
            border-right: none;
        }

    .benefit-table th {
        background: #f0f7ff;
        color: #3d61a5;
        font-weight: 600;
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    .benefit-table tbody tr:last-child td {
        border-bottom: none;
    }

    .benefit-table tbody tr:hover td {
        background: #fafcff;
    }

    .benefit-table .benefit-col-cat {
        text-align: left;
        font-weight: 600;
        color: #1a2634;
        padding-left: 20px;
    }

    .benefit-table .benefit-current-col {
        background: #fff8ec !important;
        border-left: 1px solid #fdd9b5;
        border-right: 1px solid #fdd9b5;
    }

    .benefit-table th.benefit-current-col {
        background: #ffeccc !important;
        color: #d97706;
    }

.benefit-discount-cat {
    display: inline-block;
    padding: 3px 12px;
    background: #e8f5e9;
    color: #27ae60;
    font-weight: 600;
    border-radius: 12px;
    font-size: 13px;
}

.benefit-discount-global {
    display: inline-block;
    padding: 3px 12px;
    background: #e8f0fe;
    color: #3d61a5;
    font-weight: 600;
    border-radius: 12px;
    font-size: 13px;
}

.benefit-discount-none {
    display: inline-block;
    padding: 3px 12px;
    color: #999;
    font-size: 13px;
}

.benefit-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 6px;
}

.benefit-product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

    .benefit-product-card:hover {
        border-color: #3d61a5;
        box-shadow: 0 4px 12px rgba(61, 97, 165, 0.08);
    }

.benefit-product-img-link {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8f9fa;
    overflow: hidden;
}

.benefit-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.benefit-product-card:hover .benefit-product-img {
    transform: scale(1.05);
}

.benefit-product-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.benefit-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a2634;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 39px;
}

.benefit-product-no {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    font-family: monospace;
}

.benefit-price-list {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eef2f6;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.benefit-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 3px 6px;
    border-radius: 4px;
}

.benefit-price-label {
    color: #666;
    font-size: 12px;
}

.benefit-price-value {
    font-weight: 600;
    color: #333;
}

.benefit-price-base .benefit-price-value {
    color: #999;
}

.benefit-price-strike {
    text-decoration: line-through;
    font-weight: normal;
}

.benefit-price-current {
    background: #fff8ec;
}

    .benefit-price-current .benefit-price-label {
        color: #d97706;
        font-weight: 600;
    }

    .benefit-price-current .benefit-price-value {
        color: #e74c3c;
        font-weight: bold;
        font-size: 15px;
    }

.benefit-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    background: #f8f9fb;
    border: 1px dashed #d0d7e2;
    border-radius: 8px;
    margin-top: 6px;
}

@media (max-width: 1024px) {
    .benefit-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .benefit-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .benefit-table th,
    .benefit-table td {
        padding: 10px 10px;
        font-size: 13px;
    }

    .benefit-table .benefit-col-cat {
        padding-left: 12px;
    }
}

.benefit-back-row {
    text-align: center;
    margin-top: 30px;
    padding-top: 0;
    border-top: none;
}

.benefit-count-hint {
    font-size: 13px;
    font-weight: normal;
    color: #888;
    margin-left: 6px;
}

.benefit-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
    border: 1px solid #b8d4fe;
    border-radius: 8px;
    padding: 14px 24px;
    margin-top: 24px;
    font-size: 14px;
    color: #555;
}

    .benefit-pagination-bar .bp-info strong {
        color: #3d61a5;
        font-size: 15px;
        margin: 0 3px;
    }

    .benefit-pagination-bar .bp-nav {
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .benefit-pagination-bar .bp-nav a,
        .benefit-pagination-bar .bp-nav .active,
        .benefit-pagination-bar .bp-nav .disabled {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 34px;
            height: 32px;
            padding: 0 10px;
            border: 1px solid #b8d4fe;
            border-radius: 6px;
            background: #fff;
            color: #3d61a5;
            font-size: 13px;
            text-decoration: none;
            transition: all 0.2s;
            box-sizing: border-box;
        }

            .benefit-pagination-bar .bp-nav a:hover {
                background: #3d61a5;
                color: #fff;
                border-color: #3d61a5;
                text-decoration: none;
            }

        .benefit-pagination-bar .bp-nav .active {
            background: #3d61a5;
            color: #fff;
            border-color: #3d61a5;
            font-weight: 600;
            cursor: default;
        }

        .benefit-pagination-bar .bp-nav .disabled {
            color: #c0c9d6;
            border-color: #e2e8f0;
            background: #fafbfc;
            cursor: not-allowed;
        }

        .benefit-pagination-bar .bp-nav .ellipsis {
            display: inline-flex;
            align-items: center;
            padding: 0 4px;
            color: #8894a8;
            font-size: 13px;
            cursor: default;
        }

@media (max-width: 767px) {
    .benefit-pagination-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
    }

        .benefit-pagination-bar .bp-nav {
            justify-content: center;
            flex-wrap: wrap;
        }
}

/* ========================================================
   通用：隐藏元素容器（防伪令牌等）
   ======================================================== */

.token-holder {
    display: none;
}



/* ==================== 临时调试：红框，看完删除 ==================== 
.cart-table th,
.cart-table td {
    outline: 1px solid red;
}

.cart-table tbody tr {
    outline: 2px solid red;
}

.cart-product-info,
.cart-product-details,
.cart-virtual-row,
.cart-virtual-main,
.cart-virtual-badge-square,
.cart-virtual-desc {
    outline: 1px dashed blue;
}

.cart-product-info {
    outline: 2px solid orange;
}
 ==================== 临时调试结束 ==================== */