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

/* 首页背景 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff9f5;
    background-image: linear-gradient(135deg, #fff9f5 0%, #fef3e6 100%);
}

/* 治愈所页面背景 */
body.zhiyusuo {
    background-color: #f9f5ff;
    background-image: linear-gradient(135deg, #f9f5ff 0%, #f0e6ff 100%);
}

/* 家百科页面背景 */
body.jiabaike {
    background-color: #f5f9ff;
    background-image: linear-gradient(135deg, #f5f9ff 0%, #e6f0ff 100%);
}

/* 善举器页面背景 */
body.shanjuqi {
    background-color: #f5fff9;
    background-image: linear-gradient(135deg, #f5fff9 0%, #e6ffe6 100%);
}

/* AI导航页面背景 */
body.ai-nav {
    background-color: #fff5f9;
    background-image: linear-gradient(135deg, #fff5f9 0%, #ffe6f0 100%);
}

/* 关于页背景 */
body.about {
    background-color: #f9fff5;
    background-image: linear-gradient(135deg, #f9fff5 0%, #e6fff0 100%);
}

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

header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

header h1 {
    color: #ff6b6b;
    font-size: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff6b6b;
}

.hero {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: #333;
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
}

.modules {
    padding: 60px 0;
}

.modules .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.module-card {
    background: #fff;
    background-image: linear-gradient(135deg, #fff 0%, #fef9f6 100%);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.module-card a {
    text-decoration: none;
    color: #333;
    display: block;
}

.module-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.featured {
    padding: 60px 0;
    background-color: #fff9f5;
    background-image: linear-gradient(135deg, #fff9f5 0%, #fef3e6 100%);
}

.featured h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.featured .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-card {
    background: #fff;
    background-image: linear-gradient(135deg, #fff 0%, #fef9f6 100%);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.featured-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.featured-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

button {
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #ff5252;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* 治愈所页面样式 */
.zhiyusuo-content {
    padding: 60px 0;
}

.section {
    background: #fff;
    background-image: linear-gradient(135deg, #fff 0%, #fef9f6 100%);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.section h2 {
    margin-bottom: 30px;
    color: #ff6b6b;
}

.breathing-guide {
    text-align: center;
    margin: 40px 0;
}

.breathing-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #ff9a9e;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 4s ease-in-out;
}

.white-noise {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.noise-item {
    flex: 1 1 200px;
    background: #fff;
    background-image: linear-gradient(135deg, #fff 0%, #fef9f6 100%);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 家百科页面样式 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    background-color: #f9f9f9;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tag:hover, .tag.active {
    background-color: #ff6b6b;
    color: #fff;
}

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

.knowledge-card {
    background: #fff;
    background-image: linear-gradient(135deg, #fff 0%, #fef9f6 100%);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.knowledge-card h3 {
    margin-bottom: 10px;
    color: #ff6b6b;
}

/* 善举器页面样式 */
.kindness-display {
    text-align: center;
    margin: 40px 0;
}

.kindness-text {
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding: 30px;
    background: #fff;
    background-image: linear-gradient(135deg, #fff 0%, #fef9f6 100%);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category {
    background-color: #f9f9f9;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.category:hover, .category.active {
    background-color: #ff6b6b;
    color: #fff;
}

.calendar {
    margin-top: 40px;
}

/* AI导航页面样式 */
.ai-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.ai-category {
    background-color: #f9f9f9;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ai-category:hover, .ai-category.active {
    background-color: #ff6b6b;
    color: #fff;
}

.ai-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.ai-tool-card {
    background: #fff;
    background-image: linear-gradient(135deg, #fff 0%, #fef9f6 100%);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-tool-card h3 {
    margin-bottom: 10px;
    color: #ff6b6b;
}

.ai-tool-card p {
    margin-bottom: 15px;
}

.ai-tool-card a {
    display: inline-block;
    background-color: #ff6b6b;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.ai-tool-card a:hover {
    background-color: #ff5252;
}

/* 关于页样式 */
.about-content {
    padding: 60px 0;
}

.about-section {
    background: #fff;
    background-image: linear-gradient(135deg, #fff 0%, #fef9f6 100%);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.about-section h2 {
    margin-bottom: 20px;
    color: #ff6b6b;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 5px 10px 5px 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .section, .about-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }

    .module-card, .featured-card {
        padding: 20px;
    }

    .breathing-circle {
        width: 150px;
        height: 150px;
    }
}