/**
 * 嬴政天下 AI资讯
 * 秦始皇配色：玄黑 + 纁红 + 龙纹金
 */

:root {
    --bg: #08080a;
    --card: #0f0f12;
    --card-hover: #141418;
    --border: #1a1a1f;
    --border-light: #252530;
    --text: #f0ece6;
    --muted: #8a857d;
    --accent: #c23a2b;
    --accent-light: #d94a3a;
    --gold: #d4a24c;
    --gold-light: #e8b85c;
    --tag-bg: #1a1815;
    --green: #22c55e;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: all .2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* =====================================================
   页眉 - 简洁专业
   ===================================================== */
.header {
    background: linear-gradient(180deg, rgba(15,15,18,0.98) 0%, rgba(8,8,10,0.95) 100%);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
    gap: 1.5rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 55px;
    width: auto;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent) 0%, #8b2920 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 12px rgba(194,58,43,0.35);
}

.logo-text {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-left: 0.6rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 中间热门标签 */
.header-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.header-tags-label {
    font-size: 0.75rem;
    color: var(--muted);
    margin-right: 0.25rem;
}

.header-tag {
    padding: 0.35rem 0.85rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 0.78rem;
    color: var(--muted);
    transition: all .2s;
}

.header-tag:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212,162,76,0.06);
}

.header-tag.active {
    background: linear-gradient(135deg, var(--accent), #9b3025);
    border-color: transparent;
    color: #fff;
}

/* 右侧搜索+投稿 */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.2rem;
    transition: all .2s;
}

.search-box:focus-within {
    border-color: var(--accent);
    background: rgba(255,255,255,0.05);
}

.search-input {
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.82rem;
    width: 300px;
}

.search-input:focus { outline: none; }
.search-input::placeholder { color: var(--muted); }

.search-btn {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--accent), #9b3025);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(194,58,43,0.4);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--gold), #c08b2a);
    border: none;
    border-radius: 20px;
    color: #0a0a0b;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all .2s;
    white-space: nowrap;
}

.btn-submit:hover {
    color: #0a0a0b;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212,162,76,0.4);
}

.btn-submit i { font-size: 0.75rem; }

/* =====================================================
   标签导航栏
   ===================================================== */
.tags-nav {
    padding: 0.75rem 0;
    background: rgba(15,15,18,0.5);
    border-bottom: 1px solid var(--border);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    padding: 0.35rem 0.85rem;
    background: var(--tag-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 0.78rem;
    color: var(--muted);
    transition: all .2s;
}

.tag:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.tag.active {
    background: linear-gradient(135deg, var(--accent), #8b2920);
    border-color: transparent;
    color: #fff;
}

.tag-count {
    font-size: 0.68rem;
    opacity: 0.6;
    margin-left: 0.2rem;
}

/* =====================================================
   主内容
   ===================================================== */
.main-content {
    padding: 2rem 0 3rem;
    min-height: calc(100vh - 200px);
}

.page-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-title strong { color: var(--gold); }
.page-title small { font-size: 0.85rem; font-weight: 400; }
.page-title i { color: var(--accent); font-size: 1rem; }

/* =====================================================
   文章卡片
   ===================================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.article-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.35rem;
    transition: all .3s;
    position: relative;
}

.article-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity .3s;
}

.article-card:hover {
    border-color: var(--border-light);
    background: var(--card-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.article-card:hover::after { opacity: 1; }

.article-card__title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .article-card__title { color: var(--gold); }

.article-card__excerpt {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.article-card__tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.article-card__tag {
    padding: 0.15rem 0.5rem;
    background: var(--tag-bg);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--muted);
}

.article-card__info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.article-card__views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* =====================================================
   分页
   ===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2.5rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 0.9rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.82rem;
    transition: all .2s;
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted);
}

.empty-state__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

/* =====================================================
   文章详情页
   ===================================================== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    padding: 1.5rem 0 3rem;
}

.breadcrumb {
    padding: 0.85rem 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { margin: 0 0.4rem; font-size: 0.65rem; opacity: 0.5; }

.article__title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

.article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.article__meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.article__meta-item i { color: var(--accent); font-size: 0.85rem; }

.article__tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.article__tag {
    padding: 0.25rem 0.65rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--muted);
    transition: all .2s;
}

.article__tag:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* 文章内容 */
.article__content {
    font-size: 1rem;
    line-height: 1.9;
}

.article__content p { margin-bottom: 1.25rem; }

.article__content h2,
.article__content h3 {
    font-family: 'Noto Serif SC', serif;
    margin: 2rem 0 1rem;
    padding-left: 0.85rem;
    border-left: 3px solid var(--accent);
    color: var(--gold);
}

.article__content h2 { font-size: 1.35rem; }
.article__content h3 { font-size: 1.15rem; }

.article__content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--card);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    color: var(--muted);
    font-style: italic;
}

