/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Noto Sans SC', sans-serif;
    color: #b0b0;
    line-height: 1.6;
    background-color: #f9f9f9;
}

h1, h2, h3, h4 {
    <!--font-family: 'Playfair Display', serif;-->
    font-family: san-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: #666;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.primary-btn {
    background-color: #5c6b78;
    color: white;
}

.primary-btn:hover {
    background-color: #3a8bc8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 159, 224, 0.3);
}

.secondary-btn {
    background-color: white;
    color: #4a9fe0;
    border: 2px solid #4a9fe0;
}

.secondary-btn:hover {
    background-color: #f0f8ff;
    transform: translateY(-2px);
}

.card-btn {
    background-color: #e9e4e6;
    color: #4a9fe0;
    width: 100%;
}

.card-btn:hover {
    background-color: #e1dbdc;
}

.chat-btn {
    background-color: #5c6b78;
    color: white;
    font-size: 18px;
    padding: 15px 30px;
}

.chat-btn:hover {
    background-color: #8c6b78;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92, 18, 0, 0.3);
}

/* ===== 导航栏 ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #f2f0f2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #4a9fe0;
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin: 0 15px;
    font-weight: 500;
    color: #948d95;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4a9fe0;
}

.login-btn {
    background: none;
    color: #555;
    margin-right: 10px;
}

.login-btn:hover {
    color: #4a9fe0;
}

/* ===== 语言切换器 ===== */
.language-switcher {
    display: flex;
    align-items: center;
    margin: 0 15px;
}

.lang-btn {
    background: none;
    border: none;
    color: #555;
    font-weight: 500;
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
    transition: color 0.3s;
}

.lang-btn:hover {
    color: #4a9fe0;
}

.lang-btn.active {
    color: #4a9fe0;
    font-weight: 700;
}

.lang-separator {
    color: #ddd;
    margin: 0 5px;
}

/* ===== 英雄区域 ===== */
.hero {
    background: linear-gradient(135deg, #c2b8c3 0%, #f0f9ff 100%);
    padding: 0px 0px 0px 0px;
    text-align: center;
    height: 400px;
}

.hero-content {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding-bottom: 0px;

}

.hero h1 {
    font-size: 60px;
    font-family: Fantasy;
    margin-bottom: 20px;
    color: #716773;
}

.hero p {
    font-size: 20px;
    color: #948d95;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ===== 服务卡片 ===== */
.services {
    padding: 20px 0;
    text-align: center;
    font-family: Sans-serif;
    /* background: #f2f0f2; */
    background-image: url("../images/family1.jpg");
    background-size: cover;
    background-position: center; /* 可选，确保图片居中 */
    background-repeat: no-repeat; /* 防止图片重复 */
    
}

.services h2 {
    font-size: 36px;
    color: #8f8d88;
    margin-bottom: 50px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.card {
    background: #e7e4e9;
    border-radius: 35px;
    padding: 30px 25px;
    box-shadow: 10px 30px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.6s;
    margin-bottom: 10px;
    opacity: 0.85;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 10px 25px 70px rgba(0, 0, 0, 0.4);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #cfcecd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a9fe0;
    font-size: 30px;
}

.card h3 {
    font-size: 50px;
    color: #8f8d88;
    margin-bottom: 15px;
}

/* ===== 注册/登录区域 ===== */
.auth-section {
    padding: 60px 0;
    background-color: #f2f0f2;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: #f3f2f6;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.auth-container h2 {
    color: #8f8d88;
    margin-bottom: 15px;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
   
}

.social-btn {
    padding: 12px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.google {
    color: #b6334e;
    border-color: #b6334e;
}

.facebook {
    color: #4267B2;
    border-color: #4267B2;
}

.wechat {
    color: #646f49;
    border-color: #646f49;
}

.divider {
    position: relative;
    margin: 25px 0;
    color: #999;
}

.divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: -1;
}

.divider span {
    background: #f8f9fa;
    padding: 0 15px;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.signup-form input {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
}

.login-link {
    margin-top: 20px;
}

.login-link a {
    color: #4a9fe0;
    font-weight: 500;
}

/* ===== 社区区域 ===== */
.community {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #e2dfe2 0%, #f0f9ff 100%);

}

.community-content {
    max-width: 700px;
    margin: 0 auto;
}

.community h2 {
    font-size: 36px;
    color: #8f8d88;
}

/* ===== 功能区域 ===== */
.features {
    padding: 80px 0;
    text-align: center;
}

.features h2 {
    font-size: 36px;
    color: #8f8d88;
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.feature {
    padding: 30px;
    background: #f0f1f1;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 40px;
    color: #4a9fe0;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 20px;
    color: #8f8d88;
    margin-bottom: 15px;
}

/* ===== 页脚 ===== */
.footer {
    background-color: #e2dfe2;
    color: #b2afb3;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #5c6b78;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #47525c;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #3486ce;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #8f8d88;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .nav-links {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        margin: 5px 10px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .auth-container {
        padding: 30px 20px;
    }
    
    .language-switcher {
        margin: 10px 0;
        order: 1;
        width: 100%;
        justify-content: flex-end;
    }
}

/* ===== 中文特定样式 ===== */
html:lang(zh) body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.8;
}
