* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #333;
}

.header {
    text-align: center;
    padding: 2.5rem 1rem;
    color: white;
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.subtitle {
    opacity: 0.85;
    font-size: 1rem;
    color: #a0d2eb;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.notice {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(252, 182, 159, 0.3);
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.subject-card {
    background: linear-gradient(145deg, #ffffff 0%, #f5f7fa 100%);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.subject-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: #2d3436;
}

.status {
    font-size: 0.75rem;
    color: #636e72;
    padding: 0.3rem 0.6rem;
    background: #dfe6e9;
    border-radius: 20px;
    display: inline-block;
}

.status.updated {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    font-weight: 500;
}

.features {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.features h3 {
    margin-bottom: 1rem;
    color: #2d3436;
}

.features ul {
    list-style: none;
}

.features li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
    color: #636e72;
}

.features li:last-child {
    border-bottom: none;
}

.footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* 答案页面样式 */
.back-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    background: rgba(255,255,255,0.15);
    border-radius: 25px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255,255,255,0.25);
}

.answer-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.answer-section h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0f3460;
}

.answer-table {
    width: 100%;
    border-collapse: collapse;
}

.answer-table th,
.answer-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.answer-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.answer-cell {
    font-weight: bold;
    font-size: 1.1rem;
    color: #0f3460;
}

.answer-cell.disputed {
    color: #e17055;
}

.dispute-badge {
    display: inline-block;
    background: #ffeaa7;
    color: #856404;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    margin-left: 0.3rem;
}

.source-tag {
    font-size: 0.75rem;
    color: #999;
    display: block;
}

.update-time {
    text-align: right;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}

/* 估分器样式 */
.score-panel {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    border-radius: 16px;
    padding: 1.5rem;
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.3);
}

.score-number {
    font-size: 3rem;
    font-weight: bold;
}

.score-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.user-answer-select {
    width: 60px;
    padding: 0.3rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.user-answer-select.correct {
    border-color: #00b894;
    background: #d4edda;
}

.user-answer-select.wrong {
    border-color: #e17055;
    background: #f8d7da;
}
