/* ========================================
   SEO单页模板 - 极简风格
   ======================================== */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fff;
    font-size: 16px;
}

/* 链接样式 */
a {
    color: #2997f7;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1a7fd8;
    text-decoration: underline;
}

/* 图片 */
img {
    max-width: 100%;
    height: auto;
    border: 0;
}

/* 列表 */
ul, ol {
    list-style: none;
}

/* 布局容器 */
.container {
    width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   顶部导航
   ======================================== */
.header {
    border-bottom: 1px solid #eee;
    background: #fff;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.5px;
}

.logo a {
    color: #333;
    text-decoration: none;
}

.logo a:hover {
    color: #2997f7;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    color: #555;
    font-size: 15px;
    text-decoration: none;
}

.nav a:hover {
    color: #2997f7;
    text-decoration: none;
}

.nav a.active {
    color: #2997f7;
    font-weight: 500;
}

/* ========================================
   页面标题区
   ======================================== */
.page-header {
    padding: 40px 0 30px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    margin-bottom: 10px;
}

.page-desc {
    font-size: 15px;
    color: #777;
    line-height: 1.6;
}

/* 面包屑 */
.breadcrumb {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb .sep {
    margin: 0 8px;
    color: #ccc;
}

/* ========================================
   文章列表
   ======================================== */
.article-list {
    margin-bottom: 30px;
}

.article-item {
    padding: 16px 0;
    border-bottom: 1px dashed #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
}

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

.article-title {
    flex: 1;
    font-size: 16px;
    line-height: 1.5;
}

.article-title a {
    color: #333;
    text-decoration: none;
}

.article-title a:hover {
    color: #2997f7;
    text-decoration: underline;
}

.article-date {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
    font-family: "Courier New", monospace;
}

/* ========================================
   分页
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 30px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 34px;
    padding: 0 12px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    color: #555;
    text-decoration: none;
}

.pagination a:hover {
    border-color: #2997f7;
    color: #2997f7;
    text-decoration: none;
}

.pagination .current {
    background: #2997f7;
    border-color: #2997f7;
    color: #fff;
    font-weight: 500;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* ========================================
   文章详情
   ======================================== */
.article-header {
    padding: 30px 0 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 25px;
}

.article-header h1 {
    font-size: 26px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-meta {
    font-size: 14px;
    color: #999;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 文章正文 */
.article-content {
    font-size: 17px;
    line-height: 1.85;
    color: #333;
    word-wrap: break-word;
}

.article-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.article-content h3 {
    font-size: 19px;
    font-weight: 600;
    color: #222;
    margin: 25px 0 12px;
}

.article-content h4 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px;
}

.article-content p {
    margin-bottom: 18px;
    text-align: justify;
}

.article-content strong {
    font-weight: 600;
    color: #222;
}

.article-content ul,
.article-content ol {
    margin: 0 0 18px 24px;
    padding: 0;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.article-content blockquote {
    margin: 20px 0;
    padding: 12px 20px;
    border-left: 4px solid #2997f7;
    background: #f8fafc;
    color: #555;
    font-size: 16px;
}

.article-content blockquote p {
    margin-bottom: 0;
}

.article-content img {
    display: block;
    max-width: 100%;
    margin: 20px auto;
    border-radius: 4px;
}

.article-content code {
    font-family: "Courier New", Consolas, monospace;
    font-size: 15px;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    color: #c7254e;
}

.article-content pre {
    background: #f7f7f7;
    padding: 16px 20px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #333;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.article-content th,
.article-content td {
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    text-align: left;
}

.article-content th {
    background: #f8f8f8;
    font-weight: 600;
}

.article-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

/* 文章标签 */
.article-tags {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: #888;
}

.article-tags a {
    display: inline-block;
    margin-right: 8px;
    padding: 4px 12px;
    background: #f5f8fc;
    border-radius: 3px;
    color: #2997f7;
    font-size: 13px;
    text-decoration: none;
}

.article-tags a:hover {
    background: #e8f2fc;
    text-decoration: none;
}

/* 上下篇 */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
    font-size: 14px;
}

.article-nav .prev,
.article-nav .next {
    flex: 1;
}

.article-nav .next {
    text-align: right;
}

.article-nav .label {
    color: #999;
    margin-right: 8px;
}

.article-nav a {
    color: #555;
    text-decoration: none;
}

.article-nav a:hover {
    color: #2997f7;
    text-decoration: underline;
}

/* 相关推荐 */
.related-articles {
    margin-bottom: 30px;
}

.related-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2997f7;
    display: inline-block;
}

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

.related-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 15px;
    font-size: 15px;
}

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

.related-list a {
    color: #444;
    text-decoration: none;
    flex: 1;
}

.related-list a:hover {
    color: #2997f7;
    text-decoration: underline;
}

.related-list .date {
    font-size: 13px;
    color: #aaa;
    white-space: nowrap;
}

/* ========================================
   底部
   ======================================== */
.footer {
    border-top: 1px solid #eee;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
    color: #999;
    line-height: 1.8;
}

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

.footer a:hover {
    color: #2997f7;
    text-decoration: underline;
}

.footer .beian {
    margin-left: 12px;
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 980px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    .header-inner {
        height: 54px;
    }

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

    .article-header h1 {
        font-size: 22px;
    }

    .article-content {
        font-size: 16px;
    }

    .article-content h2 {
        font-size: 20px;
    }

    .article-content h3 {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .nav {
        gap: 16px;
    }

    .nav a {
        font-size: 14px;
    }

    .logo {
        font-size: 18px;
    }

    .page-header {
        padding: 25px 0 20px;
    }

    .page-title {
        font-size: 20px;
    }

    .article-header h1 {
        font-size: 20px;
    }

    .article-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .article-item {
        flex-direction: column;
        gap: 4px;
    }

    .article-date {
        font-size: 13px;
    }

    .article-nav {
        flex-direction: column;
        gap: 10px;
    }

    .article-nav .next {
        text-align: left;
    }
}


/* ===== mobile ===== */
img,video,iframe{max-width:100%;height:auto}
table{max-width:100%;overflow-x:auto}
.wrap,.container,.inner,.ys-header-inner,.ys-main,.ys-footer-inner,.site-header .wrap{width:100%!important;max-width:1200px!important;box-sizing:border-box}
@media (max-width: 860px){
body{overflow-x:hidden}
.top-bar{display:none}
.content-left,.sidebar-right,.main-left,.main-right,.col-left,.col-right,.left,.right{float:none!important;width:100%!important;margin:0 0 12px!important}
.hero,.layout,.grid,.cols,.rec-grid,.headline .hl-sub{display:block!important;grid-template-columns:1fr!important}
.main-nav{height:auto!important}
.main-nav ul{display:flex;flex-wrap:wrap;height:auto}
.main-nav li{flex:none}
.site-header,.site-header .logo,.site-header .header-right{float:none!important;width:100%!important;text-align:left!important}
.site-header .search-form,.search-form{width:100%!important}
.site-header .search-form input{width:calc(100% - 80px)!important}
.list-thumb,.news-thumb,.list-item .list-thumb{float:none!important;width:100%!important;height:160px!important;margin:0 0 10px!important}
.list-info,.news-info{margin-left:0!important}
.art-title,h1{font-size:22px!important;line-height:1.35!important}
.article-box,article.box{padding:14px!important}
.footer-links,.fl-col{display:block!important;width:100%!important}
.brand,.top-nav .wrap{flex-wrap:wrap;height:auto!important}
}
