* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif !important;
    background-color: #fff !important;
    /* 正文默认色 */
    color: #795548 !important;
}

img{
    max-width: 100%;
}

h1,
h2,
h3 {
    /* 书法标题字体 */
    font-family: "Ma Shan Zheng", cursive;
    /* 标题深棕 */
    color: #5D4037 !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.layui-layer {
    max-width: 100% !important;
    max-height: 100% !important;
}

.layui-tabs-header .layui-this,
.layui-tabs-header li:hover {
    color: #fff !important;
}

.layui-tabs-card>.layui-tabs-header .layui-this {
    background-color: #C49061 !important;
}

.layui-tabs-header:after,
.layui-tabs-scroll:after {
    border-bottom: 1px solid #C49061 !important;
}

.container {
    width: 1200px;
    margin: 0 auto;
    max-width: 100%;
}

header {
    /* 米白背景 */
    width: 100%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    background-color: #F8F2E8;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

header .nav {
    display: flex;
    color: #5D4037;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    transition: all 0.3s ease-in-out;
    position: relative;
}

header .layui-nav-child:empty {
    display: none !important;
}

header .nav .logo {
    min-width: 230px;
    margin-right: 50px;
    box-sizing: border-box;
    padding-left: 15px;
    height: 60px;
}

header .nav .logo a {
    display: flex;
    width: 100%;
    height: 100%;
    align-content: center;
    justify-content: center;
    align-items: center;

}

header .nav .logo a h1 {
    font-size: 28px;
    font-weight: normal;
}

header .nav .logo img {
    max-width: 100%;
}

header .nav .layui-nav {
    background-color: unset;
}

header .nav .layui-nav .layui-nav-item a {
    padding: 0 25px;
    color: #5D4037;
}

header .nav .layui-nav .layui-this a {
    font-weight: bold;
}

header .nav .layui-nav .layui-nav-itemed>a {
    color: #5D4037 !important;
}

header .nav .layui-nav-tree .layui-this {
    background-color: #C49061 !important;
}

header .nav .layui-nav-tree .layui-this a {
    background-color: #C49061 !important;
}

header .nav .nav-more {
    display: none !important;
    transition: all 0.3s ease-in-out;
    justify-content: flex-end;
}

header .nav .nav-more i {
    font-size: 32px;
    font-weight: bold;
    color: #C49061;
}

header .layui-nav .layui-this:after,
.layui-nav-bar {
    background-color: #C49061 !important;
}

footer {
    width: 100%;
    padding-top: 30px;
    background-color: #5D4037;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

footer * {
    color: #9E7D67;
}

footer p {
    text-align: center;
    margin-bottom: 10px;
}

footer a {
    color: #fff;
}

.bodyer {
    margin-top: 60px;
    width: 100%;
}

.banner {
    position: relative;
}

.banner>.layui-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner>img {
    width: 100%;
}

.blocks {
    display: block;
    width: 100%;
    height: 120px;
}

.title img {
    max-width: 100%;
}

[alt="bg"] {
    max-width: 100%;
    max-height: 100%;
}

.btn {
    display: inline-block;
    background-color: #C49061;
    /* 主色暖棕 */
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(196, 144, 97, 0.3);
}

.btn-red {
    background-color: #D32F2F;
}

.more {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.more a {
    padding: 8px 20px;
    font-size: 16px;
    color: #C49061;
}

.content {
    padding: 15px;
}

/* 课程展示区 */
.courses {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #C49061;
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.course-card {
    border: 1px solid #EFEBE9;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.course-card:hover {
    border-color: #C49061;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.course-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.course-desc {
    margin-bottom: 20px;
    font-size: 14px;
    color: #795548;
}

.course-img {
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.course-img img {
    max-width: 100%;
    max-height: 100%;
}

.course-info {
    padding: 15px 0;
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.course-info .title {
    background-color: #C49061;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-info .title span {
    font-size: 16px;
    color: #fff;
}

.course-info .title a {
    background-color: #D32F2F;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.course-info .objective>div,
.course-info .time>div,
.course-info .description>div {
    background-color: #C49061;
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
    display: inline-block;
}

/* 关于青荷视频区 */
.about {
    padding: 60px 0;
    background-color: #F8F2E8;
}

.video-container {
    text-align: center;
    margin-bottom: 30px;
}

.video-placeholder {
    background-color: #EFEBE9;
    margin: 0 auto;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9E7D67;
    position: relative;
}

.video-placeholder iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.video-placeholder::after {
    content: "▶";
    position: absolute;
    font-size: 40px;
    color: #C49061;
    opacity: 0.8;
}

.about-btn {
    text-align: center;
}

/* 师资介绍区 */
.teachers {
    padding: 60px 0;
}

.teacher-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.teacher-card {
    display: flex;
    gap: 25px;
    align-items: center;
}

.teacher-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #C49061;
    object-fit: cover;
}

.teacher-info .teacher-name {
    font-size: 20px;
    margin-bottom: 5px;
}

.teacher-info .teacher-school {
    font-size: 14px;
    color: #9E7D67;
    margin-bottom: 10px;
}

.teacher-desc {
    font-size: 13px;
    color: #795548;
}

/* 新闻&视频板块 */
.news-video {
    padding: 60px 0;
    background-color: #F8F2E8;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
}

.news-item {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateX(5px);
}

.news-thumb {
    width: 100px;
    height: 70px;
    border-radius: 4px;
    background-color: #EFEBE9;
    object-fit: cover;
}

.news-info .news-title {
    font-size: 16px;
    margin-bottom: 5px;
    color: #5D4037;
    font-weight: 700;

}

.news-desc {
    font-size: 12px;
    color: #9E7D67;
}

.video-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.video-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: scale(1.02);
}

.video-thumb {
    width: 100%;
    height: 140px;
    background-color: #EFEBE9;
    object-fit: cover;
}

.video-title {
    padding: 10px;
    font-size: 14px;
    color: #5D4037;
    text-align: center;
    background-color: #fff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 1. 预约表单区（置顶核心转化） */
.reservation {
    padding: 60px 0;
    background-color: #F8F2E8;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #5D4037;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #EFEBE9;
    border-radius: 4px;
    font-family: "Microsoft YaHei", sans-serif;
    color: #795548;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #C49061;
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #EFEBE9;
    border-radius: 4px;
    font-family: "Microsoft YaHei", sans-serif;
    color: #795548;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #C49061;
}

.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #EFEBE9;
    border-radius: 4px;
    font-family: "Microsoft YaHei", sans-serif;
    color: #795548;
    font-size: 14px;
    min-height: 100px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #C49061;
}

.form-note {
    font-size: 12px;
    color: #9E7D67;
    margin-top: 5px;
}

.form-submit {
    text-align: center;
    margin-top: 25px;
}

.submit-btn {
    padding: 10px 30px;
    font-size: 16px;
}

/* 5. 青荷新闻 */
.news {
    padding: 60px 0;
    background-color: #F8F2E8;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.news-cover {
    width: 100%;
    height: 160px;
    background-color: #EFEBE9;
    overflow: hidden;
}

.news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-cover img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-card-title {
    font-size: 16px;
    color: #5D4037;
    margin-bottom: 10px;
    font-weight: 700;
}

.news-desc {
    font-size: 13px;
    color: #795548;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 12px;
    color: #9E7D67;
    display: inline-block;
}

@media screen and (max-width: 768px) {
    header .nav .logo a {
        width: auto;
        height: auto;
    }

    header .nav .layui-nav-tree {
        width: 100%;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #fff;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    header .nav {
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        flex-direction: column;
    }

    header .nav .nav-more {
        display: flex !important;
    }

    header .nav .logo {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0px 15px;
        box-sizing: border-box;
    }

    header .nav .open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0px);
    }

    .blocks {
        height: 20px;
    }

    .more {
        justify-content: flex-start;
    }

    .course-cards,
    .teacher-list,
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .course-cards,
    .teacher-card {
        padding: 0 15px;
    }

    .teacher-desc {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }

    .video-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
    }

    .news-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .course-header{
        padding: 0 15px;
    }
}

.layui-fixbar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.layui-fixbar img {
    max-width: 100%;
    max-height: 100%;
}

.banner-photo {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.banner-photo img {
    max-width: 100%;
    max-height: 100%;
}

.pagination {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px;
}

.pagination li {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 5px;
    background-color: #C49061;
    color: #fff;
}

.pagination li>span {
    color: #3a3a3a;
}

.pagination li>a {
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}