/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: radial-gradient(circle at 10% 30%, #e0f2fe, #f0f9ff 70%, #ffffff);
    color: #0f172a;
    line-height: 1.6;
}
a {
    color: #2563eb;
    text-decoration: none;
    transition: 0.2s;
}
a:hover {
    color: #1d4ed8;
    text-decoration: none;
}

/* ========== 容器 ========== */
.container {
    width: 100%;
    padding: 0 30px;
    max-width: 100%;
}

@media (min-width: 1400px) {
    .container {
        padding: 0 60px;
    }
}

/* ========== 顶部导航（毛玻璃） ========== */
header {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0,0,0,0.04);
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.brand {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}
.brand .icp {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    -webkit-text-fill-color: #64748b;
    background: none;
    margin-left: 14px;
}
nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
nav a, nav .user-info {
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 500;
    transition: 0.2s;
    color: #1e293b;
}
nav a:hover {
    background: rgba(37,99,235,0.12);
    color: #2563eb;
}
nav .user-info {
    background: rgba(37,99,235,0.15);
    color: #1e40af;
    font-weight: 600;
}
nav a.btn-primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
nav a.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,99,235,0.4);
}

/* ========== 主内容 ========== */
main {
    flex: 1;
    padding: 40px 0 60px;
}

/* ========== 首页双栏全屏 ========== */
.index-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}
@media (max-width: 900px) {
    .index-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.section {
    background: rgba(255, 255, 255, 0.60);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 28px;
    padding: 32px 28px;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 8px 32px rgba(0,0,0,0.04);
    transition: 0.3s;
}
.section:hover {
    box-shadow: 0 12px 48px rgba(0,0,0,0.08);
}
.section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(37,99,235,0.15);
    padding-bottom: 14px;
}
.section h2 a {
    font-size: 15px;
    font-weight: 500;
    color: #2563eb;
}
.section .items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.section .item {
    background: rgba(255,255,255,0.7);
    border-radius: 16px;
    padding: 18px 22px;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}
.section .item:hover {
    background: #ffffff;
    border-color: #dbe7fe;
    transform: translateX(6px) scale(1.01);
    box-shadow: 0 8px 24px rgba(37,99,235,0.08);
}
.section .item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}
.section .item h3 a {
    color: #0f172a;
}
.section .item h3 a:hover {
    color: #2563eb;
}
.section .item p {
    font-size: 14px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.section .item .category-tag {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 2px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}
.section .item .price-tag {
    background: #f1f5f9;
    padding: 2px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

/* ========== 列表页（网格全屏） ========== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 20px;
}
.items-grid .item {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(4px);
    border-radius: 24px;
    padding: 24px 26px;
    border: 1px solid rgba(255,255,255,0.6);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.items-grid .item:hover {
    transform: translateY(-8px);
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(37,99,235,0.12);
    border-color: #dbe7fe;
}
.items-grid .item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}
.items-grid .item h3 a {
    color: #0f172a;
}
.items-grid .item p {
    font-size: 15px;
    color: #475569;
    margin: 6px 0;
}

/* ========== 详情页 ========== */
.detail-meta {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(6px);
    border-radius: 24px;
    padding: 28px 32px;
    margin: 20px 0 30px;
    border-left: 6px solid #2563eb;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.detail-meta p {
    margin: 8px 0;
    font-size: 17px;
}
.detail-meta strong {
    color: #0f172a;
    font-weight: 600;
}
.detail-content {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.4);
}
.detail-content h3 {
    font-size: 22px;
    margin-bottom: 16px;
}
.detail-content p {
    font-size: 16px;
    line-height: 1.8;
}

/* ========== 商品详情 ========== */
.product-detail {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(6px);
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.04);
}
.product-detail .product-info p {
    font-size: 17px;
    margin: 10px 0;
}
.product-detail .product-info ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
}
.product-detail .product-info ul li {
    background: rgba(37,99,235,0.08);
    padding: 6px 20px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 500;
}
.product-detail .description {
    background: rgba(255,255,255,0.5);
    padding: 24px;
    border-radius: 20px;
    margin-top: 20px;
    line-height: 1.9;
    font-size: 16px;
}

/* ========== 表单 ========== */
form label {
    display: block;
    margin-top: 18px;
    font-weight: 600;
    font-size: 15px;
}
form input, form select, form textarea {
    width: 100%;
    max-width: 560px;
    padding: 12px 18px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    font-size: 15px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    transition: 0.25s;
}
form input:focus, form select:focus, form textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
    background: #fff;
}
form button {
    margin-top: 24px;
    padding: 14px 40px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 60px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(37,99,235,0.25);
}
form button:hover {
    background: #1d4ed8;
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(37,99,235,0.35);
}
.error, .success {
    padding: 14px 22px;
    border-radius: 16px;
    font-weight: 500;
    margin: 12px 0;
}
.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}
.success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #22c55e;
}

/* ========== 底部 ========== */
footer {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.3);
    padding: 24px 0;
    text-align: center;
    color: #475569;
    font-size: 15px;
    margin-top: auto;
}

/* ========== 辅助 ========== */
.text-muted { color: #64748b; }
.mt-3 { margin-top: 30px; }
.mb-3 { margin-bottom: 30px; }

/* ========== 下拉菜单 ========== */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown .dropbtn {
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.dropdown .dropbtn:hover {
    background: rgba(37,99,235,0.12);
    color: #2563eb;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 160px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-radius: 16px;
    padding: 8px 0;
    border: 1px solid rgba(255,255,255,0.3);
    z-index: 999;
}
.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #1e293b;
    font-weight: 500;
    transition: 0.15s;
    border-radius: 0;
}
.dropdown-content a:hover {
    background: #f1f5f9;
    color: #2563eb;
    text-decoration: none;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown:hover .dropbtn {
    background: rgba(37,99,235,0.12);
    color: #2563eb;
}
/* ===== 充值按钮 ===== */
.btn-recharge {
    background: #f59e0b;
    color: #fff;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(245,158,11,0.3);
    transition: 0.3s;
}
.btn-recharge:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245,158,11,0.4);
    color: #fff;
}
/* ===== 登录 / 注册 专用样式 ===== */
.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}
.auth-page h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-page .subtitle {
    color: #64748b;
    margin-bottom: 28px;
    font-size: 16px;
}
.auth-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 40px 36px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.4);
}
.auth-card form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-top: 18px;
    color: #0f172a;
}
.auth-card form input {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    background: rgba(255,255,255,0.8);
    font-size: 15px;
    transition: 0.25s;
    box-sizing: border-box;
}
.auth-card form input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
    background: #fff;
}
.auth-card form button {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 60px;
    font-size: 17px;
    font-weight: 600;
    margin-top: 28px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(37,99,235,0.25);
}
.auth-card form button:hover {
    background: #1d4ed8;
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(37,99,235,0.35);
}
.auth-card .extra-links {
    margin-top: 20px;
    text-align: center;
    font-size: 15px;
}
.auth-card .extra-links a {
    color: #2563eb;
    font-weight: 500;
}
.auth-card .extra-links a:hover {
    text-decoration: underline;
}
.auth-card .error {
    margin-bottom: 16px;
}
.auth-card .success {
    margin-bottom: 16px;
}