/* 统一CSS文件 - 精简版 */

/* ===== CSS变量定义 ===== */
:root {
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --white: #ffffff;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== 全局基础样式 ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 0 0 70px 0;
    line-height: 1.3;
    font-size: 16px !important;
}

/* ===== 导航栏样式 ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1040 !important;
    position: relative !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 18px !important;
    color: var(--white) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 14px !important;
    transition: all 0.3s ease;
    border-radius: var(--radius);
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    color: var(--white) !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* 手机端导航栏字号优化 */
@media (max-width: 768px) {
    .navbar-nav .nav-link {
        font-size: 1.6rem !important;
    }
    .navbar-brand {
        font-size: 1.9rem !important;
    }
}

/* ===== 主要内容区域 ===== */
.main-content {
    background: transparent;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    margin: 0 0 2rem 0; /* 去除顶部margin，只保留底部 */
    min-height: calc(100vh - 200px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 0 8px 0; /* 去除顶部padding */
}

/* ===== 卡片样式 ===== */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.85);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border: none;
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

/* 分数展示卡片 */
.score-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 8px;
    margin: 0 0 6px 0; /* 去除顶部margin，只保留底部 */
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* ===== 购买卡密页面 - 会员卡颜色主题 ===== */
/* 基础会员 - 绿色主题 */
.card-basic {
    border-color: #28a745 !important;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(40, 167, 69, 0.1)) !important;
}

.card-basic.featured {
    border-color: #28a745 !important;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), rgba(40, 167, 69, 0.15)) !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2) !important;
}

/* VIP会员 - 紫色主题 */
.card-vip {
    border-color: #6f42c1 !important;
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.05), rgba(111, 66, 193, 0.1)) !important;
}

.card-vip.featured {
    border-color: #6f42c1 !important;
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.08), rgba(111, 66, 193, 0.15)) !important;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.2) !important;
}

/* 尊享会员 - 金色主题 */
.card-premium {
    border-color: #fd7e14 !important;
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.05), rgba(253, 126, 20, 0.1)) !important;
}

.card-premium.featured {
    border-color: #fd7e14 !important;
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.08), rgba(253, 126, 20, 0.15)) !important;
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.2) !important;
}

/* 不同会员卡类型的价格颜色 */
.card-basic .current-price {
    color: #28a745 !important;
}

.card-vip .current-price {
    color: #6f42c1 !important;
}

.card-premium .current-price {
    color: #fd7e14 !important;
}

/* 不同会员卡类型的按钮颜色 */
.card-basic .select-card-btn {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border-color: #28a745 !important;
}

