/* 新模板样式 - 青绿色调，圆润卡片 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0A0E17;
    color: #E5E9F0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.new-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏 */
.new-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 18px 0;
    border-bottom: 1px solid rgba(58, 193, 224, 0.3);
}

.new-logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3AC1E0, #A855F7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.new-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    flex-wrap: wrap;
}

.new-nav-links li a {
    color: #B9C3D4;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.2s;
    position: relative;
}

.new-nav-links li a:hover,
.new-nav-links li a.active {
    color: #3AC1E0;
}

.new-nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #3AC1E0;
    transition: width 0.2s;
}

.new-nav-links li a:hover::after,
.new-nav-links li a.active::after {
    width: 100%;
}

.new-search-box {
    background: #141A24;
    border: 1px solid #2A3548;
    border-radius: 40px;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
}

.new-search-box:focus-within {
    border-color: #3AC1E0;
    box-shadow: 0 0 0 3px rgba(58, 193, 224, 0.15);
}

.new-search-box i {
    color: #6C86A3;
}

.new-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #E5E9F0;
    width: 100%;
}

/* Hero 区域 */
.new-hero {
    background: linear-gradient(125deg, #0F1722, #0A0F1A);
    border-radius: 32px;
    border: 1px solid #2F3B4C;
    padding: 44px 32px;
    margin: 30px 0 28px;
    text-align: center;
}

.new-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.new-hero p {
    color: #B9C3D4;
    font-size: 0.98rem;
}

/* 广告区 */
.new-ad-area {
    background: #0F1722;
    border-radius: 24px;
    border: 1px solid #2A3548;
    padding: 20px 24px;
    margin: 28px 0;
}

.new-ad-flex {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.new-ad-card {
    flex: 1;
    min-width: 240px;
    background: #0B111A;
    border: 1px solid #2A3548;
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    text-decoration: none;
    color: #E5E9F0;
}

.new-ad-card:hover {
    transform: translateY(-2px);
    border-color: #3AC1E0;
    background: #0F1822;
}

.new-ad-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.new-ad-icon {
    font-size: 1.8rem;
    color: #3AC1E0;
}

.new-ad-title {
    font-weight: 700;
    font-size: 1rem;
    color: #FFFFFF;
}

.new-ad-sub {
    font-size: 0.75rem;
    color: #3AC1E0;
    opacity: 0.9;
}

.new-ad-arrow {
    color: #6C86A3;
    font-size: 0.9rem;
}

/* 主内容卡片 */
.new-content-card {
    background: #131A24;
    border-radius: 28px;
    padding: 28px;
    border: 1px solid #1E293B;
}

.new-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.new-section-header h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #FFFFFF;
}

.new-section-header h2 i {
    color: #3AC1E0;
    margin-right: 8px;
}

.new-more {
    color: #3AC1E0;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

/* 文章网格 */
.new-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.new-article-card {
    background: #0F1722;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #1E293B;
    transition: all 0.2s;
    height: 100%;
}

.new-article-card:hover {
    transform: translateY(-4px);
    border-color: #3AC1E0;
    box-shadow: 0 14px 30px rgba(58, 193, 224, 0.1);
}

.new-article-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E293B, #0F1722);
    color: #3AC1E0;
    font-size: 3rem;
    position: relative;
}

.new-article-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(58, 193, 224, 0.12), transparent 45%);
}

.new-article-content {
    padding: 20px 22px 24px;
}

