/* PMP考试系统样式表 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand h1 {
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.navbar-nav {
    display: flex;
    gap: 20px;
}

.navbar-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s;
}

.navbar-nav a:hover {
    background: rgba(255,255,255,0.2);
}

.navbar-nav a.btn-logout {
    background: rgba(255, 107, 107, 0.3);
}

.navbar-nav a.btn-logout:hover {
    background: rgba(255, 107, 107, 0.5);
}

.navbar-nav a.btn-register {
    background: rgba(76, 175, 80, 0.3);
}

.navbar-nav a.btn-register:hover {
    background: rgba(76, 175, 80, 0.5);
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.hero .stat-card {
    background: rgba(255, 255, 255, 0.25);
    padding: 30px 25px;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero .stat-card:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero .stat-number {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero .stat-label {
    font-size: 14px;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a91 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

/* 特性卡片 */
.features {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h4 {
    margin-bottom: 12px;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

/* 知识领域 */
.knowledge-areas {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.knowledge-areas .section-title {
    color: white;
}

.knowledge-areas .section-title::after {
    background: white;
}

.areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.area-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.area-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.area-name {
    color: white;
    font-weight: 600;
    font-size: 15px;
}

/* 考试设置页面 */
.exam-setup {
    padding: 60px 0;
}

.setup-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-section-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.exam-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mode-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.mode-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.mode-card.mode-card-selected {
    border-color: #667eea;
    background: #e7f1ff;
}

.mode-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.mode-card h4 {
    margin-bottom: 10px;
    color: #333;
}

.mode-details {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.mode-questions, .mode-time {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.mode-details input {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.mode-desc {
    font-size: 13px;
    color: #666;
}

.exam-tips {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.exam-tips h4 {
    margin-bottom: 10px;
    color: #856404;
}

.exam-tips ul {
    list-style: none;
    padding-left: 0;
}

.exam-tips li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.exam-tips li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #856404;
    font-weight: bold;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* 考试答题页面 */
.exam-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
}

.exam-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.exam-info h2 {
    font-size: 24px;
}

.exam-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 6px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 24px;
    background: rgba(255,255,255,0.3);
    border-radius: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4caf50;
    transition: width 0.3s;
}

.progress-text {
    font-weight: bold;
    font-size: 16px;
}

.exam-content {
    padding: 30px 0;
}

.exam-content .container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.question-nav {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.question-nav h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 8px;
}

.question-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.question-btn:hover {
    border-color: #667eea;
}

.question-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.question-btn.answered {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}

.question-btn.skipped {
    background: #ffc107;
    color: #333;
    border-color: #ffc107;
}

.question-area {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.question-card {
    margin-bottom: 20px;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.question-number {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.question-meta {
    display: flex;
    gap: 10px;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #333;
}

.badge-success {
    background: #4caf50;
    color: white;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

.question-content {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #333;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-item:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.option-item input[type="radio"] {
    display: none;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.option-letter {
    width: 32px;
    height: 32px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.option-text {
    font-size: 16px;
}

.option-item input[type="radio"]:checked + .option-label {
    background: #e7f1ff;
}

.question-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* 结果页面 */
.result-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.result-content {
    padding: 40px 0;
}

.result-overview {
    margin-bottom: 40px;
}

.score-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.score-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

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

.score-number {
    font-size: 42px;
    font-weight: 700;
    color: #333;
}

.score-label {
    font-size: 16px;
    color: #666;
}

.score-details {
    display: flex;
    justify-content: space-around;
}

.score-stat {
    text-align: center;
}

.score-stat .score-label {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.score-stat .score-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.score-card-success {
    border-left: 5px solid #4caf50;
}

.score-card-danger {
    border-left: 5px solid #dc3545;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.info-card h3 {
    margin-bottom: 20px;
    color: #333;
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #333;
}

.categories-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.categories-card h3 {
    margin-bottom: 20px;
    color: #333;
}

.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-name {
    font-weight: 500;
    color: #333;
}

.category-progress {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill-success {
    background: #4caf50;
}

.progress-fill-warning {
    background: #ffc107;
}

.progress-fill-danger {
    background: #dc3545;
}

.category-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-good {
    color: #4caf50;
    font-weight: 700;
}

.score-normal {
    color: #ffc107;
    font-weight: 700;
}

.score-bad {
    color: #dc3545;
    font-weight: 700;
}

.wrong-answers-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.wrong-answers-card h3 {
    margin-bottom: 20px;
    color: #333;
}

.wrong-answers-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wrong-answer-item {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.wrong-answer-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.wrong-answer-content {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.wrong-answer-details {
    background: white;
    padding: 15px;
    border-radius: 6px;
}

.answer-comparison {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.your-answer {
    color: #dc3545;
}

.correct-answer {
    color: #4caf50;
}

.explanation {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.explanation-label {
    font-weight: 500;
    color: #333;
}

.explanation-text {
    color: #666;
    flex: 1;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 历史记录页面 */
.history-content {
    padding: 40px 0;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stats-overview .stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stats-overview .stat-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.stats-overview .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stats-overview .stat-label {
    font-size: 14px;
    color: #666;
}

.stat-card-primary {
    border-top: 4px solid #667eea;
}

.stat-card-success {
    border-top: 4px solid #4caf50;
}

.stat-card-info {
    border-top: 4px solid #17a2b8;
}

.stat-card-warning {
    border-top: 4px solid #ffc107;
}

/* 统计分析页面样式 */
.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-card .stat-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 14px;
    color: #666;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-card-primary {
    border-top: 4px solid #667eea;
}

.stat-card-success {
    border-top: 4px solid #4caf50;
}

.stat-card-info {
    border-top: 4px solid #17a2b8;
}

.stat-card-warning {
    border-top: 4px solid #ffc107;
}

.stat-card-danger {
    border-top: 4px solid #f44336;
}

.history-list {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.history-list h3 {
    margin-bottom: 20px;
    color: #333;
}

.history-table-container {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.history-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.history-table tr:hover {
    background: #f8f9fa;
}

.code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

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

.page-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* 题库页面 */
.questions-content {
    padding: 40px 0;
}

.questions-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.questions-sidebar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.questions-sidebar h3 {
    margin-bottom: 15px;
    color: #333;
}

.category-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-btn {
    padding: 10px 15px;
    border: none;
    background: none;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #333;
}

.category-btn:hover {
    background: #e9ecef;
}

.category-btn.active {
    background: #667eea;
    color: white;
}

.questions-main {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.questions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.search-box input {
    width: 300px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.question-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.question-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.question-id {
    font-weight: 700;
    color: #667eea;
}

.question-tags {
    display: flex;
    gap: 8px;
}

.question-item-content {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.8;
}

.question-item-footer {
    display: flex;
    gap: 10px;
}

.question-item-options {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.option-display {
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
}

.option-letter {
    font-weight: 700;
    color: #667eea;
    margin-right: 10px;
}

/* 统计页面 */
.statistics-content {
    padding: 40px 0;
}

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

.stats-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.stats-section h3 {
    margin-bottom: 20px;
    color: #333;
}

.trend-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trend-item {
    display: grid;
    grid-template-columns: 100px 1fr 120px;
    gap: 15px;
    align-items: center;
}

.trend-label {
    font-weight: 500;
    color: #333;
}

.trend-bar {
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
}

.trend-fill {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    transition: width 0.3s;
}

.trend-fill-success {
    background: #4caf50;
}

.trend-fill-warning {
    background: #ffc107;
}

.trend-fill-danger {
    background: #dc3545;
}

.trend-date {
    color: #666;
    font-size: 14px;
}

.areas-performance {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.area-performance-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.area-name {
    font-weight: 500;
    color: #333;
}

.area-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.area-score .score-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.area-score .score-percent {
    font-size: 14px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f0f0f0;
}

.area-score .score-success {
    color: #28a745;
    background: #d4edda;
}

.area-score .score-warning {
    color: #ffc107;
    background: #fff3cd;
}

.area-score .score-danger {
    color: #dc3545;
    background: #f8d7da;
}

.area-progress {
    margin-top: 5px;
}

.suggestions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.suggestion-item {
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.suggestion-warning {
    background: #fff3cd;
}

.suggestion-danger {
    background: #f8d7da;
}

.suggestion-success {
    background: #d4edda;
}

.suggestion-icon {
    font-size: 32px;
}

.suggestion-content h4 {
    margin-bottom: 8px;
    color: #333;
}

.suggestion-content p {
    color: #666;
    margin: 0;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h2 {
        font-size: 32px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .exam-content .container,
    .questions-layout {
        grid-template-columns: 1fr;
    }

    .question-nav,
    .questions-sidebar {
        position: static;
    }

    .result-overview {
        padding: 0 10px;
    }

    .trend-item {
        grid-template-columns: 80px 1fr;
    }

    .trend-date {
        display: none;
    }

    .history-table {
        font-size: 14px;
    }

    .history-table th,
    .history-table td {
        padding: 8px;
    }

    .form-actions,
    .result-actions,
    .page-actions {
        flex-wrap: wrap;
    }
}

/* 认证页面样式 */
.auth-container {
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.auth-card {
    max-width: 450px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.auth-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 10px;
}

.auth-footer p {
    color: #666;
    font-size: 14px;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
}
    .page-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* 后台管理样式 */
.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.admin-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.admin-card h3 {
    margin-bottom: 10px;
    color: #667eea;
}

.admin-card p {
    color: #666;
}

.btn-admin {
    background-color: #f44336 !important;
}

.users-table-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
