/* 小程序风格优化样式 - 超紧凑版本 */

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

/* 底部导航栏样式 */
.global-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 6px 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 0;
    font-size: 12px;
    text-align: center;
}

.bottom-nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.bottom-nav-item.active {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.bottom-nav-icon {
    font-size: 16px;
    margin-bottom: 2px;
}

.bottom-nav-item:hover .bottom-nav-icon {
    transform: scale(1.1);
}

.bottom-nav-item:active {
    transform: scale(0.98);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #FFF8DC 0%, #FFE4B5 50%, #FFDAB9 100%);
    margin: 0;
    padding: 0 0 70px 0; /* 为全站固定底部导航栏预留空间 */
    line-height: 1.3;
    font-size: 16px; /* 增大基础字号 */
}

/* 完全隐藏导航栏 */
.navbar {
    display: none !important; /* 完全隐藏导航栏 */
}

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

/* 主要内容区域 */
.main-content {
    padding: 0 0 8px 0; /* 只保留底部间距，去除顶部间距 */
}

/* 分数展示卡片 - 超紧凑版 */
.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;
}

/* 新的信息行布局 - 选科、省份、分数、位次一行显示 */
.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; /* 增大字号 */
    color: #999;
    margin-bottom: 1px;
}

.info-value {
    font-size: 16px; /* 增大字号 */
    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;
}

/* 居中的按钮区域 */
.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: #4A90E2;
}

.score-rank {
    font-size: 16px; /* 增大字号 */
    color: #666;
}

/* 统计网格 - 4列超紧凑布局 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 8px 0;
}

.stat-item {
    text-align: center;
    padding: 6px 2px;
}

.stat-number {
    font-size: 18px; /* 增大字号 */
    font-weight: bold;
    color: #333;
    display: block;
}

.stat-label {
    font-size: 14px; /* 增大字号 */
    color: #999;
    margin-top: 1px;
}

/* 主要操作按钮 - 紧凑版 */
.primary-action {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 10px 20px;
    font-size: 16px; /* 增大字号 */
    font-weight: 600;
    width: 100%;
    margin: 8px 0;
    box-shadow: 0 3px 12px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.primary-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(74, 144, 226, 0.4);
    color: white;
    text-decoration: none;
}

/* 功能网格 - 6x2布局 */
.function-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 10px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.function-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 12px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 1;
}

.function-item:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #333;
}

.function-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    font-size: 18px; /* 增大字号 */
    color: white;
}

.function-label {
    font-size: 13px; /* 调整字号 */
    text-align: center;
    line-height: 1.1;
}

