/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部信息栏 */
.top-bar {
    background: #2c3e50;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-right a {
    color: #ecf0f1;
    text-decoration: none;
    margin-left: 15px;
}

.top-right a:hover {
    color: #3498db;
}

.separator {
    margin: 0 10px;
    color: #7f8c8d;
}

/* 导航栏 */
.navbar {
    background: #34495e;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h1 {
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 15px 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 20px 15px;
    display: block;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: #2c3e50;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主页横幅 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 30px;
    font-size: 14px;
    opacity: 0.8;
}

.hero-image {
    text-align: center;
}

.hero-img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 主要内容区域 */
.main-content {
    padding: 40px 0;
}

.content-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #e74c3c;
}

/* 服务网格 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 18px;
    margin: 15px 20px 10px;
    color: #2c3e50;
}

.service-card p {
    color: #7f8c8d;
    margin: 0 20px 15px;
    line-height: 1.5;
}

.more-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    margin: 0 20px 20px;
    display: inline-block;
}

.more-link:hover {
    text-decoration: underline;
}

/* 足浴按摩网格 */
.massage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.massage-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.massage-card:hover {
    transform: translateY(-5px);
}

.massage-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.massage-content {
    padding: 15px 20px;
}

.massage-content h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* SPA文章 */
.spa-articles {
    display: grid;
    gap: 30px;
}

.spa-article {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 300px 1fr;
}

.article-image {
    height: 250px;
    overflow: hidden;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.article-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.news-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.news-content p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* 环境展示 */
.environment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.env-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.env-card:hover {
    transform: translateY(-5px);
}

.env-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.env-card h3 {
    font-size: 18px;
    color: #2c3e50;
    margin: 15px 20px 10px;
}

.env-card p {
    color: #7f8c8d;
    margin: 0 20px 20px;
    line-height: 1.5;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links h3 {
    margin-bottom: 15px;
    color: #3498db;
}

.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-list a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
}

.link-list a:hover {
    color: #3498db;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-info strong {
    color: #3498db;
}

.footer-interest p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-nav {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

.footer-nav a {
    color: #bdc3c7;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
}

.footer-nav a:hover {
    color: #3498db;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100%;
        flex-direction: column;
        background-color: #34495e;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 15px;
        border-bottom: 1px solid #2c3e50;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-img {
        max-width: 100%;
        height: 250px;
    }
    
    .service-grid,
    .massage-grid,
    .news-grid,
    .environment-grid {
        grid-template-columns: 1fr;
    }
    
    .spa-article {
        grid-template-columns: 1fr;
    }
    
    .article-image {
        height: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .link-list {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .service-card,
    .spa-article,
    .news-card,
    .env-card {
        margin: 0 10px;
    }
    
    .footer-nav a {
        display: block;
        margin: 10px 0;
    }
}

/* 图片加载动画 */
.service-img,
.massage-img,
.article-img,
.news-img,
.env-img,
.hero-img {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 图片加载失败时的样式 */
img {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

img:not([src]), 
img[src=""] {
    display: none;
} 