/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #007bff;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 主要内容区域 */
main {
    margin-top: 70px;
}

section {
    padding: 4rem 1rem;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    color: #fff;
    padding: 6rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-features span {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-features span:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.hero-image:hover .banner-image {
    transform: scale(1.05);
}

/* 服务项目 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.service-details {
    list-style: none;
    margin-top: 1rem;
}

.service-details li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-details li::before {
    content: "•";
    color: #007bff;
    position: absolute;
    left: 0;
}

/* 技术优势 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.feature-details {
    list-style: none;
    margin-top: 1rem;
}

.feature-details li {
    margin-bottom: 0.5rem;
}

/* 服务流程 */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.step-details {
    list-style: none;
    margin-top: 1rem;
}

.step-details li {
    margin-bottom: 0.5rem;
}

/* 成功案例 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.case-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.case-card p {
    font-size: 1.2rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.case-details {
    list-style: none;
    margin-top: 1rem;
}

.case-details li {
    margin-bottom: 0.5rem;
}

/* FAQ部分 */
.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h3 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-question h4 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin: 0;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #007bff;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #fff;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.6;
}

.faq-answer ul {
    list-style: none;
    padding-left: 1rem;
}

.faq-answer ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

.faq-answer ul li::before {
    content: "•";
    color: #007bff;
    position: absolute;
    left: 0;
}

/* 联系我们 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.contact-details {
    list-style: none;
    margin-top: 1rem;
}

.contact-details li {
    margin-bottom: 0.5rem;
}

/* 页脚 */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 4rem 1rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-content,
    .service-grid,
    .features-grid,
    .process-steps,
    .cases-grid,
    .contact-info {
        max-width: 95%;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .service-grid,
    .features-grid,
    .process-steps,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        max-width: 80%;
        margin: 0 auto;
    }

    .hero-features {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 5rem 1rem 1rem;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    body.menu-open {
        overflow: hidden;
    }

    .service-grid,
    .features-grid,
    .process-steps,
    .cases-grid,
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero-features {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-features span {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    section {
        padding: 3rem 1rem;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .service-card,
    .feature-card,
    .step,
    .case-card,
    .contact-item {
        padding: 1.5rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-category h3 {
        font-size: 1.5rem;
    }

    .faq-question h4 {
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .hero-features span {
        width: 100%;
        text-align: center;
    }

    .hero-image {
        min-height: 250px;
        max-width: 100%;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .service-card h3,
    .feature-card h3,
    .step h3,
    .case-card h3,
    .contact-item h3 {
        font-size: 1.3rem;
    }

    .faq-container {
        padding: 0 0.5rem;
    }

    .faq-category {
        margin-bottom: 2rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-answer {
        padding: 0 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 2rem;
    }

    .footer-bottom {
        font-size: 0.9rem;
    }
}

/* 打印样式 */
@media print {
    .header,
    .hero,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .service-card,
    .feature-card,
    .step,
    .case-card,
    .contact-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.feature-card,
.step,
.case-card,
.contact-item {
    animation: fadeIn 0.5s ease-out;
}

/* 导航扩展 */
.logo a {
    color: #fff;
    text-decoration: none;
}

.nav-links a.nav-this,
.nav-links a.zdb29cthis {
    color: #007bff;
}

/* 首页资讯板块 */
.home-articles {
    background-color: #fff;
}

.home-articles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.home-article-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.home-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.home-article-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #e9ecef;
}

.home-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-article-card:hover .home-article-thumb img {
    transform: scale(1.05);
}

.home-article-title {
    font-size: 0.95rem;
    margin: 0.75rem 1rem 0.25rem;
    line-height: 1.4;
}

.home-article-title a {
    color: #1a1a1a;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-article-title a:hover {
    color: #007bff;
}

.home-article-date {
    display: block;
    padding: 0 1rem 1rem;
    font-size: 0.85rem;
    color: #888;
}

/* 首页资讯板块仅显示缩略图、标题、日期 */
.home-article-card > *:not(.home-article-thumb):not(.home-article-title):not(.home-article-date) {
    display: none !important;
}

.home-article-thumb img {
    display: block;
}

.home-articles-more {
    text-align: center;
    margin-top: 2rem;
}

.btn-more {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.btn-more:hover {
    background-color: #0056b3;
}

/* 内页通用布局 */
.page-main {
    margin-top: 70px;
}

.page-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75));
    color: #fff;
    padding: 3rem 1rem;
}

.page-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.page-banner h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.breadcrumb {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #007bff;
}

.breadcrumb-sep {
    margin: 0 0.5rem;
}

.page-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.page-content {
    min-width: 0;
}

/* 列表页 */
.article-list {
    list-style: none;
}

.article-list-item {
    display: flex;
    gap: 1.5rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.list-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #e9ecef;
}

.list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-body {
    flex: 1;
    min-width: 0;
}

.list-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.list-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.list-title a:hover {
    color: #007bff;
}

.list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.75rem;
}

.list-meta a {
    color: #007bff;
    text-decoration: none;
}

.list-intro {
    color: #666;
    line-height: 1.6;
}

/* 分页左右布局 */
.pagebar {
    margin-top: 2rem;
}

.pagebar-inner {
    background-color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pagebar-inner .pagelist {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    width: 100%;
}

.pagebar-inner a,
.pagebar-inner span {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagebar-inner a:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* 内容页 */
.article-detail {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.article-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-size: 1.75rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #888;
}

.article-meta a {
    color: #007bff;
    text-decoration: none;
}

.article-litpic {
    margin-bottom: 1.5rem;
    text-align: center;
}

.article-litpic img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-body {
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.article-body p {
    margin-bottom: 1rem;
}

.article-gallery-item {
    margin: 1rem 0;
}

.article-gallery-item img {
    max-width: 100%;
    height: auto;
}

.zdb29cmeta-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
}

.zdb29ctagitem a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.zdb29ctagitem a:hover {
    background-color: #007bff;
    color: #fff;
}

.article-prenext {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

.article-prenext a {
    color: #007bff;
    text-decoration: none;
}

.article-prenext a:hover {
    text-decoration: underline;
}

.section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.related-list {
    list-style: none;
}

.related-item {
    display: flex;
    gap: 1rem;
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.related-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #e9ecef;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-title {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.related-title:hover {
    color: #007bff;
}

.related-desc {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.5;
}

/* 侧栏 */
.page-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.sidebar-title {
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    background-color: #1a1a1a;
    color: #fff;
    margin: 0;
}

.sidebar-title a {
    color: #fff;
    text-decoration: none;
}

.sidebar-title a:hover {
    color: #007bff;
}

.sidebar-article-list {
    list-style: none;
    max-height: 520px;
    overflow-y: auto;
}

.sidebar-article-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.sidebar-article-item:last-child {
    border-bottom: none;
}

.sidebar-article-item:hover {
    background-color: #f8f9fa;
}

.sidebar-thumb-link {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #e9ecef;
    display: block;
}

.sidebar-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-article-info {
    flex: 1;
    min-width: 0;
}

.sidebar-article-title {
    display: block;
    font-size: 0.85rem;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-article-title:hover {
    color: #007bff;
}

.sidebar-date {
    font-size: 0.75rem;
    color: #aaa;
}

.clear {
    clear: both;
}

/* 内页响应式 */
@media (max-width: 992px) {
    .home-articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .home-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .page-banner h1 {
        font-size: 1.5rem;
    }

    .article-list-item {
        flex-direction: column;
    }

    .list-thumb {
        width: 100%;
        height: 180px;
    }

    .article-detail {
        padding: 1.25rem;
    }

    .article-title {
        font-size: 1.4rem;
    }

    .pagebar-inner .pagelist {
        justify-content: center;
        gap: 0.75rem;
    }

    .related-item {
        flex-direction: column;
    }

    .related-thumb {
        width: 100%;
        height: 160px;
    }
}

@media (max-width: 576px) {
    .home-articles-grid {
        grid-template-columns: 1fr;
    }

    .home-article-title {
        font-size: 1rem;
    }

    .page-layout {
        padding: 1.5rem 0.75rem 3rem;
    }

    .list-thumb {
        height: 150px;
    }

    .sidebar-article-list {
        max-height: none;
    }
} 