.article__content ul,
.article__content ol {
    margin: 1.25rem 0 1.25rem 1.25rem;
}

.article__content li { margin-bottom: 0.5rem; }

.article__content code {
    background: var(--card);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85em;
    color: var(--accent-light);
}

.article__content pre {
    background: var(--card);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.25rem 0;
}

.article__content img {
    border-radius: 8px;
    margin: 1.25rem 0;
}

.article__content strong { color: var(--gold); }
.article__content a { color: var(--gold); }

/* 分享按钮 */
.share-buttons {
    display: flex;
    gap: 0.6rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.share-btn {
    padding: 0.55rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.share-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* 相关文章 */
.related-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.section-title i { color: var(--accent); font-size: 0.9rem; }

.related-list { display: grid; gap: 0.65rem; }

.related-item {
    display: block;
    padding: 0.85rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all .2s;
}

.related-item:hover {
    border-color: var(--accent);
    transform: translateX(3px);
}

.related-item__title {
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.related-item:hover .related-item__title { color: var(--gold); }
.related-item__date { font-size: 0.72rem; color: var(--muted); }

/* =====================================================
   侧边栏
   ===================================================== */
.sidebar { position: sticky; top: 80px; }

.sidebar-widget {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.sidebar-widget__header {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sidebar-widget__header i { color: var(--accent); font-size: 0.85rem; }

.sidebar-widget__list { padding: 0.35rem 0; }

.sidebar-item {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text);
    font-size: 0.85rem;
    transition: all .2s;
    border-left: 2px solid transparent;
}

.sidebar-item:hover {
    background: rgba(255,255,255,0.02);
    border-left-color: var(--gold);
    color: var(--gold);
}

.sidebar-item__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

.sidebar-item__meta {
    display: flex;
    gap: 0.6rem;
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

/* =====================================================
   页脚
   ===================================================== */
.footer {
    margin-top: auto;
    position: relative;
}

.footer::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent) 20%, 
        var(--gold) 50%, 
        var(--accent) 80%, 
        transparent 100%
    );
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    gap: 0.6rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.3px;
}

.footer-slogan {
    font-size: 0.85rem;
    color: #5a564f;
    letter-spacing: 0.5px;
}

.footer-slogan strong {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.footer-seo {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.78rem;
    margin-top: 0.5rem;
}

.footer-seo a {
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.7;
    transition: all .2s;
}

.footer-seo a:hover { 
    color: var(--gold); 
    opacity: 1;
}

/* 返回顶部 */
.back-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.85rem;
    transition: all .2s;
    opacity: 0.8;
}

.back-top:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
    opacity: 1;
}

/* 网站地图和SEO - 固定按钮 */
.footer-seo {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
}
.footer-seo a {
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.footer-seo a:hover { color: var(--gold); }

/* 返回顶部 - 固定按钮 */
.back-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    z-index: 50;
    opacity: 0.7;
}

.back-top:hover {
    border-color: var(--accent);
    color: var(--accent);
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* =====================================================
   投稿页
   ===================================================== */
.submit-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
}

.submit-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 0.4rem;
}

