/* ============================================================
   style.css - 虚拟商城 全局样式 v2.0
   ============================================================ */

/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

input, select, textarea, button {
    font-size: 16px !important;
}

button, a, .clickable {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/* ============================================================
   顶部导航
   ============================================================ */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.logo a {
    color: #fff;
    text-decoration: none;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.header-actions a {
    color: #fff;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    transition: background 0.3s;
    font-size: 14px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.header-actions a:hover {
    background: rgba(255,255,255,0.2);
}


/* ============================================================
   搜索栏
   ============================================================ */
.header-search {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-search .search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    padding: 10px 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto;
}

.header-search .search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    outline: none;
    min-width: 0;
}

.header-search .search-box input::placeholder {
    color: rgba(255,255,255,0.7);
}

.header-search .search-box .search-icon {
    color: #fff;
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}

.header-search .search-box .search-btn {
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 18px;
    color: #667eea;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    min-height: 36px;
    transition: transform 0.2s;
}

.header-search .search-box .search-btn:active {
    transform: scale(0.92);
}


/* ============================================================
   VIP横幅
   ============================================================ */
.vip-banner {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    margin: 12px 12px 0;
    border-radius: 16px;
    padding: 18px 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

@media (min-width: 768px) {
    .vip-banner {
        max-width: 600px;
        margin: 16px auto 0;
        padding: 18px 24px;
    }
}

.vip-banner .vip-title {
    font-size: 18px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .vip-banner .vip-title {
        font-size: 20px;
    }
}

.vip-banner .vip-desc {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

.vip-banner .vip-btn {
    background: #fff;
    color: #f5576c;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    min-height: 44px;
    transition: transform 0.2s;
}

.vip-banner .vip-btn:active {
    transform: scale(0.95);
}


/* ============================================================
   分类导航 (6个)
   ============================================================ */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0 10px;
    }
}

.nav-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-item .nav-icon {
    font-size: 32px;
    margin-bottom: 8px;
    line-height: 1;
}

.nav-item span {
    font-size: 13px;
    display: block;
}

.nav-item .nav-badge {
    background: #f5576c;
    color: #fff;
    font-size: 9px;
    border-radius: 10px;
    padding: 1px 8px;
    display: inline-block;
    margin-top: 2px;
}

.nav-item.active {
    color: #667eea;
    background: #f0f0ff;
}


/* ============================================================
   商品区域
   ============================================================ */
.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 40px 0 30px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 12px 10px;
}

.section-header .section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.section-header .section-title::after {
    display: none;
}

.section-header .section-more {
    font-size: 13px;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    min-height: 44px;
    padding: 0 12px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0 10px;
    }
}


/* ===== 商品卡片 ===== */
.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    cursor: pointer;
    min-height: 44px;
    word-break: break-word;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.product-card:active {
    transform: scale(0.97);
}

@media (max-width: 480px) {
    .product-card {
        padding: 14px 12px;
        min-height: 120px;
    }
}

