/* 全局样式 - 高级质感 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #ff6b9d 0%, #ff8e8e 50%, #ff6b9d 100%);
    --primary-color: #ff6b81;
    --primary-light: #fff0f3;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-muted: #b2bec3;
    --bg-warm: #fff9f9;
    --shadow-soft: 0 10px 40px rgba(255, 107, 129, 0.1);
    --shadow-hover: 0 20px 60px rgba(255, 107, 129, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 头部区域 - 温暖共情 */
header {
    text-align: center;
    padding: 120px 20px 100px;
    position: relative;
    background: linear-gradient(180deg, #fff5f7 0%, #fff 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.circle-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 10s ease-in-out infinite;
}

.circle-pink {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.6) 0%, rgba(255, 182, 193, 0) 70%);
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.circle-yellow {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 223, 186, 0.7) 0%, rgba(255, 223, 186, 0) 70%);
    top: 15%;
    right: 10%;
    animation-delay: -5s;
}

.circle-rose {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 200, 210, 0.5) 0%, rgba(255, 200, 210, 0) 70%);
    bottom: 5%;
    left: 25%;
    animation-delay: -2.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.08);
    }
}

header .content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

header h1 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInDown 1s ease forwards;
    animation-delay: 0.3s;
}

header h1 .heart-icon {
    color: #ff4757;
    font-size: 14px;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.2);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.2);
    }
    70% {
        transform: scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 逐字淡入效果 */
.typewriter-container {
    margin-bottom: 50px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.typewriter-line {
    font-size: 42px;
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.typewriter-line span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpBounce 0.8s ease forwards;
}

/* 第一行动画 */
.typewriter-line:nth-child(1) span:nth-child(1) { animation-delay: 0.5s; }
.typewriter-line:nth-child(1) span:nth-child(2) { animation-delay: 0.6s; }
.typewriter-line:nth-child(1) span:nth-child(3) { animation-delay: 0.7s; }
.typewriter-line:nth-child(1) span:nth-child(4) { animation-delay: 0.8s; }
.typewriter-line:nth-child(1) span:nth-child(5) { animation-delay: 0.9s; }
.typewriter-line:nth-child(1) span:nth-child(6) { animation-delay: 1.0s; }
.typewriter-line:nth-child(1) span:nth-child(7) { animation-delay: 1.1s; }
.typewriter-line:nth-child(1) span:nth-child(8) { animation-delay: 1.2s; }
.typewriter-line:nth-child(1) span:nth-child(9) { animation-delay: 1.3s; }
.typewriter-line:nth-child(1) span:nth-child(10) { animation-delay: 1.4s; }
.typewriter-line:nth-child(1) span:nth-child(11) { animation-delay: 1.5s; }
.typewriter-line:nth-child(1) span:nth-child(12) { animation-delay: 1.6s; }

/* 第二行动画 */
.typewriter-line:nth-child(2) span:nth-child(1) { animation-delay: 2.0s; }
.typewriter-line:nth-child(2) span:nth-child(2) { animation-delay: 2.1s; }
.typewriter-line:nth-child(2) span:nth-child(3) { animation-delay: 2.2s; }
.typewriter-line:nth-child(2) span:nth-child(4) { animation-delay: 2.3s; }
.typewriter-line:nth-child(2) span:nth-child(5) { animation-delay: 2.4s; }
.typewriter-line:nth-child(2) span:nth-child(6) { animation-delay: 2.5s; }
.typewriter-line:nth-child(2) span:nth-child(7) { animation-delay: 2.6s; }
.typewriter-line:nth-child(2) span:nth-child(8) { animation-delay: 2.7s; }

@keyframes fadeInUpBounce {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px);
    }
    80% {
        transform: translateY(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 副标题 */
.subtitle-fade {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 2;
}

.subtitle-fade p {
    margin: 8px 0;
    position: relative;
    display: inline-block;
}

.subtitle-fade p::before {
    content: '"';
    color: var(--primary-color);
    opacity: 0.4;
    margin-right: 8px;
    font-size: 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 8px 30px rgba(255, 107, 129, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 107, 129, 0.5);
}

.btn-white {
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* 内容区域 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 把心意变成话语区域 */
.section-title {
    text-align: center;
    padding: 60px 20px 30px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: var(--primary-light);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    letter-spacing: 1px;
}

.section-label i {
    font-size: 12px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* 分类卡片区域 - 高级质感 */
.categories-section {
    padding: 20px 0 80px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1100px;
    margin: 0 auto;
}

.category-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    text-align: left;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 129, 0.05);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 26px;
    transition: var(--transition-smooth);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.category-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    background-color: #f8f9fa;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.tag:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* 横幅区域 - 情感共鸣 */
.banner {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8e8e 30%, #ff6b9d 60%, #ff9f9f 100%);
    background-size: 200% 200%;
    color: #fff;
    text-align: center;
    padding: 23px 13px;
    margin: 13px 0;
    position: relative;
    overflow: hidden;
    animation: gradientShift 12s ease infinite, softPulse 8s ease-in-out infinite;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(255, 107, 129, 0.2),
                0 0 64px rgba(255, 107, 129, 0.15) inset;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes softPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(255, 107, 129, 0.2),
                    0 0 64px rgba(255, 107, 129, 0.15) inset;
    }
    50% {
        transform: scale(1.01);
        box-shadow: 0 12px 40px rgba(255, 107, 129, 0.25),
                    0 0 80px rgba(255, 107, 129, 0.2) inset;
    }
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 50%);
    animation: gentleFloat 15s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(5%) translateY(5%) rotate(1deg);
    }
    50% {
        transform: translateX(0) translateY(10%) rotate(0deg);
    }
    75% {
        transform: translateX(-5%) translateY(5%) rotate(-1deg);
    }
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    animation: shimmer 10s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-5%) translateY(-5%);
    }
    50% {
        opacity: 0.6;
        transform: translateX(5%) translateY(5%);
    }
}

