/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

a:hover {
    color: #e83e8c;
}

section {
    padding: 80px 0;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #e83e8c;
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e83e8c;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 主横幅样式 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://source.unsplash.com/random/1600x900/?love') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

.cta-button {
    display: inline-block;
    background-color: #e83e8c;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.cta-button:hover {
    background-color: #d33076;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* 爱情故事区域样式 */
.featured-stories {
    background-color: #fff;
    text-align: center;
}

.featured-stories h2 {
    font-size: 36px;
    margin-bottom: 50px;
    position: relative;
}

.featured-stories h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e83e8c;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.story-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.story-image {
    height: 250px;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
}

.story-card:nth-child(1) .story-image {
    background-image: url('https://source.unsplash.com/random/600x400/?couple');
    background-color: #f8d7da; /* 粉红色背景，适合爱情主题 */
}

.story-card:nth-child(2) .story-image {
    background-image: url('https://source.unsplash.com/random/600x400/?distance');
    background-color: #cce5ff; /* 淡蓝色背景，适合表达思念 */
}

.story-card:nth-child(3) .story-image {
    background-image: url('https://source.unsplash.com/random/600x400/?elderly-couple');
    background-color: #d4edda; /* 淡绿色背景，适合表达长久 */
}

.story-card h3 {
    font-size: 22px;
    margin: 20px 0 10px;
}

.story-card p {
    color: #777;
    padding: 0 20px;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: #e83e8c;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e83e8c;
    transition: width 0.3s ease;
}

.read-more:hover::after {
    width: 100%;
}

/* 心理测试区域样式 */
.psychology-tests {
    background-color: #f9f9f9;
    text-align: center;
}

.psychology-tests h2 {
    font-size: 36px;
    margin-bottom: 50px;
    position: relative;
}

.psychology-tests h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e83e8c;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.test-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px;
}

.test-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.test-image {
    height: 200px;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
}

.test-card:nth-child(1) .test-image {
    background-image: url('https://source.unsplash.com/random/600x400/?heart');
    background-color: #ffe4e1; /* 浅玫瑰色背景，适合爱情类型测试 */
}

.test-card:nth-child(2) .test-image {
    background-image: url('https://source.unsplash.com/random/600x400/?emotion');
    background-color: #e6e6fa; /* 淡紫色背景，适合情感智商测试 */
}

.test-card:nth-child(3) .test-image {
    background-image: url('https://source.unsplash.com/random/600x400/?relationship');
    background-color: #fff0f5; /* 淡粉色背景，适合理想伴侣测试 */
}

/* 确保图片区域有渐变效果，使纯色背景看起来更有层次感 */
.story-image, .test-image {
    position: relative;
}

.story-image::after, .test-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(0,0,0,0.1));
    pointer-events: none;
}

.test-card h3 {
    font-size: 22px;
    margin: 20px 0 10px;
}

.test-card p {
    color: #777;
    padding: 0 20px;
    margin-bottom: 15px;
}

.test-button {
    display: inline-block;
    background-color: #e83e8c;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.test-button:hover {
    background-color: #d33076;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    color: #fff;
}

/* 关于我样式 */
.about-me {
    background-color: #fff;
    text-align: center;
}

.about-me h2 {
    font-size: 36px;
    margin-bottom: 30px;
    position: relative;
}

.about-me h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e83e8c;
}

.about-me p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    margin: 5px 0;
}

.footer p:last-child {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h2 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}