/* ===== 首页专用样式 ===== */

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

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

/* 英雄区域特殊处理 - 全宽背景 */
.hero .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

/* 导航栏样式 */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    position: relative;
    min-height: 60px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo h2 {
    color: #1890ff;
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
    margin: 0;
}

.logo a:hover h2 {
    color: #40a9ff;
}

/* 导航菜单 */
.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    margin: 0;
}

.nav-list a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
    background: rgba(24, 144, 255, 0.1);
    color: #1890ff;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    color: #666666;
    padding: 12px 20px;
    display: block;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: rgba(24, 144, 255, 0.1);
    color: #1890ff;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333333;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-height: 48px;
    touch-action: manipulation;
}

.btn-primary {
    background: linear-gradient(135deg, #1890ff, #096dd9);
    color: white;
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 144, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-outline {
    background: transparent;
    color: #1890ff;
    border: 2px solid #1890ff;
}

.btn-outline:hover {
    background: #1890ff;
    color: white;
}

.btn-full {
    width: 100%;
}

/* 英雄区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #334155 60%, #475569 100%);
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.3) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 50px;
}

.hero-content h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

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

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 特色区域 */
.features {
    padding: 100px 0;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1890ff, #096dd9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 32px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 课程区域 */
.courses {
    padding: 100px 0;
}

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

.course-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.course-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ff4757;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-link {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1890ff;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.course-link:hover {
    transform: scale(1.1);
}

.course-content {
    padding: 30px;
}

.course-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.course-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.level-beginner { color: #52c41a; }
.level-intermediate { color: #fa8c16; }
.level-advanced { color: #f5222d; }

.section-action {
    text-align: center;
}

/* 统计区域 */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #1890ff, #096dd9);
    color: white;
}

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

.stat-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* 联系区域 */
.contact {
    padding: 100px 0;
    background: #f8fafc;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1890ff, #096dd9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.contact-details p {
    color: #666;
    font-size: 16px;
}

/* 表单样式 */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1890ff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚 */
.footer {
    background: #001529;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #40a9ff;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #1890ff;
    transform: translateY(-2px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #40a9ff;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #ccc;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #40a9ff;
}

/* 中等屏幕导航调整 */
@media (max-width: 1200px) {
    .nav-list {
        gap: 15px;
    }
    
    .nav-list a {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .logo h2 a {
        font-size: 18px;
    }
}

/* 响应式设计 */
@media (max-width: 900px) {
    .nav-list {
        gap: 12px;
    }
    
    .nav-list a {
        font-size: 13px;
        padding: 6px 8px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        padding: 120px 0 50px;
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .contact-wrapper {
        gap: 60px;
    }
}

@media (max-width: 820px) {
    /* 导航菜单移动端适配 */
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav {
        position: static;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 21, 41, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 20px;
        overflow-y: auto;
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-list a {
        font-size: 20px;
        padding: 16px 24px;
        color: white;
        border-radius: 8px;
        text-align: center;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        border-radius: 8px;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.open .dropdown-menu {
        max-height: 300px;
    }
    
    .dropdown-menu a {
        color: rgba(255, 255, 255, 0.8);
        font-size: 16px;
        padding: 12px 16px;
        min-height: 40px;
    }
    
    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    /* 汉堡菜单动画 */
    .mobile-menu-toggle.active .hamburger .line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active .hamburger .line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger .line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* 内容区域调整 */
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 100px 20px 50px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* 区块间距调整 */
    .features,
    .courses,
    .contact {
        padding: 80px 0;
    }
    
    .stats {
        padding: 60px 0;
    }
    
    /* 网格布局调整 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* 小屏幕设备额外优化 */
@media (max-width: 600px) {
    .mobile-menu-toggle {
        padding: 10px;
    }
    
    .nav-list a {
        font-size: 18px;
        padding: 14px 20px;
    }
    
    .dropdown-menu a {
        font-size: 15px;
        padding: 10px 16px;
    }
    
    .logo h2 {
        font-size: 16px;
    }
    
    .logo-img {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero .container {
        padding: 0;
    }
    
    .hero-content {
        padding: 80px 15px 40px;
    }
    
    .nav-wrapper {
        padding: 8px 0;
        min-height: 50px;
    }
    
    .mobile-menu-toggle {
        padding: 8px;
    }
    
    .hamburger .line {
        width: 22px;
        height: 2.5px;
    }
    
    .nav-list a {
        font-size: 16px;
        padding: 12px 16px;
        min-height: 44px;
    }
    
    .logo h2 {
        font-size: 14px;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .features,
    .courses,
    .contact {
        padding: 60px 0;
    }
    
    .stats {
        padding: 50px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card,
    .contact-form {
        padding: 30px 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* 考试流程样式 */
.exam-process {
    padding: 80px 0;
    background: #f8fafc;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding: 0 20px;
}

.timeline-item {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-height: 180px;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.step-number {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: #4285f4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.25);
}

.timeline-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.timeline-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.timeline-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.timeline-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f4ff;
    color: #4285f4;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
    align-self: flex-start;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .process-timeline {
        flex-wrap: wrap;
        gap: 25px;
    }
    
    .timeline-item {
        flex: 0 1 calc(50% - 12.5px);
    }
}

@media (max-width: 768px) {
    .process-timeline {
        flex-direction: column;
        gap: 20px;
    }
    
    .timeline-item {
        flex: 1;
        min-height: auto;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.course-card,
.stat-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
