/* blue-theme.css - 原始蓝色系主题 */

/* 主题切换器样式 */
.theme-switcher-container {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    align-items: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
}

.theme-switcher-container label {
    margin-right: 8px;
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

#theme-selector {
    padding: 6px 10px;
    border: none;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

#theme-selector:hover {
    background-color: white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .theme-switcher-container {
        position: static;
        justify-content: flex-end;
        margin-bottom: 10px;
        background: none;
    }
    
    .theme-switcher-container label {
        color: #333;
    }
    
    #theme-selector {
        background-color: white;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
    transition: all 0.3s ease;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    color: #333;
    min-height: 100vh;
    padding: 15px;
    transform-origin: top center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    padding: 20px;
    position: relative;
}

header {
    text-align: center;
    padding: 15px 0;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #1a237e, #4a148c);
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, 
                 rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
    z-index: 0;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.query-section, .batch-section, .result-section {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.query-section:hover, .batch-section:hover, .result-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.chart-section {
    flex: 100%;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.chart-section.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
}

h2 i {
    margin-right: 10px;
    color: #3498db;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

label i {
    margin-right: 8px;
    color: #3498db;
}

select, input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: #f8f9fa;
}

select:focus, input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: white;
}

button {
    background: linear-gradient(90deg, #3498db, #2c3e50);
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 1.05rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20px;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(25deg);
    transition: all 0.6s;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(90deg, #2980b9, #1a252f);
}

button:hover::after {
    left: 120%;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.result-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #3498db;
    opacity: 0.7;
}

.result-card h3 {
    color: #2c3e50;
    font-size: 0.8rem;
    font-weight: 600;
}

.result-card p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 6px;
}

.diff-positive {
    color: #27ae60;
}

.diff-negative {
    color: #e74c3c;
}

.ratio-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.ratio-safe {
    background-color: #27ae60;
}

.ratio-warning {
    background-color: #f1c40f;
}

.ratio-danger {
    background-color: #e74c3c;
}

.chart-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.chart-tab {
    flex: 1;
    min-width: 160px;
    max-width: 220px;
    padding: 14px 10px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid #e0e0e0;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.chart-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #3498db;
    opacity: 0;
    transition: opacity 0.3s;
}

.chart-tab:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.chart-tab:hover::before {
    opacity: 1;
}

.chart-tab.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

.chart-tab.active::before {
    opacity: 1;
    background: white;
}

.chart-tab i {
    font-size: 28px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.chart-tab.active i {
    transform: scale(1.1);
    color: white;
}

.chart-tab span {
    transition: all 0.3s;
}

.chart-container {
    height: 420px;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
    border: 1px solid #eaeaea;
}

#loader {
    display: none;
    text-align: center;
    padding: 15px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 100;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
}

.loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#errorMessage {
    display: none;
    background: #e74c3c;
    color: white;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95rem;
}

.batch-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.special-batch {
    background-color: #2ecc71;
}

.undergraduate-batch {
    background-color: #3498db;
}

.college-batch {
    background-color: #f1c40f;
}

.below-college {
    background-color: #95a5a6;
}

.footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    color: #95a5a6;
    font-size: 0.85rem;
    border-top: 1px solid #eee;
}

.batch-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    font-size: 0.95rem;
}

.batch-table th {
    background-color: #3498db;
    color: white;
    padding: 10px 12px;
    text-align: left;
    font-weight: bold;
}

.batch-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.batch-table tr:nth-child(odd) {
    background-color: #ffffff;
}

.batch-table tr:hover {
    background-color: #e9f7fe;
}

.batch-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e1e1e1;
}

.batch-table .batch-name {
    font-weight: bold;
    color: #2c3e50;
}

.batch-table .batch-score {
    color: #e74c3c;
    font-weight: bold;
}

.batch-table .batch-rank {
    color: #27ae60;
    font-weight: bold;
}

.viewport-controls {
    position: fixed;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 6px;
    z-index: 1000;
}

