:root {
    --primary-color: #F2A29F;
    --primary-light: #ffd4d2;
    --primary-dark: #d88884;
    --text-color: #333;
    --bg-color: #fff;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
}

.emotion-education-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* 人群卡片样式 */
.group-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.group-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-medium);
    position: relative;
    overflow: hidden;
}

.group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(242, 162, 159, 0.15);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.group-card h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.group-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.emotion-count {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.explore-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.explore-btn:hover {
    color: var(--primary-dark);
}

.explore-btn:hover i {
    transform: translateX(5px);
}

/* 分类卡片样式 */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--gray-medium);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(242, 162, 159, 0.1);
    border-color: var(--primary-color);
}

.category-card h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* 情绪网格样式 */
.emotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.emotion-item {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid var(--gray-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.emotion-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.emotion-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.emotion-icon i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.emotion-name {
    color: var(--text-color);
    font-weight: 500;
}

/* 返回按钮样式 */
.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: var(--gray-light);
    border-radius: 20px;
    color: var(--text-color);
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-medium);
    text-decoration: none;
}

.back-btn i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.back-btn:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateX(-5px);
}

/* 模态框样式 */
.emotion-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1001;
}

.modal-content {
    position: relative;
    background: var(--bg-color);
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    z-index: 1002;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #666;
    transition: all 0.3s ease;
    border: none;
}

.modal-close:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: rotate(90deg);
}

.emotion-detail-content {
    padding: 1rem 0;
}

.emotion-detail-content h2 {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
    position: relative;
    padding-bottom: 1rem;
}

.emotion-detail-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.detail-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.detail-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 162, 159, 0.1);
}

.detail-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.detail-section h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 0.8rem;
}

.detail-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-section li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.detail-section li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .emotion-detail-content h2 {
        font-size: 1.5rem;
    }

    .detail-section {
        padding: 1rem;
    }

    .detail-section h3 {
        font-size: 1.1rem;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section-title h1 {
        font-size: 1.5rem;
    }

    .group-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-cards {
        grid-template-columns: 1fr;
    }

    .emotion-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
} 