/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

header {
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    background-color: #000000;
    box-shadow: 0 2px 10px rgba(190, 189, 189, 0.1);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    padding-left: 10%;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}


.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #fffefe;
}

.header-right {
    display: flex;
    align-items: center;
    padding-right: 7%;
}

.contact {
    margin-right: 20px;
    font-size: 14px;
}

.contact a {
    text-decoration: none;
    color: #fdfcfc;
    margin: 0 10px;
}

.contact a:hover {
    color: #ff6a00;
}

.button-group {
    display: flex;
}

.login-btn {
    margin-right: 15px;
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid #ff6a00;
    color: #ff6a00;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.login-btn:hover {
    background-color: #ff6a00;
    color: white;
}

.register-btn {
    padding: 8px 20px;
    background-color: #ff6a00;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.register-btn:hover {
    background-color: #e65c00;
}

.main-nav {
    background-color: #f8f8f8;
    padding: 0px 50px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-icon {
    width: 70px;
    height: 70px;
    padding-left: 10.5%;
}

.nav-icon img {
    width: 80px;
    height: 80px;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding-right: 7%;

}

.menu-toggle {
    display: none
}

.nav-menu li {
    margin: 0 30px;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ff6a00;
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff6a00;
}

.content {
    padding: 40px;
}

@media (max-width: 1200px) {
    .nav-menu li {
        margin: 0 20px;
    }
}

@media (max-width: 1020px) {
    .nav-menu li {
        margin: 0 10px;
    }
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 870px) {
    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-icon {
        display: none
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        margin: 0 30px;
    }

    .nav-menu {
        display: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 20px 0;
        background-color: #f8f8f8;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0 15px;
    }
}

/* banner区域样式 */
.banner {
    width: 100%;
    height: 400px;
    background: url(./images/sl01.webp) center center / 1920px 100% no-repeat;
    margin-top: 0;
}



/* 底部 footer */
.footer {
    background-color: #f4f4f4;
    padding: 10px;
    text-align: center;
}

.footer a {
    color: #333;
    text-decoration: none;
    margin: 0 15px;
}

/* 版权声明区域样式 */
.copyright {
    background-color: #f9f9f9;
    padding: 15px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

/* 返回顶部按钮 */
#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
}

#backToTopBtn.show {
    opacity: 1;
}

#backToTopBtn img {
    width: 24px;
    height: 24px;
    display: block;
}

/* 大幅海报区域样式 */
.hero-section {
    background: url('https://picsum.photos/1920/800') center/cover no-repeat;
    height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    z-index: 1;
    color: white;
}

.hero-content h1 {
    font-size: 64px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    background-color: #e8420a;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #c0392b;
}

/* 四季养生总览样式 */
.season-overview {
    padding: 80px 0;
    text-align: center;
}

.season-overview h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.season-overview-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.season-overview-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.season-overview-item:hover {
    transform: translateY(-10px);
}

.season-overview-icon img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.season-overview-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.season-overview-item p {
    font-size: 16px;
}
@media (max-width: 768px) {
    .season-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .season-overview-grid {
        grid-template-columns: 1fr;
    }
}
/* 四季养生详细内容样式 */
/* 四季养生详细内容样式 */
.season-details {
    padding: 80px 0;
}

.season-detail-item {
    max-width: 1200px;
    margin: 0 auto 80px;
    display: flex;
    align-items: center;
    gap: 50px;
}

/* 定义浮动动画 */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* 应用浮动动画到图片 */
.floating-image {
    animation: float 5s ease-in-out infinite;
}

.season-detail-image {
    flex: 1;
}

.season-detail-image img {
    width: 100%;
    border-radius: 10px;
}

.season-detail-text {
    flex: 1;
}

.season-detail-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.season-detail-text h3 {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.season-detail-text p {
    font-size: 16px;
    line-height: 1.6;
}
@media (max-width: 768px) {

    .season-detail-image {
        display: none;
    }
     .season-detail-text h2 {
        text-align: center;
    }

}

/* 养生问答板块样式 */
.faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.faq-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

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

.faq-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: left;
}

.faq-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 16px;
    line-height: 1.6;
}

/* 底部 footer */
.footer {
    background-color: #f4f4f4;
    padding: 10px;
    text-align: center;
}

.footer a {
    color: #333;
    text-decoration: none;
    margin: 0 15px;
}

.footer-links {
    background-color: #f4f4f4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 5px 0;
    justify-content: center;
    gap: 10px;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    color: rgb(22, 22, 22);
}

.footer-links a:not(:last-child)::after {
    content: "|";
    margin-left: 10px;
    color: #666;
}

/* 版权声明区域样式 */
.copyright {
    background-color: #f4f4f4;
    padding: 8px 15px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

/* 返回顶部按钮 */
#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
}

#backToTopBtn.show {
    opacity: 1;
}

#backToTopBtn img {
    width: 40px;
    height: 40px;
    display: block;
}


.content-box {
    margin-top: 20px;
}



.content-section.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.content-section {
    display: none;
  }
  .content-section.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
  }

