@charset "utf-8";

/* DaiSheng.html 独立样式 */

/* 宁波代生页面特定样式 */
.news {
    padding: 80px 0;
}

.news_post {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news_post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.news_post_image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.news_post_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news_post:hover .news_post_image img {
    transform: scale(1.05);
}

.news_post_top {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.news_post_date_container {
    margin-right: 20px;
}

.news_post_date {
    width: 70px;
    height: 70px;
    background: #1e5799;
    color: #ffffff;
    border-radius: 5px;
    text-align: center;
    padding: 10px;
}

.news_post_date div:first-child {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.news_post_date div:last-child {
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 5px;
}

.news_post_title_container {
    flex: 1;
}

.news_post_title {
    font-size: 22px;
    font-weight: 700;
    color: #1e5799;
    margin-bottom: 10px;
}

.news_post_title a {
    color: #1e5799;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news_post_title a:hover {
    color: #ffcc00;
}

.news_post_meta {
    font-size: 13px;
    color: #a5a5a5;
}

.news_post_meta span {
    margin-right: 10px;
}

.news_post_text {
    padding: 20px;
    color: #a5a5a5;
    line-height: 1.8;
}

.news_post_button {
    padding: 0 20px 20px;
}

.news_post_button a {
    display: inline-block;
    padding: 12px 30px;
    background: #1e5799;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.news_post_button a:hover {
    background: #ffcc00;
}

.news_page_nav {
    margin-top: 40px;
    text-align: center;
}

.news_page_nav ul {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news_page_nav li {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 5px;
    line-height: 40px;
}

.news_page_nav li.active {
    background: #1e5799;
}

.news_page_nav li a {
    color: #1e5799;
    text-decoration: none;
    font-weight: 600;
}

.news_page_nav li.active a {
    color: #ffffff;
}

.sidebar {
    padding-left: 30px;
}

.sidebar_section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
}

.sidebar_section_title {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1e5799;
}

.sidebar_section_title h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e5799;
}

.latest_posts .latest_post {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.latest_posts .latest_post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.latest_post_image {
    width: 80px;
    height: 80px;
    float: left;
    margin-right: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.latest_post_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest_post_title {
    font-size: 16px;
    font-weight: 600;
    color: #1e5799;
    margin-bottom: 8px;
}

.latest_post_title a {
    color: #1e5799;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest_post_title a:hover {
    color: #ffcc00;
}

.latest_post_meta {
    font-size: 12px;
    color: #a5a5a5;
}

.sidebar_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar_list_item {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.sidebar_list_item:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #1e5799;
    font-weight: 700;
}

.sidebar_list_item a {
    color: #a5a5a5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar_list_item a:hover {
    color: #1e5799;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 15px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #1e5799;
    border-color: #1e5799;
}

.tag a {
    color: #a5a5a5;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.tag:hover a {
    color: #ffffff;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .sidebar {
        padding-left: 0;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .news_post_image {
        height: 200px;
    }
    
    .news_post_title {
        font-size: 18px;
    }
}