.submit-title i { color: var(--gold); margin-right: 0.5rem; }

.submit-desc {
    color: var(--muted);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.form-label .required { color: var(--accent); }

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all .2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-textarea {
    min-height: 240px;
    resize: vertical;
    line-height: 1.7;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--accent), #9b3025);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(194,58,43,0.35);
    transform: translateY(-1px);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    text-align: center;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(34,197,94,0.1);
    color: var(--green);
    border: 1px solid rgba(34,197,94,0.2);
}

.alert-error {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.2);
}

.success-box {
    text-align: center;
    padding: 2.5rem 1rem;
}

.success-icon {
    font-size: 3.5rem;
    margin-bottom: 0.85rem;
    color: var(--green);
}

.success-title {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
    color: var(--green);
}

.success-desc {
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
    transition: all .2s;
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.tips-box {
    background: rgba(212,162,76,0.05);
    border: 1px solid rgba(212,162,76,0.15);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.tips-title {
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tips-list {
    color: var(--muted);
    font-size: 0.85rem;
    padding-left: 1.1rem;
}

.tips-list li { margin-bottom: 0.3rem; }

/* =====================================================
   响应式
   ===================================================== */
@media (max-width: 1024px) {
    .header-center { display: none; }
}

@media (max-width: 900px) {
    .article-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; margin-top: 1.5rem; }
}

@media (max-width: 640px) {
    .header-inner {
        height: auto;
        padding: 0.75rem 0;
    }
    .header-right {
        flex-direction: row;
        gap: 0.5rem;
    }
    .search-input { width: 80px; }
    .btn-submit span { display: none; }
    .articles-grid { grid-template-columns: 1fr; }
    .article__title { font-size: 1.4rem; }
    .form-row { grid-template-columns: 1fr; }
    .back-top { right: 1rem; bottom: 1rem; }
}
/* =============================================
   SEO & 无障碍辅助样式
   添加到 style.css 末尾
   ============================================= */

/* Screen Reader Only - 仅屏幕阅读器可见 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 焦点可见时显示（键盘导航） */
.sr-only-focusable:focus,
.sr-only-focusable:active {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* 跳转到主内容链接（无障碍） */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 500;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   海外精选栏目 & 栏目Tab系统
   追加到 /assets/css/style.css 末尾
   ============================================ */

/* --- 栏目Tab导航 --- */
.channel-nav {
    background: var(--bg, #08080a);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 64px;
    z-index: 90;
}
.channel-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.channel-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.channel-tab:hover {
    color: #f5f5f5;
    background: rgba(255,255,255,0.02);
}
.channel-tab.active {
    color: #d4a24c;
    border-bottom-color: #d4a24c;
}
.channel-tab i {
    font-size: 0.85rem;
}
.channel-count {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.06);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    color: #888;
}
.channel-tab.active .channel-count {
    background: rgba(212,162,76,0.15);
    color: #d4a24c;
}

/* --- 海外精选Hero区 --- */
.channel-hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
    margin-bottom: 1rem;
}
.channel-hero__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 0.5rem;
}
.channel-hero__title i {
    color: #d4a24c;
}
.channel-hero__desc {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}
.channel-hero__sources {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.source-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    background: var(--c, #666);
    opacity: 0.8;
    transition: opacity 0.2s;
}
.source-pill:hover {
    opacity: 1;
}

/* --- 文章卡片：来源徽章 --- */
.article-card {
    position: relative;
}
.article-card__source-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
    z-index: 2;
    opacity: 0.9;
}

/* 海外精选卡片左侧金色指示条 */
.article-card--global {
    border-left: 3px solid #d4a24c;
}

/* 来源信息样式 */
.article-card__from {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #d4a24c;
    font-weight: 500;
}
.article-card__from i {
    font-size: 0.65rem;
}

/* --- 响应式 --- */
@media (max-width: 768px) {
    .channel-nav {
        top: 56px;
    }
    .channel-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    .channel-hero {
        padding: 1.25rem 0 1rem;
    }
    .channel-hero__title {
        font-size: 1.25rem;
    }
}



/* 高对比度焦点状态 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 打印样式优化 */
@media print {
    .header,
    .tags-nav,
    .sidebar,
    .share-buttons,
    .pagination,
    .back-top,
    .btn-submit,
    .search-box,
    footer {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }
    
    .article__title {
        font-size: 18pt;
        color: #000;
    }
    
    .article__content {
        font-size: 11pt;
        line-height: 1.5;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 9pt;
    }
}

/* 文章内容图片SEO优化 */
.article__content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
}