/* 粒子效果 */
.banner .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.banner .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    animation: delicateFloat 12s ease-in-out infinite;
}

.banner .particle:nth-child(odd) {
    width: 2px;
    height: 2px;
    animation-duration: 10s;
    background: rgba(255, 255, 255, 0.7);
}

.banner .particle:nth-child(3n) {
    width: 1.5px;
    height: 1.5px;
    animation-duration: 15s;
    background: rgba(255, 255, 255, 0.5);
}

@keyframes delicateFloat {
    0%, 100% {
        transform: translateY(100%) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(85%) translateX(8px) scale(1);
    }
    30% {
        transform: translateY(60%) translateX(-6px) scale(1);
    }
    50% {
        transform: translateY(40%) translateX(4px) scale(1);
    }
    70% {
        transform: translateY(20%) translateX(-2px) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(5%) translateX(1px) scale(1);
    }
    100% {
        transform: translateY(-5%) translateX(0) scale(0);
        opacity: 0;
    }
}

.banner .container {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.banner h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: bannerFadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

.banner p {
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(15px);
    animation: bannerFadeIn 1s ease forwards;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.banner p:nth-child(2) {
    animation-delay: 1s;
}

.banner p:nth-child(3) {
    animation-delay: 1.5s;
}

@keyframes bannerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner .btn {
    margin-top: 33px;
    background: rgba(255, 255, 255, 0.95);
    color: #ff6b81;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner .btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* 文章区域 - 精致排版 */
.articles-section {
    padding: 40px 0 120px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1100px;
    margin: 50px auto 0;
}

.article-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    text-decoration: none;
    display: block;
    color: inherit;
}

.article-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 3px;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.article-card:hover::after {
    transform: scaleX(1);
}

.article-label {
    font-size: 12px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.article-card h3 {
    font-size: 17px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.article-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    text-decoration: none;
}

.article-meta-inline {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    color: #aaa;
}

.article-meta-inline span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-meta-inline i {
    color: #ccc;
}

.view-all {
    text-align: center;
    margin-top: 50px;
}

.view-all .btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 14px 32px;
    opacity: 1;
    animation: none;
}

.view-all .btn:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
}

/* 底部样式 - 温暖收尾 */
footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

footer h2 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 400;
    letter-spacing: 3px;
}

footer h2 i {
    color: var(--primary-color);
    font-size: 14px;
    animation: heartbeat 2s ease-in-out infinite;
}

footer p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.6;
    letter-spacing: 1px;
    font-weight: 300;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .categories-grid,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .typewriter-line {
        font-size: 32px;
    }
    
    .banner h2 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 80px 20px 60px;
        min-height: 500px;
    }
    
    .typewriter-line {
        font-size: 24px;
        white-space: normal;
        border-right: none;
        animation: fadeInUp 1s ease forwards;
        animation-delay: 0.8s;
        width: auto;
    }
    
    .typewriter-line:nth-child(2) {
        animation-delay: 1.5s;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .categories-grid,
    .articles-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .banner {
        padding: 80px 20px;
        margin: 60px 0;
    }
    
    .banner h2 {
        font-size: 32px;
    }
    
    .category-card,
    .article-card {
        padding: 25px;
    }
}

/* 滚动显示动画 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff4757;
}

/* 粒子效果 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 107, 129, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}
