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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

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

.bgm-toggle-btn {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bgm-toggle-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.bgm-toggle-btn.playing {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (max-width: 768px) {
    .bgm-toggle-btn {
        top: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e91e63;
}

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

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-menu li a i {
    margin-right: 5px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: linear-gradient(135deg, #e91e63, #ff4081);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
}

/* 按钮样式 */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #e91e63, #ff4081);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.4);
}

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

.btn-secondary:hover {
    background: #e91e63;
    color: white;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.float-item {
    position: absolute;
    font-size: 3rem;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.float-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.float-2 {
    top: 40%;
    right: 15%;
    animation-delay: 1s;
}

.float-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

.float-4 {
    bottom: 20%;
    right: 25%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* 功能介绍 */
.features {
    padding: 80px 20px;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.test-icon { background: linear-gradient(135deg, #667eea, #764ba2); }
.news-icon { background: linear-gradient(135deg, #e91e63, #ff4081); }
.tree-icon { background: linear-gradient(135deg, #4caf50, #81c784); }
.game-icon { background: linear-gradient(135deg, #ff9800, #ffc107); }
.consult-icon { background: linear-gradient(135deg, #00bcd4, #2196f3); }

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.feature-card p {
    color: #666;
    margin-bottom: 20px;
}

.feature-card a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* 热门测试 */
.popular-tests {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa, #e4e8ec);
}

.popular-tests h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

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

.test-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.test-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.mbti-bg { background: linear-gradient(135deg, #667eea, #764ba2); }
.love-bg { background: linear-gradient(135deg, #e91e63, #ff4081); }
.career-bg { background: linear-gradient(135deg, #4caf50, #81c784); }

.test-content {
    padding: 25px;
}

.test-tag {
    display: inline-block;
    padding: 5px 15px;
    background: #f0f0f0;
    color: #666;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.test-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.test-content p {
    color: #666;
    margin-bottom: 15px;
}

.test-stats {
    display: flex;
    align-items: center;
    color: #999;
    font-size: 0.9rem;
}

/* 最新资讯 */
.latest-news {
    padding: 80px 20px;
    background: white;
}

.latest-news h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

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

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.news1-bg { background: linear-gradient(135deg, #667eea, #764ba2); }
.news2-bg { background: linear-gradient(135deg, #ff9800, #ffc107); }
.news3-bg { background: linear-gradient(135deg, #4caf50, #81c784); }

.news-content {
    padding: 20px;
}

.news-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    color: #666;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.news-date {
    color: #999;
    font-size: 0.85rem;
}

/* 情绪树洞预览 */
.treehole-preview {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.treehole-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.treehole-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.treehole-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.treehole-avatar {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.treehole-content p {
    margin-bottom: 15px;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

.treehole-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
}

.view-more {
    display: block;
    text-align: center;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 15px;
    border: 2px solid white;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.view-more:hover {
    background: white;
    color: #667eea;
}

/* 音乐殿堂预览 */
.music-preview {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.music-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.music-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.music-preview-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.music-preview-card:hover {
    transform: translateY(-5px);
}

.music-cover-small {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.music-preview-content h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1rem;
}

.music-preview-content p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.9rem;
}

.music-downloads {
    color: #888;
    font-size: 0.85rem;
}

.music-downloads i {
    color: #667eea;
    margin-right: 5px;
}

.feature-icon.music-icon {
    background: linear-gradient(135deg, #a855f7, #6366f1);
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 20px;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-section h4 {
    margin-bottom: 15px;
}

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

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

.footer-section ul li a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #e91e63;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 120px 20px 60px;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 心理测试页面 */
.test-categories {
    padding: 50px 20px;
    background: white;
}

.category-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.category-tab {
    padding: 12px 30px;
    border: 2px solid #e91e63;
    background: white;
    color: #e91e63;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-tab:hover,
.category-tab.active {
    background: #e91e63;
    color: white;
}

.tests-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.test-item {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
}

.test-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.test-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.mbti-icon { background: linear-gradient(135deg, #667eea, #764ba2); }
.enneagram-icon { background: linear-gradient(135deg, #ff9800, #ffc107); }
.love-icon { background: linear-gradient(135deg, #e91e63, #ff4081); }
.career-icon { background: linear-gradient(135deg, #4caf50, #81c784); }
.eq-icon { background: linear-gradient(135deg, #00bcd4, #2196f3); }
.color-icon { background: linear-gradient(135deg, #9c27b0, #e040fb); }
.dream-icon { background: linear-gradient(135deg, #607d8b, #90a4ae); }
.stress-icon { background: linear-gradient(135deg, #f44336, #ff5252); }
.rizhu-icon { background: linear-gradient(135deg, #ff6b35, #f7931e, #ffd700); }
.persona16-icon { background: linear-gradient(135deg, #5b86e5, #36d1dc); }
.ocean-icon { background: linear-gradient(135deg, #00c6ff, #0072ff, #004e92); }
.tarot-icon { background: linear-gradient(135deg, #654ea3, #eaafc8, #834d9b); }

.test-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #2c3e50;
}

.test-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.test-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #999;
}

.start-test-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #e91e63, #ff4081);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.start-test-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

/* 弹窗样式 */
.test-modal,
.result-modal,
.write-modal,
.consultation-modal,
.news-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

.progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #e91e63, #ff4081);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.question-number {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.question-text {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #2c3e50;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.options-container button {
    padding: 15px 20px;
    border: 2px solid #eee;
    background: white;
    border-radius: 15px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.options-container button:hover {
    border-color: #e91e63;
    background: #fff5f8;
}

.options-container button.selected {
    border-color: #e91e63;
    background: #fce4ec;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid #eee;
}

/* 结果弹窗 */
.result-content {
    text-align: center;
}

.result-header {
    background: linear-gradient(135deg, #e91e63, #ff4081);
    color: white;
    padding: 30px;
}

.result-header h3 {
    margin-bottom: 15px;
}

.result-type {
    font-size: 2rem;
    font-weight: 700;
}

.result-body {
    padding: 30px;
}

.result-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.result-traits h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.result-traits ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.result-traits li {
    padding: 8px 20px;
    background: #f0f0f0;
    border-radius: 20px;
    color: #666;
}

/* 资讯页面 */
.news-filters {
    padding: 30px 20px;
    background: white;
    border-bottom: 1px solid #eee;
}

.search-box {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto 20px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #eee;
    border-radius: 30px;
    font-size: 1rem;
}

.search-btn {
    padding: 12px 30px;
    background: #e91e63;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

.news-categories {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.news-category {
    padding: 8px 20px;
    background: #f5f7fa;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.news-category:hover,
.news-category.active {
    background: #e91e63;
    color: white;
}

/* 热点资讯 */
.hot-news {
    padding: 50px 20px;
    background: white;
}

.hot-news h2 {
    margin-bottom: 30px;
    color: #2c3e50;
}

.hot-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.hot-news-card.featured {
    grid-column: span 2;
}

.hot-news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
}

.hot-news-card.featured {
    flex-direction: row;
}

.hot-news-image {
    width: 40%;
    min-width: 200px;
    background-size: cover;
    background-position: center;
}

.hot1-bg { background: linear-gradient(135deg, #e91e63, #ff4081); }
.hot2-bg { background: linear-gradient(135deg, #667eea, #764ba2); }
.hot3-bg { background: linear-gradient(135deg, #4caf50, #81c784); }

.hot-news-content {
    flex: 1;
    padding: 25px;
}

.hot-news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.hot-news-content p {
    color: #666;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #999;
}

/* 资讯列表 */
.news-list {
    padding: 50px 20px;
    background: #f5f7fa;
}

.news-list h2 {
    margin-bottom: 30px;
    color: #2c3e50;
}

.news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.news-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.news-item-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.news4-bg { background: linear-gradient(135deg, #9c27b0, #e040fb); }
.news5-bg { background: linear-gradient(135deg, #f44336, #ff5252); }
.news6-bg { background: linear-gradient(135deg, #00bcd4, #2196f3); }

.news-item-content {
    padding: 20px;
}

/* 情绪树洞页面 */
.treehole-header {
    background: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
}

.write-btn {
    padding: 15px 30px;
    background: white;
    color: #4caf50;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.write-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
}

/* 情绪筛选 */
.treehole-filters {
    padding: 20px;
    background: white;
    border-bottom: 1px solid #eee;
}

.mood-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.mood-filter {
    padding: 10px 25px;
    background: #f5f7fa;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mood-filter:hover,
.mood-filter.active {
    background: #4caf50;
    color: white;
}

/* 树洞内容 */
.treehole-content {
    padding: 50px 20px;
    background: #f5f7fa;
}

.treehole-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.treehole-post {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.post-author {
    font-weight: 600;
    color: #2c3e50;
}

.post-time {
    color: #999;
    font-size: 0.85rem;
}

.post-mood-tag {
    padding: 3px 10px;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.post-content p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
}

.post-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    padding: 10px 20px;
    background: #f5f7fa;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #e91e63;
    color: white;
}

.action-btn.liked {
    background: #e91e63;
    color: white;
}

/* 评论区 */
.comments-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: none;
}

.comments-section.active {
    display: block;
}

.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.comment-author {
    font-weight: 600;
    color: #e91e63;
}

.comment-text {
    color: #666;
}

.comment-input {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.comment-input input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #eee;
    border-radius: 25px;
}

.comment-input button {
    padding: 10px 25px;
    background: #e91e63;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

/* 写心事弹窗 */
.write-content {
    max-width: 500px;
}

.mood-selector {
    margin-bottom: 20px;
}

.mood-selector span {
    display: block;
    margin-bottom: 10px;
    color: #666;
}

.mood-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mood-option {
    padding: 10px 20px;
    background: #f5f7fa;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.mood-option:hover,
.mood-option.selected {
    background: #4caf50;
    color: white;
}

.write-content textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 15px;
    resize: none;
    font-family: inherit;
    font-size: 1rem;
}

/* 小游戏页面 */
.games-header {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
}

.games-categories {
    padding: 30px 20px;
    background: white;
}

.games-list {
    padding: 50px 20px;
    background: #f5f7fa;
}

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

.game-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.game-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9800, #ffc107);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.game-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.game-info p {
    color: #666;
    margin-bottom: 15px;
}

.game-stats {
    color: #999;
    font-size: 0.9rem;
}

.play-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff9800, #ffc107);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.play-btn:hover:not(.disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 152, 0, 0.4);
}

.play-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 游戏统计 */
.games-stats {
    padding: 50px 20px;
    background: white;
}

.games-stats h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #2c3e50;
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f5f7fa;
    padding: 25px;
    border-radius: 15px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9800, #ffc107);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* 咨询弹窗样式 */
.consultation-content {
    max-width: 500px;
}

.consultation-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f5f7fa;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card:hover {
    background: #e91e63;
    color: white;
}

.option-card i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e63, #ff4081);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.option-card:hover i {
    background: white;
    color: #e91e63;
}

.option-card h4 {
    margin-bottom: 5px;
}

.option-card p {
    margin: 0;
    font-size: 0.9rem;
}

.consultation-form {
    background: #f5f7fa;
    padding: 20px;
    border-radius: 15px;
}

.consultation-form h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.consultation-form input,
.consultation-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 1rem;
}

.consultation-form textarea {
    resize: none;
}

.consultation-form .btn {
    width: 100%;
    margin-top: 10px;
}

.option-card .arrow {
    float: right;
    color: #999;
    font-size: 1.2rem;
}

.option-card:hover .arrow {
    color: white;
    transform: translateX(5px);
}

.consult-detail {
    display: none;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.detail-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

.close-detail {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0 10px;
}

.close-detail:hover {
    color: #e91e63;
}

.detail-content p {
    margin: 8px 0;
    line-height: 1.6;
    color: #333;
}

.detail-content .btn {
    margin-top: 15px;
}

.mt-2 {
    margin-top: 15px;
}

/* 资讯详情弹窗样式 */
.news-detail-content {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.news-detail-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #eee;
}

.news-detail-content .news-tag {
    background: linear-gradient(135deg, #e91e63, #ff4081);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.news-detail-content .close-modal {
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.news-detail-content .close-modal:hover {
    color: #e91e63;
}

.news-detail-content .modal-body {
    padding: 25px;
}

.news-detail-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #2c3e50;
}

.news-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}

.news-detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-detail-content .news-detail-content {
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
}

.news-detail-content .news-detail-content strong {
    color: #2c3e50;
}

.news-detail-content .modal-footer {
    padding: 20px 25px;
    border-top: 2px solid #eee;
    text-align: right;
}

.news-detail-content .btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
}

.news-detail-content .btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
}

/* 热点资讯卡片和资讯列表点击效果 */
.hot-news-card,
.news-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.hot-news-card:hover,
.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid,
    .tests-grid,
    .news-grid,
    .treehole-cards,
    .treehole-posts,
    .games-grid {
        grid-template-columns: 1fr;
    }

    .hot-news-grid {
        grid-template-columns: 1fr;
    }

    .hot-news-card.featured {
        grid-column: span 1;
        flex-direction: column;
    }

    .hot-news-image {
        width: 100%;
        height: 200px;
    }

    .test-item {
        flex-direction: column;
        text-align: center;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}
