:root {
    --ink: #22272b;
    --muted: #687077;
    --line: #d9dde0;
    --paper: #ffffff;
    --canvas: #eef0f2;
    --rail: #20262b;
    --rail-soft: #2d353b;
    --red: #c33b32;
    --teal: #177e72;
    --gold: #b88a39;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
p { margin: 0; }

.mobile-topbar { display: none; }
.site-rail {
    position: fixed; inset: 0 auto 0 0; z-index: 50; width: 220px; overflow-y: auto;
    color: #f5f6f7; background: var(--rail); border-right: 1px solid #15191c;
}
.site-brand { padding: 32px 24px 24px; border-bottom: 1px solid #394147; }
.site-brand-mark { display: block; width: 64px; aspect-ratio: 5 / 3; overflow: hidden; }
.site-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.site-brand-name { margin-top: 18px; font-size: 20px; font-weight: 700; line-height: 1.45; word-break: break-word; }
.site-brand-note { margin-top: 7px; color: #aeb6bc; font-size: 12px; line-height: 1.7; }
.rail-nav { padding: 18px 0; }
.rail-nav-item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 24px; border-left: 3px solid transparent; color: #e5e8ea; font-size: 14px; }
.rail-nav-item:hover { color: #fff; background: var(--rail-soft); border-left-color: var(--red); }
.rail-nav-icon { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; color: #d8b56a; border: 1px solid #566067; font-size: 11px; }
.rail-subnav { padding: 2px 0 8px 63px; }
.rail-subnav a { display: block; padding: 7px 12px 7px 0; color: #aeb6bc; font-size: 12px; line-height: 1.5; }
.rail-subnav a:hover { color: #fff; }
.rail-footer { padding: 20px 24px 28px; border-top: 1px solid #394147; color: #9da6ac; font-size: 12px; }
.rail-footer a, .rail-footer span { display: block; margin-top: 7px; }
.site-rail-overlay { display: none; }

.site-stage { min-height: 100vh; margin-left: 220px; padding: 30px; }
.site-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; width: 100%; max-width: 1420px; margin: 0 auto; align-items: start; }
.page-main { min-width: 0; background: var(--paper); border: 1px solid var(--line); }
.page-sidebar { position: sticky; top: 30px; display: grid; gap: 18px; }
.side-panel { background: var(--paper); border: 1px solid var(--line); }
.side-panel-title { padding: 15px 18px; border-bottom: 2px solid var(--ink); font-size: 15px; font-weight: 700; }
.side-search { display: flex; padding: 16px; }
.side-search-input { flex: 1 1 auto; min-width: 0; width: auto; height: 38px; padding: 0 10px; border: 1px solid var(--line); outline: none; }
.side-search-input:focus { border-color: var(--teal); }
.side-search-button { flex: 0 0 56px; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 38px; padding: 0; color: #fff; background: var(--teal); border: 0; white-space: nowrap; cursor: pointer; }
.side-category-list a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 17px; border-bottom: 1px solid #eceeef; font-size: 13px; }
.side-category-list a:last-child { border-bottom: 0; }
.side-category-list a:hover { color: var(--red); background: #f8f8f7; }
.side-category-list .side-category-sub { padding-left: 30px; color: var(--muted); }
.side-latest-item { display: flex; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #eceeef; }
.side-latest-item:last-child { border-bottom: 0; }
.side-latest-index { color: var(--red); font-size: 22px; line-height: 1; }
.side-latest-copy { min-width: 0; }
.side-latest-copy strong { display: -webkit-box; overflow: hidden; color: #34393d; font-size: 13px; font-weight: 500; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.side-latest-copy small { display: block; margin-top: 5px; color: #9aa0a5; font-size: 11px; }
.side-about-panel p { padding: 16px 17px 8px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.side-text-link { display: inline-block; margin: 4px 17px 18px; color: var(--teal); font-size: 13px; font-weight: 700; }

.home-hero, .page-banner { position: relative; overflow: hidden; background: #242a2f; }
.home-hero { min-height: 340px; }
.home-hero img { width: 100%; height: 340px; object-fit: cover; opacity: .48; }
.home-hero-copy { position: absolute; left: 0; bottom: 0; width: 72%; padding: 34px 38px; color: #fff; background: rgba(25, 30, 34, .88); }
.home-hero-copy span, .section-kicker { display: block; margin-bottom: 8px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; }
.home-hero-copy h1 { margin: 0; font-size: 32px; line-height: 1.35; }
.home-hero-copy p { margin-top: 9px; color: #d9dddf; font-size: 15px; line-height: 1.7; }
.home-section { padding: 32px 36px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; margin-bottom: 22px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.section-heading h1, .section-heading h2 { margin: 0; font-size: 25px; line-height: 1.35; }
.section-heading p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.compact-heading { margin: 0; padding: 25px 30px 18px; }
.home-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.home-news-card { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 15px; min-height: 132px; padding: 20px; background: #fff; }
.home-news-date { padding-right: 12px; border-right: 2px solid var(--red); text-align: center; }
.home-news-date strong { display: block; font-size: 30px; line-height: 1; }
.home-news-date span { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.home-news-card h3 { display: -webkit-box; margin: 0; overflow: hidden; font-size: 16px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.home-news-card h3:hover { color: var(--red); }
.home-news-card p { display: -webkit-box; margin-top: 8px; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.7; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.feature-strip { padding: 34px 36px; color: #fff; background: var(--rail); }
.light-heading { border-color: #4b545a; }
.light-heading p { color: #c4c9cc; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid article { padding: 18px; border-top: 3px solid var(--gold); background: #2d353b; }
.feature-grid img { width: 90px; height: 60px; object-fit: cover; }
.feature-grid h3 { margin: 15px 0 8px; font-size: 16px; }
.feature-grid p { color: #c4c9cc; font-size: 12px; line-height: 1.75; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic-grid article { border: 1px solid var(--line); }
.topic-grid img { width: 100%; aspect-ratio: 4 / 2.6; object-fit: cover; }
.topic-grid h3 { margin: 0; padding: 13px 14px; font-size: 14px; line-height: 1.5; }
.about-feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.about-feature-image img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.about-feature-copy { padding: 38px; }
.about-feature-copy h2 { margin: 0; font-size: 26px; }
.about-feature-copy h3 { margin: 8px 0 18px; color: var(--teal); font-size: 18px; }
.about-feature-text { max-height: 168px; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.9; }
.read-more { display: inline-flex; gap: 10px; align-items: center; margin-top: 18px; color: var(--red); font-size: 13px; font-weight: 700; }
.simple-news-list { border-top: 2px solid var(--ink); }
.simple-news-list a { display: grid; grid-template-columns: 86px minmax(0, 1fr) 20px; gap: 12px; align-items: center; min-height: 52px; padding: 10px 5px; border-bottom: 1px solid var(--line); font-size: 14px; }
.simple-news-list time { color: var(--muted); font-size: 12px; }
.simple-news-list a:hover span { color: var(--red); }
.alternate-section { background: #f7f8f8; }

.page-banner img { width: 100%; height: 235px; object-fit: cover; opacity: .56; }
.page-banner-small img { height: 210px; }
.page-banner-copy { position: absolute; left: 28px; bottom: 24px; color: #fff; }
.page-banner-copy span { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; }
.page-banner-copy strong { display: block; margin-top: 6px; font-size: 27px; }
.article-list { padding: 0 30px 20px; }
.article-list-item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.article-thumb img { width: 180px; height: 120px; object-fit: cover; }
.article-list-copy h2 { margin: 0; font-size: 19px; line-height: 1.5; }
.article-list-copy h2:hover { color: var(--red); }
.article-meta { margin-top: 6px; color: #92999e; font-size: 11px; }
.article-list-copy p { display: -webkit-box; margin-top: 10px; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.75; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-list-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 12px 30px 30px; }
.pagination-box { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; color: var(--muted); background: #f4f5f5; border: 1px solid var(--line); font-size: 12px; }
.pagination-box:hover, .news-list-pagination .active { color: #fff; background: var(--red); border-color: var(--red); }

.category-tabs { display: flex; flex-wrap: wrap; gap: 7px; padding: 20px 28px; border-bottom: 1px solid var(--line); }
.category-tabs a { padding: 8px 13px; color: var(--muted); background: #f3f4f4; border: 1px solid var(--line); font-size: 12px; }
.category-tabs a:hover, .category-tabs .active { color: #fff; background: var(--teal); border-color: var(--teal); }
.article-header { padding: 31px 38px 23px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 0; font-size: 30px; line-height: 1.45; }
.article-header .article-meta { display: flex; gap: 18px; margin-top: 12px; }
.article-media { padding: 0 38px; }
.article-media audio, .article-media video { display: block; max-width: 100%; margin: 12px 0; }
.article-content { padding: 28px 38px; color: #3f4549; font-size: 15px; line-height: 2; overflow-wrap: anywhere; }
.article-content p { margin: .7em 0; text-indent: 2em; }
.article-content img { width: auto; max-width: 100%; height: auto; margin: 22px auto; }
.article-content h2, .article-content h3 { margin: 1.2em 0 .5em; color: var(--ink); line-height: 1.5; }
.article-author { display: flex; justify-content: space-between; gap: 15px; margin: 0 38px; padding: 16px 0; color: var(--muted); border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); font-size: 12px; }
.article-prev-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 22px 38px; }
.article-prev-next a { min-width: 0; padding: 13px 15px; background: #f4f5f5; border-left: 3px solid var(--gold); }
.article-prev-next small, .article-prev-next span { display: block; }
.article-prev-next small { color: var(--muted); font-size: 11px; }
.article-prev-next span { margin-top: 4px; overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.comments { margin: 0 38px 22px; padding: 22px; background: #f7f8f8; border: 1px solid var(--line); }
.comments h2 { margin: 0 0 15px; font-size: 18px; }
.comment-item { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.comment-item p { margin-top: 6px; color: var(--muted); }
.comment-form textarea { width: 100%; margin-top: 16px; padding: 10px; resize: vertical; border: 1px solid var(--line); }
.comment-click { margin-top: 8px; padding: 8px 18px; color: #fff; background: var(--teal); border: 0; cursor: pointer; }
.related-section { padding: 0 8px 24px; }
.related-list { margin: 0 30px; border-top: 2px solid var(--ink); }
.related-list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 4px; border-bottom: 1px dotted var(--line); font-size: 13px; }
.related-list a:hover span { color: var(--red); }
.related-list small { flex: 0 0 auto; color: var(--muted); }
.single-header { padding: 30px 38px 0; }
.single-header h4 { margin: 0; font-size: 28px; line-height: 1.45; }

.site-footer { margin-left: 220px; color: #d5dadd; background: var(--rail); }
.site-footer-inner { display: flex; justify-content: space-between; gap: 30px; width: min(100% - 60px, 1420px); margin: 0 auto; padding: 32px 0; }
.site-footer-brand strong { display: block; color: #fff; font-size: 18px; }
.site-footer-brand span { display: block; margin-top: 8px; color: #9da6ac; font-size: 12px; }
.site-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; align-items: center; font-size: 12px; }
.site-footer-links a:hover { color: #fff; }
.ba-logo { width: 16px; height: 16px; background: url("/static/pic/ba-logo.png") center / contain no-repeat; }

[id^="tradingview_"] { width: 100% !important; height: 500px; box-sizing: border-box; }
.loader { width: 80px; height: 80px; border: 10px solid #eee; border-top-color: var(--teal); border-radius: 50%; animation: spin 1.3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ads-click-img { cursor: pointer; }

@media (max-width: 1180px) {
    .site-grid { grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; }
    .site-stage { padding: 20px; }
    .feature-grid, .topic-grid { grid-template-columns: 1fr; }
    .topic-grid article { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; }
}

@media (max-width: 960px) {
    body { padding-top: 58px; }
    .mobile-topbar { position: fixed; inset: 0 0 auto 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 8px 14px; background: #fff; border-bottom: 1px solid var(--line); }
    .mobile-brand { display: flex; min-width: 0; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
    .mobile-brand img { width: 40px; height: auto; aspect-ratio: 5 / 3; object-fit: contain; }
    .mobile-brand span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .mobile-menu-button { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink); background: #fff; border: 1px solid var(--line); cursor: pointer; }
    .gg-menu, .gg-menu::after, .gg-menu::before { position: relative; display: block; width: 20px; height: 2px; background: currentColor; }
    .gg-menu::before, .gg-menu::after { position: absolute; left: 0; content: ""; }
    .gg-menu::before { top: -6px; }
    .gg-menu::after { top: 6px; }
    .site-rail {
        top: 58px;
        bottom: 0;
        width: min(82vw, 300px);
        height: calc(100vh - 58px);
        height: calc(100dvh - 58px);
        transform: translateX(-102%);
        transition: transform .24s ease;
    }
    .site-rail.is-open { transform: translateX(0); }
    .site-rail-overlay { position: fixed; inset: 58px 0 0; z-index: 45; display: block; visibility: hidden; background: rgba(0, 0, 0, .46); border: 0; opacity: 0; transition: opacity .2s ease, visibility .2s ease; }
    .site-rail-overlay.is-open { visibility: visible; opacity: 1; }
    body.nav-open { overflow: hidden; }
    .site-stage { margin-left: 0; padding: 14px; }
    .site-grid { grid-template-columns: 1fr; }
    .page-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer { margin-left: 0; }
}

@media (max-width: 640px) {
    .site-stage { padding: 0; }
    .site-grid { gap: 12px; }
    .page-main { border-right: 0; border-left: 0; }
    .home-hero, .home-hero img { min-height: 260px; height: 260px; }
    .home-hero-copy { width: 92%; padding: 22px; }
    .home-hero-copy h1 { font-size: 23px; }
    .home-section, .feature-strip { padding: 24px 18px; }
    .home-news-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .topic-grid article { grid-template-columns: 115px minmax(0, 1fr); }
    .about-feature { grid-template-columns: 1fr; }
    .about-feature-image img { min-height: 210px; height: 210px; }
    .about-feature-copy { padding: 25px 20px; }
    .page-sidebar { grid-template-columns: 1fr; padding: 0 12px 12px; }
    .page-banner img { height: 175px; }
    .page-banner-copy { left: 18px; bottom: 17px; }
    .page-banner-copy strong { font-size: 21px; }
    .compact-heading { padding: 22px 18px 15px; }
    .article-list { padding: 0 18px 18px; }
    .article-list-item { grid-template-columns: 105px minmax(0, 1fr); gap: 13px; padding: 18px 0; }
    .article-thumb img { width: 105px; height: 82px; }
    .article-list-copy h2 { font-size: 15px; }
    .article-list-copy p { -webkit-line-clamp: 1; }
    .article-list-copy .read-more { display: none; }
    .category-tabs { padding: 14px; }
    .article-header { padding: 24px 18px 18px; }
    .article-header h1 { font-size: 23px; }
    .article-header .article-meta { flex-direction: column; gap: 3px; }
    .article-media, .article-content { padding-right: 18px; padding-left: 18px; }
    .article-content { font-size: 14px; line-height: 1.9; }
    .article-author { margin-right: 18px; margin-left: 18px; }
    .article-prev-next { grid-template-columns: 1fr; padding: 20px 18px; }
    .comments { margin-right: 18px; margin-left: 18px; padding: 16px; }
    .related-list { margin: 0 10px; }
    .single-header { padding: 24px 18px 0; }
    .single-header h4 { font-size: 23px; }
    .site-footer-inner { width: auto; padding: 26px 18px; flex-direction: column; }
    .site-footer-links { justify-content: flex-start; }
}