.card-basic .select-card-btn:hover {
    background: linear-gradient(135deg, #218838, #1ea085) !important;
    border-color: #1e7e34 !important;
}

.card-vip .select-card-btn {
    background: linear-gradient(135deg, #6f42c1, #8e44ad) !important;
    border-color: #6f42c1 !important;
}

.card-vip .select-card-btn:hover {
    background: linear-gradient(135deg, #5a32a3, #7d3c98) !important;
    border-color: #5a32a3 !important;
}

.card-premium .select-card-btn {
    background: linear-gradient(135deg, #fd7e14, #f39c12) !important;
    border-color: #fd7e14 !important;
}

.card-premium .select-card-btn:hover {
    background: linear-gradient(135deg, #e55a00, #d68910) !important;
    border-color: #e55a00 !important;
}

/* ===== 按钮样式 ===== */
.btn {
    border-radius: var(--radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: box-shadow 0.2s, transform 0.2s;
}

.btn-primary:hover, .btn-lg.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(37,99,235,0.16);
    transform: translateY(-2px) scale(1.03);
}

/* ===== 表单样式 ===== */
.form-control {
    border-radius: 1rem !important;
    border: 1px solid #e0e7ff !important;
    box-shadow: none !important;
    transition: border-color 0.2s;
    font-size: 14px !important;
}

.form-control:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px #dbeafe !important;
}

.form-label {
    font-size: 14px !important;
}

.form-check-label {
    font-size: 14px !important;
}

/* ===== 首页信息行布局 ===== */
.score-info-row {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1.3fr;
    gap: 6px;
    margin-bottom: 6px;
    padding: 4px 0;
}

.info-item {
    text-align: center;
    padding: 1px;
}

.info-label {
    font-size: 14px !important;
    color: #999;
    margin-bottom: 1px;
}

.info-value {
    font-size: 16px !important;
    font-weight: 600;
    color: #333;
}

.score-highlight {
    color: #4A90E2 !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

.rank-highlight {
    color: #E74C3C !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

/* ===== 首页用户信息卡片字号优化 ===== */
.score-card .info-label {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: #666 !important;
    margin-bottom: 0.3rem !important;
}

.score-card .info-value {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.4 !important;
}

.score-card .score-highlight {
    font-size: 1.2rem !important;
    color: #2563eb !important;
    font-weight: 700 !important;
}

.score-card .rank-highlight {
    font-size: 1.2rem !important;
    color: #e53935 !important;
    font-weight: 700 !important;
}

/* ===== 功能标签 ===== */
.function-label {
    font-size: 13px !important;
}

/* ===== 首页模块字号设置 ===== */
.stat-number {
    font-size: 1.8rem !important;
}

.stat-label {
    font-size: 1rem !important;
}

.small-card-text {
    font-size: 0.95rem !important;
}

.news-title, .news-list a {
    font-size: 1.1rem !important;
}

.news-date, .text-muted.small {
    font-size: 0.9rem !important;
}

.alert {
    font-size: 1.1rem !important;
}

/* ===== 个人中心页面字号设置 ===== */
.user-name {
    font-size: 18px !important;
}

.user-subtitle {
    font-size: 14px !important;
}

.member-status .status-badge {
    font-size: 14px !important;
}

.stat-item-small .stat-number {
    font-size: 16px !important;
}

.stat-item-small .stat-label {
    font-size: 12px !important;
}

.animated-title {
    font-size: 16px !important;
}

.info-display-label {
    font-size: 14px !important;
}

.info-display-value {
    font-size: 14px !important;
}

.function-label-small {
    font-size: 12px !important;
}

.security-label {
    font-size: 14px !important;
}

.security-status {
    font-size: 14px !important;
}

.security-time, .security-expire {
    font-size: 12px !important;
}

/* ===== 公告卡片样式 ===== */
.announcement-card {
    background-color: white !important;
    border: 1px solid #e9ecef !important;
    color: #2c3e50 !important;
}

/* ===== 响应式优化 ===== */
@media (max-width: 768px) {
    .home-banner {
        padding: 2rem 0 1.2rem 0;
        border-radius: 0 0 1.2rem 1.2rem;
    }
    .card {
        padding: 1rem 0.5rem 1rem 0.5rem;
        border-radius: 1rem !important;
    }
}

/* ===== 容器紧凑化 ===== */
.container {
    padding: 0 8px !important;
    max-width: 100% !important;
}

/* ===== 居中的按钮区域 ===== */
.action-center {
    text-align: center;
    margin: 10px 0;
}

.action-center .primary-action {
    display: inline-block;
    width: auto;
    min-width: 160px;
    max-width: 220px;
}

.score-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.score-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.score-unit {
    font-size: 14px;
    color: #666;
}

/* ===== 购买卡密页面 - 会员卡颜色主题覆盖 ===== */
/* 基础会员 - 绿色主题 */
.card-basic .card-radio:checked + .card-radio-label {
    border-color: #28a745 !important;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(40, 167, 69, 0.1)) !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2) !important;
}

.card-basic .card-radio-label::after {
    background: #28a745 !important;
}

.card-basic .card-radio:checked + .card-radio-label::before {
    border-color: #28a745 !important;
}

.card-basic .current-price {
    color: #28a745 !important;
}

/* VIP会员 - 紫色主题 */
.card-vip .card-radio:checked + .card-radio-label {
    border-color: #6f42c1 !important;
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.05), rgba(111, 66, 193, 0.1)) !important;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.2) !important;
}

.card-vip .card-radio-label::after {
    background: #6f42c1 !important;
}

.card-vip .card-radio:checked + .card-radio-label::before {
    border-color: #6f42c1 !important;
}

.card-vip .current-price {
    color: #6f42c1 !important;
}

/* 尊享会员 - 金色主题 */
.card-premium .card-radio:checked + .card-radio-label {
    border-color: #fd7e14 !important;
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.05), rgba(253, 126, 20, 0.1)) !important;
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.2) !important;
}

.card-premium .card-radio-label::after {
    background: #fd7e14 !important;
}

.card-premium .card-radio:checked + .card-radio-label::before {
    border-color: #fd7e14 !important;
}

.card-premium .current-price {
    color: #fd7e14 !important;
}