/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #faf8f5;
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: #f4f1eb;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #f4f1eb;
}

.tagline {
    font-size: 0.84rem;
    opacity: 0.9;
    font-weight: 300;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #f4f1eb;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ffd700;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

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

.nav-link1 {
    color: #f4f1eb;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link1:hover,
.nav-link1.active {
    color: #ffd700;
}

.nav-link1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

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

/* 主要内容 */
.main {
    margin-top: 80px;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(rgba(139, 69, 19, 0.5), rgba(160, 82, 45, 0.1)), 
                url('../img/banner.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #f4f1eb;
    position: relative;
}

.hero-content {
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.8;
}

.cta-button {
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: #2c3e50;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* 装饰元素 */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.bamboo-left,
.bamboo-right {
    position: absolute;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(212, 175, 55, 0.1) 20%, 
        rgba(212, 175, 55, 0.2) 50%, 
        rgba(212, 175, 55, 0.1) 80%, 
        transparent 100%);
}

.bamboo-left {
    left: 10%;
    transform: rotate(-2deg);
}

.bamboo-right {
    right: 10%;
    transform: rotate(2deg);
}

/* 通用区块样式 */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: #8b4513;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #d4af37, #ffd700);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

/* 专科模块 */
.specialty-section {
    background: #fff;
}

.specialty-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 50px;
    justify-content: center;
}

.specialty-item {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.specialty-item {
    background: #faf8f5;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.specialty-item:hover {
    text-decoration: none;
    color: inherit;
}

.specialty-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.specialty-item:hover::before {
    left: 100%;
}

.specialty-item:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.specialty-image {
    margin-bottom: 20px;
}

.image-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    position: relative;
}

.pediatrics {
    background: linear-gradient(135deg, #ff75ba, #fda9d7);
}

.pediatrics::after {
    content: '👶';
}

.internal {
    background: linear-gradient(135deg, #4169e1, #1e90ff);
}

.internal::after {
    content: '🫀';
}

.andrology {
    background: linear-gradient(135deg, #32cd32, #228b22);
}

.andrology::after {
    content: '♂️';
}

.gynecology {
    background: linear-gradient(135deg, #ff6347, #ff4500);
}

.gynecology::after {
    content: '♀️';
}

.dermatology {
    background: linear-gradient(135deg, #ffd700, #ffa500);
}

.dermatology::after {
    content: '🌸';
}

.pain {
    background: linear-gradient(135deg, #8b4513, #a0522d);
}

.pain::after {
    content: '⚡';
}

.specialty-title {
    font-size: 1.3rem;
    color: #8b4513;
    margin-bottom: 10px;
    font-weight: 600;
}

.specialty-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 疗法模块 */
.therapy-section {
    background: linear-gradient(135deg, rgba(250, 248, 245, 0.8) 0%, rgba(240, 237, 230, 0.8) 100%),
                url('../img/therapy-bg.jpg');
    background-size: cover;
    background-position: center;
}

.therapy-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.therapy-swiper {
    overflow: hidden;
}

.therapy-item {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: auto;
    min-width: 200px;
    max-width: 280px;
    flex: 1 1 auto;
    text-decoration: none;
    color: inherit;
    display: block;
    margin: 0;
}

.therapy-item:hover {
    border-color: #d4af37;
    text-decoration: none;
    color: inherit;
}

/* Swiper 自定义样式 */
.therapy-swiper {
    padding: 0 20px;
}

.therapy-swiper .swiper-slide {
    width: auto;
    display: flex;
}

.therapy-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.therapy-swiper .swiper-button-next,
.therapy-swiper .swiper-button-prev {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #d4af37;
    border-radius: 50%;
    color: #d4af37;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
}

.therapy-swiper .swiper-button-next:hover,
.therapy-swiper .swiper-button-prev:hover {
    background: #d4af37;
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 10px rgba(212, 175, 55, 0.3);
}

.therapy-swiper .swiper-button-next::after,
.therapy-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.therapy-swiper .swiper-button-prev {
    left: 5px;
}

.therapy-swiper .swiper-button-next {
    right: 5px;
}

.therapy-image {
    margin-bottom: 15px;
}

.therapy-image .image-placeholder {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.therapy-acupuncture {
    background: linear-gradient(135deg, #8b4513, #a0522d);
}

.therapy-acupuncture::after {
    content: '🔸';
}

.therapy-moxibustion {
    background: linear-gradient(135deg, #ff6347, #ff7f50);
}

.therapy-moxibustion::after {
    content: '🔥';
}

.therapy-cupping {
    background: linear-gradient(135deg, #cd853f, #daa520);
}

.therapy-cupping::after {
    content: '🥛';
}

.therapy-scraping {
    background: linear-gradient(135deg, #4682b4, #5f9ea0);
}

.therapy-scraping::after {
    content: '🪃';
}

.therapy-herbal {
    background: linear-gradient(135deg, #228b22, #32cd32);
}

.therapy-herbal::after {
    content: '🌿';
}

.therapy-massage {
    background: linear-gradient(135deg, #9370db, #8a2be2);
}

.therapy-massage::after {
    content: '👐';
}

.therapy-orthopedic {
    background: linear-gradient(135deg, #8b4513, #a0522d);
}

.therapy-orthopedic::after {
    content: '🦴';
}

.therapy-patch {
    background: linear-gradient(135deg, #ff8c00, #ffa500);
}

.therapy-patch::after {
    content: '🏷️';
}

.therapy-paste {
    background: linear-gradient(135deg, #9370db, #8a2be2);
}

.therapy-paste::after {
    content: '🍯';
}

.therapy-title {
    font-size: 1.1rem;
    color: #8b4513;
    margin-bottom: 8px;
    font-weight: 600;
}

.therapy-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 医馆介绍 */
.about-section {
    background: #fff;
}

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

.about-text h3 {
    font-size: 1.8rem;
    color: #8b4513;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.about-features {
    display: flex;
    gap: 30px;
}

.feature-item {
    text-align: center;
}

.feature-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 5px;
}

.feature-text {
    font-size: 0.9rem;
    color: #666;
}

.about-image .image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #8b4513, #a0522d);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

.about-clinic::after {
    content: '🏥';
}

/* 知识分享 */
.knowledge-section {
    background: linear-gradient(135deg, rgba(250, 248, 245, 0.7) 0%, rgba(240, 237, 230, 0.7) 100%),
                url('../img/knowledge-bg.jpg');
    background-size: cover;
    background-position: center;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.knowledge-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.knowledge-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.knowledge-image .image-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 0;
    font-size: 2.5rem;
}

.knowledge-seasons {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
}

.knowledge-seasons::after {
    content: '🍃';
}

.knowledge-diet {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.knowledge-diet::after {
    content: '🥗';
}

.knowledge-acupoints {
    background: linear-gradient(135deg, #a8e6cf, #7fcdcd);
}

.knowledge-acupoints::after {
    content: '👆';
}

.knowledge-content {
    padding: 25px;
}

.knowledge-title {
    font-size: 1.3rem;
    color: #8b4513;
    margin-bottom: 12px;
    font-weight: 600;
}

.knowledge-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.knowledge-date {
    color: #999;
    font-size: 0.9rem;
}



/* 页脚 */
.footer {
    background: rgba(139, 69, 19, 0.95);
    color: #ecf0f1;
    padding: 0 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
}

.footer-info h3 {
    color: #d4af37;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-info p {
    margin-bottom: 8px;
    opacity: 0.9;
}

.footer-links h4 {
    color: #d4af37;
    margin-bottom: 15px;
}

.footer-links a {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d4af37;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    opacity: 0.8;
}

/* 联系我们 */
.contact-section {
    background: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #faf8f5;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

.contact-icon .image-placeholder {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
}
.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.contact-address {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.contact-address::after {
    content: '📍';
}

.contact-phone {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.contact-phone::after {
    content: '📞';
}

.contact-time {
    background: linear-gradient(135deg, #45b7d1, #96c93d);
}

.contact-time::after {
    content: '🕐';
}

.contact-wechat {
    background: linear-gradient(135deg, #96c93d, #7ed321);
}

.contact-wechat::after {
    content: '💬';
}

/* 微信二维码浮窗样式 */
.wechat-item {
    position: relative;
    cursor: pointer;
}

.wechat-qr-popup {
    position: absolute;
    top: -130px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 2px solid #d4af37;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    width: 160px;
    height: 160px;
    text-align: center;
}
.wechat-qr-popup img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wechat-qr-popup::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #d4af37;
}

.wechat-item:hover .wechat-qr-popup {
    opacity: 1;
    visibility: visible;
    top: -150px;
}

.qr-placeholder {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #d4af37;
}

.wechat-qr-popup p {
    margin: 8px 0;
    color: #8b4513;
    font-weight: 600;
    font-size: 0.9rem;
}

.qr-tip {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-top: 5px;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .wechat-item:hover .wechat-qr-popup {
        opacity: 0;
        visibility: hidden;
    }
    
    .wechat-item.show-popup .wechat-qr-popup {
        opacity: 1;
        visibility: visible;
        top: -130px;
    }
    
    .wechat-qr-popup {
        top: -110px;
    }
}

.contact-details h3 {
    font-size: 1.1rem;
    color: #8b4513;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-details p {
    color: #666;
    font-size: 0.95rem;
}

.contact-map {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f0ede6, #e8e3d6);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d4af37;
}
.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.contact-map-icon {
    background: linear-gradient(135deg, #8b4513, #a0522d);
}

.contact-map-icon::after {
    content: '🗺️';
}

.map-placeholder p {
    margin-top: 15px;
    color: #8b4513;
    font-weight: 600;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main {
        margin-top: 140px;
    }
    
    .hero {
        height: 60vh;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .specialty-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: space-between;
    }
    
    .specialty-item {
        flex: 0 0 calc(50% - 7.5px);
        min-width: calc(50% - 7.5px);
        max-width: calc(50% - 7.5px);
    }
    
    .therapy-swiper {
        padding: 0 20px;
    }
    
    .therapy-item {
        flex: 1 1 calc(50% - 20px);
        min-width: 180px;
        max-width: 220px;
        padding: 20px 15px;
        margin: 0 8px;
    }
    
    .therapy-title {
        font-size: 1rem;
        margin: 10px 0 8px 0;
    }
    
    .therapy-desc {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .therapy-image {
        height: 70px;
        margin-bottom: 10px;
    }
    
    .therapy-swiper .swiper-button-next,
    .therapy-swiper .swiper-button-prev {
        display: none !important;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-features {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .therapy-item {
        flex: 1 1 calc(33.33% - 16px);
        min-width: 120px;
        max-width: 160px;
        padding: 15px 15px;
        margin: 0 5px;
    }
    
    .therapy-title {
        font-size: 0.9rem;
        margin: 8px 0 5px 0;
    }
    
    .therapy-desc {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .therapy-image {
        height: 60px;
        margin-bottom: 8px;
    }
    
    .about-features {
        flex-direction: row;
        gap: 15px;
        justify-content: space-between;
    }
    
    .feature-item {
        flex: 1;
        min-width: 0;
    }
    
    .feature-number {
        font-size: 2rem;
    }
}

/* 滚动条样式 */
.therapy-scroll::-webkit-scrollbar {
    height: 6px;
}

.therapy-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.therapy-scroll::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 3px;
}

.therapy-scroll::-webkit-scrollbar-thumb:hover {
    background: #b8941f;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.specialty-item,
.therapy-item,
.knowledge-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}