/* @copyright (C)2026-2099 GGXCWL Inc. */
/* @author 382429088 */
/* @email 382429088@qq.com */
/* @date 2026年9月16日 */
/* 星晨 CMS 默认前台样式（极简版） */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
    color: #333;
    font-size: 15px;
    line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2b5cff; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============ 头部 ============ */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eceff5;
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2b5cff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}
.site-logo img { max-height: 36px; }

/* ============ 主导航 ============ */
.site-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}
.site-nav-item {
    color: #333;
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    transition: color .15s, border-color .15s;
}
.site-nav-item:hover {
    color: #2b5cff;
    border-bottom-color: #2b5cff;
    text-decoration: none;
}
.site-nav-item.active {
    color: #2b5cff;
    border-bottom-color: #2b5cff;
    font-weight: 600;
}

/* ============ 主体 ============ */
.site-main { padding: 24px 0 5px; }

/* ============ Hero ============ */
.hero {
    background: linear-gradient(135deg, #2b5cff 0%, #1a3bb8 100%);
    color: #fff;
    text-align: center;
    padding: 64px 20px;
    border-radius: 10px;
    margin-bottom: 32px;
}
.hero-title { margin: 0 0 12px; font-size: 32px; font-weight: 600; }
.hero-subtitle { margin: 0; font-size: 16px; opacity: .9; }

/* ============ 区块 ============ */
.section { margin-bottom: 40px; }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 2px solid #eceff5;
    padding-bottom: 8px;
}
.section-title { margin: 0; font-size: 20px; font-weight: 600; }
.section-more { font-size: 14px; color: #888; }
.section-more:hover { color: #2b5cff; }

/* ============ 列表 ============ */
.list-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.list-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    transition: box-shadow .2s, transform .2s;
}
.list-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.list-item-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.list-item-link:hover { text-decoration: none; color: inherit; }
.list-item-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f0f2f7;
    overflow: hidden;
}
.list-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.list-item-body { padding: 16px; }
.list-item-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.list-item-summary {
    margin: 0 0 8px;
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.list-item-date { font-size: 12px; color: #b0b8c4; }

/* ============ 分页 ============ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 32px 0;
    flex-wrap: wrap;
}
.pagination a,
.pagination .page-current {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    text-decoration: none;
}
.pagination a:hover { border-color: #2b5cff; color: #2b5cff; }
.pagination .page-current {
    background: #2b5cff;
    border-color: #2b5cff;
    color: #fff;
}

/* ============ 文章页 ============ */
.article {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.article-head {
    border-bottom: 1px solid #eceff5;
    padding-bottom: 16px;
    margin-bottom: 24px;
}
.article-title { margin: 0 0 12px; font-size: 24px; font-weight: 600; }
.article-meta { font-size: 13px; color: #888; }
.article-summary { margin: 6px 0 0; font-size: 14px; color: #888; }
.article-body { line-height: 1.9; font-size: 15px; }
.article-body img { margin: 12px 0; border-radius: 6px; }
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #eceff5;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

/* ============ 页头 ============ */
.page-head {
    background: #fff;
    padding: 24px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
}
.page-title { margin: 0; font-size: 24px; font-weight: 600; }
.page-summary {
    margin: 6px 0 0;
    color: #888;
    font-size: 14px;
}

/* ============ 尾部 ============ */
.site-footer {
    background: #1f2a44;
    color: #cbd4e2;
    padding: 15px 0 32px;
    margin-top: 5px;
    font-size: 13px;
}

/* ============ 底部导航 ============ */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 24px;
    padding: 0px 16px 14px;
    text-align: center;
}
.footer-nav a {
    color: inherit;
    font-size: inherit;
    text-decoration: none;
    transition: color .15s;
}
.footer-nav a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-copyright { margin: 0 0 8px; }
.footer-copyright a { color: #cbd4e2; }
.footer-beian { margin: 0; color: #6b7894; }
.footer-beian a { color: #cbd4e2; }
.footer-company p { margin: 0 0 4px; }
.footer-company a { color: #cbd4e2; }

/* ============ 友情链接 ============ */
.friend-links-body {
    background: #fff;
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.friend-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.friend-links-list li {
    margin: 0;
}

.friend-links-list a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #e2e6ef;
    border-radius: 20px;
    background: #f8f9fc;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}

.friend-links-list a:hover {
    border-color: #2b5cff;
    background: #fff;
    color: #2b5cff;
    box-shadow: 0 2px 8px rgba(43, 92, 255, .12);
    text-decoration: none;
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
    .list-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .header-inner {
        height: auto;
        flex-direction: column;
        padding: 12px 0;
    }
    .site-nav {
        gap: 14px;
        margin-top: 8px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .site-nav-item {
        font-size: 14px;
    }
    .list-grid { grid-template-columns: 1fr; }
    .hero { padding: 40px 16px; }
    .hero-title { font-size: 24px; }
    .article { padding: 20px; }
    .article-title { font-size: 20px; }
    .footer-inner { flex-direction: column; }

    .footer-nav {
        gap: 8px 16px;
        padding: 0 12px 12px;
    }

    .friend-links-body {
        padding: 14px 16px;
    }
    .friend-links-list {
        gap: 8px 10px;
    }
    .friend-links-list a {
        padding: 5px 12px;
        font-size: 12px;
    }
}