.new-article-category {
    display: inline-block;
    background: rgba(58, 193, 224, 0.12);
    color: #3AC1E0;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

.new-article-title {
    font-size: 1.16rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.55;
    color: #FFFFFF;
}

.new-article-summary {
    color: #94A3B8;
    font-size: 0.92rem;
    margin-bottom: 16px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.new-article-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #64748B;
}

.new-article-meta i {
    margin-right: 6px;
    color: #6C86A3;
}

/* 分页 */
.new-pagination {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.new-pagination a {
    min-width: 42px;
    height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    background: #131A24;
    border: 1px solid #2A3548;
    color: #B9C3D4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    text-decoration: none;
}

.new-pagination a:hover {
    border-color: #3AC1E0;
    color: #3AC1E0;
    transform: translateY(-2px);
}

.new-pagination a.active {
    background: #3AC1E0;
    color: #0A0E17;
    border-color: #3AC1E0;
    font-weight: 700;
}

.new-pagination-dots {
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    color: #6C86A3;
}

/* 空状态 */
.new-empty-state {
    text-align: center;
    padding: 56px 20px;
    color: #8DA0BC;
}

.new-empty-state i {
    font-size: 2.5rem;
    color: #2F3B4C;
    margin-bottom: 14px;
}

.new-empty-state strong {
    display: block;
    color: #E5E9F0;
    font-size: 1.05rem;
}

/* 页脚 */
.new-footer {
    text-align: center;
    padding: 34px 0 42px;
    color: #64748B;
    font-size: 0.92rem;
    border-top: 1px solid #1F2A36;
    margin-top: 48px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .new-container { padding: 0 18px; }
    .new-article-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .new-hero { padding: 40px 24px; }
}

@media (max-width: 900px) {
    .new-navbar { flex-direction: column; align-items: stretch; }
    .new-nav-links { justify-content: center; }
    .new-search-box { width: 100%; min-width: 0; }
    .new-hero h1 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .new-article-grid { grid-template-columns: 1fr; }
    .new-hero h1 { font-size: 1.5rem; }
    .new-ad-card { min-width: 100%; }
}


/* ========== 友情链接/旗下网站 ========== */
.friend-links {
    background: #0F1722;
    border-top: 1px solid #1E293B;
    padding: 20px 0;
    margin-top: 40px;
}
.friend-links-title {
    font-size: 0.9rem;
    color: #8DA0BC;
    margin-bottom: 12px;
    text-align: left;          /* 左对齐（您之前要求改为左对齐） */
}
.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* 左对齐 */
    gap: 20px;
    row-gap: 12px;
}
.friend-links-list a {
    color: #B9C3D4;
    font-size: 0.85rem;
    transition: color 0.2s;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 30px;
    background: rgba(255,255,255,0.03);
}
.friend-links-list a:hover {
    color: #3AC1E0;
    background: rgba(58,193,224,0.1);
}

/* ========== 内容页扩展样式 ========== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    color: #3AC1E0;
    text-decoration: none;
    transition: opacity 0.2s;
}
.back-link:hover {
    opacity: 0.8;
}
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #2A3548;
}
.nav-label {
    display: block;
    font-size: 0.8rem;
    color: #64748B;
    margin-bottom: 4px;
}
.nav-previous a, .nav-next a {
    color: #3AC1E0;
    text-decoration: none;
    word-break: break-word;
}
.nav-previous a:hover, .nav-next a:hover {
    text-decoration: underline;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.related-item {
    background: #0F1722;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #1E293B;
    transition: transform 0.2s;
}
.related-item:hover {
    transform: translateY(-2px);
    border-color: #3AC1E0;
}
.related-item .article-category {
    display: inline-block;
    background: rgba(58,193,224,0.12);
    color: #3AC1E0;
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 11px;
    margin-bottom: 8px;
}
.related-item h4 {
    font-size: 1rem;
    margin: 8px 0;
}
.related-item a {
    color: #FFFFFF;
    text-decoration: none;
}
.related-item a:hover {
    color: #3AC1E0;
}
.related-item .article-meta {
    font-size: 0.7rem;
    color: #64748B;
    margin-top: 8px;
}

/* ========== 栏目页列表样式（list-view） ========== */
.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.list-article {
    background: #0F1722;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #1E293B;
    transition: transform 0.2s, border-color 0.2s;
}
.list-article:hover {
    transform: translateY(-2px);
    border-color: #3AC1E0;
}
.list-article .article-category {
    display: inline-block;
    background: rgba(58,193,224,0.12);
    color: #3AC1E0;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    margin-bottom: 10px;
}
.list-article .article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.list-article .article-title a {
    color: #FFFFFF;
    text-decoration: none;
}
.list-article .article-title a:hover {
    color: #3AC1E0;
}
.list-article .article-summary {
    color: #94A3B8;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 12px;
}
.list-article .article-meta {
    display: flex;
    gap: 18px;
    font-size: 0.8rem;
    color: #64748B;
}

/* ========== 分类筛选标签 ========== */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.filter-tab {
    background: #131A24;
    border: 1px solid #2A3548;
    color: #B9C3D4;
    padding: 7px 18px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.filter-tab:hover,
.filter-tab.active {
    background: #3AC1E0;
    color: #0A0E17;
    border-color: #3AC1E0;
}