/* 资讯博客模板 - aisc7 扁平化靛蓝色主题 */
/* 简洁三栏式布局，扁平化设计 */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "SimHei", Arial, sans-serif;
    background: #e8eaf6;
    color: #1a237e;
    line-height: 1.6;
    font-size: 16px;
}

.header-inner, .breadcrumb-inner, .main, .layout, .footer-inner, .links-inner, .page-title-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background: #3f51b5;
    border-bottom: 2px solid #283593;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo-img {
    max-height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo-name {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    padding: 8px 15px;
    border: 2px solid #fff;
    border-radius: 4px;
    width: 260px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.search-input:focus {
    border-color: #283593;
    box-shadow: 0 0 0 3px rgba(40, 53, 147, 0.2);
}

.search-btn {
    padding: 8px 20px;
    background: #283593;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #1a237e;
}

/* 主导航 */
.nav {
    background: #283593;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-li {
    border-right: 1px solid rgba(255,255,255,0.2);
}

.nav-li:last-child {
    border-right: none;
}

.nav-link {
    display: block;
    padding: 12px 22px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: #1a237e;
}

/* 面包屑导航 */
.breadcrumb {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #c5cae9;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.breadcrumb-li {
    display: flex;
    align-items: center;
}

.breadcrumb-sep {
    margin: 0 7px;
    color: #7986cb;
}

.breadcrumb-li a {
    color: #3f51b5;
    text-decoration: none;
}

.breadcrumb-li a:hover {
    color: #283593;
    text-decoration: underline;
}

.breadcrumb-li.active {
    color: #1a237e;
}

/* 主要内容区域 */
.main {
    padding: 30px 0;
}

.layout {
    display: grid;
    grid-template-columns: 180px 1fr 260px;
    gap: 22px;
}

/* 左侧边栏 */
.sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: #fff;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(63, 81, 181, 0.15);
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3f51b5;
}

.cat-list {
    list-style: none;
}

.cat-item {
    border-bottom: 1px solid #e8eaf6;
}

.cat-item:last-child {
    border-bottom: none;
}

.cat-item.active a {
    background: #e8eaf6;
    color: #3f51b5;
    font-weight: 600;
}

.cat-item a {
    display: block;
    padding: 10px 12px;
    color: #1a237e;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
    border-radius: 4px;
}

.cat-item a:hover {
    background: #e8eaf6;
    color: #3f51b5;
    padding-left: 16px;
}

.hot-list {
    list-style: none;
}

.hot-item {
    padding: 10px 0;
    border-bottom: 1px dashed #c5cae9;
}

.hot-item:last-child {
    border-bottom: none;
}

.hot-item a {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #1a237e;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.hot-item a:hover {
    color: #3f51b5;
}

