:root {
  --blue: #1966ff;
  --blue-hover: #0f56dc;
  --blue-soft: #eef5ff;
  --ink: #202939;
  --muted: #727d8f;
  --light-muted: #98a2b1;
  --line: #e8ebf0;
  --surface: #fff;
  --page: #f6f7f9;
  --footer: #151d2a;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--page); }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
button, input { color: inherit; font: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.site-shell { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 9px 14px; color: #fff; border-radius: 5px; background: var(--blue); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* 与官网首页一致的白色顶栏 */
.site-header { position: relative; z-index: 20; flex: 0 0 auto; height: 76px; border-bottom: 1px solid #edf0f4; background: rgba(255,255,255,.98); }
.site-header-inner { height: 76px; display: flex; align-items: center; gap: 20px; }
.site-brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; color: #222b3a; font-size: 17px; font-weight: 700; white-space: nowrap; }
.site-brand img { width: 42px; height: 42px; object-fit: contain; }
.site-nav { min-width: 0; margin-left: auto; display: flex; align-items: stretch; align-self: stretch; }
.site-nav a { position: relative; padding: 0 12px; display: grid; place-items: center; color: #5d6675; font-size: 13px; white-space: nowrap; transition: color .2s; }
.site-nav a::after { position: absolute; right: 12px; bottom: 0; left: 12px; height: 2px; background: var(--blue); content: ""; opacity: 0; transform: scaleX(.4); transition: opacity .2s, transform .2s; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active { color: var(--blue); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a.is-active::after { opacity: 1; transform: scaleX(1); }
.merchant-entry { flex: 0 0 auto; min-width: 88px; height: 36px; padding: 0 15px; display: grid; place-items: center; border-radius: 4px; color: #fff; background: var(--blue); font-size: 13px; }
.merchant-entry:hover { background: var(--blue-hover); }

.inner-main { background: var(--page); }
.page-heading { min-height: 184px; display: flex; align-items: center; border-bottom: 1px solid #eceef2; background: #fff; }
.page-heading .site-shell { padding: 30px 0; }
.heading-breadcrumb, .article-breadcrumb { display: flex; align-items: center; gap: 8px; color: #9aa3b1; font-size: 12px; }
.heading-breadcrumb a:hover, .article-breadcrumb a:hover { color: var(--blue); }
.heading-breadcrumb span, .article-breadcrumb span { color: #c8cdd4; }
.heading-breadcrumb em, .article-breadcrumb em { overflow: hidden; color: #828c9c; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.page-heading h1 { margin: 21px 0 0; color: #202a3a; font-size: 33px; font-weight: 650; line-height: 1.3; }
.page-heading h1 + p { max-width: 720px; margin: 12px 0 0; color: #858e9c; font-size: 14px; line-height: 1.8; }

.content-layout { padding: 34px 0 72px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 24px; }
.content-main { min-width: 0; }
.white-card { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: 0 7px 24px rgba(24, 39, 62, .035); }
.category-tabs { margin-bottom: 16px; padding: 5px; display: flex; align-items: center; gap: 3px; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; background: #fff; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs button { min-width: 94px; height: 38px; padding: 0 17px; border: 0; border-radius: 5px; color: #646e7d; background: transparent; font-size: 13px; white-space: nowrap; cursor: pointer; }
.category-tabs button:hover, .category-tabs button:focus-visible { color: var(--blue); background: #f4f8ff; }
.category-tabs button.is-current { color: #fff; background: var(--blue); }

.list-card { padding: 0 28px 26px; }
.card-heading { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.card-heading h2 { margin: 0; color: #273143; font-size: 20px; font-weight: 650; }
.card-heading p { margin: 7px 0 0; color: #a0a8b4; font-size: 12px; }
.card-heading > span { color: #9ba4b0; font-size: 12px; }
.article-list-item { min-height: 124px; padding: 23px 4px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 22px; border-bottom: 1px solid #edf0f3; transition: background .2s; }
.article-list-item:last-child { border-bottom: 0; }
.article-list-item:hover { background: #fbfcfe; }
.list-date { width: 64px; text-align: center; color: #a2aab6; }
.list-date b { display: block; color: #313b4c; font-size: 21px; font-weight: 580; line-height: 1.1; }
.list-date span { margin-top: 6px; display: block; font-size: 11px; }
.list-copy { min-width: 0; }
.list-copy h3 { margin: 0; overflow: hidden; color: #293447; font-size: 17px; font-weight: 600; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.list-copy p { max-width: 700px; margin: 8px 0 0; overflow: hidden; color: #858f9f; font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.list-meta { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.list-category { padding: 3px 8px; border-radius: 3px; color: #3675dc; background: var(--blue-soft); font-size: 11px; }
.list-side { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #e1e5ea; border-radius: 50%; color: #9ca5b2; font-size: 17px; font-weight: 400; transition: color .2s, border-color .2s, background .2s; }
.article-list-item:hover .list-copy h3 { color: var(--blue); }
.article-list-item:hover .list-side { color: #fff; border-color: var(--blue); background: var(--blue); }

.content-sidebar { display: grid; gap: 16px; }
.sidebar-card { overflow: hidden; }
.sidebar-card > header { height: 54px; padding: 0 20px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.sidebar-card > header h2 { position: relative; margin: 0; padding-left: 12px; color: #303a4b; font-size: 16px; font-weight: 620; }
.sidebar-card > header h2::before { position: absolute; top: 2px; bottom: 2px; left: 0; width: 3px; border-radius: 2px; background: var(--blue); content: ""; }
.sidebar-articles { padding: 3px 20px 8px; }
.sidebar-article { padding: 15px 0; display: block; border-bottom: 1px solid #eff1f4; }
.sidebar-article:last-child { border-bottom: 0; }
.sidebar-article h3 { margin: 0; overflow: hidden; color: #424c5c; font-size: 13px; font-weight: 560; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-article p { margin: 6px 0 0; overflow: hidden; color: #969eaa; font-size: 11px; line-height: 1.65; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.sidebar-article:hover h3 { color: var(--blue); }
.sidebar-loading { min-height: 90px; display: grid; place-items: center; color: #a0a8b4; font-size: 12px; }
.quick-card > a { min-height: 49px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #eff1f4; color: #657080; font-size: 13px; }
.quick-card > a:last-child { border-bottom: 0; }
.quick-card > a b { color: #b1b7c0; font-size: 18px; font-weight: 400; }
.quick-card > a:hover { color: var(--blue); background: #fbfcff; }

.content-loading { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 12px; color: #9aa3af; font-size: 12px; }
.content-loading span { width: 27px; height: 27px; display: block; border: 2px solid #e3e9f2; border-top-color: var(--blue); border-radius: 50%; animation: loading .8s linear infinite; }
.content-loading p { margin: 0; }
@keyframes loading { to { transform: rotate(360deg); } }
.content-state { min-height: 280px; padding: 48px 22px; place-items: center; align-content: center; text-align: center; }
.content-state:not([hidden]) { display: grid; }
.content-state h3, .content-state h1 { margin: 0; color: #303a4a; font-size: 19px; }
.content-state p { margin: 10px 0 0; color: #929aa7; font-size: 13px; line-height: 1.7; }
.content-state button, .content-state a { min-height: 38px; margin-top: 19px; padding: 0 17px; display: inline-grid; place-items: center; border: 1px solid var(--blue); border-radius: 4px; color: #fff; background: var(--blue); cursor: pointer; }
.pagination { padding-top: 24px; display: flex; align-items: center; justify-content: center; gap: 17px; border-top: 1px solid var(--line); }
.pagination button { min-width: 78px; height: 36px; border: 1px solid #dfe3e8; border-radius: 4px; color: #626d7c; background: #fff; cursor: pointer; }
.pagination button:disabled { color: #b5bbc4; background: #f7f8fa; cursor: not-allowed; }
.pagination span { color: #929aa6; font-size: 12px; }

/* 文章正文 */
.article-page-main { background: var(--page); }
.article-layout { padding-top: 24px; }
.article-breadcrumb { min-height: 38px; margin-bottom: 10px; }
.article-card { min-height: 560px; padding: 34px 42px 38px; }
.article-loading { min-height: 440px; }
.article-heading { padding: 4px 0 25px; border-bottom: 1px solid var(--line); }
.article-heading h1 { margin: 0; color: #222d3e; font-size: 28px; font-weight: 650; line-height: 1.45; }
.article-meta { margin-top: 15px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 17px; color: #9aa2ad; font-size: 12px; }
.article-category { padding: 3px 8px; border-radius: 3px; color: #3675dc; background: var(--blue-soft); }
.article-meta b { font-weight: 500; }
.article-cover { width: 100%; max-height: 480px; margin: 27px auto 0; display: block; border-radius: 7px; object-fit: cover; }
.article-body { min-height: 180px; margin: 30px 0 0; color: #465164; font-size: 15px; line-height: 2; overflow-wrap: anywhere; }
.article-body > :first-child { margin-top: 0 !important; }
.article-body > :last-child { margin-bottom: 0 !important; }
.article-body p { margin: 1.05em 0; }
.article-body h2, .article-body h3, .article-body h4 { margin: 1.8em 0 .7em; color: #283446; line-height: 1.5; }
.article-body h2 { padding-left: 11px; border-left: 3px solid var(--blue); font-size: 21px; }
.article-body h3 { font-size: 18px; }
.article-body h4 { font-size: 16px; }
.article-body ul, .article-body ol { padding-left: 1.7em; }
.article-body li { margin: .35em 0; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { margin: 1.35em 0; padding: 13px 17px; border-left: 3px solid #82adf7; color: #5d6b7e; background: #f5f8fd; }
.article-body img { height: auto; margin: 1.35em auto; display: block; border-radius: 6px; }
.article-body hr { height: 1px; margin: 2em 0; border: 0; background: var(--line); }
.article-body table { width: 100%; margin: 1.4em 0; border-collapse: collapse; font-size: 13px; }
.article-body th, .article-body td { padding: 9px 11px; border: 1px solid #e0e4e9; text-align: left; }
.article-body th { background: #f6f8fa; }
.article-body pre { overflow-x: auto; padding: 15px; border-radius: 5px; background: #f3f5f7; font: 13px/1.7 Consolas, monospace; }
.article-actions { margin-top: 42px; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.article-actions a { color: #798493; font-size: 13px; }
.article-actions a:first-child { color: var(--blue); }
.article-sidebar { padding-top: 48px; }
.detail-state { min-height: 440px; }
.detail-state > div { display: flex; align-items: center; gap: 10px; }
.detail-state > div a { color: var(--blue); background: #fff; }

/* 关于、优势、帮助 */
.info-page { padding: 38px 0 74px; }
.info-hero { overflow: hidden; padding: 48px 56px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: center; gap: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.info-kicker { margin: 0 0 10px; color: var(--blue); font-size: 13px; }
.info-hero h1 { margin: 0; color: #253044; font-size: 34px; font-weight: 650; }
.info-hero p { max-width: 680px; margin: 18px 0 0; color: #717c8d; font-size: 15px; line-height: 1.95; }
.info-visual { min-height: 210px; position: relative; display: grid; place-items: center; }
.info-visual::before, .info-visual::after { position: absolute; border-radius: 50%; content: ""; }
.info-visual::before { width: 200px; height: 200px; background: #edf4ff; }
.info-visual::after { width: 132px; height: 132px; border: 25px solid #d8e7ff; background: #fff; }
.info-visual-mark { position: relative; z-index: 1; width: 88px; height: 88px; padding: 12px; border-radius: 22px; background: #fff; box-shadow: 0 14px 35px rgba(25,102,255,.15); }
.info-section { margin-top: 24px; padding: 38px 42px; }
.section-title { margin-bottom: 25px; }
.section-title h2 { margin: 0; color: #2a3547; font-size: 23px; font-weight: 630; }
.section-title p { margin: 9px 0 0; color: #8d96a3; font-size: 13px; line-height: 1.7; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fact-card { min-height: 148px; padding: 23px; border: 1px solid #e9ecf1; border-radius: 7px; background: #fbfcfe; }
.fact-card strong { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: var(--blue-soft); font-size: 15px; }
.fact-card h3 { margin: 17px 0 0; color: #344054; font-size: 16px; font-weight: 610; }
.fact-card p { margin: 9px 0 0; color: #7f8998; font-size: 13px; line-height: 1.75; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.contact-card { min-height: 118px; padding: 22px; border: 1px solid #e9ecf1; border-radius: 7px; }
.contact-card span { color: #9aa2ae; font-size: 12px; }
.contact-card b, .contact-card a { margin-top: 12px; display: block; color: #3e495b; font-size: 15px; font-weight: 580; }
.contact-card a:hover { color: var(--blue); }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.help-card { min-height: 156px; padding: 26px; display: flex; align-items: flex-start; gap: 18px; border: 1px solid #e7ebf0; border-radius: 8px; background: #fff; transition: border-color .2s, transform .2s; }
.help-card:hover { border-color: #b9d2ff; transform: translateY(-2px); }
.help-icon { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 16px; font-weight: 650; }
.help-card h2 { margin: 0; color: #334054; font-size: 17px; font-weight: 610; }
.help-card p { margin: 9px 0 0; color: #828c9a; font-size: 13px; line-height: 1.75; }
.help-card b { margin-top: 13px; display: block; color: var(--blue); font-size: 12px; font-weight: 550; }

.site-footer { flex: 0 0 auto; padding-top: 45px; color: #8f9baa; background: var(--footer); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 50px; }
.footer-brand { color: #fff; }
.footer-brand img { padding: 3px; border-radius: 7px; background: #fff; }
.footer-brand-block p { margin: 12px 0 0; font-size: 12px; }
.footer-grid nav { display: grid; align-content: start; gap: 11px; }
.footer-grid nav h3 { margin: 0 0 7px; color: #e5e9ef; font-size: 14px; font-weight: 580; }
.footer-grid nav a { width: fit-content; font-size: 12px; }
.footer-grid nav a:hover { color: #fff; }
.footer-bottom { min-height: 64px; margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(255,255,255,.08); color: #6f7d8e; font-size: 11px; }
.footer-bottom b { font-weight: 500; }

:focus-visible { outline: 3px solid rgba(25,102,255,.22); outline-offset: 2px; }

@media (max-width: 1200px) {
  .site-shell { width: min(1120px, calc(100% - 38px)); }
  .site-brand span { display: none; }
  .site-nav a { padding: 0 9px; font-size: 12px; }
  .site-nav a::after { right: 9px; left: 9px; }
}

@media (max-width: 960px) {
  .site-header, .site-header-inner { height: 68px; }
  .site-brand span { display: inline; }
  .site-brand img { width: 38px; height: 38px; }
  .site-nav { display: none; }
  .merchant-entry { margin-left: auto; }
  .page-heading { min-height: 160px; }
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .article-sidebar { padding-top: 0; }
  .info-hero { grid-template-columns: 1fr 230px; padding: 42px; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; }
}

@media (max-width: 680px) {
  .site-shell { width: calc(100% - 28px); }
  .site-brand { font-size: 16px; }
  .merchant-entry { min-width: 76px; height: 34px; padding: 0 11px; }
  .page-heading { min-height: 148px; }
  .page-heading .site-shell { padding: 25px 0; }
  .page-heading h1 { margin-top: 17px; font-size: 27px; }
  .page-heading h1 + p { margin-top: 9px; font-size: 13px; }
  .content-layout { padding: 20px 0 48px; gap: 14px; }
  .category-tabs { margin-bottom: 12px; }
  .category-tabs button { min-width: 86px; height: 36px; padding: 0 13px; font-size: 12px; }
  .list-card { padding: 0 17px 20px; }
  .card-heading { min-height: 78px; }
  .card-heading h2 { font-size: 18px; }
  .card-heading p { display: none; }
  .article-list-item { min-height: 0; padding: 19px 0; grid-template-columns: 46px minmax(0,1fr) 25px; gap: 13px; }
  .list-date { width: 46px; }
  .list-date b { font-size: 17px; }
  .list-copy h3 { font-size: 15px; }
  .list-copy p { margin-top: 6px; font-size: 12px; -webkit-line-clamp: 2; }
  .list-meta { margin-top: 8px; }
  .list-side { width: 25px; height: 25px; font-size: 15px; }
  .content-sidebar { grid-template-columns: 1fr; }
  .article-layout { padding-top: 13px; }
  .article-breadcrumb { margin-bottom: 6px; }
  .article-card { min-height: 460px; padding: 27px 20px 28px; }
  .article-heading h1 { font-size: 23px; }
  .article-meta { gap: 8px 12px; }
  .article-body { margin-top: 25px; font-size: 14px; line-height: 1.95; }
  .article-body h2 { font-size: 19px; }
  .article-body table { display: block; overflow-x: auto; white-space: nowrap; }
  .info-page { padding: 20px 0 48px; }
  .info-hero { padding: 30px 23px; display: block; }
  .info-hero h1 { font-size: 28px; }
  .info-hero p { margin-top: 14px; font-size: 14px; }
  .info-visual { min-height: 180px; margin-top: 20px; }
  .info-section { margin-top: 14px; padding: 28px 20px; }
  .fact-grid, .contact-grid, .help-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 22px; }
  .footer-brand-block { grid-column: 1 / -1; }
  .footer-bottom { padding: 18px 0; display: block; line-height: 1.8; }
  .footer-bottom span { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
