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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffeef8 0%, #ffe0f0 50%, #ffd4e8 100%);
    color: #333;
    line-height: 1.6;
}

/* 导航栏 */
nav {
    background: linear-gradient(90deg, #ff6b9d 0%, #c06c84 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

nav h1 {
    color: white;
    font-size: 1.8rem;
}

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

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

nav a:hover {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

/* 头部横幅 */
.hero {
    background: linear-gradient(rgba(255,107,157,0.7), rgba(192,108,132,0.7));
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    animation: heroGlow 3s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* 搜索和筛选区 */
.search-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(255,107,157,0.2);
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-box input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #ffb3d9;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: #ff6b9d;
    box-shadow: 0 0 10px rgba(255,107,157,0.3);
}

.search-box button {
    padding: 0.8rem 2rem;
    background: linear-gradient(90deg, #ff6b9d, #c06c84);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,157,0.4);
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: #ffe0f0;
    color: #c06c84;
    border: 2px solid #ffb3d9;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: #ff6b9d;
    color: white;
    border-color: #ff6b9d;
}

/* 主要内容区 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

/* 博客文章列表 */
.blog-posts {
    display: grid;
    gap: 2rem;
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    animation: fadeIn 0.5s ease-in;
}

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

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255,107,157,0.3);
}

.post-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #ff6b9d, #ffa8c5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.post-title {
    font-size: 1.8rem;
    color: #c06c84;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #666;
    margin-bottom: 1rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: #ffe0f0;
    color: #c06c84;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tag:hover {
    background: #ffb3d9;
}

.read-more {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(90deg, #ff6b9d, #c06c84);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
}

.read-more:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(255,107,157,0.4);
}

/* 点赞按钮 */
.like-btn {
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.like-btn:hover {
    color: #ff6b9d;
    transform: scale(1.1);
}

.like-btn.liked {
    color: #ff6b9d;
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.widget-title {
    color: #c06c84;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.author-info {
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b9d, #ffa8c5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.popular-post {
    display: block;
    padding: 0.8rem 0;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.popular-post:hover {
    color: #ff6b9d;
    padding-left: 0.5rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* 浮动爱心背景 */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    color: rgba(255, 107, 157, 0.3);
    font-size: 1.5rem;
    animation: floatUp 6s linear infinite;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) rotate(360deg);
    }
}

/* 文章详情页样式 */
.post-detail {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #ffe0f0;
}

.post-title-large {
    font-size: 2.5rem;
    color: #c06c84;
    margin-bottom: 1rem;
}

.post-meta-large {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #999;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-image-large {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #ff6b9d, #ffa8c5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.post-body h2 {
    color: #c06c84;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body blockquote {
    background: #ffe0f0;
    border-left: 4px solid #ff6b9d;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 10px 10px 0;
}

.post-body ul, .post-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.highlight {
    background: linear-gradient(135deg, #ffe0f0, #ffb3d9);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    color: #c06c84;
    margin: 2rem 0;
}

/* 分享按钮 */
.share-buttons {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: center;
}

.share-buttons h3 {
    color: #c06c84;
    margin-bottom: 1rem;
}

.share-buttons button {
    margin: 0 0.5rem;
    padding: 0.8rem 1.5rem;
    background: white;
    border: 2px solid #ffb3d9;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.share-buttons button:hover {
    background: #ff6b9d;
    color: white;
    border-color: #ff6b9d;
}

/* 文章导航 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    gap: 1rem;
}

.nav-prev, .nav-next {
    flex: 1;
    padding: 1rem;
    background: #ffe0f0;
    border-radius: 10px;
    text-decoration: none;
    color: #c06c84;
    transition: all 0.3s;
    text-align: center;
}

.nav-prev:hover, .nav-next:hover {
    background: #ffb3d9;
    transform: translateY(-2px);
}

/* 评论区 */
.comments {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.comment-form {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.comment-form h4 {
    color: #c06c84;
    margin-bottom: 1rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.8rem;
    border: 2px solid #ffb3d9;
    border-radius: 5px;
    resize: vertical;
    font-family: inherit;
}

.comment-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid #ff6b9d;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: bold;
    color: #c06c84;
}

.comment-date {
    color: #999;
    font-size: 0.9rem;
}

.comment-content {
    color: #666;
    line-height: 1.6;
}

/* 关于页面样式 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-card h2 {
    color: #c06c84;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    padding: 0.5rem 0;
    color: #666;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.team-member {
    text-align: center;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 10px;
}

.member-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b9d, #ffa8c5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.member-desc {
    color: #999;
    font-size: 0.9rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #ffe0f0;
    border-radius: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b9d;
}

.stat-label {
    color: #c06c84;
    margin-top: 0.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.category-item {
    text-align: center;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 10px;
}

.category-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* 联系页面样式 */
.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-form-section, .contact-info-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #c06c84;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ffb3d9;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 10px rgba(255,107,157,0.3);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(90deg, #ff6b9d, #c06c84);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,157,0.4);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.info-content h3 {
    color: #c06c84;
    margin-bottom: 0.5rem;
}

.info-desc {
    color: #999;
    font-size: 0.9rem;
}

.social-connect {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #ffe0f0;
}

.faq-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.faq-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
}

.faq-item h3 {
    color: #c06c84;
    margin-bottom: 0.5rem;
}

/* 页脚 */
footer {
    background: linear-gradient(90deg, #c06c84 0%, #ff6b9d 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

footer h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.social-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .post-title-large {
        font-size: 2rem;
    }
    
    .post-meta-large {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .team-grid, .stats-grid, .category-grid, .faq-grid {
        grid-template-columns: 1fr;
    }
}