/* 政府网站风格 - 中考成绩查询系统 */

/* 基础变量定义 */
:root {
    /* 政府标准色彩 */
    --gov-red: #C8102E;
    --gov-blue: #003399;
    --gov-gold: #FFD700;
    --gov-dark-blue: #002266;
    --gov-light-blue: #E6F3FF;
    
    /* 中性色彩 */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* 状态色彩 */
    --success: #059669;
    --warning: #D97706;
    --error: #DC2626;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* 边框圆角 */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Han Sans CN', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-size: 14px;
}

/* 政府头部导航 */
.gov-header {
    background: var(--gov-dark-blue);
    padding: 8px 0;
    border-bottom: 3px solid var(--gov-red);
}

.gov-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: var(--white);
    font-size: 12px;
    text-align: center;
}

.gov-nav span {
    margin: 0 8px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

/* 头部区域 */
.header {
    margin-bottom: 40px;
}

.logo-area {
    background: var(--white);
    border: 2px solid var(--gov-blue);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.gov-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo-emblem {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emblem-circle {
    width: 70px;
    height: 70px;
    border: 3px solid var(--gov-red);
    border-radius: 50%;
    background: var(--gov-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.emblem-star {
    color: var(--gov-gold);
    font-size: 24px;
    font-weight: bold;
}

.logo-text h1 {
    color: var(--gov-blue);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo-text h2 {
    color: var(--gov-red);
    font-size: 20px;
    font-weight: 600;
}

.official-notice {
    padding: 15px;
    background: var(--gov-light-blue);
    border: 1px solid var(--gov-blue);
    border-radius: var(--radius-md);
    margin-top: 20px;
}

.notice-text {
    color: var(--gov-dark-blue);
    font-weight: 500;
    font-size: 14px;
    text-align: center;
}

/* 查询卡片 */
.query-card {
    background: var(--white);
    border: 2px solid var(--gov-blue);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    background: var(--gov-blue);
    color: var(--white);
    padding: 20px 30px;
    text-align: center;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-header p {
    font-size: 14px;
    opacity: 0.9;
}

/* 表单样式 */
.query-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14px;
}

.required {
    color: var(--error);
    margin-right: 4px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--gov-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.1);
}

/* 查询按钮 */
.query-btn {
    /* width: 100%; */
    background: var(--gov-red);
    color: var(--white);
    border: none;
    padding: 16px 30px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.query-btn:hover {
    background: #A00E26;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.query-btn:active {
    transform: translateY(0);
}

/* 提示框 */
.notice-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 20px;
}

.notice-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--warning);
    margin-bottom: 15px;
    font-size: 14px;
}

.notice-icon {
    font-size: 16px;
}

.notice-content ul {
    list-style: none;
    padding-left: 0;
}

.notice-content li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: var(--gray-600);
    font-size: 13px;
}

.notice-content li::before {
    content: "•";
    color: var(--gov-blue);
    position: absolute;
    left: 8px;
    font-weight: bold;
}

/* 结果页面样式 */
.result-header {
    background: var(--white);
    border: 2px solid var(--gov-blue);
    border-radius: var(--radius-lg);
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left .back-btn {
    background: var(--gray-500);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.header-left .back-btn:hover {
    background: var(--gray-600);
}

.header-center {
    text-align: center;
    flex: 1;
}

.result-title h1 {
    color: var(--gov-blue);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.result-title h2 {
    color: var(--gov-red);
    font-size: 18px;
    font-weight: 600;
}

.header-right .official-seal {
    width: 60px;
    height: 60px;
    border: 2px solid var(--gov-red);
    border-radius: 50%;
    background: var(--gov-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-text {
    color: var(--gov-gold);
    font-size: 12px;
    font-weight: bold;
}

/* 学生信息卡片 */
.student-info {
    margin-bottom: 30px;
}

.info-card {
    background: var(--white);
    border: 2px solid var(--gov-blue);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
}

.info-card h3 {
    color: var(--gov-blue);
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid var(--gov-blue);
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.info-label {
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
}

.info-value {
    color: var(--gray-800);
    font-size: 14px;
    font-weight: 600;
}

/* 成绩部分 */
.scores-section {
    margin-bottom: 30px;
}

.total-score-card {
    background: linear-gradient(135deg, var(--gov-blue) 0%, var(--gov-dark-blue) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--gov-red);
}

.total-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.total-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.total-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gov-gold);
}

/* 科目成绩网格 */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.subject-card {
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.subject-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.subject-card.normal {
    border-color: var(--success);
}

.subject-card.absent {
    border-color: var(--error);
    background: #FEF2F2;
}

.subject-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.subject-name {
    color: var(--gray-600);
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

.subject-score {
    color: var(--gray-800);
    font-size: 24px;
    font-weight: 700;
}

.subject-card.absent .subject-score {
    color: var(--error);
    font-size: 16px;
}

/* 备注部分 */
.remarks-section {
    margin-bottom: 30px;
}

.remarks-card {
    background: var(--white);
    border: 2px solid var(--gov-blue);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
}

.remarks-card h3 {
    color: var(--gov-blue);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.remarks-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 14px;
}

/* 操作按钮 */
.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: auto;
    padding-top: 20px;
}

.action-btn {
    background: var(--white);
    color: var(--gov-blue);
    border: 2px solid var(--gov-blue);
    padding: 12px 25px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    background: var(--gov-blue);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 底部 */
.footer {
    margin-top: auto;
    /* padding-top: 40px; */
}

.footer-content {
    /* background: var(--gov-dark-blue);
    color: var(--white);
    padding: 30px; */
    border-radius: var(--radius-lg);
    text-align: center;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-info p {
    margin: 8px 0;
    font-size: 13px;
}

.footer-copyright p {
    margin: 5px 0;
    font-size: 12px;
    opacity: 0.8;
}

/* 打印样式 */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .gov-header,
    .back-btn,
    .actions {
        display: none;
    }
    
    .container {
        max-width: none;
        padding: 20px;
    }
    
    .result-header,
    .info-card,
    .total-score-card,
    .subject-card,
    .remarks-card {
        background: white;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .total-score-card {
        color: black;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo-area {
        padding: 20px;
    }
    
    .gov-logo {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-text h1 {
        font-size: 22px;
    }
    
    .logo-text h2 {
        font-size: 16px;
    }
    
    .query-form {
        padding: 20px;
    }
    
    .result-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-left,
    .header-right {
        order: 2;
    }
    
    .header-center {
        order: 1;
    }
    
    .total-score-card {
        padding: 20px;
    }
    
    .total-value {
        font-size: 2rem;
    }
    
    .subjects-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* 移动端考生信息优化 - JavaScript重组后的样式 */
    .mobile-info-container {
        display: block;
        width: 100%;
    }
    
    .mobile-info-item {
        display: block;
        padding: 14px 16px;
        margin-bottom: 10px;
        background: white;
        /*border-radius: 10px;*/
        box-shadow: 0 2px 6px rgba(0, 51, 153, 0.08);
        border-left: 4px solid #003399;
        font-size: 15px;
        line-height: 1.6;
    }
    
    .mobile-label {
        color: #374151;
        font-weight: 600;
        margin-right: 8px;
    }
    
    .mobile-value {
        color: #111827;
        font-weight: 600;
    }
    
    /* 成绩表格在移动端的优化 */
    .scores-table {
        font-size: 14px;
    }
    
    .scores-table th,
    .scores-table td {
        padding: 8px 10px;
    }
    
    .scores-table .subject-cell {
        font-size: 13px;
    }
    
    .scores-table .score-cell {
        font-size: 14px;
    }
    
    .total-score-cell {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .gov-nav {
        font-size: 11px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-text h2 {
        font-size: 14px;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .subject-card {
        padding: 15px 10px;
    }
    
    .subject-score {
        font-size: 20px;
    }
    
    /* 超小屏幕考生信息优化 */
    .section-header {
        padding: 12px 20px;
    }
    
    .section-header h3 {
        font-size: 16px;
    }
    
    /* 超小屏幕移动端考生信息样式 */
    .mobile-info-item {
        padding: 12px 14px;
        margin-bottom: 8px;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .mobile-label {
        font-size: 13px;
    }
    
    .mobile-value {
        font-size: 14px;
    }
    
    /* 成绩表格进一步优化 */
    .scores-table {
        font-size: 12px;
    }
    
    .scores-table th,
    .scores-table td {
        padding: 6px 8px;
    }
    
    .scores-table .subject-cell {
        font-size: 11px;
        white-space: nowrap;
    }
    
    .scores-table .score-cell {
        font-size: 13px;
    }
    
    .total-subject-cell {
        font-size: 14px;
        padding: 12px 8px;
    }
    
    .total-score-cell {
        font-size: 16px !important;
        padding: 12px 8px;
    }
    
    /* 操作按钮在超小屏幕的优化 */
    .action-btn {
        font-size: 13px;
        padding: 10px 20px;
    }
}

/* 官方样式区域 */
.official-section {
    margin: 25px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 51, 153, 0.08);
    border: 1px solid #d1d9e0;
}

.section-header {
    background: linear-gradient(135deg, #003399 0%, #0066cc 100%);
    color: white;
    padding: 15px 25px;
    margin: 0;
}

.section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 官方表格样式 */
.official-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Source Han Sans CN', sans-serif;
    background: white;
}

.official-table th,
.official-table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.official-table th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    border-bottom: 2px solid #d1d5db;
}

.official-table .label-cell {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    width: 20%;
    text-align: center;
    border-right: 1px solid #e5e7eb;
}

.official-table .value-cell {
    color: #111827;
    font-size: 15px;
    font-weight: 500;
    padding-left: 20px;
}

.official-table .subject-cell {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    border-right: 1px solid #e5e7eb;
}

.official-table .score-cell {
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-right: 1px solid #e5e7eb;
}

/* 总分表格特殊样式 */
.total-score-official {
    padding: 0;
}

.total-table {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.total-table .total-label-cell {
    background: #003399;
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    padding: 20px;
    width: 40%;
}

.total-table .total-value-cell {
    color: #003399;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    padding: 20px;
    background: white;
}

/* 成绩表格特殊样式 */
.scores-table {
    margin: 0;
}

.scores-table .score-cell {
    color: #003399;
    font-weight: 700;
}

/* 总分行特殊样式 */
.total-score-row {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    border-top: 2px solid #003399;
}

.total-subject-cell {
    background: #003399;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    padding: 15px 20px;
}

.total-score-cell {
    color: #003399;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding: 15px 20px;
    background: white;
} 