.viewport-btn {
    background: rgba(52, 152, 219, 0.8);
    color: white;
    border: none;
    width: 24px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.viewport-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.zoom-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.zoom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    min-height: 90px;
}

.zoom-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #2980b9, #1a5276);
}

.zoom-btn i {
    font-size: 24px;
    margin-bottom: 10px;
}

.zoom-btn span {
    font-size: 0.95rem;
    text-align: center;
}

.user-guide {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 12px 15px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.user-guide i {
    color: #2196f3;
    font-size: 1.2rem;
    margin-right: 10px;
}

.result-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.result-section.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.chart-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.chart-section.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .result-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 12px;
        padding: 15px;
    }
    
    header {
        padding: 12px 0;
        margin-bottom: 15px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .main-content {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .query-section, .batch-section, .result-section {
        padding: 15px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .result-card p {
        font-size: 1.2rem;
    }
    
    .chart-container {
        height: 350px;
    }
    
    .zoom-controls {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .zoom-btn {
        padding: 12px 8px;
        min-height: 85px;
    }
    
    .zoom-btn i {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .chart-tab {
        min-width: 140px;
        padding: 12px 8px;
    }
    
    .chart-tab i {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 8px;
    }
    
    .container {
        border-radius: 10px;
        padding: 12px;
    }
    
    header {
        padding: 10px 0;
        margin-bottom: 12px;
    }
    
    header h1 {
        font-size: 1.6rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .main-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .query-section, .batch-section, .result-section {
        min-width: 100%;
        padding: 15px;
    }
    
    h2 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    select, input {
        padding: 9px;
        font-size: 0.9rem;
    }
    
    button {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .result-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .result-card {
        padding: 12px;
    }
    
    .result-card h3 {
        font-size: 0.95rem;
    }
    
    .result-card p {
        font-size: 1.1rem;
    }
    
    .chart-section {
        padding: 15px;
        margin-top: 12px;
    }
    
    .chart-tabs {
        gap: 10px;
    }
    
    .chart-tab {
        min-width: 120px;
        padding: 10px 6px;
        font-size: 0.9rem;
    }
    
    .chart-tab i {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .batch-table {
        font-size: 0.9rem;
    }
    
    .batch-table th,
    .batch-table td {
        padding: 8px 10px;
    }
    
    .footer {
        font-size: 0.8rem;
    }
    
    .zoom-controls {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    #resetZoomBtn {
        grid-column: span 2;
    }
    
    .zoom-btn {
        padding: 15px 10px;
        min-height: 80px;
    }
    
    .zoom-btn i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        padding: 10px;
        border-radius: 8px;
    }
    
    header h1 {
        font-size: 1.4rem;
    }
    
    header p {
        font-size: 0.9rem;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    .viewport-controls {
        bottom: 10px;
        right: 10px;
    }
    
    .viewport-btn {
        width: 25px;
        height: 15px;
        font-size: 1.2rem;
    }
    
    .chart-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .chart-tab {
        width: 100%;
        max-width: 280px;
        margin-bottom: 8px;
    }
    
    .zoom-controls {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    #resetZoomBtn {
        grid-column: span 1;
    }
    
    .zoom-btn {
        padding: 12px;
        min-height: 75px;
    }
    
    .zoom-btn i {
        font-size: 18px;
    }
}

/*使用说明

蓝色系主题 (blue-theme.css)
主色调：蓝色 (#3498db)
渐变背景：深蓝色到红色渐变
适合：专业、科技感强的应用

绿色系主题 (green-theme.css)
主色调：绿色 (#27ae60)
渐变背景：深绿色到浅绿色渐变
适合：教育、环保、健康类应用

红色系主题 (red-theme.css)
主色调：红色 (#e74c3c)
渐变背景：深红色到亮红色渐变
适合：紧急、警告、高能见度需求的应用

每个文件都是完整的，包含了所有必要的样式和媒体查询，可以直接链接到HTML文件中使用。您可以通过切换CSS文件来改变整个应用的视觉风格。
*/