* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1A365D;
    --primary-color: #2D5AA0;
    --secondary-color: #C19A6B;
    --accent-color: #A52A2A;
    --accent-light: #CD5C5C;
    --light-color: #F8F5F0;
    --light-secondary: #E8E2D6;
    --dark-color: #2C2416;
    --text-color: #444444;
    --text-light: #666666;
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

body {
    font-family: 'Noto Serif SC', 'Inter', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.8rem;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

h1::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

h2 {
    font-size: 2rem;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), #8B1A1A);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-light), var(--secondary-color));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    display: inline-block;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 10px;
}

.logo-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.8rem;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--secondary-color);
}

.logo img {
    padding: 0px;
    height: 35px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--accent-color);
    cursor: pointer;
}

.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, rgba(244, 164, 96, 0.05), rgba(93, 138, 168, 0.05));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23F4A460" opacity="0.1" d="M50,0 C77.614,0 100,22.386 100,50 C100,77.614 77.614,100 50,100 C22.386,100 0,77.614 0,50 C0,22.386 22.386,0 50,0 Z M50,10 C28.402,10 10,28.402 10,50 C10,71.598 28.402,90 50,90 C71.598,90 90,71.598 90,50 C90,28.402 71.598,10 50,10 Z"></path></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    max-width: 700px;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 0.65;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.content-image {
    width: 100%;
    height: 265px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    display: grid;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.15rem;
    grid-template-rows: 1fr auto;
    position: relative;
    overflow: hidden;
}

.content-image img {
    margin: 10px auto;
    border-radius: 15px;
    width: 98%;
    object-fit: cover;
    grid-row: 1 / -1;
    grid-column: 1;
}

.content-image div {
    grid-row: 2;
    grid-column: 1;
    color: white;
    padding: 15px;
    z-index: 1;
    text-align: center;
}

.content-image:hover {
    font-size: 1.25rem
}

.content-image:hover image {
    width: 100%;
}

.placeholder-image {
    width: 100%;
    height: 255px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.placeholder-image img {
    width: 220px;
}

.about {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 0.65;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color), var(--secondary-color));
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.courses {
    background: linear-gradient(135deg, rgba(244, 164, 96, 0.03), rgba(93, 138, 168, 0.03));
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.course-image {
    height: 180px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    position: relative;
    overflow: hidden;
}

.course-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}

.course-content {
    padding: 25px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.course-price {
    font-weight: 700;
    color: var(--accent-color);
    /* 改为枣红色 */
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.instructor {
    background-color: white;
}

.instructor-profile {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.instructor-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
}

.instructor-info {
    flex: 1;
}

.instructor-quote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-light);
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
}

.community {
    background: linear-gradient(135deg, rgba(244, 164, 96, 0.05), rgba(93, 138, 168, 0.05));
}

.community-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.community-text {
    flex: 1;
}

.community-form {
    flex: 1;
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(165, 42, 42, 0.2);
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.85rem;
    line-height: 180%;
}

.copyright a {
    color: #aaa;
}

.none {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 992px) {

    .hero-content,
    .about-content,
    .community-content {
        flex-direction: column;
    }

    .hero-text,
    .about-text,
    .community-text {
        max-width: 100%;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .instructor-profile {
        flex-direction: column;
        text-align: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding-top: 120px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .course-cards {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }
}