/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 导航栏样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav {
    padding: 1rem;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu li a {
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
}

.nav-menu li a:hover {
    color: #007bff;
}

.nav-right a {
    margin-left: 1rem;
    text-decoration: none;
}

.login-btn {
    color: #007bff;
}

.register-btn {
    color: #fff;
    background-color: #007bff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
}

/* 主要内容区样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* 介绍区域样式优化 */
.intro-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.intro-item {
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.intro-item:hover {
    transform: translateY(-5px);
}

.intro-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.intro-item ol {
    padding-left: 1.5rem;
}

.intro-item li {
    margin-bottom: 0.5rem;
}

/* 测试区域样式优化 */
.test-container {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
}

.test-controls {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
    justify-content: center;
}

/* 按钮样式优化 */
.primary-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.secondary-btn {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    transform: translateY(-2px);
}

.secondary-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#progress {
    margin-left: auto;
    font-size: 1.1rem;
    color: #6c757d;
}

.test-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* 测试图片区域样式优化 */
#plate-container {
    width: 400px;
    height: 400px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    background: #fff;
}

#test-plate {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

/* 输入区域样式优化 */
.input-area {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto;
}

#answer-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

#answer-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.submit-btn {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 结果区域样式优化 */
.results-section {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 2rem;
}

.score-display {
    font-size: 2rem;
    color: #2c3e50;
    margin: 1.5rem 0;
}

.score-label {
    color: #6c757d;
}

#score-value {
    font-weight: bold;
    color: #28a745;
}

.result-analysis {
    color: #34495e;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 1.5rem 0;
}

/* 信息卡片样式优化 */
.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minstart(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.type-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.type-card:hover {
    transform: translateY(-5px);
}

.type-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

/* 注意事项样式优化 */
.tips-section {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: 3rem;
}

.tips-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tips-section ul {
    list-style: none;
    padding: 0;
}

.tips-section li {
    padding: 1rem;
    margin: 0.5rem 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: relative;
    padding-left: 2.5rem;
}

.tips-section li::before {
    content: "•";
    color: #3498db;
    font-size: 1.5rem;
    position: absolute;
    left: 1rem;
}

/* 广告容器样式 */
.ad-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.ad-content {
    background-color: #f8f9fa;
    text-align: center;
    padding: 2rem;
    border-radius: 4px;
}

/* 底部版权样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        z-index: 100;
    }

    .nav-menu.active ul {
        flex-direction: column;
    }

    .nav-menu.active li {
        margin: 0.5rem 0;
    }

    .test-controls {
        flex-direction: column;
    }

    .input-area {
        flex-direction: column;
    }

    #plate-container {
        width: 250px;
        height: 250px;
    }

    .type-grid {
        grid-template-columns: 1fr;
    }
}

/* 添加开始提示的样式 */
.start-hint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    color: #495057;
    font-size: 1.3rem;
    text-align: center;
    line-height: 1.8;
    font-weight: 500;
    z-index: 1;
} 