/* 全局样式 */
:root {
    --primary-color: #333333;
    --secondary-color: #000000;
    --accent-color: #f0f0f0;
    --text-color: #444;
    --light-gray: #f9f9f9;
    --medium-gray: #eaeaea;
    --dark-gray: #888;
    --white: #ffffff;
    --max-width: 1200px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'SimHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
}

a:hover {
    color: #000;
}

.btn {
    display: inline-block;
    background-color: #333;
    color: var(--white);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: #000;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
    font-size: 30px;
    font-weight: 300;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #333;
}

/* 头部样式 */
.header {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--medium-gray);
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 230px;
    height: 50px;
    margin-right: 15px;
}

.logo-container h1 {
    font-size: 22px;
    color: var(--text-color);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.contact-info {
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 5px;
    color: #555;
}

/* 导航栏样式 */
.main-nav {
    background-color: var(--white);
    border-bottom: 1px solid var(--medium-gray);
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: block;
    color: var(--text-color);
    padding: 15px 25px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-list a:hover, .nav-list a.active {
    color: #000;
}

.nav-list a:hover::after, .nav-list a.active::after {
    width: 30px;
}

/* 健康管理专栏样式 */
.health-management {
    padding: 50px 0;
    background-color: var(--light-gray);
}

.case-grid {
    margin-top: 30px;
}

.case-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 30px;
}

.case-item {
    flex: 0 0 calc(25% - 30px);
    margin: 0 15px 30px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.05);
}

.case-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-item h3 {
    padding: 15px 15px 5px;
    font-size: 18px;
    color: #333;
}

.case-item p {
    padding: 0 15px 15px;
    font-size: 14px;
    color: var(--dark-gray);
}

.case-item .btn {
    margin: 0 15px 15px;
}

/* 养老机构推荐样式 */
.elderly-care {
    padding: 50px 0;
}

.institutions-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.institution-item {
    flex: 0 0 calc(25% - 30px);
    margin: 0 15px 30px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

@media (max-width: 1200px) {
    .institution-item {
        flex: 0 0 calc(33.333% - 30px);
    }
}

@media (max-width: 992px) {
    .institution-item {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 576px) {
    .institution-item {
        flex: 0 0 calc(100% - 30px);
    }
}

.institution-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.05);
}

.institution-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.institution-content {
    padding: 15px;
}

.institution-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    height: 50px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.institution-info {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--dark-gray);
}

.institution-info p {
    margin: 5px 0;
    line-height: 1.4;
    font-size: 14px;
}

.institution-address {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--medium-gray);
    color: #666;
}

.institution-bed, .institution-type, .institution-service {
    color: #777;
}

.institution-price {
    font-weight: bold;
    color: #555;
    margin-bottom: 12px;
}

.institution-item .btn {
    display: inline-block;
}

/* 养老机构区域 */
.elderly-care {
    padding: 60px 0;
}

/* 页脚样式 */
.footer {
    background-color: var(--light-gray);
    color: var(--text-color);
    padding: 60px 0 0;
    border-top: 1px solid var(--medium-gray);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    padding: 0 15px;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-col h3 {
    position: relative;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #333;
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-col i {
    margin-right: 10px;
    color: #555;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #000;
    padding-left: 5px;
}

.footer-bottom {
    background-color: var(--white);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid var(--medium-gray);
    width: 100%;
    margin: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

.footer-bottom a {
    color: #555;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .case-item, .institution-item {
        flex: 0 0 calc(33.333% - 30px);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: center;
    }
    
    .logo-container {
        margin-bottom: 10px;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .case-item, .institution-item {
        flex: 0 0 calc(50% - 30px);
    }
    
    .footer-col {
        flex: 0 0 50%;
    }
}

@media (max-width: 576px) {
    .case-item, .institution-item {
        flex: 0 0 calc(100% - 30px);
    }
    
    .footer-col {
        flex: 0 0 100%;
    }
}

/* About Us Section Styles */
.about-us {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.about-us .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mission-section,
.advantages-section,
.services-section {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.mission-section:hover,
.advantages-section:hover,
.services-section:hover {
    transform: translateY(-5px);
}

.about-us h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-us h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #007bff;
}

.about-us p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.advantages-section ul,
.services-section ul {
    list-style: none;
    padding: 0;
}

.advantages-section ul li,
.services-section ul li {
    color: #666;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.advantages-section ul li::before,
.services-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

.services-section ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.services-section ul li {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
    position: relative;
    padding-left: 40px;
}

.services-section ul li::before {
    content: '✓';
    position: absolute;
    left: 15px;
    color: #007bff;
    font-weight: bold;
}

.services-section ul li:hover {
    background-color: #e9ecef;
}

@media (max-width: 768px) {
    .about-us {
        padding: 40px 0;
    }
    
    .mission-section,
    .advantages-section,
    .services-section {
        padding: 20px;
    }
    
    .about-us h2 {
        font-size: 24px;
    }
    
    .services-section ul {
        grid-template-columns: 1fr;
    }
}