.product-card .product-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.product-tag.hot { background: #fff3e0; color: #e65100; }
.product-tag.new { background: #e8f5e9; color: #2e7d32; }
.product-tag.vip { background: #fce4ec; color: #c62828; }
.product-tag.free { background: #e8f5e9; color: #2e7d32; }
.product-tag.card { background: #dbeafe; color: #1e40af; }

.product-card .product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    padding-right: 60px;
    line-height: 1.5;
    min-height: 42px;
}

@media (max-width: 480px) {
    .product-card .product-name {
        font-size: 13px;
        min-height: 36px;
        padding-right: 50px;
    }
}

.product-card .product-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    flex: 1;
    min-height: 32px;
}

@media (max-width: 480px) {
    .product-card .product-desc {
        font-size: 11px;
        min-height: 28px;
    }
}

.product-card .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.product-card .product-price {
    font-size: 18px;
    font-weight: 700;
    color: #f5576c;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .product-card .product-price {
        font-size: 16px;
    }
}

.product-card .product-price .price-unit {
    font-size: 12px;
}

.product-card .product-views {
    font-size: 11px;
    color: #bbb;
    white-space: nowrap;
}

.product-card .product-btns {
    display: flex;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
}

.product-card .product-btns .btn-buy {
    flex: 1;
    padding: 6px 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    min-height: 36px;
}

@media (max-width: 480px) {
    .product-card .product-btns .btn-buy {
        font-size: 10px;
        padding: 4px 2px;
        min-height: 30px;
    }
}

.product-card .product-btns .btn-buy:active { opacity: 0.7; }
.product-card .product-btns .btn-buy.free { background: #48bb78; }
.product-card .product-btns .btn-buy.vip { background: #f5576c; }
.product-card .product-btns .btn-buy.card { background: #667eea; }


/* ============================================================
   会员专区
   ============================================================ */
.membership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto 20px;
}

@media (max-width: 400px) {
    .membership-grid {
        gap: 8px;
    }
}

.membership-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.membership-card:active {
    transform: scale(0.97);
}

.membership-card.popular {
    border-color: #f5576c;
    position: relative;
}

.membership-card.popular::after {
    content: '推荐';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f5576c;
    color: #fff;
    font-size: 10px;
    padding: 2px 12px;
    border-radius: 12px;
    font-weight: 600;
}

@media (max-width: 400px) {
    .membership-card {
        padding: 14px 10px;
    }
}

.membership-card .card-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.membership-card .card-price {
    font-size: 28px;
    font-weight: 800;
    color: #f5576c;
    margin: 8px 0;
}

@media (max-width: 400px) {
    .membership-card .card-price {
        font-size: 22px;
    }
}

.membership-card .card-price .price-unit {
    font-size: 14px;
}

.membership-card .card-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.membership-card .card-buttons {
    display: flex;
    gap: 8px;
}

.membership-card .card-buttons .btn-open,
.membership-card .card-buttons .btn-card {
    flex: 1;
    padding: 8px 4px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    min-height: 36px;
    border: none;
    transition: opacity 0.2s;
}

@media (max-width: 400px) {
    .membership-card .card-buttons .btn-open,
    .membership-card .card-buttons .btn-card {
        font-size: 11px;
        padding: 6px 4px;
        min-height: 32px;
    }
}

.membership-card .card-buttons .btn-open {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.membership-card .card-buttons .btn-card {
    background: #f0f0f5;
    color: #666;
    border: 2px solid #e8ecf1;
}

.membership-card .card-buttons .btn-open:active,
.membership-card .card-buttons .btn-card:active {
    opacity: 0.7;
}


/* ============================================================
   底部导航栏 - 最重要！
   ============================================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4px 0 8px;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
    z-index: 999;
    border-top: 1px solid #f0f0f0;
    max-width: 100%;
    height: 56px;
}

.bottom-nav .nav-tab {
    text-align: center;
    font-size: 11px;
    color: #999999;
    cursor: pointer;
    padding: 2px 8px;
    border: none;
    background: none;
    text-decoration: none;
    position: relative;
    min-width: 48px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: color 0.2s;
}

.bottom-nav .nav-tab .tab-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 0px;
    line-height: 1.2;
}

.bottom-nav .nav-tab.active {
    color: #667eea;
}

.bottom-nav .nav-tab .tab-badge {
    background: #f5576c;
    color: #ffffff;
    font-size: 9px;
    border-radius: 10px;
    padding: 0 6px;
    position: absolute;
    top: 0px;
    right: 2px;
    line-height: 16px;
    min-height: 16px;
}

@media (max-width: 380px) {
    .bottom-nav .nav-tab {
        font-size: 10px;
        padding: 2px 4px;
        min-width: 40px;
        min-height: 38px;
    }
    .bottom-nav .nav-tab .tab-icon {
        font-size: 18px;
    }
}


/* ============================================================
   网站底部信息
   ============================================================ */
.site-footer {
    background: #2d3748;
    color: #a0aec0;
    padding: 20px 16px 76px;
    margin-top: 20px;
    width: 100%;
}

.footer-container {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 12px;
    font-size: 13px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    padding: 0 6px;
    cursor: pointer;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links .divider {
    color: #4a5568;
}

.footer-copy p {
    font-size: 12px;
    margin: 4px 0;
    color: #718096;
}

.footer-copy .footer-icp a {
    color: #718096;
    text-decoration: none;
}

.footer-copy .footer-icp a:hover {
    color: #a0aec0;
}

.footer-copy .divider {
    color: #4a5568;
    margin: 0 6px;
}

.footer-contact {
    margin-top: 10px;
    font-size: 13px;
    color: #718096;
}

.footer-contact span {
    color: #a0aec0;
}

@media (max-width: 480px) {
    .site-footer {
        padding: 16px 12px 66px;
    }
    .footer-links {
        font-size: 12px;
    }
    .footer-copy p {
        font-size: 10px;
    }
}


/* ============================================================
   Toast 提示
   ============================================================ */
#toastContainer {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    padding: 14px 20px;
    margin-bottom: 10px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    animation: toastIn 0.4s ease;
    text-align: center;
    word-break: break-word;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-item.success { background: #48bb78; }
.toast-item.error { background: #f5576c; }
.toast-item.warning { background: #ed8936; }
.toast-item.info { background: #667eea; }

@keyframes toastIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-30px); opacity: 0; }
}


/* ============================================================
   弹窗
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box {
    background: #fff;
    border-radius: 18px;
    padding: 24px 18px 20px;
    width: 92%;
    max-width: 420px;
    animation: modalSlideUp 0.3s ease;
    max-height: 92vh;
    overflow-y: auto;
}

@keyframes modalSlideUp {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 480px) {
    .modal-box {
        padding: 20px 14px 16px;
        width: 95%;
        border-radius: 14px;
    }
}

.modal-box .modal-close {
    float: right;
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 4px;
    min-width: 36px;
    min-height: 36px;
}

.modal-box .modal-close:hover {
    color: #333;
}

.modal-box .modal-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    clear: both;
    color: #333 !important;
}

.modal-box .modal-desc {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 16px;
}

.modal-box .modal-image {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 12px;
    background: #f8f9fe;
    margin-bottom: 12px;
}

.modal-box .modal-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    text-align: center;
    letter-spacing: 2px;
}

.modal-box .modal-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102,126,234,0.1);
}

.modal-box .modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.modal-box .modal-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    transition: opacity 0.3s, transform 0.2s;
}

.modal-box .modal-actions button:active {
    transform: scale(0.95);
}

.modal-box .modal-actions .btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.modal-box .modal-actions .btn-confirm,
.modal-box .modal-actions .btn-close,
.modal-box .modal-actions .btn-close-img {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.modal-box .modal-actions .btn-confirm:disabled,
.modal-box .modal-actions .btn-close:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-box .copy-link-box {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.modal-box .copy-link-box input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #f8f9fa;
    color: #333;
    min-width: 0;
}

.modal-box .copy-link-box input:focus {
    border-color: #667eea;
}

.modal-box .copy-link-box .btn-copy {
    padding: 10px 20px;
    background: #48bb78;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 44px;
    transition: opacity 0.3s, transform 0.2s;
}

.modal-box .copy-link-box .btn-copy:active {
    transform: scale(0.95);
}

.agreement-content {
    max-height: 50vh;
    overflow-y: auto;
    text-align: left;
    font-size: 14px;
    line-height: 1.8;
    color: #444 !important;
    padding: 4px 0;
}

.agreement-content * {
    color: #444 !important;
}

.agreement-content h3 {
    font-size: 16px;
    color: #333 !important;
    margin: 16px 0 8px;
}

.agreement-content h3:first-child {
    margin-top: 0;
}

.agreement-content p {
    margin-bottom: 10px;
    text-indent: 2em;
    color: #444 !important;
}

.agreement-content ul {
    padding-left: 2em;
    margin-bottom: 10px;
}

.agreement-content ul li {
    margin-bottom: 4px;
    color: #444 !important;
}


/* ============================================================
   空状态
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #bbb;
    grid-column: 1 / -1;
}

.empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
}

.empty-state .empty-title {
    font-size: 20px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.empty-state .empty-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.empty-state .empty-btn {
    display: inline-block;
    padding: 10px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s, transform 0.2s;
    min-height: 44px;
    min-width: 44px;
}

.empty-state .empty-btn:hover {
    opacity: 0.85;
}

.empty-state .empty-btn:active {
    transform: scale(0.95);
}


/* ============================================================
   分页
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 16px 12px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    background: #fff;
    min-height: 36px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination a:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.pagination a:active {
    transform: scale(0.92);
}

.pagination .active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .pagination a,
    .pagination span {
        padding: 4px 10px;
        font-size: 12px;
        min-height: 32px;
        min-width: 32px;
    }
}


/* ============================================================
   通用工具类
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: #999; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }


/* ============================================================
   响应式通用
   ============================================================ */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 10px;
    }
    .section-title {
        font-size: 22px;
        margin: 30px 0 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 70px;
    }
    .section-title {
        font-size: 18px;
        margin: 20px 0 16px;
    }
    .section-title::after {
        width: 40px;
    }
}


/* ============================================================
   通用弹窗（自定义）
   ============================================================ */
.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.custom-modal-overlay.show {
    display: flex;
}

.custom-modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px 24px;
    width: 92%;
    max-width: 400px;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.custom-modal-box .modal-icon {
    text-align: center;
    font-size: 48px;
    margin-bottom: 12px;
}

.custom-modal-box .modal-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.custom-modal-box .modal-message {
    text-align: center;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.custom-modal-box .modal-actions {
    display: flex;
    gap: 10px;
}

.custom-modal-box .modal-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    transition: opacity 0.3s, transform 0.2s;
}

.custom-modal-box .modal-actions button:active {
    transform: scale(0.95);
}

.custom-modal-box .modal-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.custom-modal-box .modal-actions .btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.custom-modal-box .modal-actions .btn-danger {
    background: #f5576c;
    color: #fff;
}

.custom-modal-box .modal-actions .btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.custom-modal-box .modal-actions .btn-cancel {
    background: #f0f0f0;
    color: #666;
}