/* 全局样式重置，消除浏览器默认边距 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", 微软雅黑, SimSun, 宋体, sans-serif;
}
/* 全局滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-thumb {
    background: #ff6b8b;
    border-radius: 4px;
}
::-webkit-scrollbar-track {
    background: #f5f5f5;
}
a {
    text-decoration: none;
    color: #333;
}
li a{
    color: #333;
}
ul {
    list-style: none;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.btn {
    display: inline-block;
    padding: 10px 25px;
    background: #ff6b8b;
    color: #fff !important;
    border-radius: 30px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn:hover {
    background: #e55370;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,139,0.3);
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 32px;
    color: #333;
    position: relative;
}
.section-title::after {
    content: "";
    width: 80px;
    height: 3px;
    background: #ff6b8b;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}
/* 导航栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: transparent;
    transition: all 0.3s ease;
}
.header.scroll {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.logo {
    font-size: 28px;
    font-weight: bold;
    color: #ff6b8b;
}
.logo span {
    color: #333;
}
.nav-list {
    display: flex;
    gap: 40px;
}
.nav-link {
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: #ff6b8b;
}
.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}
/* 价格选项样式 */
.price-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
}
.price-item {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}


.liebiao{
    padding: 100px 0;
    background: #f9f9f9;
}

/* 新闻列表样式 */
.news-list {

    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}



.news-item:hover {
    background: #f9f9f9;
}



.news-item:last-child {
    border-bottom: none;
}

.news-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.news-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-title:hover {
    color: #ff6b8b;
}

.news-meta {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-date i {
    font-size: 12px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .liebiao {
        padding: 60px 0;
    }
    
    .news-list {
        border-radius: 8px;
    }
    
    .news-item {
        padding: 12px 15px;
    }
    
    .news-content {
        gap: 10px;
    }
    
    .news-title {
        font-size: 16px;
        max-width: calc(100vw - 200px);
    }
    
    .news-meta {
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .news-item:hover {
        transform: translateX(3px);
    }
}

/* 分页样式 */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.pagination li {
    display: inline;
}

.pagination .page-link {
    display: block;
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #ff6b8b;
    color: #fff;
    border-color: #ff6b8b;
    text-decoration: none;
}

.pagination li.active .page-link {
    background: #ff6b8b;
    color: #fff;
    border-color: #ff6b8b;
}

.pagination-info {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* 分页移动端适配 */
@media (max-width: 768px) {
    .pagination {
        margin-top: 30px;
    }
    
    .pagination .page-link {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .pagination-info {
        font-size: 13px;
    }
}

/* 文章详情页样式 */
.article-detail {
    padding: 100px 0;
    background: #f9f9f9;
}

.article-header {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #666;
    transition: color 0.3s ease;
    font-size: 14px;
}

.back-link:hover {
    color: #ff6b8b;
}

.back-link i {
    margin-right: 5px;
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #999;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-date i {
    font-size: 12px;
}

.article-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 20px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-not-found {
    background: #fff;
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.article-not-found h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.article-not-found p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* 文章详情页移动端适配 */
@media (max-width: 768px) {
    .article-detail {
        padding: 60px 0;
    }
    
    .article-header,
    .article-content {
        padding: 25px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-not-found {
        padding: 40px 25px;
    }
    
    .article-not-found h2 {
        font-size: 24px;
    }
}
/* 移动端适配 */
@media (max-width: 768px) {
    .price-options {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .price-item {
        font-size: 16px;
    }
}
/* banner轮播区 */
.banner {
    height: 100vh;
    /* 替换为推荐的清新温馨风背景图，解决404，适配婚介调性 */
    background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), url(/ziyuan/img/bg.jpg) no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}
.banner-content h1 {
    font-size: 48px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}
.banner-content h1 span {
    color: #ff6b8b;
}
.banner-content p {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
/* 核心优势区 - 重点展示你的特色 */
.core-advantage {
    padding: 100px 0;
    background: #f9f9f9;
}
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.advantage-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #ffe0e6;
}
.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(255,107,139,0.15);
}
.advantage-card i {
    font-size: 36px;
    color: #ff6b8b;
    margin-bottom: 20px;
}
.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}
.advantage-card p {
    color: #666;
    line-height: 1.6;
}
/* 服务介绍区 - 优化为系统功能 */
.service {
    padding: 100px 0;
}
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: #fff;
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.service-card i {
    font-size: 40px;
    color: #ff6b8b;
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}
.service-card p {
    color: #666;
    line-height: 1.6;
}
/* 小婚介专属 - 新增板块 */
.for-small {
    padding: 80px 0;
    background: #ffe0e6;
    text-align: center;
}
.for-small h2 {
    font-size: 30px;
    color: #333;
    margin-bottom: 20px;
}
.for-small p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 30px;
}
/* 联系我们区 - 纯个人开发者版：仅微信号+二维码，居中展示更协调 */
.contact {
    padding: 100px 0;
    background: #f9f9f9;
}
.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.contact-info h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
}
.contact-info .info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 20px;
    color: #666;
}
.contact-info .info-item i {
    font-size: 28px;
    color: #ff6b8b;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    background: #ffe0e6;
}
.wechat-qrcode img {
    width: 240px;
    height: 240px;
    border: 8px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 10px;
}
.wechat-qrcode p {
    margin-top: 15px;
    font-size: 18px;
    color: #666;
    font-weight: 500;
}
/* 底部版权区 */
.footer {
    padding: 30px 0;
    background: #333;
    text-align: center;
    color: #fff;
}
.footer p {
    font-size: 16px;
    line-height: 1.6;
}
.footer p a {
    color: #ff6b8b;
}
/* 移动端适配（768px以下） */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .nav-list li {
        border-bottom: 1px solid #eee;
    }
    .nav-list .nav-link {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
    }
    .mobile-menu {
        display: block;
        color: #333;
    }
    .header.scroll .mobile-menu {
        color: #333;
    }
    .banner-content h1 {
        font-size: 32px;
    }
    .banner-content p {
        font-size: 16px;
    }
    .section-title {
        font-size: 26px;
    }
    .core-advantage, .service, .for-small, .contact {
        padding: 60px 0;
    }
    .contact-info h3 {
        font-size: 24px;
    }
    .contact-info .info-item {
        font-size: 18px;
    }
    .wechat-qrcode img {
        width: 200px;
        height: 200px;
        border-width: 6px;
    }
}