/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #6d83f2 0%, #a876f5 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.nav-btn {
    background: #ff6b6b;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

/* 英雄区域 */
.hero {
    min-height: 70vh;
    background: linear-gradient(135deg, #6d83f2 0%, #a876f5 100%);
    display: flex;
    align-items: center;
    padding: 80px 20px 20px;
    color: white;
}

.hero-content {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #6d83f2;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* 专业测评量表区域 */
.tests {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f5ff 0%, #f0ebff 100%);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #5a4a9a;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(90, 74, 154, 0.1);
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #7a7a8c;
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.6;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.test-card {
    background: linear-gradient(135deg, #ffffff 0%, #faf9ff 100%);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: left;
    box-shadow: 0 15px 40px rgba(90, 74, 154, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(90, 74, 154, 0.08);
    backdrop-filter: blur(10px);
}

.test-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(90, 74, 154, 0.15);
    border-color: rgba(90, 74, 154, 0.2);
}

.test-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #6d5acf 0%, #8a76d6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 20px rgba(109, 90, 207, 0.3);
}

.test-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #5a4a9a;
    font-weight: 700;
    line-height: 1.3;
}

.test-card p {
    color: #5a6778;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 400;
}

.test-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid #f0e6ff;
    border-bottom: 1px solid #f0e6ff;
}

.test-info div {
    text-align: center;
    padding: 0.5rem;
}

.test-info span {
    display: block;
    font-size: 0.95rem;
    color: #7a7a8c;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.test-info strong {
    font-size: 1.3rem;
    color: #6d5acf;
    font-weight: 700;
    display: block;
}

.test-scenario {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #5a6778;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(240, 230, 255, 0.5);
    border-radius: 12px;
    font-weight: 500;
}

.test-scenario i {
    color: #ffd700;
    font-size: 1.2rem;
}

.test-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6d83f2;
    font-weight: 500;
}

.feature-item i {
    color: #6d83f2;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #6d83f2;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 40px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .tests-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}