/* assets/css/common.css */
/* Turnitin AIGC 检测与降重平台 - 公共样式 */

:root {
    --primary: #4F46E5;
    --primary-light: #6366F1;
    --primary-dark: #4338CA;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #06B6D4;
    --bg: #F1F5F9;
    --card-bg: #FFFFFF;
    --text: #0F172A;
    --text-light: #64748B;
    --border: #E2E8F0;
    --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-lg: 0 10px 30px -5px rgba(0,0,0,0.08), 0 4px 10px -5px rgba(0,0,0,0.02);
    --radius: 16px;
    --radius-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: url('/assets/images/index-bg.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-dark); }

/* 布局 */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    position: relative;
    padding-bottom: 70px;
}

/* 顶部导航 */
.top-nav {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}
.top-nav h1 { font-size: 18px; font-weight: 700; letter-spacing: 0.3px; }
.top-nav .user-info { font-size: 14px; opacity: 0.9; font-weight: 500; }

/* 底部Tab栏 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 480px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-sizing: border-box;
}
.tab-item {
    flex: 1;
    text-align: center;
    padding: 8px 2px 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tab-item.active { color: var(--primary); }
.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.tab-item .tab-icon { font-size: 22px; display: block; margin-bottom: 2px; }

/* 卡片 */
.card {
    background: rgba(255,255,255,0.92);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 16px;
    padding: 22px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79,70,229,0.4);
}
.btn-primary:disabled { background: #C7D2FE; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-success { background: linear-gradient(135deg, var(--success) 0%, #059669 100%); color: #fff; box-shadow: 0 4px 14px rgba(16,185,129,0.25); }
.btn-warning { background: var(--warning); color: #1F2937; }
.btn-danger { background: linear-gradient(135deg, var(--danger) 0%, #DC2626 100%); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 16px; font-size: 12px; }

/* 表单 */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.2s;
    background: #fff;
    color: var(--text);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* 文件上传区 */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #FAFBFC, #F8FAFC);
    max-width: 100%;
    box-sizing: border-box;
}
.upload-area:hover { border-color: var(--primary); background: linear-gradient(135deg, #F0F3FF, #EEF2FF); }
.upload-area.dragover { border-color: var(--primary); background: #EEF2FF; }
.upload-area .upload-icon { font-size: 44px; color: var(--primary); margin-bottom: 8px; }
.upload-area p { color: var(--text-light); font-size: 13px; }

/* 状态标签 */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-waiting { background: #FEF3C7; color: #92400E; }
.badge-processing { background: #DBEAFE; color: #1E40AF; }
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-fail { background: #FEE2E2; color: #991B1B; }

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 列表项 */
.list-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s;
}
.list-item:last-child { border-bottom: none; }

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.modal h3 { margin-bottom: 16px; font-size: 18px; font-weight: 700; }
.modal img { max-width: 200px; margin: 12px auto; border-radius: var(--radius-sm); }

/* 登录弹窗 */
.login-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(4px);
    z-index: 400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-modal-overlay.show { display: flex; }
.login-modal {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: loginSlideIn 0.25s ease;
}
@keyframes loginSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.login-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: #F1F5F9;
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.login-modal-close:hover { background: #E2E8F0; color: var(--text); }
.login-modal-header {
    text-align: center;
    margin-bottom: 20px;
}
.login-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}
.login-modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}
.login-modal-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.login-modal-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.login-modal-tab:hover { color: var(--primary); }
.login-modal-form .form-group { margin-bottom: 16px; }
.login-modal-form .form-group:last-child { margin-bottom: 0; }
.login-modal-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-light);
}
.login-modal-switch a { font-weight: 500; }

/* Toast 提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15,23,42,0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    z-index: 500;
    display: none;
    box-shadow: var(--shadow-lg);
}
.toast.show { display: block; }

/* 余额信息栏 */
.balance-bar {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 12px;
}
.balance-item { flex: 1; }
.balance-item .balance-value { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.balance-item .balance-label { font-size: 12px; color: var(--text-light); margin-top: 4px; font-weight: 500; }

/* 模式选择 */
.mode-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.mode-tab {
    flex: 1;
    padding: 12px 8px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}
.mode-tab:hover { border-color: #C7D2FE; }
.mode-tab.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(79,70,229,0.1);
}
.mode-tab .mode-name { font-weight: 700; font-size: 14px; }
.mode-tab .mode-desc { font-size: 12px; color: var(--text-light); margin-top: 4px; font-weight: 500; }

/* 充值套餐 */
.pkg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pkg-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
}
.pkg-card.active, .pkg-card:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #F5F7FF, #FAFBFF);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79,70,229,0.12);
}
.pkg-card .pkg-price { font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.pkg-card .pkg-price small { font-size: 14px; font-weight: 600; }
.pkg-card .pkg-name { font-size: 14px; font-weight: 600; margin-top: 6px; color: var(--text); }
.pkg-card .pkg-value { font-size: 12px; color: var(--text-light); margin-top: 4px; font-weight: 500; }

/* 商品卡片 */
.goods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.goods-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.04);
}
.goods-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.goods-card img { width: 100%; height: 140px; object-fit: cover; transition: transform 0.3s ease; }
.goods-card:hover img { transform: scale(1.05); }
.goods-card .goods-title { padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--text); }

/* 隐藏 */
.hidden { display: none !important; }

/* 加载动画 */
.loading { text-align: center; padding: 40px; color: var(--text-light); }
.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 字数统计 */
.word-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
    font-weight: 500;
}

/* 扫码领取区 */
.qr-claim {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: var(--radius-sm);
    padding: 18px;
    text-align: center;
}
.qr-claim h4 { color: #92400E; margin-bottom: 10px; font-weight: 700; }

.explain-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* 默认隐藏侧边栏用户面板（手机端） */
.sidebar-user-panel {
    display: none;
}

/* ================= PC 端响应式适配 ================= */
@media (min-width: 768px) {
    .explain-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    /* 布局 */
    .app-container {
        width: calc(100% - 220px);
        max-width: 1260px;
        margin-left: calc(max(0px, (100vw - 1480px) / 2) + 220px);
        margin-right: calc(max(0px, (100vw - 1480px) / 2));
        padding-bottom: 0;
        background: #F8FAFC;
        backdrop-filter: none;
        box-shadow: -20px 0 60px rgba(0,0,0,0.04), 20px 0 60px rgba(0,0,0,0.04);
    }

    /* 底部Tab → 左侧侧边导航 */
    .tab-bar {
        position: fixed;
        left: max(0px, calc((100vw - 1480px) / 2));
        top: 0;
        bottom: 0;
        right: auto;
        width: 220px;
        max-width: none;
        transform: none;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
        border-top: none;
        border-right: 1px solid #E2E8F0;
        background: #fff;
        box-shadow: 2px 0 30px rgba(0,0,0,0.06);
        margin: 0;
    }

    .tab-bar::before {
        content: '🔍 Turnitin AIGC';
        display: block;
        padding: 20px;
        font-size: 16px;
        font-weight: 700;
        color: var(--text);
        border-bottom: 1px solid #E2E8F0;
    }

    .tab-item {
        flex: none;
        padding: 10px 20px;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        border-radius: 0;
        color: #64748B;
        font-weight: 500;
        border-left: 3px solid transparent;
        margin: 0;
        transition: all 0.15s;
    }

    .tab-item.active {
        background: #EFF6FF;
        border-left-color: var(--primary);
        color: var(--primary);
    }
    .tab-item:hover {
        background: #F8FAFC;
        color: var(--text);
    }

    /* 侧边栏用户面板 */
    .sidebar-user-panel {
        display: block;
        margin-top: auto;
        padding: 16px;
        border-top: 1px solid #E2E8F0;
        background: #F8FAFC;
    }
    .sidebar-user-email {
        font-size: 12px;
        color: var(--text-light);
        margin-bottom: 10px;
        word-break: break-all;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .sidebar-user-stats {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 10px;
    }
    .sidebar-user-stat {
        display: flex;
        flex-direction: column;
        background: #fff;
        border-radius: 6px;
        padding: 8px 10px;
        border: 1px solid #E2E8F0;
    }
    .sidebar-user-stat .stat-label {
        font-size: 11px;
        color: var(--text-light);
        line-height: 1.2;
    }
    .sidebar-user-stat .stat-value {
        font-size: 15px;
        font-weight: 700;
        color: var(--primary);
        line-height: 1.4;
        margin-top: 2px;
    }
    .sidebar-user-stat .stat-expire {
        font-size: 10px;
        color: var(--warning);
        margin-top: 2px;
        line-height: 1.2;
    }
    .sidebar-user-actions {
        display: flex;
        gap: 8px;
        margin-bottom: 10px;
    }
    .sidebar-user-actions button {
        flex: 1;
        padding: 6px 0;
        font-size: 12px;
        border: 1px solid #E2E8F0;
        border-radius: 6px;
        background: #fff;
        color: var(--text-light);
        cursor: pointer;
        transition: all 0.15s;
    }
    .sidebar-user-actions button:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: #EFF6FF;
    }
    .sidebar-logout-btn {
        width: 100%;
        padding: 8px 0;
        font-size: 13px;
        border: none;
        border-radius: 6px;
        background: var(--danger);
        color: #fff;
        cursor: pointer;
        transition: all 0.15s;
    }
    .sidebar-logout-btn:hover {
        background: #DC2626;
    }

    .tab-item .tab-icon {
        font-size: 18px;
        margin-bottom: 0;
        display: inline;
    }

    .tab-item.logout-item,
    .tab-item.login-item {
        margin: auto 0 0 0;
        border-top: 1px solid #E2E8F0;
        border-radius: 0;
        padding: 12px 20px;
        color: #64748B;
    }
    .tab-item.login-item { color: var(--primary); }
    .tab-item.logout-item { color: #EF4444; }

    /* 顶部导航 */
    .top-nav {
        background: #fff;
        color: var(--text);
        margin: 0;
        border-radius: 0;
        padding: 14px 32px;
        box-shadow: none;
        border-bottom: 1px solid #E2E8F0;
        position: relative;
        backdrop-filter: none;
        min-height: 52px;
    }

    .top-nav h1 { font-size: 18px; font-weight: 600; letter-spacing: 0; color: inherit; }
    .top-nav .user-info { color: var(--text-light); font-size: 14px; opacity: 1; }
    .top-nav #user-action-btn {
        display: inline-block;
        padding: 4px 14px !important;
        border-radius: 4px !important;
        background: var(--primary) !important;
        color: #fff !important;
        font-size: 13px !important;
        font-weight: 500;
        opacity: 1 !important;
        margin-left: 12px !important;
        border: none;
        cursor: pointer;
        transition: background 0.15s;
    }
    .top-nav #user-action-btn:hover {
        background: var(--primary-dark) !important;
    }

    /* PC 布局辅助类 */
    .pc-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0;
        align-items: stretch;
    }
    .pc-layout-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
    .pc-layout-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
    .pc-layout-3-1 { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
    .pc-layout > .card {
        margin: 16px 8px;
        min-width: 0;
        overflow: hidden;
    }
    .pc-layout > .card:first-child { margin-left: 24px; }
    .pc-layout > .card:last-child { margin-right: 24px; }

    /* 卡片 */
    .card {
        margin: 16px 24px;
        padding: 24px;
        border-radius: 8px;
        box-shadow: none;
        border: 1px solid #E5E7EB;
    }
    .card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    }
    .card-title {
        padding-bottom: 12px;
        border-bottom: 1px solid #E5E7EB;
        margin-bottom: 20px;
    }

    /* 网格布局 */
    .pkg-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .goods-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .goods-card img { height: 170px; }

    /* 余额栏 */
    .balance-bar {
        padding: 16px 24px;
        border-radius: 8px;
        background: #F8FAFC;
        border: none;
    }

    /* 扫码领取 */
    .qr-claim {
        background: #FFFBEB;
        border: 1px solid #FDE68A;
        border-radius: 8px;
        margin-top: 16px;
    }
    .qr-claim h4 { color: #92400E; }

    .balance-item .balance-value { font-size: 18px; font-weight: 700; }
    .balance-item .balance-label { font-size: 12px; margin-top: 6px; }

    /* 按钮 */
    .btn { padding: 10px 24px; font-size: 14px; border-radius: 6px; }
    .btn-primary {
        background: var(--primary);
        box-shadow: none;
    }
    .btn-primary:hover {
        background: var(--primary-dark);
        transform: none;
        box-shadow: none;
    }
    .btn-success {
        background: var(--success);
        box-shadow: none;
    }
    .btn-danger {
        background: var(--danger);
        box-shadow: none;
    }

    /* 表单 */
    .form-input, .form-textarea, .form-select {
        padding: 12px 16px;
        font-size: 15px;
    }

    /* 上传区 */
    .upload-area { padding: 48px 32px; border-radius: 8px; }

    /* 模式选择 */
    .mode-tab { border-radius: 8px; }
    .mode-tab.active { box-shadow: none; }

    /* 商品卡片 */
    .goods-card { border-radius: 8px; }

    /* 弹窗 */
    .modal {
        max-width: 520px;
        padding: 32px;
        border-radius: 8px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    }

    /* 列表 */
    .list-item {
        padding: 18px 12px;
        margin: 0 -12px;
        border-radius: 8px;
        transition: background 0.15s;
    }
    .list-item:hover {
        background: #F1F5F9;
    }

    /* 套餐 */
    .pkg-card { padding: 20px 16px; }
    .pkg-card .pkg-price { font-size: 26px; }
}

/* 小PC/平板优化 */
@media (min-width: 768px) and (max-width: 1023px) {
    .tab-bar {
        width: 220px;
    }
    .app-container {
        width: calc(100% - 220px);
        margin-left: 220px;
        background: #F8FAFC;
        backdrop-filter: none;
    }
    .pkg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .goods-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 更大屏幕优化 */
@media (min-width: 1200px) {
    .pkg-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .goods-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ================= 登录页样式 ================= */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
    color: #fff;
}

.login-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.login-header p {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

.login-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 24px;
    width: 100%;
    max-width: 400px;
}

.login-card h3 {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.login-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.login-switch a {
    font-weight: 500;
}

/* PC 端登录页 */
@media (min-width: 768px) {
    .login-wrapper {
        padding: 60px 24px;
    }

    .login-card {
        padding: 36px 32px;
        max-width: 440px;
    }

    .login-card h3 {
        font-size: 20px;
    }
}
