/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 水墨配色 */
    --ink-black: #1a1a1a;
    --ink-dark: #2c2c2c;
    --ink-gray: #5c5c5c;
    --ink-light: #8a8a8a;
    --rice-white: #f5f1e8;
    --rice-paper: #faf7f0;
    --vermilion: #c0392b;       /* 朱砂红 */
    --vermilion-dark: #9c2a1e;
    --bamboo: #4a6741;           /* 竹青 */
    --gold: #b8935a;             /* 暗金 */
    --shadow: rgba(26, 26, 26, 0.08);
    --shadow-hover: rgba(26, 26, 26, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--ink-dark);
    background: var(--rice-paper);
    line-height: 1.8;
    overflow-x: hidden;
}

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

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 247, 240, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    background: rgba(250, 247, 240, 0.95);
    box-shadow: 0 2px 20px var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink-black);
    font-size: 1.4rem;
    font-weight: bold;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--vermilion);
    animation: spin 20s linear infinite;
    display: inline-block;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    color: var(--ink-gray);
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--vermilion);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--vermilion);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 语言切换按钮 */
.lang-switch {
    display: inline-block;
    padding: 5px 14px !important;
    border: 1.5px solid var(--vermilion) !important;
    border-radius: 20px !important;
    color: var(--vermilion) !important;
    font-size: 0.85rem !important;
    font-weight: bold !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
}

.lang-switch:hover {
    background: var(--vermilion) !important;
    color: var(--rice-white) !important;
}

.lang-switch::after {
    display: none !important;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--ink-black);
    transition: 0.3s;
}

/* ===== 首页横幅 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--rice-white) 0%, #ede5d3 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.06;
    pointer-events: none;
}

.ink-circle {
    font-size: 50rem;
    color: var(--ink-black);
    line-height: 1;
}

.ink-circle.spinning {
    animation: spin 30s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
}

.hero-subtitle {
    color: var(--vermilion);
    font-size: 1.2rem;
    letter-spacing: 8px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--ink-black);
    font-weight: 900;
    margin-bottom: 25px;
    letter-spacing: 4px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--ink-gray);
    margin-bottom: 40px;
}

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

.btn {
    padding: 14px 40px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid;
}

.btn-primary {
    background: var(--vermilion);
    color: var(--rice-white);
    border-color: var(--vermilion);
}

.btn-primary:hover {
    background: var(--vermilion-dark);
    border-color: var(--vermilion-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--ink-black);
    border-color: var(--ink-black);
}

.btn-outline:hover {
    background: var(--ink-black);
    color: var(--rice-white);
    transform: translateY(-2px);
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--ink-light);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* 淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.4s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }
.fade-in:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 数据统计 ===== */
.stats {
    background: var(--ink-black);
    padding: 60px 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--rice-white);
    font-size: 1rem;
    opacity: 0.8;
}

/* ===== 通用区块 ===== */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--ink-black);
    margin-bottom: 15px;
    font-weight: 900;
}

.section-title span {
    color: var(--vermilion);
}

