/* ========================================
   PC端样式
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #333;
}

.btn-outline:hover {
    border-color: #667eea;
    color: #667eea;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
}

/* 顶部导航 */
.pc-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo h1 {
    font-size: 22px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    height: 40px;
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #666;
    font-size: 15px;
    padding: 25px 0;
    display: block;
    position: relative;
    transition: color 0.3s;
}

.nav a:hover,
.nav li.active a {
    color: #667eea;
}

.nav li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-dropdown {
    position: relative;
    cursor: pointer;
}

.user-name {
    color: #333;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 8px 0;
    min-width: 140px;
    display: none;
    z-index: 100;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background: #f5f7fa;
    color: #667eea;
}

/* Banner */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: #fff;
}

.banner-content {
    text-align: center;
}

.banner h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.banner p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.banner-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-item .num {
    display: block;
    font-size: 36px;
    font-weight: 600;
}

.stat-item .label {
    font-size: 14px;
    opacity: 0.8;
}

/* 通用区块 */
.section {
    padding: 60px 0;
}

.section-gray {
    background: #f5f7fa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    color: #333;
}

.section-header .more {
    color: #667eea;
    font-size: 14px;
}

.section-header.text-center {
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.section-header.text-center h2 {
    margin-bottom: 10px;
}

.section-header.text-center p {
    color: #999;
}

/* 考试卡片 */
.exam-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.exam-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.exam-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.exam-cover {
    height: 160px;
    overflow: hidden;
}

.exam-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exam-cover-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.exam-info {
    padding: 20px;
}

.exam-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.exam-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.exam-type {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: #e6f7ff;
    color: #1890ff;
}

.exam-type.type-paid {
    background: #fff7e6;
    color: #fa8c16;
}

.exam-type.type-vip {
    background: #fff0f6;
    color: #eb2f96;
}

.exam-type.type-password {
    background: #f6ffed;
    color: #52c41a;
}

.exam-questions,
.exam-duration {
    font-size: 12px;
    color: #999;
}

.exam-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.exam-score,
.exam-people {
    font-size: 13px;
    color: #666;
}

/* 考试组卡片 */
.group-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.group-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    gap: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.group-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.group-info {
    flex: 1;
}

.group-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.group-type {
    color: #667eea;
    font-size: 13px;
    margin-bottom: 10px;
}

.group-desc {
    color: #999;
    font-size: 13px;
    margin-bottom: 16px;
}

.group-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 13px;
}

/* 功能特色 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #333;
}

.feature-item p {
    color: #999;
    font-size: 14px;
    line-height: 1.8;
}

/* 底部 */
.pc-footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 14px;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #9ca3af;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

.footer-bottom p {
    margin-bottom: 6px;
}

/* 考试列表页 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
    color: #fff;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
}

.filter-bar {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-top: -30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item label {
    color: #666;
    font-size: 14px;
}

.filter-item select,
.filter-item input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 考试详情页 */
.exam-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.exam-detail-main {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.exam-detail-main h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.exam-detail-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.info-item {
    text-align: center;
}

.info-item .value {
    font-size: 24px;
    font-weight: 600;
    color: #667eea;
}

.info-item .label {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

.exam-desc h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
}

.exam-desc p {
    color: #666;
    line-height: 1.8;
}

.exam-detail-sidebar {
    position: sticky;
    top: 90px;
}

.exam-action-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.exam-action-card .price {
    font-size: 28px;
    color: #f56c6c;
    font-weight: 600;
    margin-bottom: 20px;
}

.exam-action-card .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 12px;
}

.exam-tips {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    padding: 16px;
    margin-top: 20px;
}

.exam-tips h4 {
    color: #faad14;
    margin-bottom: 10px;
    font-size: 14px;
}

.exam-tips ul {
    font-size: 13px;
    color: #666;
}

.exam-tips li {
    margin-bottom: 6px;
}

/* 考试页面 */
.exam-page {
    background: #f5f7fa;
    min-height: 100vh;
}

.exam-header {
    background: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.exam-header h2 {
    font-size: 18px;
}

.exam-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #f56c6c;
}

.exam-body {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

.exam-questions-area {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    min-height: 600px;
}

.question-card {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.question-card:last-child {
    border-bottom: none;
}

.question-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.question-number {
    background: #667eea;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    flex-shrink: 0;
}

.question-type-tag {
    background: #e6f7ff;
    color: #1890ff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    flex-shrink: 0;
}

.question-score {
    color: #f56c6c;
    font-size: 14px;
    margin-left: auto;
}

.question-stem {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-item:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.option-item.selected {
    border-color: #667eea;
    background: #f0f3ff;
}

.option-key {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.option-item.selected .option-key {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.option-content {
    flex: 1;
    line-height: 1.6;
}

.fill-blank-input {
    width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin: 0 8px;
}

.subjective-textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
}

/* 答题卡 */
.answer-card {
    width: 280px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    position: sticky;
    top: 90px;
    height: fit-content;
}

.answer-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.answer-card-section {
    margin-bottom: 20px;
}

.answer-card-section h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.answer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.answer-item {
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.answer-item:hover {
    border-color: #667eea;
}

.answer-item.answered {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.answer-item.current {
    border-color: #f56c6c;
    color: #f56c6c;
}

.answer-legend {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #999;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
}

.legend-dot.answered {
    background: #667eea;
}

.legend-dot.unanswered {
    border: 1px solid #e0e0e0;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:hover {
    opacity: 0.9;
}

/* 登录注册页 */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 400px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
}

.auth-form .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #999;
    font-size: 14px;
}

.auth-footer a {
    color: #667eea;
}

/* 响应式 */
@media (max-width: 992px) {
    .exam-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .exam-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .exam-grid,
    .group-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    .banner h2 {
        font-size: 28px;
    }
    .banner-stats {
        gap: 30px;
    }
    .stat-item .num {
        font-size: 24px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
