/* ===== 卓辉研习社 · 品牌官网 ===== */
/* 主色：蜜糖金 #F9C851 / 暖白 #FFF9F0 / 深咖啡 #5C3B1F */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #FFF9F0;
    color: #333;
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 249, 240, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(92, 59, 31, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #5C3B1F;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
}

.bee-icon, .bee-hero {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #5C3B1F;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #F9C851;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F9C851;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #5C3B1F;
    cursor: pointer;
}

/* ===== Hero 首屏 ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #FFF9F0 0%, #F9C851 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
}

.hero-content {
    max-width: 700px;
}

.bee-illustration {
    margin-bottom: 24px;
}

.bee-hero {
    width: 80px;
    height: 80px;
    animation: wingFlap 2s ease-in-out infinite;
}

@keyframes wingFlap {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(-5deg); }
    75% { transform: scale(1.05) rotate(5deg); }
}

.main-title {
    font-size: 56px;
    font-weight: bold;
    color: #5C3B1F;
    margin-bottom: 12px;
    letter-spacing: 6px;
}

.subtitle {
    font-size: 22px;
    color: #8B6B4A;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.description {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #F9C851;
    color: #5C3B1F;
    box-shadow: 0 4px 15px rgba(249, 200, 81, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 200, 81, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #5C3B1F;
    border: 2px solid #5C3B1F;
}

.btn-secondary:hover {
    background: #5C3B1F;
    color: #FFF9F0;
}

.hex-dots {
    margin-top: 40px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.hex-dots span {
    width: 12px;
    height: 12px;
    background: #5C3B1F;
    border-radius: 2px;
    transform: rotate(45deg);
    opacity: 0.3;
}

/* ===== 通用板块样式 ===== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    color: #5C3B1F;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    color: #999;
    font-size: 16px;
    margin-bottom: 48px;
}

/* ===== 品牌故事 ===== */
.story {
    background: #FFF9F0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: center;
}

.story-content {
    font-size: 16px;
    color: #555;
    line-height: 2;
    margin: 24px 0;
}

.quote {
    font-size: 22px;
    color: #5C3B1F;
    font-style: italic;
    border-left: 4px solid #F9C851;
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(249, 200, 81, 0.1);
    border-radius: 0 8px 8px 0;
    font-weight: 500;
}

.class-photo {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.class-photo-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    background: linear-gradient(135deg, #F9C851, #5C3B1F);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.placeholder-emoji {
    font-size: 64px;
    margin-bottom: 12px;
}

.placeholder-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* 故事区域照片轮播 */
.story-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}
.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 16px;
}
.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}
.carousel-img.active {
    opacity: 1;
}
.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}
.carousel-dots .dot.active {
    background: #F9C851;
}
.photo-caption {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-top: 12px;
}

/* ===== 课程展示 ===== */
.courses {
    background: #FFF9F0;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.course-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.course-cover {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.course-card:hover .course-cover img {
    transform: scale(1.05);
}

.cover-text {
    font-size: 64px;
    z-index: 1;
}

.course-info {
    padding: 20px;
}

.course-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.course-tag {
    display: inline-block;
    background: #F9C851;
    color: #5C3B1F;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.course-price {
    font-size: 28px;
    font-weight: bold;
    color: #F9C851;
    margin: 8px 0;
}

.course-location {
    font-size: 14px;
    color: #999;
    margin-bottom: 16px;
}

.btn-view {
    display: block;
    width: 100%;
    padding: 10px;
    border: 2px solid #F9C851;
    background: transparent;
    color: #5C3B1F;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view:hover {
    background: #F9C851;
    color: #5C3B1F;
}

/* ===== 模态框 ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: #FFF9F0;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.modal-subtitle {
    font-size: 15px;
    color: #8B6B4A;
    margin-bottom: 16px;
}
.modal-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}
.modal-outline {
    margin-bottom: 20px;
}
.modal-outline h3 {
    font-size: 16px;
    color: #5C3B1F;
    margin-bottom: 8px;
}
.modal-outline ul {
    list-style: none;
    padding: 0;
}
.modal-outline ul li {
    padding: 6px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}
.modal-cta {
    text-align: center;
    padding: 16px;
    background: #FFF9F0;
    border-radius: 12px;
    margin-top: 8px;
}
.modal-cta .btn { display: block; width: 100%; margin-top: 8px; }
.modal-body h2 {
    font-size: 24px;
    color: #5C3B1F;
    margin-bottom: 24px;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section h3 {
    font-size: 16px;
    color: #5C3B1F;
    margin-bottom: 8px;
    font-weight: 600;
}

.modal-section p, .modal-section li {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

.modal-section ul {
    padding-left: 20px;
}

.modal-action {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(92, 59, 31, 0.1);
}

.btn-large {
    padding: 16px 48px;
    font-size: 18px;
}

.modal-tip {
    font-size: 13px;
    color: #999;
    margin-top: 12px;
}

/* ===== 核销流程 ===== */
.process {
    background: #F5F0E8;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 48px 0;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 250px;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #F9C851;
    color: #5C3B1F;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 15px rgba(249, 200, 81, 0.3);
}

