/* 行者教育 H5官网样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #f093fb;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    position: relative;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero区域 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 50%, #0f3460 100%);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(240, 147, 251, 0.1) 0%, transparent 70%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    margin-bottom: 20px;
}

.title-main {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 4px;
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease;
}

.title-sub {
    display: block;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

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

.stat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

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

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 16px;
    color: var(--gray);
}

.section-header.light .section-title {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
}

.section-header.light .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* 课程模块 */
.courses {
    padding: 100px 20px;
    background: var(--gray-light);
}

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

.course-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card.featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    transform: scale(1.02);
}

.course-card.featured:hover {
    transform: translateY(-10px) scale(1.02);
}

.course-card.featured .course-title,
.course-card.featured .course-desc,
.course-card.featured .course-features li {
    color: var(--white);
}

.course-card.featured::before {
    background: var(--white);
    transform: scaleX(1);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.course-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.course-icon svg {
    width: 35px;
    height: 35px;
}

.icon-python {
    background: linear-gradient(135deg, #3776ab 0%, #ffd43b 100%);
    color: var(--white);
}

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

.icon-reverse {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
}

.course-card.featured .course-icon {
    background: rgba(255, 255, 255, 0.2);
}

.course-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.course-desc {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.course-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--gray);
}

/* 师资团队 */
.teachers {
    padding: 100px 20px;
    background: var(--white);
}

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

.teacher-card {
    text-align: center;
    transition: all 0.4s ease;
}

.teacher-card:hover {
    transform: translateY(-10px);
}

.teacher-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 25px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--white);
    flex-shrink: 0;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.teacher-avatar img:not([src]),
.teacher-avatar img[src=""],
.teacher-avatar img.style[visibility="hidden"] {
    display: none;
}

.avatar-fallback {
    font-size: 60px;
    font-weight: 700;
    color: var(--white);
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.teacher-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
}

.teacher-title {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.teacher-desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 0 10px;
}

.teacher-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.teacher-tags span {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* VIP会员 */
.vip {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
}

.vip-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.vip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.vip-price {
    margin-bottom: 20px;
}

.price-symbol {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
    vertical-align: top;
}

.price-number {
    font-size: 64px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-unit {
    font-size: 18px;
    color: var(--gray);
    margin-left: 5px;
}

.vip-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 35px;
    color: var(--dark);
}

.vip-benefits {
    text-align: left;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-light);
}

.benefit-item:last-child {
    border-bottom: none;
}

.benefit-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
}

.benefit-content p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.btn-vip {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    display: block;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-vip:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.5);
}

/* 学员评价 */
.testimonials {
    padding: 100px 20px;
    background: var(--gray-light);
}

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

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-content {
    font-size: 15px;
    color: var(--dark);
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 20px;
}

.author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.author-course {
    font-size: 13px;
    color: var(--gray);
}

/* 联系我们 */
.contact {
    padding: 100px 20px;
    background: var(--white);
}

.contact-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--gray-light);
    border-radius: 30px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-info {
    width: 100%;
}

.info-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--dark);
    min-width: 70px;
}

.info-value {
    color: var(--gray);
}

/* 页脚 */
.footer {
    background: var(--dark);
    padding: 60px 20px 30px;
    color: var(--white);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav.open {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .title-main {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .title-sub {
        font-size: 18px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-num {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .courses,
    .teachers,
    .vip,
    .testimonials,
    .contact {
        padding: 60px 20px;
    }

    .teacher-avatar {
        width: 140px;
        height: 140px;
    }

    .vip-card {
        padding: 40px 25px;
    }

    .price-number {
        font-size: 48px;
    }

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

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .stat-label {
        margin-top: 0;
    }

    .courses-grid,
    .teachers-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .course-card.featured {
        transform: none;
    }

    .course-card.featured:hover {
        transform: translateY(-10px);
    }
}