.hot-num {
    width: 24px;
    height: 24px;
    background: #3f51b5;
    color: #fff;
    text-align: center;
    line-height: 24px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.hot-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-hits {
    color: #7986cb;
    font-size: 11px;
    flex-shrink: 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags a {
    padding: 5px 12px;
    background: #e8eaf6;
    color: #1a237e;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
}

.tags a:hover {
    background: #3f51b5;
    color: #fff;
}

/* 中间主内容区 */
.content {
    min-width: 0;
}

/* 焦点文章区域 */
.featured {
    margin-bottom: 30px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.featured-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(63, 81, 181, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(63, 81, 181, 0.25);
}

.featured-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e8eaf6;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 16px;
}

.featured-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: #283593;
    flex-wrap: wrap;
}

.meta-author {
    color: #283593;
    font-weight: 500;
}

.meta-source {
    color: #7986cb;
    font-size: 10px;
}

/* 文章列表 */
.articles {
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3f51b5;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #c5cae9;
    background: #fff;
    padding: 20px;
    margin-bottom: 14px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(63, 81, 181, 0.1);
}

.article-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.article-img {
    flex-shrink: 0;
    width: 220px;
    height: 150px;
    overflow: hidden;
    border-radius: 6px;
    background: #e8eaf6;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-info {
    flex: 1;
    min-width: 0;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.article-title a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #3f51b5;
}

.article-desc {
    color: #283593;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #283593;
    flex-wrap: wrap;
}

.meta-author {
    color: #283593;
    font-weight: 500;
}

.meta-hits {
    color: #283593;
}

.meta-source {
    color: #7986cb;
    font-size: 10px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.page-link {
    padding: 8px 16px;
    background: #fff;
    color: #3f51b5;
    text-decoration: none;
    border: 2px solid #3f51b5;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.page-link:hover {
    background: #3f51b5;
    color: #fff;
}

.page-link.active {
    background: #3f51b5;
    color: #fff;
    border-color: #3f51b5;
}

/* 右侧边栏 */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.new-list {
    list-style: none;
}

.new-item {
    padding: 10px 0;
    border-bottom: 1px dashed #c5cae9;
}

.new-item:last-child {
    border-bottom: none;
}

.new-item a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #1a237e;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.new-item a:hover {
    color: #3f51b5;
}

.new-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.new-time {
    font-size: 10px;
    color: #7986cb;
}

.rec-list {
    list-style: none;
}

.rec-item {
    padding: 11px 0;
    border-bottom: 1px dashed #c5cae9;
}

.rec-item:last-child {
    border-bottom: none;
}

.rec-item a {
    display: flex;
    gap: 11px;
    text-decoration: none;
    color: inherit;
}

.rec-img {
    flex-shrink: 0;
    width: 70px;
    height: 52px;
    overflow: hidden;
    border-radius: 4px;
    background: #e8eaf6;
}

.rec-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rec-content {
    flex: 1;
    min-width: 0;
}

.rec-title {
    font-size: 12px;
    font-weight: 500;
    color: #1a237e;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rec-meta {
    font-size: 10px;
    color: #7986cb;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-list {
    list-style: none;
}

.comment-item {
    padding: 11px 0;
    border-bottom: 1px dashed #c5cae9;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-user {
    font-weight: 600;
    color: #3f51b5;
    margin-bottom: 5px;
    font-size: 12px;
}

.comment-text {
    color: #1a237e;
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 7px;
}

.comment-meta {
    font-size: 10px;
    color: #7986cb;
    display: flex;
    align-items: center;
    gap: 7px;
}

.comment-meta a {
    color: #283593;
    text-decoration: none;
}

.comment-meta a:hover {
    color: #3f51b5;
    text-decoration: underline;
}

/* 列表页标题 */
.page-title {
    background: #3f51b5;
    color: #fff;
    padding: 28px 0;
    margin-bottom: 26px;
}

.page-h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.page-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
}

.page-count {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

/* 内容页 */
.article-detail {
    background: #fff;
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 26px;
    box-shadow: 0 2px 8px rgba(63, 81, 181, 0.15);
}

.article-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8eaf6;
}

.article-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #283593;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.meta-author {
    color: #283593;
    font-weight: 500;
}

.meta-time {
    color: #283593;
}

.meta-hits {
    color: #283593;
    font-weight: 500;
}

.meta-cat {
    color: #3f51b5;
    text-decoration: none;
    transition: color 0.3s;
}

.meta-cat:hover {
    color: #283593;
    text-decoration: underline;
}

.meta-source {
    color: #7986cb;
    font-size: 11px;
}

.meta-inputer {
    color: #7986cb;
    font-size: 11px;
}

.article-img-featured {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #e8eaf6;
}

.article-img-featured img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #1a237e;
    word-wrap: break-word;
}

.article-body * {
    font-size: inherit;
    color: inherit;
}

.article-body p {
    margin-bottom: 18px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 26px auto;
    border-radius: 8px;
}

.article-body h1, .article-body h2, .article-body h3 {
    margin-top: 28px;
    margin-bottom: 16px;
    font-weight: 600;
    color: #1a237e;
    line-height: 1.4;
}

.article-body h1 { font-size: 26px; }
.article-body h2 { font-size: 24px; }
.article-body h3 { font-size: 22px; }

.article-body ul, .article-body ol {
    padding-left: 28px;
    margin-bottom: 18px;
}

.article-body li {
    margin-bottom: 9px;
}

.article-body a {
    color: #3f51b5;
    text-decoration: underline;
}

.article-body a:hover {
    color: #283593;
}

.article-body blockquote {
    border-left: 4px solid #3f51b5;
    padding: 14px 18px;
    margin: 26px 0;
    background: #e8eaf6;
    border-radius: 4px;
    color: #283593;
    font-style: italic;
}

.article-body code {
    background: #e8eaf6;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 14px;
    color: #d32f2f;
}

.article-body pre {
    background: #1a237e;
    color: #e8eaf6;
    padding: 18px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 26px 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 26px 0;
}

.article-body table th, .article-body table td {
    border: 1px solid #c5cae9;
    padding: 11px;
    text-align: left;
}

.article-body table th {
    background: #3f51b5;
    color: #fff;
    font-weight: 600;
}