.step h3 {
    font-size: 16px;
    color: #5C3B1F;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.step-arrow {
    font-size: 28px;
    color: #F9C851;
    font-weight: bold;
}

.process-note {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-top: 24px;
}

/* ===== 讲师招募 ===== */
.partner {
    background: #FFF9F0;
}

.partner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 48px;
}

.partner-form { max-width: 500px; margin: 0 auto; }
.partner-desc {
    font-size: 16px;
    color: #555;
    line-height: 2;
    margin-top: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #5C3B1F;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E8D5C0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #FFFFFF;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F9C851;
}

.btn-submit {
    width: 100%;
    margin-top: 8px;
}

.form-privacy {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 12px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.form-success.active {
    display: block;
}

.form-success p {
    font-size: 20px;
    color: #5C3B1F;
    font-weight: bold;
}

/* ===== 底部 ===== */
.footer {
    background: #FFF9F0;
    color: #5C3B1F;
    padding: 60px 0 30px;
    border-top: 2px solid #F0E4D0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #5C3B1F;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #5C3B1F;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #F9C851;
}

.footer-col p {
    font-size: 14px;
    color: #5C3B1F;
    margin-bottom: 8px;
}

.qrcode-placeholder {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #F0E4D0;
}

.footer-bee {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.icp {
    font-size: 12px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 249, 240, 0.95);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid rgba(92, 59, 31, 0.08);
    }

    .nav-links.active {
        display: flex;
    }

    .main-title {
        font-size: 36px;
        letter-spacing: 4px;
    }

    .subtitle {
        font-size: 18px;
    }

    .story-grid,
    .partner-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .course-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .process-steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .hero {
        padding: 100px 24px 40px;
    }

    section {
        padding: 48px 0;
    }

    .modal-content {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== 课程样式 ===== */
.course-cover {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.course-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cover-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff4444;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}
.cover-text {
    display: block;
    text-align: center;
    line-height: 200px;
    font-size: 64px;
}
/* ===== 课程轮播 ===== */
.course-carousel {
    position: relative;
    display: flex;
    align-items: center;
}
.carousel-viewport {
    overflow: hidden;
    width: 100%;
}
.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}
.carousel-item {
    min-width: 33.33%;
    flex-shrink: 0;
    padding: 0 8px;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F9C851;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 8px rgba(249,200,81,0.4);
    transition: all 0.3s;
}
.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }
.carousel-arrow:hover { background: #5C3B1F; color: #F9C851; }
.carousel-arrow:active { background: #EAA221; }
/* ===== 流程步骤 + 右侧小程序码 ===== */
.process-flex {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}
.steps { flex: 1; min-width: 300px; }
.step-right { flex: 1; min-width: 320px; }
.step-right {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}
.step-visual {
    background: #FFF9F0;
    border-radius: 24px;
    padding: 32px 40px;
    width: 100%;
    max-width: 900px;
    text-align: center;
}
.step-visual h4 {
    font-size: 22px;
    color: #5C3B1F;
    margin-bottom: 24px;
}
.step-img-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
}
.step-img-card {
    text-align: center;
    flex: 1;
    max-width: 200px;
}
.step-img-card img {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.step-img-card p {
    margin-top: 12px;
    font-size: 16px;
    color: #555;
}
.step-img-card p strong {
    font-size: 18px;
    color: #5C3B1F;
    display: block;
    margin-bottom: 4px;
}
.step-arrow-x {
    font-size: 32px;
    color: #F9C851;
    flex-shrink: 0;
    margin-top: 60px;
}
.step-qr-mini {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #E8D5C0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.step-qr-mini img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: white;
    padding: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.step-qr-mini span {
    font-size: 12px;
    color: #8B6B3D;
}
@media (max-width: 768px) {
    .process-flex { flex-direction: column; }
    .step-right { margin-top: 24px; }
    .qr-card { width: 90%; }
}
/* ===== 滚动动画 ===== */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}