.section-subtitle {
    text-align: center;
    color: var(--ink-light);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

/* ===== 关于我 ===== */
.about {
    background: var(--rice-paper);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-placeholder {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #e8e0cc, #d4c9ab);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ink-light);
    box-shadow: 0 20px 40px var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.image-placeholder span {
    font-size: 5rem;
    margin-bottom: 15px;
}

/* 老师照片样式 */
.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 40px var(--shadow);
    display: block;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--ink-black);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--ink-gray);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.about-list {
    list-style: none;
    margin-bottom: 30px;
}

.about-list li {
    margin-bottom: 12px;
    color: var(--ink-dark);
    font-size: 1.05rem;
}

.check {
    color: var(--bamboo);
    font-weight: bold;
    margin-right: 10px;
}

.philosophy {
    border-left: 4px solid var(--vermilion);
    padding: 15px 25px;
    background: rgba(192, 57, 43, 0.05);
    border-radius: 0 8px 8px 0;
}

.philosophy-text {
    font-style: italic;
    color: var(--ink-dark);
    margin: 0;
    font-size: 1.1rem;
}

/* ===== 课程 ===== */
.courses {
    background: var(--rice-white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background: var(--rice-paper);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    box-shadow: 0 5px 20px var(--shadow);
}

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

.course-card.featured {
    border-color: var(--vermilion);
    transform: scale(1.03);
}

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

.course-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--vermilion);
    color: var(--rice-white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
}

.course-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.course-card h3 {
    font-size: 1.5rem;
    color: var(--ink-black);
    margin-bottom: 10px;
}

.course-target {
    color: var(--vermilion);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.course-desc {
    color: var(--ink-gray);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.course-features {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.course-features li {
    padding: 6px 0;
    color: var(--ink-dark);
    position: relative;
    padding-left: 25px;
}

.course-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.course-price {
    margin-top: 10px;
}

.course-price .price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--vermilion);
}

.course-price .unit {
    color: var(--ink-light);
    font-size: 1rem;
}

.courses-note {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background: rgba(184, 147, 90, 0.1);
    border-radius: 8px;
    color: var(--ink-dark);
}

/* ===== 风采展示 ===== */
.gallery {
    background: var(--rice-paper);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--shadow);
    background: #f5f0e8;
    aspect-ratio: 3 / 4;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
    /* 大图占 2×2，高度由右侧两行自动匹配，取消自身 aspect-ratio */
    aspect-ratio: unset;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--rice-white);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.gallery-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ===== 学员评价 ===== */
.testimonials {
    background: var(--ink-black);
}

.testimonials .section-title,
.testimonials .section-subtitle {
    color: var(--rice-white);
}

.testimonials .section-title span {
    color: var(--gold);
}

.testimonials .section-subtitle {
    opacity: 0.6;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 35px;
    border-radius: 10px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.quote-mark {
    font-size: 5rem;
    color: var(--gold);
    line-height: 0.8;
    margin-bottom: 10px;
    opacity: 0.3;
}

.testimonial-card p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    font-size: 1rem;
}

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

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--vermilion);
    color: var(--rice-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
}

.testimonial-author strong {
    display: block;
    color: var(--rice-white);
}

.testimonial-author span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== 联系方式 ===== */
.contact {
    background: var(--rice-paper);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--ink-black);
    margin-bottom: 15px;
}

.contact-desc {
    color: var(--ink-gray);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--rice-white);
    border-radius: 8px;
    transition: transform 0.3s;
}

.contact-list li:hover {
    transform: translateX(10px);
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-list strong {
    display: block;
    color: var(--ink-black);
    margin-bottom: 4px;
}

.contact-list p {
    color: var(--ink-gray);
    margin: 0;
}

/* ===== 二维码墙（多平台） ===== */
.qr-wall {
    text-align: center;
}

.qr-wall-title {
    font-size: 1.1rem;
    color: var(--ink-black);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--vermilion);
    display: inline-block;
}

.qr-wall-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.qr-card {
    background: var(--rice-white);
    padding: 16px 12px;
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px var(--shadow-hover);
}

.qr-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--rice-paper);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    padding: 8px;
}

.qr-card strong {
    color: var(--ink-black);
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.qr-card span {
    color: var(--ink-light);
    font-size: 0.8rem;
}

.qr-tip {
    color: var(--ink-light);
    font-size: 0.85rem;
    margin-top: 18px;
}
/* ===== 页脚 ===== */
.footer {
    background: var(--ink-black);
    color: var(--rice-white);
    padding: 50px 0 30px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-brand .logo-icon {
    color: var(--vermilion);
}

.footer-quote {
    font-style: italic;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--vermilion);
    color: var(--rice-white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4);
}

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

.back-to-top:hover {
    background: var(--vermilion-dark);
    transform: translateY(-3px);
}

/* ===== 滚动出现动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 968px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .courses-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

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

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--rice-paper);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s;
        box-shadow: 0 10px 30px var(--shadow);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }

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

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

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

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-item {
        border-right: none;
    }

    .stat-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
    }

    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .btn {
        text-align: center;
    }

    .ink-circle {
        font-size: 25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .stat-num {
        font-size: 2.2rem;
    }
}
