@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* 顶部导航 */
.navbar {
    background: linear-gradient(to right, #ff3366, #ff6699);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(255, 51, 102, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 8px;
}

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

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 20px;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* 搜索区域 */
.search-section {
    background: linear-gradient(to right, #ffccd5, #ffb6c1);
    padding: 40px 5%;
    text-align: center;
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-title {
    color: #ff3f6f;
    font-size: 28px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.search-box {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.2);
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    outline: none;
}

.search-button {
    background: #ff3366;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: #e62e5c;
}

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.category-btn {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.category-btn:hover {
    background: #ff3366;
    color: white;
}

/* 瀑布流图片区域 */
.gallery-section {
    padding: 30px 5%;
}

.section-title {
    text-align: center;
    color: #ff3366;
    font-size: 28px;
    margin-bottom: 30px;
    position: relative;
}

.links-title {
    font-size: 24px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #ff6699;
}

.masonry {
    column-count: 5;
    column-gap: 10px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.masonry-item:hover {
    transform: translateY(-5px);
}

.masonry-img {
    width: 100%;
    display: block;
}

.masonry-title {
    background: white;
    padding: 10px;
    font-size: 16px;
    text-align: center;
    color: #ff3366;
    font-weight: bold;
    text-decoration: none;
}

.masonry-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 友情链接 */
.links-section {
    background: #fff0f3;
    padding: 20px 5%;
}

.links-container {
    max-width: 1000px;
    margin: 0 auto;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.links-grid a {
    color: #ff3366;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.links-grid a:hover {
    text-decoration: none;
}

/* 页脚 */
.footer {
    background: linear-gradient(to right, #ff3366, #ff6699);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .masonry {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #ff3366;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .masonry {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry {
        column-count: 2;
    }
    
    .search-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .search-button {
        padding: 0 15px;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    .gallery-section {
        padding: 15px 2%;
    }
}

/* 面包屑导航 */
.breadcrumb-section {
    background: #fff0f3;
    padding: 15px 5%;
    border-bottom: 1px solid #ffccd5;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumb a {
    color: #ff3366;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #e62e5c;
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #666;
}

/* 分页导航 */
.pagination-section {
    padding: 15px 5%;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border-radius: 20px;
    color: #ff3366;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 51, 102, 0.1);
    transition: all 0.3s;
}

.pagination a:hover {
    background: #ff3366;
    color: white;
    transform: translateY(-2px);
}

.pagination .current {
    background: #ff3366;
    color: white;
}

.pagination .dots {
    background: transparent;
    box-shadow: none;
    color: #999;
}

/* 列表页响应式调整 */
@media (max-width: 576px) {
    .pagination a, .pagination span {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
        font-size: 14px;
    }
}

/* 文章页 */
.article-section {
    padding: 20px 5%;
}

.article-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.article-content {
    flex: 3;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.article-sidebar {
    flex: 1;
}

.article-title {
    color: #ff3366;
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ffccd5;
}

.article-body {
    margin-bottom: 30px;
}

.article-body p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    margin: 20px 0;
    border-top: 1px solid #ffccd5;
    border-bottom: 1px solid #ffccd5;
}

.article-nav-link {
    color: #ff3366;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.article-nav-link:hover {
    text-decoration: underline;
}

.article-nav-prev i {
    margin-right: 8px;
}

.article-nav-next i {
    margin-left: 8px;
}

.related-posts {
    margin-top: 40px;
}

.related-title {
    color: #ff3366;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6699;
}

.related-list {
    list-style: none;
}

.related-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ffccd5;
}

.related-item:last-child {
    border-bottom: none;
}

/* 相关推荐样式 */
.related-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.related-title-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    flex: 1;
    min-width: 0;
}

.related-title-link:hover {
    color: #ff3366;
}

.related-date {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
    white-space: nowrap;
}

.sidebar-title {
    color: #ff3366;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6699;
}

.sidebar-hot {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 文章页响应式调整 */
@media (max-width: 992px) {
    .article-container {
        flex-direction: column;
    }
    
    .sidebar-hot {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .article-content {
        padding: 20px 10px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 15px;
    }

    /* 相关推荐手机端样式 */
    .related-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .related-date {
        margin-left: 0;
        margin-top: 5px;
    }
.article-section {
    padding: 10px 2%;
}
}