/* 全局样式 */
:root {
    --primary-color: #ff85a2;
    --secondary-color: #ffc2d1;
    --accent-color: #ff4d6d;
    --text-color: #333333;
    --light-text: #666666;
    --bg-color: #ffffff;
    --bg-light: #fff5f7;
    --border-color: #ffe0e9;
    --shadow: 0 4px 6px rgba(255, 133, 162, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

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

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.bg-light {
    background-color: var(--bg-light);
}

/* 头部样式 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    margin-top: 10px;
}
.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 20px;
    transition: var(--transition);
}

.main-nav a:hover {
    background-color: var(--secondary-color);
    color: var(--accent-color);
}

/* 英雄区域样式 */
.hero-section {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--secondary-color) 100%);
    text-align: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

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

/* 内容区域样式 */
.content-section {
    padding: 80px 0;
}

/* 卡片样式 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

.card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 133, 162, 0.15);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.card-content p {
    color: var(--light-text);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.read-more {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 5px 0;
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.read-more:hover::after {
    width: 100%;
}

/* 分类区域样式 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.category-item {
    text-align: center;
    padding: 15px;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 133, 162, 0.15);
}

.category-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.category-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.category-item p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* 文章列表样式 */
.article-list {
    max-width: 800px;
    margin: 0 auto;
}

.article-item {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.article-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.article-meta {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.article-content {
    margin-bottom: 20px;
}

.article-content p {
    line-height: 1.8;
}

/* 社区区域样式 */
.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.community-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 133, 162, 0.12);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.community-cta {
    text-align: center;
}

.community-cta img {
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* 关于我们区域样式 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

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

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* 页脚样式 */
#footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-links-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

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

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

.footer-links-column a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links-column a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #999;
}

.footer-bottom a {
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .community-content,
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .community-cta {
        margin-top: 30px;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-logo {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .community-features {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding: 140px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav li {
        margin: 5px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

