/* ==========================================================================
   前台资讯页样式 · 延续 EagleTrader Max 深色 + 金色视觉
   ========================================================================== */
:root {
    --primary-gold: #FFD700;
    --primary-gold-dark: #FFA500;
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --dark-bg: #0a0a0a;
    --card-bg: #141414;
    --card-border: #262626;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #6b6b6b;
    --success-green: #00d68f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(255, 215, 0, .28); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 导航 ---------------- */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 18px 0;
    background: rgba(10, 10, 10, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo img { width: 10.375rem; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: 15px; transition: color .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-gold); }
.nav-cta {
    background: var(--gradient-gold); color: #000; padding: 10px 22px;
    border-radius: 8px; font-weight: 600; font-size: 14px;
    transition: transform .25s, box-shadow .25s; white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(255, 215, 0, .3); }

/* ---------------- 页头 ---------------- */
.page-hero {
    padding: 160px 0 54px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 215, 0, .09) 0%, transparent 62%);
    border-bottom: 1px solid var(--card-border);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 65%);
    pointer-events: none;
}
.page-hero .badge-line {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 215, 0, .1); border: 1px solid rgba(255, 215, 0, .3);
    color: var(--primary-gold); padding: 7px 18px; border-radius: 50px;
    font-size: 13px; font-weight: 600; margin-bottom: 20px; position: relative;
}
.page-hero h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; letter-spacing: -1px; line-height: 1.2; position: relative; }
.page-hero p { color: var(--text-secondary); margin-top: 14px; font-size: 17px; position: relative; }

