/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    background: #fff;
}
a { text-decoration: none; color: inherit; transition: all 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* ===== 头部导航 ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo-text {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a56db 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.main-nav ul { display: flex; gap: 40px; }
.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: #4b5563;
    position: relative;
    padding: 8px 0;
}
.nav-link:hover, .nav-link.active { color: #1a56db; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1a56db, #0ea5e9);
    transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ===== 首屏Banner ===== */
.hero-banner {
    position: relative;
    padding: 180px 0 120px;
    overflow: hidden;
    margin-top: 72px;
    background-color: #0f172a;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 138, 0.8) 50%, rgba(3, 105, 161, 0.75) 100%);
    z-index: -1;
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.3) 0%, transparent 50%);
}
.hero-content { text-align: center; color: #fff; }
.hero-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.hero-subtitle {
    font-size: 20px;
    opacity: 0.85;
    margin-bottom: 40px;
    font-weight: 300;
}
.hero-btns { display: flex; gap: 20px; justify-content: center; }
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}
.btn-outline {
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff;
    background: transparent;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* ===== 通用区块标题 ===== */
.section-header {
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.section-header.center {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-items: center;
}
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    position: relative;
    padding-bottom: 12px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #1a56db, #0ea5e9);
    border-radius: 2px;
}
.section-header.center .section-title::after { left: 50%; transform: translateX(-50%); }
.section-desc {
    color: #6b7280;
    font-size: 15px;
    margin-top: 10px;
}
.more-link {
    color: #1a56db;
    font-size: 14px;
    font-weight: 500;
}
.more-link:hover { color: #0ea5e9; }

/* ===== 推荐文章卡片 ===== */
.recommend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.rec-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.rec-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.rec-cover {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.rec-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.rec-card:hover .rec-cover img { transform: scale(1.08); }
.no-cover {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff 0%, #cffafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a56db;
    font-weight: 500;
}
.rec-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(26, 86, 219, 0.9);
    color: #fff;
    font-size: 12px;
    border-radius: 20px;
}
.rec-info { padding: 20px; }
.rec-title {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rec-summary {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rec-meta {
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: 12px;
}

/* ===== 最新文章列表 ===== */
.latest-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.latest-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    transition: all 0.3s;
}
.latest-item:hover {
    border-color: #dbeafe;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.latest-link { display: flex; height: 100%; }
.latest-cover {
    width: 200px;
    flex-shrink: 0;
    overflow: hidden;
}
.latest-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.latest-item:hover .latest-cover img { transform: scale(1.05); }
.no-cover-sm {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
}
.latest-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.latest-cat {
    display: inline-block;
    padding: 2px 10px;
    background: #eff6ff;
    color: #1a56db;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    align-self: flex-start;
}
.latest-title {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.5;
}
.latest-summary {
    color: #6b7280;
    font-size: 13px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.latest-meta {
    display: flex;
    gap: 20px;
    color: #9ca3af;
    font-size: 12px;
    margin-top: 12px;
}

/* ===== 优势区块 ===== */
.advantage-section { background: #f8fafc; }
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.adv-item {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
}
.adv-item:hover {
    transform: translateY(-5px);
    border-color: #dbeafe;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.adv-icon {
    font-size: 48px;
    margin-bottom: 20px;
}
.adv-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111827;
}
.adv-item p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

/* ===== 页脚 ===== */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 0;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1e293b;
}
.footer-about h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 16px;
}
.footer-about p {
    font-size: 14px;
    line-height: 1.8;
}
.footer-links h4, .footer-contact h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}
.footer-links ul li {
    margin-bottom: 10px;
}
.footer-links a:hover { color: #3b82f6; }
.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    display: flex;
    justify-content: center;
    gap: 30px;
}
.footer-bottom a:hover { color: #3b82f6; }

/* ===== 列表页 ===== */
.list-banner {
    margin-top: 72px;
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    text-align: center;
}
.list-banner h1 { font-size: 36px; margin-bottom: 10px; }
.list-banner p { opacity: 0.8; font-size: 16px; }

.list-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}
.article-list { display: flex; flex-direction: column; gap: 20px; }
.article-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}
.article-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.article-link { display: flex; }
.article-cover {
    width: 240px;
    height: 160px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.article-item:hover .article-cover img { transform: scale(1.06); }
.no-cover-list {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff, #cffafe);
}
.recommend-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    border-radius: 3px;
}
.article-body {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
}
.article-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.article-cat {
    padding: 2px 10px;
    background: #eff6ff;
    color: #1a56db;
    font-size: 12px;
    border-radius: 4px;
}
.article-date { color: #9ca3af; font-size: 12px; }
.article-title {
    font-size: 19px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.5;
}
.article-summary {
    color: #6b7280;
    font-size: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-footer {
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: 12px;
    margin-top: 12px;
}

/* 侧边栏 */
.sidebar-widget {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}
.widget-title {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #1a56db;
}
.cat-list li { margin-bottom: 10px; }
.cat-list a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: #4b5563;
    font-size: 14px;
    transition: all 0.2s;
}
.cat-list a:hover, .cat-list a.active {
    background: #eff6ff;
    color: #1a56db;
}
.hot-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #f3f4f6;
}
.hot-list li:last-child { border-bottom: none; }
.hot-num {
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 11px;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 2px;
}
.hot-num.top {
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
}
.hot-list a {
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hot-list a:hover { color: #1a56db; }

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
}
.pagination .page-current {
    background: #1a56db;
    border-color: #1a56db;
    color: #fff;
}
.pagination a:hover {
    border-color: #1a56db;
    color: #1a56db;
}
.empty-data {
    text-align: center;
    padding: 60px 0;
    color: #9ca3af;
}

/* ===== 详情页 ===== */
.breadcrumb-section {
    margin-top: 72px;
    background: #f8fafc;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}
.breadcrumb {
    font-size: 13px;
    color: #6b7280;
}
.breadcrumb a:hover { color: #1a56db; }
.breadcrumb .current { color: #374151; }
.breadcrumb span { margin: 0 8px; }

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}
.detail-main {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    border: 1px solid #e5e7eb;
}
.detail-header { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid #f3f4f6; }
.detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 16px;
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 16px;
}
.meta-cat {
    padding: 2px 10px;
    background: #eff6ff;
    color: #1a56db;
    border-radius: 4px;
}
.detail-summary {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 3px solid #1a56db;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
}
.detail-summary strong { color: #111827; }

/* 正文内容样式 */
.detail-content {
    font-size: 16px;
    line-height: 2;
    color: #374151;
}
.detail-content p { margin-bottom: 20px; }
.detail-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 16px;
    color: #111827;
    padding-left: 12px;
    border-left: 4px solid #1a56db;
}
.detail-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: #1f2937;
}
.detail-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px auto;
}
.detail-content ul, .detail-content ol {
    margin: 16px 0;
    padding-left: 24px;
}
.detail-content li { margin-bottom: 8px; }
.detail-content blockquote {
    border-left: 4px solid #93c5fd;
    background: #eff6ff;
    padding: 16px 20px;
    margin: 20px 0;
    color: #1e40af;
    border-radius: 0 8px 8px 0;
}
.detail-content a { color: #1a56db; border-bottom: 1px dotted; }
.detail-content strong { color: #111827; }

.detail-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
}
.detail-tags {
    color: #6b7280;
    font-size: 14px;
}

/* 上下篇 */
.prev-next {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pn-item {
    font-size: 14px;
    color: #6b7280;
}
.pn-item a { color: #374151; }
.pn-item a:hover { color: #1a56db; }
.pn-item .no-more { color: #9ca3af; }

/* 相关推荐 */
.related-section { margin-top: 30px; }
.related-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #111827;
}
.related-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.rel-cover {
    width: 100%;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}
.rel-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.no-cover-rel {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
}
.rel-title {
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-item:hover .rel-title { color: #1a56db; }

.rec-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #f3f4f6;
}
.rec-list li:last-child { border-bottom: none; }
.rec-list a {
    font-size: 13px;
    color: #374151;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rec-list a:hover { color: #1a56db; }
.rec-date {
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
    margin-left: 10px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .recommend-grid { grid-template-columns: repeat(2, 1fr); }
    .advantage-grid { grid-template-columns: repeat(2, 1fr); }
    .list-layout, .detail-layout { grid-template-columns: 1fr; }
    .related-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .section { padding: 50px 0; }
    .section-title { font-size: 24px; }
    .latest-list { grid-template-columns: 1fr; }
    .article-link { flex-direction: column; }
    .article-cover { width: 100%; height: 180px; }
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .detail-main { padding: 24px; }
    .detail-title { font-size: 22px; }
    .main-nav { display: none; }
}