.article__content img:not([alt]) {
    outline: 3px solid #ff0000; /* 开发时提醒缺少alt */
}

/* 外链标识 */
.article__content a[href^="http"]:not([href*="winzheng.com"]):after {
    content: " ↗";
    font-size: 0.75em;
    vertical-align: super;
    opacity: 0.6;
}

/* 结构化数据隐藏容器 */
[itemscope] > [hidden],
[itemprop][hidden] {
    display: none !important;
}
/* ============================================
   海外精选栏目 & 栏目Tab系统
   追加到 /assets/css/style.css 末尾
   ============================================ */

/* --- 栏目Tab导航 --- */
.channel-nav {
    background: var(--bg, #08080a);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 64px;
    z-index: 90;
}
.channel-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.channel-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.channel-tab:hover {
    color: #f5f5f5;
    background: rgba(255,255,255,0.02);
}
.channel-tab.active {
    color: #d4a24c;
    border-bottom-color: #d4a24c;
}
.channel-tab i {
    font-size: 0.85rem;
}
.channel-count {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.06);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    color: #888;
}
.channel-tab.active .channel-count {
    background: rgba(212,162,76,0.15);
    color: #d4a24c;
}

/* --- 海外精选Hero区 --- */
.channel-hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
    margin-bottom: 1rem;
}
.channel-hero__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 0.5rem;
}
.channel-hero__title i {
    color: #d4a24c;
}
.channel-hero__desc {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}
.channel-hero__sources {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.source-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    background: var(--c, #666);
    opacity: 0.8;
    transition: opacity 0.2s;
}
.source-pill:hover {
    opacity: 1;
}

/* --- 文章卡片：来源徽章 --- */
.article-card {
    position: relative;
}
.article-card__source-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
    z-index: 2;
    opacity: 0.9;
}

/* 海外精选卡片左侧金色指示条 */
.article-card--global {
    border-left: 3px solid #d4a24c;
}

/* 来源信息样式 */
.article-card__from {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #d4a24c;
    font-weight: 500;
}
.article-card__from i {
    font-size: 0.65rem;
}

/* --- 响应式 --- */
@media (max-width: 768px) {
    .channel-nav {
        top: 56px;
    }
    .channel-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    .channel-hero {
        padding: 1.25rem 0 1rem;
    }
    .channel-hero__title {
        font-size: 1.25rem;
    }
}

/* ============================================
   本站推荐（当天置顶）
   ============================================ */

/* 推荐卡片：金色上边框 + 微弱金色背景 */
.article-card--featured {
    border-top: 3px solid #d4a24c;
    background: linear-gradient(180deg, rgba(212,162,76,0.04) 0%, transparent 40%);
}

/* 推荐徽章：左上角 */
.article-card__featured-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #d4a24c;
    background: rgba(212,162,76,0.12);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

/* 推荐+海外 同时存在时，推荐左上，来源右上 */
.article-card--featured.article-card--global {
    border-top: 3px solid #d4a24c;
    border-left: none;
}

/* 推荐卡片标题加粗 */
.article-card--featured .article-card__title {
    color: #f5f5f5;
}