.article-tags {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 2px solid #e8eaf6;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 12px;
    background: #e8eaf6;
    color: #1a237e;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
}

.tag:hover {
    background: #3f51b5;
    color: #fff;
}

/* 上下篇导航 */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

.nav-prev, .nav-next {
    padding: 16px;
    background: #fff;
    border: 2px solid #e8eaf6;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-prev:hover, .nav-next:hover {
    border-color: #3f51b5;
    box-shadow: 0 2px 8px rgba(63, 81, 181, 0.15);
}

.nav-prev span, .nav-next span {
    display: block;
    font-size: 11px;
    color: #7986cb;
    margin-bottom: 7px;
}

.nav-prev a, .nav-next a {
    color: #1a237e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    line-height: 1.5;
}

.nav-prev a:hover, .nav-next a:hover {
    color: #3f51b5;
}

.nav-next {
    text-align: right;
}

/* 相关文章 */
.related {
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(63, 81, 181, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(63, 81, 181, 0.25);
}

.related-img {
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: #e8eaf6;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 14px;
}

.related-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.related-title a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.related-title a:hover {
    color: #3f51b5;
}

.related-meta {
    font-size: 10px;
    color: #7986cb;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 文章信息 */
.info-list {
    list-style: none;
}

.info-item {
    padding: 13px 0;
    border-bottom: 1px solid #e8eaf6;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    display: block;
    font-size: 11px;
    color: #7986cb;
    margin-bottom: 6px;
}

.info-value {
    font-size: 13px;
    color: #1a237e;
    font-weight: 500;
}

.info-value.highlight {
    color: #3f51b5;
    font-size: 24px;
    font-weight: 600;
}

.info-value a {
    color: #3f51b5;
    text-decoration: none;
    transition: color 0.3s;
}

.info-value a:hover {
    color: #283593;
    text-decoration: underline;
}

.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.tag-mini {
    padding: 3px 9px;
    background: #e8eaf6;
    color: #1a237e;
    text-decoration: none;
    border-radius: 4px;
    font-size: 11px;
    transition: all 0.3s;
}

.tag-mini:hover {
    background: #3f51b5;
    color: #fff;
}

.related-list {
    list-style: none;
}

.related-item {
    padding: 10px 0;
    border-bottom: 1px dashed #c5cae9;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item a {
    color: #1a237e;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
    display: block;
}

.related-item a:hover {
    color: #3f51b5;
}

/* 友情链接区域 */
.links {
    background: #fff;
    padding: 26px 0;
    margin-top: 30px;
    border-top: 1px solid #c5cae9;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px;
}

.links-ul {
    list-style: none;
}

.links-ul li {
    padding: 7px 0;
    border-bottom: 1px dashed #c5cae9;
}

.links-ul li:last-child {
    border-bottom: none;
}

.links-ul a {
    color: #1a237e;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.links-ul a:hover {
    color: #3f51b5;
}

/* 页脚 */
.footer {
    background: #1a237e;
    color: #e8eaf6;
    padding: 42px 0 24px;
    margin-top: 42px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-bottom: 26px;
}

.footer-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #fff;
}

.footer-text {
    color: #c5cae9;
    margin-bottom: 9px;
    font-size: 13px;
}

.footer-copy {
    color: #7986cb;
    font-size: 12px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-nav a {
    color: #c5cae9;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 22px;
    border-top: 1px solid #283593;
}

.beian {
    margin-bottom: 9px;
}

.beian a {
    color: #7986cb;
    text-decoration: none;
    font-size: 12px;
}

.beian a:hover {
    color: #e8eaf6;
}

.footer-note {
    color: #7986cb;
    font-size: 11px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 44px;
    height: 44px;
    background: #3f51b5;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(63, 81, 181, 0.3);
    transition: all 0.3s;
    z-index: 999;
    font-size: 18px;
    font-weight: bold;
}

.back-to-top:hover {
    background: #283593;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(63, 81, 181, 0.4);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 160px 1fr 240px;
    }
}

@media (max-width: 768px) {
    .layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-left, .sidebar-right {
        margin-top: 22px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .search-input {
        width: 100%;
        max-width: 100%;
    }
    
    .nav-list {
        flex-wrap: wrap;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-img {
        width: 100%;
        height: 200px;
    }
    
    .article-nav {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #e8eaf6;
}

::-webkit-scrollbar-thumb {
    background: #3f51b5;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #283593;
}

/* 729384 */