/* ---------------- 列表工具栏 ---------------- */
.news-section { padding: 50px 0 90px; }
.news-toolbar {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    margin-bottom: 32px;
}
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
    padding: 9px 18px; border-radius: 50px; font-size: 14px;
    color: var(--text-secondary); border: 1px solid var(--card-border);
    background: transparent; transition: .2s;
}
.chip:hover { color: var(--primary-gold); border-color: rgba(255, 215, 0, .4); }
.chip.active { background: var(--gradient-gold); color: #111; border-color: transparent; font-weight: 600; }

.news-search { margin-left: auto; position: relative; display: flex; align-items: center; }
.news-search svg { position: absolute; left: 13px; width: 16px; height: 16px; color: var(--text-muted); }
.news-search input {
    height: 42px; width: 250px; padding: 0 14px 0 38px;
    background: #111; border: 1px solid var(--card-border); border-radius: 50px;
    color: #fff; font-size: 14px; outline: none; transition: .2s;
}
.news-search input::placeholder { color: #5a5a5a; }
.news-search input:focus { border-color: rgba(255, 215, 0, .5); box-shadow: 0 0 0 3px rgba(255, 215, 0, .08); }

/* ---------------- 文章卡片 ---------------- */
.news-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.news-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
    transition: transform .28s, border-color .28s, box-shadow .28s;
}
.news-card:hover {
    transform: translateY(-5px); border-color: rgba(255, 215, 0, .45);
    box-shadow: 0 18px 44px -22px rgba(255, 215, 0, .3);
}
.news-cover {
    aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: #171717;
}
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-cover img { transform: scale(1.04); }
.news-cover .cover-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 215, 0, .18), transparent 55%),
        linear-gradient(135deg, #1b1b1b 0%, #0f0f0f 100%);
    color: rgba(255, 215, 0, .55); font-weight: 800; letter-spacing: 2px; font-size: 22px;
}
.news-cat {
    position: absolute; top: 14px; left: 14px;
    background: rgba(0, 0, 0, .68); border: 1px solid rgba(255, 215, 0, .3);
    color: var(--primary-gold); font-size: 12px; font-weight: 600;
    padding: 4px 11px; border-radius: 50px; backdrop-filter: blur(6px);
}
.news-top-flag {
    position: absolute; top: 14px; right: 14px;
    background: var(--gradient-gold); color: #111;
    font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
}
.news-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.news-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #3a3a3a; }
.news-title { font-size: 19px; font-weight: 600; line-height: 1.45; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card:hover .news-title { color: var(--primary-gold); }
.news-summary {
    color: var(--text-secondary); font-size: 14px; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 18px;
}
.news-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.news-more { color: var(--primary-gold); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.news-more svg { width: 15px; height: 15px; transition: transform .25s; }
.news-card:hover .news-more svg { transform: translateX(4px); }
.news-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.news-tags span { font-size: 11.5px; color: #8a8a8a; background: rgba(255, 255, 255, .05); padding: 2px 8px; border-radius: 5px; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 46px; }
.pager-item {
    min-width: 40px; height: 40px; padding: 0 14px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--text-secondary);
    border: 1px solid var(--card-border); background: #111; transition: .2s;
}
.pager-item:hover { color: var(--primary-gold); border-color: rgba(255, 215, 0, .45); }
.pager-item.active { background: var(--gradient-gold); color: #111; font-weight: 700; border-color: transparent; }
.pager-item.disabled { opacity: .3; pointer-events: none; }
.pager-dots { color: var(--text-muted); }

/* ---------------- 空状态 ---------------- */
.news-empty { text-align: center; padding: 90px 20px; color: var(--text-secondary); }
.news-empty .icon { font-size: 40px; margin-bottom: 14px; opacity: .5; }
.news-empty h3 { font-size: 20px; color: #fff; margin-bottom: 8px; }
.news-empty p { font-size: 14px; margin-bottom: 22px; }

/* ---------------- 文章详情 ---------------- */
.article-wrap { padding: 130px 0 80px; }
.article-head { margin-bottom: 30px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary-gold); }
.breadcrumb .sep { opacity: .5; }

.article-cat {
    display: inline-block; background: rgba(255, 215, 0, .1); border: 1px solid rgba(255, 215, 0, .28);
    color: var(--primary-gold); font-size: 12.5px; font-weight: 600;
    padding: 5px 14px; border-radius: 50px; margin-bottom: 18px;
}
.article-title { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; line-height: 1.28; letter-spacing: -.8px; margin-bottom: 22px; }
.article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--text-muted); font-size: 13.5px; }
.article-meta .author { display: flex; align-items: center; gap: 9px; color: #d5d5d5; }
.article-meta .avatar {
    width: 30px; height: 30px; border-radius: 50%; background: var(--gradient-gold);
    color: #111; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #3a3a3a; }

.article-cover {
    margin: 30px 0 40px; border-radius: 18px; overflow: hidden;
    border: 1px solid var(--card-border); background: #121212;
}
.article-cover img { width: 100%; max-height: 480px; object-fit: cover; }

.prose { font-size: 16.5px; line-height: 1.95; color: #d9d9de; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 26px; font-weight: 700; color: #fff; margin: 42px 0 16px; line-height: 1.4; letter-spacing: -.3px; }
.prose h3 { font-size: 20px; font-weight: 600; color: #fff; margin: 32px 0 12px; }
.prose p { margin: 0 0 20px; }
.prose a { color: var(--primary-gold); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 26px; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--primary-gold); }
.prose blockquote {
    margin: 28px 0; padding: 18px 24px; border-left: 3px solid var(--primary-gold);
    background: rgba(255, 215, 0, .05); border-radius: 0 10px 10px 0; color: #e2e2e6;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: 12px; margin: 26px 0; }
.prose pre {
    background: #0d0d0d; border: 1px solid var(--card-border); border-radius: 12px;
    padding: 18px 20px; overflow-x: auto; margin: 24px 0;
    font-family: Consolas, Monaco, monospace; font-size: 13.5px; line-height: 1.7; color: #9ad0ff;
}
.prose code {
    background: rgba(255, 255, 255, .07); padding: 2px 6px; border-radius: 5px;
    font-family: Consolas, Monaco, monospace; font-size: .9em; color: #ffd76e;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: none; border-top: 1px solid var(--card-border); margin: 36px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--card-border); padding: 11px 14px; text-align: left; }
.prose th { background: rgba(255, 215, 0, .05); color: #fff; }

.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 36px 0 0; }
.article-tags a {
    font-size: 13px; color: var(--text-secondary); background: rgba(255, 255, 255, .05);
    border: 1px solid var(--card-border); padding: 6px 13px; border-radius: 50px; transition: .2s;
}
.article-tags a:hover { color: var(--primary-gold); border-color: rgba(255, 215, 0, .4); }

.article-end {
    margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--card-border);
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.share-label { font-size: 13px; color: var(--text-muted); }
.share-btns { display: flex; gap: 8px; align-items: center; }
.share-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 15px; border-radius: 8px; font-size: 13px;
    background: #151515; border: 1px solid var(--card-border); color: #cfcfcf; transition: .2s;
}
.share-btn:hover { color: var(--primary-gold); border-color: rgba(255, 215, 0, .45); }
.share-btn svg { width: 15px; height: 15px; }

/* 上下篇 */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 50px; }
.post-nav a {
    background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px;
    padding: 20px 22px; transition: .22s; display: block;
}
.post-nav a:hover { border-color: rgba(255, 215, 0, .45); transform: translateY(-2px); }
.post-nav .pn-label { font-size: 12px; color: var(--text-muted); margin-bottom: 7px; letter-spacing: .5px; }
.post-nav .pn-title { font-size: 15px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav a:hover .pn-title { color: var(--primary-gold); }
.post-nav .next { text-align: right; }

/* 相关阅读 */
.related { margin-top: 60px; }
.related h2 { font-size: 22px; font-weight: 700; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.related h2::before { content: ''; width: 3px; height: 18px; background: var(--gradient-gold); border-radius: 2px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card {
    background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 13px;
    padding: 20px; transition: .22s;
}
.related-card:hover { border-color: rgba(255, 215, 0, .45); transform: translateY(-3px); }
.related-card .rc-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.related-card h3 { font-size: 15px; font-weight: 600; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card:hover h3 { color: var(--primary-gold); }

/* CTA */
.article-cta {
    margin-top: 60px; padding: 38px; border-radius: 20px; text-align: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, .1), rgba(255, 165, 0, .06));
    border: 1px solid rgba(255, 215, 0, .25);
}
.article-cta h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.article-cta p { color: var(--text-secondary); font-size: 15px; margin-bottom: 22px; }
.article-cta .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-gold {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gradient-gold); color: #111; font-weight: 700; font-size: 15px;
    padding: 13px 30px; border-radius: 10px; transition: .22s;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(255, 215, 0, .5); }
.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--card-border); color: #fff; font-weight: 600; font-size: 15px;
    padding: 13px 30px; border-radius: 10px; transition: .22s;
}
.btn-outline:hover { border-color: var(--primary-gold); color: var(--primary-gold); }

/* ---------------- 页脚 ---------------- */
.site-footer { padding: 60px 0 36px; border-top: 1px solid var(--card-border); margin-top: 20px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid var(--card-border); }
.footer-brand { max-width: 340px; }
.footer-brand img { width: 10.375rem; margin-bottom: 16px; }
.footer-brand p { color: var(--text-secondary); font-size: 14px; line-height: 1.8; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text-secondary); font-size: 13.5px; transition: color .2s; }
.footer-col a:hover { color: var(--primary-gold); }
.footer-bottom { padding-top: 26px; color: var(--text-muted); font-size: 12.5px; line-height: 1.9; }
.footer-bottom p + p { margin-top: 8px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .related-grid { grid-template-columns: 1fr; }
    .news-search { margin-left: 0; width: 100%; }
    .news-search input { width: 100%; }
}
@media (max-width: 640px) {
    .page-hero { padding: 128px 0 40px; }
    .news-grid { grid-template-columns: 1fr; }
    .article-wrap { padding: 110px 0 60px; }
    .post-nav { grid-template-columns: 1fr; }
    .prose { font-size: 16px; }
    .article-cta { padding: 28px 20px; }
    .footer-links { gap: 36px; }
}

.prose .source-note {
    margin-top: 34px; padding: 14px 18px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-left: 3px solid var(--primary-gold);
    border-radius: 10px; font-size: 13.5px; color: #9a9aa3;
}
.prose .source-note a { color: var(--primary-gold); text-decoration: none; }
.prose .source-note a:hover { text-decoration: underline; }

/* ---------------- 语言切换 ---------------- */
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { position: relative; }
.lang-toggle {
    display: inline-flex; align-items: center; gap: 7px;
    height: 38px; padding: 0 12px;
    background: transparent; border: 1px solid var(--card-border); border-radius: 8px;
    color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: color .2s, border-color .2s;
}
.lang-toggle:hover { color: var(--primary-gold); border-color: rgba(255, 215, 0, .45); }
.lang-icon { width: 16px; height: 16px; }
.lang-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 10px);
    min-width: 156px; list-style: none; padding: 6px; margin: 0;
    background: #151515; border: 1px solid var(--card-border); border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55); z-index: 1100;
    display: none;
}
.lang-switch.open .lang-menu,
.lang-switch:hover .lang-menu { display: block; }
.lang-menu a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 12px; border-radius: 7px;
    color: var(--text-secondary); font-size: 13.5px; font-weight: 500;
}
.lang-menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.lang-menu a.active { color: var(--primary-gold); background: rgba(255, 215, 0, .08); }
.lang-check { font-size: 11px; }

.footer-legal-note { opacity: .82; }

@media (max-width: 640px) {
    .nav-right { gap: 8px; }
    .lang-toggle { height: 34px; padding: 0 9px; }
    .lang-current { display: none; }
    .lang-menu { right: -4px; }
}

/* 未翻译内容提示 */
.lang-fallback-note {
    margin: 22px 0 0; padding: 12px 16px;
    background: rgba(255, 215, 0, .06);
    border: 1px solid rgba(255, 215, 0, .22);
    border-radius: 9px;
    font-size: 13px; color: #d9c98a;
}
.lang-fallback-note::before { content: '🌐 '; }