/* 功能图标颜色 */
.icon-blue { background: linear-gradient(135deg, #4A90E2, #357ABD); }
.icon-green { background: linear-gradient(135deg, #5CB85C, #449D44); }
.icon-orange { background: linear-gradient(135deg, #F0AD4E, #EC971F); }
.icon-red { background: linear-gradient(135deg, #D9534F, #C9302C); }
.icon-purple { background: linear-gradient(135deg, #9B59B6, #8E44AD); }
.icon-teal { background: linear-gradient(135deg, #5BC0DE, #46B8DA); }
.icon-pink { background: linear-gradient(135deg, #E91E63, #C2185B); }
.icon-cyan { background: linear-gradient(135deg, #00BCD4, #0097A7); }

/* 动态AI推荐卡片容器 - 超紧凑版 */
.ai-recommendation-container {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin: 10px 0;
    padding: 14px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.3);
    min-height: 140px;
}

/* Canvas背景 */
.ai-background-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* 强制橙色渐变背景，覆盖默认蓝色 */
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%) !important;
}

/* 主AI内容区域 */
.ai-main-content {
    position: relative;
    z-index: 2;
    color: white;
}

.ai-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.ai-icon {
    font-size: 20px; /* 增大字号 */
    margin-right: 6px;
}

.ai-title {
    font-size: 18px; /* 增大字号 */
    font-weight: bold;
}

.ai-stats {
    margin: 8px 0;
}

.ai-main-number {
    font-size: 32px; /* 增大字号 */
    font-weight: bold;
    line-height: 1;
    margin-bottom: 2px;
    color: #FFD700 !important; /* 金黄色 */
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
}

.ai-main-number span {
    color: #FFD700 !important; /* 金黄色 */
}

.ai-unit {
    font-size: 18px; /* 增大字号 */
    font-weight: normal;
    margin-left: 2px;
}

.ai-subtitle {
    font-size: 16px; /* 增大字号 */
    opacity: 0.9;
}

/* AI动态按钮 */
.ai-action {
    margin-top: 10px;
}

.ai-start-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 16px; /* 增大字号 */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ai-start-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    font-size: 16px; /* 增大字号 */
    animation: sparkle 2s ease-in-out infinite;
}

.btn-arrow {
    font-size: 16px; /* 增大字号 */
    transition: transform 0.3s ease;
}

.ai-start-btn:hover .btn-arrow {
    transform: translateX(3px);
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* 右侧圆形统计 - 超紧凑版 */
.ai-side-stats {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.stat-circle-item {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.circle-progress {
    transform: rotate(-90deg);
    width: 60px;
    height: 60px;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 3;
    cx: 30;
    cy: 30;
    r: 22;
}

.circle-fill {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s ease-in-out;
    cx: 30;
    cy: 30;
    r: 22;
}

.circle-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.circle-icon {
    font-size: 16px; /* 增大字号 */
    font-weight: bold;
    margin-bottom: 1px;
}

.circle-number {
    font-size: 14px; /* 增大字号 */
    font-weight: 600;
}

/* AI推荐卡片组合 - 保留原有样式作为备用 */
.recommendation-section {
    margin: 10px 0;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6px;
}

.ai-card {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border-radius: 12px;
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.ai-count {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 2px;
}

/* AI卡片中的按钮样式 */
.ai-action-center {
    text-align: center;
    margin-top: 10px;
}

.ai-primary-action {
    background: rgba(255, 255, 255, 0.9);
    color: #4A90E2;
    border: none;
    border-radius: 16px;
    padding: 8px 16px;
    font-size: 16px; /* 增大字号 */
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ai-primary-action:hover {
    background: white;
    color: #357ABD;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.small-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.small-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px; /* 增大字号 */
}

.small-card-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px; /* 增大字号 */
    margin-right: 6px;
}

.small-card-text {
    flex: 1;
    font-weight: 600;
}

.small-card-number {
    font-weight: bold;
    color: #333;
}

/* 紧凑的表单样式 */
.form-control {
    border-radius: 10px !important;
    border: 1px solid #E5E5E5 !important;
    padding: 8px 12px !important;
    font-size: 16px !important; /* 增大字号 */
}

.btn {
    border-radius: 10px !important;
    padding: 6px 12px !important;
    font-size: 16px !important; /* 增大字号 */
    font-weight: 600 !important;
}

/* 卡片样式统一 */
.card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    margin-bottom: 8px !important;
}

.card-body {
    padding: 12px !important;
}

/* 移除多余的标题和间距 */
.section-title {
    display: none !important;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
}

/* 页脚优化 - 紧凑小程序风格 */
.footer {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
    margin-top: 12px !important;
    margin-bottom: 80px !important; /* 为底部导航栏预留空间 */
    padding: 8px 0 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
}

.footer .container {
    padding: 0 12px !important;
}

.footer .py-3 {
    padding: 6px 0 !important;
}

/* 友情链接样式优化 */
.friend-links {
    margin-bottom: 6px !important;
    font-size: 14px !important; /* 增大字号 */
    color: rgba(102, 102, 102, 0.8) !important;
}

.friend-links span {
    font-size: 14px !important; /* 增大字号 */
    color: rgba(102, 102, 102, 0.6) !important;
    margin-right: 6px !important;
}

.friend-links a {
    font-size: 14px !important; /* 增大字号 */
    color: rgba(74, 144, 226, 0.8) !important;
    text-decoration: none !important;
    margin-right: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.friend-links a:hover {
    color: #4A90E2 !important;
    transform: translateY(-1px) !important;
}

.friend-links a i {
    font-size: 12px !important; /* 增大字号 */
    margin-right: 3px !important;
    opacity: 0.7 !important;
}

/* 版权信息样式优化 */
.copyright {
    font-size: 12px !important; /* 增大字号 */
    color: rgba(102, 102, 102, 0.6) !important;
    margin: 0 !important;
    font-weight: 400 !important;
    letter-spacing: 0.2px !important;
}

/* 响应式优化 */
@media (max-width: 576px) {
    body {
        padding-bottom: 75px; /* 移动端稍微增加底部间距 */
    }
    
    /* 移动端导航栏字号优化 - 微信浏览器专用 */
    .navbar-nav .nav-link {
        font-size: 1.6rem !important;
    }
    .navbar-brand {
        font-size: 1.9rem !important;
    }
    
    /* 微信浏览器强制字号设置 */
    body .navbar .navbar-nav .nav-link {
        font-size: 1.6rem !important;
    }
    body .navbar .navbar-brand {
        font-size: 1.9rem !important;
    }
    
    .function-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .function-icon {
        width: 32px;
        height: 32px;
        font-size: 18px; /* 进一步增大字号 */
    }
    
    .function-label {
        font-size: 13px; /* 调整字号 */
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .recommendation-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-recommendation-container {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
        min-height: 160px;
    }
    
    .ai-side-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 6px;
    }
    
    .stat-circle-item {
        width: 50px;
        height: 50px;
    }
    
    .circle-progress {
        width: 50px;
        height: 50px;
    }
    
    .circle-bg, .circle-fill {
        cx: 25;
        cy: 25;
        r: 18;
    }
    
    .score-info-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .info-value {
        font-size: 16px; /* 进一步增大字号 */
    }
    
    .score-highlight {
        font-size: 18px !important; /* 进一步增大字号 */
    }
    
    .ai-main-number {
        font-size: 32px; /* 进一步增大字号 */
    }
    
    /* 移动端友情链接优化 */
    .friend-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 4px;
    }
    
    .friend-links a {
        margin-right: 6px !important;
        font-size: 14px !important; /* 进一步增大字号 */
    }
    
    .copyright {
        font-size: 12px !important; /* 进一步增大字号 */
        margin-top: 4px !important;
    }
}

/* 隐藏原有的浪费空间的元素 */
.mt-5, .py-5, .my-5 {
    margin: 6px 0 !important;
    padding: 6px 0 !important;
}

/* 消息提示紧凑化 */
.alert {
    border-radius: 10px !important;
    padding: 6px 10px !important;
    margin-bottom: 6px !important;
    font-size: 16px !important; /* 增大字号 */
} 
/* 确保页面容器透明，让背景色透出来 */
html, body, .container, .main-content, .row, .col, .col-12 {
    background-color: transparent !important;
}

/* 确保卡片保持白色背景 */
.card, .score-card, .function-item {
    background: rgba(255, 255, 255, 0.95) !important;
}
