/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background 0.3s;

}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #d4af37;
}

/* 英雄区 */
.hero {
    height: 100vh;
    background: url('https://q8.itc.cn/images01/20240229/8e5a96a23fbf4a819e76cbca9ffd86aa.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5em;
    max-width: 600px;
    margin: 0 auto;
}

/* 通用section样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    width: 50px;
    height: 3px;
    background: #d4af37;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* 关于我们 */
.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.text-block {
    flex: 1;
    min-width: 300px;
    margin-right: 20px;
}

.section-text {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.highlight {
    color: #d4af37;
    font-weight: bold;
}

.info-grid {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.info-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.info-card i {
    font-size: 2em;
    color: #d4af37;
    margin-right: 10px;
}

.number {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
}

.label {
    font-size: 1em;
    color: #666;
}

.service-showcase {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.service-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.service-info {
    padding: 15px;
}

.service-info h4 {
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.modern-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.modern-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.modern-link:hover i {
    transform: translateX(5px);
}

/* 养生理念 */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.philosophy-card {
    position: relative;
    perspective: 1000px;
    height: 300px;
}

.card-front, .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-front {
    background: #fff;
    transform: rotateY(0deg);
}

.card-back {
    background: #2c3e50;
    color: #fff;
    transform: rotateY(180deg);
}

.philosophy-card:hover .card-front {
    transform: rotateY(-180deg);
}

.philosophy-card:hover .card-back {
    transform: rotateY(0deg);
}

.philosophy-img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.card-content {
    padding: 15px;
    text-align: center;
}

.card-content h3 {
    font-size: 1.3em;
    color: #2c3e50;
}

.back-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
}

.back-content i {
    font-size: 2em;
    margin-bottom: 10px;
}

.back-content h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.back-content ul {
    list-style: none;
    text-align: center;
}

.back-content ul li {
    margin: 5px 0;
}

/* 特色服务 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.service-subtitle {
    font-size: 0.9em;
    color: #d4af37;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 1em;
    margin-bottom: 10px;
}

.service-card ul {
    list-style: none;
    margin-bottom: 10px;
}

.service-card ul li {
    margin: 5px 0;
}

.service-tag {
    font-size: 0.9em;
    color: #d4af37;
    font-weight: bold;
}

/* 精选内容 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.content-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.content-item h3 {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.content-item ul {
    list-style: none;
}

.content-item ul li {
    margin-bottom: 10px;
}

.content-item ul li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.content-item ul li a:hover {
    color: #d4af37;
}
/* 文章页面样式 */
.article-section {
    background: #fff;
    margin-top: 80px; /* 避免被固定导航栏遮挡 */
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.article-title {
    font-size: 2.2em;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 5px;
    color: #d4af37;
}

.article-body {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 20px;
}

.article-nav {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-item {
    margin: 10px 0;
}

.nav-item span {
    font-weight: bold;
    color: #2c3e50;
}

.nav-item a {
    text-decoration: none;
    color: #d4af37;
    transition: color 0.3s;
}

.nav-item a:hover {
    color: #2c3e50;
}
/* 页脚 */
footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

footer h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

footer p {
    margin: 10px 0;
    font-size: 1.1em;
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: #d4af37;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .about-content {
        flex-direction: column;
    }

    .text-block {
        margin-right: 0;
    }

    .service-showcase {
        flex-direction: column;
    }
}
