@charset "UTF-8";

/* ==================== 作用域重置（仅限导航栏内部，不影响主题） ==================== */
.header, .footer, .header-spacer {
  /* CSS 变量集中声明，避免污染全局 :root。
     .header-spacer 需要在此声明以获取 --header-height-* 变量：
     它是 .header 的兄弟节点而非后代，不会继承 .header 上的变量，
     否则占位高度会因变量未定义而塌成 0，导致固定头部遮住下方内容。 */
  --color-primary: #0052d9;
  --color-text: #1f2329;
  --color-text-secondary: #8f959e;
  --color-border: #eaedf1;
  --color-bg: #ffffff;
  --color-tag: #f80;
  --header-height-pc: 56px;
  --header-height-mobile: 60px;
  --max-width: 1320px;
  --footer-bg: #1f2329;
  --footer-legal-bg: #282c31;
  --footer-text-muted: #c4c8cd;
  --footer-divider: rgba(255, 255, 255, 0.1);

  color: #1f2329;
}

.header *, .footer * { margin: 0; padding: 0; box-sizing: border-box; }

.header a, .footer a { text-decoration: none; color: inherit; }
.header a:focus, .footer a:focus { text-decoration: none; outline: none; }
.header a:hover, .footer a:hover { text-decoration: none; }
.header img, .footer img { display: block; max-width: 100%; height: auto; vertical-align: top; }

/* 重置 blogsy 主题对 details/summary 的全局样式渗透 */
.header details, .footer details {
  display: block; align-items: unset; flex-wrap: unset;
  column-gap: unset; row-gap: unset; font-size: unset;
  font-weight: unset; line-height: unset; text-transform: none;
}
.header summary, .footer summary { display: list-item; list-style: none; }

/* 重置 blogsy 主题对 h1/h2/p 的全局样式渗透 */
.header h1, .header h2, .footer h1, .footer h2 {
  font-weight: inherit; line-height: inherit;
  margin: 0; color: inherit;
}
.header p, .footer p { margin: 0; }

/* 重置 blogsy 主题对 ul/li 的全局样式渗透 */
.header ul, .footer ul { list-style: none; padding: 0; margin: 0; }
.header li, .footer li { display: block; }

/* 重置 blogsy 主题对 button/input 的全局样式渗透 */
.header button, .footer button {
  font-family: inherit; font-size: inherit; font-weight: inherit;
  line-height: inherit; color: inherit; background: none;
  border: 0; padding: 0; border-radius: 0; display: inline;
  -webkit-appearance: none; letter-spacing: normal; white-space: normal;
}
.header input, .footer input {
  font-family: inherit; font-size: inherit; line-height: inherit;
  max-width: none; background-image: none;
}

/* ==================== 头部导航 ==================== */
/* 用 #site-header.header 提升特异性（1,1,0），压过 Blogsy 主题 style.css 里
   #site-header{position:relative;z-index:999}（1,0,0），使头部固定置顶。 */
#site-header.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: #fff;
  box-shadow: 0 16px 32px -2px rgba(31, 35, 41, 0.04);
}
.header-spacer { height: var(--header-height-pc); flex-shrink: 0; }

/* Blogsy 主题在 #site-header 上加了 ::before 透明绝对定位层（assets/css/style.css），
   会盖住未被 position:relative 祖先包裹的链接（logo、推广返利、右侧按钮等），
   导致点击不到。该伪元素在 fanproxy header 里无视觉作用，禁用其指针事件。 */
#site-header.header::before { pointer-events: none; }

.pc-nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height-pc); padding-left: 24px;
}
.nav-left { display: flex; align-items: center; flex: auto; }
.logo { flex-shrink: 0; }
.logo img { height: 40px; width: auto; object-fit: contain; }
.menu { display: flex; align-items: center; padding-left: 24px; flex: auto; }
.nav-item { position: relative; }

.nav-link {
  display: flex; align-items: center; height: var(--header-height-pc);
  padding: 0 12px; font-size: 15px; font-weight: 500;
  color: var(--color-text); cursor: pointer; transition: color 0.2s ease;
}
.nav-link:hover, .nav-item:hover .nav-link { color: var(--color-primary); }

.arrow-icon {
  display: inline-block; margin-left: 5px;
  transition: transform 0.3s ease; flex-shrink: 0;
}
.nav-item:hover .arrow-icon { transform: rotate(180deg); }

.dropdown-panel {
  display: none; position: fixed; top: var(--header-height-pc);
  left: 0; right: 0; background: #fff; padding: 32px 16px 40px;
  z-index: 9998; box-shadow: 0 16px 32px -2px rgba(31, 35, 41, 0.08);
}
.nav-item:hover .dropdown-panel { display: block; }
.dropdown-content { max-width: var(--max-width); margin: 0 auto; }

.category-row { display: flex; gap: 40px; justify-content: space-between; }
.category-col { flex: 1; min-width: 0; }

.category-title {
  padding-bottom: 12px; margin-bottom: 24px;
  font-size: 14px; font-weight: 500; line-height: 22px;
  color: var(--color-text-secondary); border-bottom: 1px solid var(--color-border);
}
.category-title-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 24px; border-bottom: 1px solid var(--color-border);
}
.category-title-row span { font-size: 14px; font-weight: 500; line-height: 22px; color: var(--color-text-secondary); }
.category-title-row a { font-size: 12px; color: var(--color-primary); }

.category-list { display: flex; flex-direction: column; gap: 24px; }
.category-item { cursor: pointer; }
.category-item-name {
  display: flex; align-items: center; gap: 4px; margin-bottom: 8px;
  font-weight: 500; line-height: 22px; color: var(--color-text);
}
.category-item-name a { color: var(--color-text); }
.category-item:hover .category-item-name a { text-decoration: underline; text-decoration-color: var(--color-text); }

.tag-hot {
  display: inline-block; height: 20px; padding: 0 4px;
  font-size: 12px; line-height: 20px; color: #fff;
  background: var(--color-tag); border-radius: 2px; white-space: nowrap;
}
.category-item-desc { margin-bottom: 12px; font-size: 12px; line-height: 20px; color: var(--color-text-secondary); }
.category-item-links { display: flex; gap: 20px; }
.category-item-links a {
  font-size: 12px; line-height: 16px; color: var(--color-primary);
  display: inline-flex; align-items: center; gap: 2px;
}
.category-item-links a::after { content: ">"; font-size: 12px; transition: transform 0.2s ease; }
.category-item-links a:hover::after { transform: translateX(3px); }

.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 12px; }
.region-grid a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text); }
.region-grid a:hover { text-decoration: underline; }
.region-flag { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.header .more-btn {
  display: block; width: 100%; margin-top: 16px; padding: 8px 0;
  text-align: center; font-size: 13px; color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: 4px;
  background: #fafbfc; cursor: pointer; transition: all 0.2s ease;
}
.header .more-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }

.scenarios-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 82px;
  padding-bottom: 24px; border-bottom: 1px solid var(--color-border);
}
.scenario-item { display: block; max-height: 72px; cursor: pointer; }
.scenario-name { margin-bottom: 4px; font-size: 14px; font-weight: 500; line-height: 22px; color: var(--color-text); }
.scenario-item:hover .scenario-name { color: var(--color-primary); }
.scenario-desc {
  font-size: 12px; line-height: 18px; color: var(--color-text-secondary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.scenarios-footer { margin-top: 24px; }
.scenarios-footer a { font-size: 14px; color: var(--color-text); display: inline-flex; align-items: center; gap: 4px; }
.scenarios-footer a:hover { color: var(--color-primary); }
.scenarios-footer a::after { content: ">"; transition: transform 0.2s ease; }
.scenarios-footer a:hover::after { transform: translateX(3px); }

.help-item { cursor: pointer; }
.help-item a { display: block; font-size: 13px; line-height: 22px; color: var(--color-text); }
.help-item:hover a { text-decoration: underline; }
.help-item-desc { font-size: 12px; line-height: 20px; color: var(--color-text-secondary); }

.nav-right { display: flex; align-items: center; justify-content: flex-end; font-size: 15px; }
.header .btn-text { padding: 0 24px; font-size: 15px; font-weight: 500; color: var(--color-text); transition: color 0.2s ease; }
.header .btn-text:hover { color: var(--color-primary); }
.header .btn-register {
  display: flex; align-items: center; justify-content: center;
  height: var(--header-height-pc); padding: 0 32px;
  background: var(--color-primary); color: #fff;
  font-size: 15px; font-weight: 500; transition: opacity 0.2s ease;
}
.header .btn-register:hover { opacity: 0.9; color: #fff; }

/* ==================== 移动端导航 ==================== */
.header .menu-toggle { display: none; }
.mobile-bar { display: none; align-items: center; justify-content: space-between; height: var(--header-height-mobile); padding: 0 16px; }
.hamburger-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; cursor: pointer; z-index: 10001; }
.hamburger-btn span { display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 1px; transition: all 0.3s ease; transform-origin: center; }
.mobile-menu { display: none; position: fixed; top: var(--header-height-mobile); left: 0; right: 0; bottom: 0; background: #fff; z-index: 9998; overflow-y: auto; flex-direction: column; }

.menu-toggle:checked ~ .mobile-bar .hamburger-btn span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle:checked ~ .mobile-bar .hamburger-btn span:nth-child(2) { opacity: 0; }
.menu-toggle:checked ~ .mobile-bar .hamburger-btn span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
.menu-toggle:checked ~ .mobile-menu { display: flex; }

.m-accordion { border-bottom: 1px solid var(--color-border); }
.m-accordion > summary { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 16px; font-size: 15px; font-weight: 500; color: var(--color-text); cursor: pointer; list-style: none; user-select: none; }
.m-accordion > summary::-webkit-details-marker { display: none; }
.m-accordion > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--color-text); border-bottom: 2px solid var(--color-text); transform: rotate(45deg); transition: transform 0.3s ease; flex-shrink: 0; }
.m-accordion[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.m-accordion > summary:hover { color: var(--color-primary); }

.m-subgroup { background: #fafbfc; border-top: 1px solid var(--color-border); }
.m-subgroup-title { padding: 8px 16px; font-size: 13px; font-weight: 500; color: var(--color-text-secondary); }
.m-subgroup-title-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; }
.m-subgroup-title-row span { font-size: 13px; font-weight: 500; color: var(--color-text-secondary); }
.header .m-region-code-link { font-size: 12px; color: var(--color-primary); flex-shrink: 0; }

.header .m-link { display: block; padding: 10px 16px 10px 24px; font-size: 14px; color: var(--color-text); transition: color 0.2s ease; }
.header .m-link:hover { color: var(--color-primary); }

.m-region-list { list-style: none; margin: 0; padding: 0; }
.m-region-list > li { display: block; }
.m-region-list > li > a { display: block; padding: 10px 16px 10px 24px; font-size: 14px; color: var(--color-text); transition: color 0.2s ease; }
.m-region-list > li > a:hover { color: var(--color-primary); }

.header .m-direct-link { display: block; padding: 0 16px; height: 48px; line-height: 48px; font-size: 15px; font-weight: 500; color: var(--color-text); border-bottom: 1px solid var(--color-border); }
.header .m-direct-link:hover { color: var(--color-primary); }
.m-buttons { display: flex; gap: 16px; padding: 16px; margin-top: auto; }
.m-btn { flex: 1; text-align: center; height: 44px; line-height: 44px; border-radius: 4px; font-size: 15px; font-weight: 500; cursor: pointer; }
.header .m-btn-login { border: 1px solid var(--color-border); color: var(--color-text); }
.header .m-btn-register { background: var(--color-primary); color: #fff; }

/* ==================== 底部导航 Footer ==================== */
.footer { width: 100%; }
.footer-wave { width: 100%; height: auto; display: block; }
.footer-cta { background: var(--footer-bg); }
.footer-cta__inner { max-width: var(--max-width); margin: 0 auto; padding: 16px 16px; }
.footer-cta__content { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-cta__title { font-size: 20px; line-height: 28px; font-weight: 500; color: #fff; width: 100%; word-break: break-word; }
.footer-cta__title--pc { display: none; }
.footer-cta__subtitle { font-size: 14px; line-height: 22px; color: #fff; width: 100%; }
.footer .footer-cta__btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 32px; border-radius: 8px; font-size: 16px; font-weight: 500; color: #1f2329; background: #fff; border: 1px solid #eaedf1; box-shadow: 0 1px 1px rgba(0,0,0,0.08); cursor: pointer; transition: opacity 0.2s ease; }
.footer .footer-cta__btn:hover { opacity: 0.9; }
.footer-cta__actions { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.footer-cta__actions .footer-cta__btn { width: 100%; }

.footer-main { background: var(--footer-bg); padding: 40px 0 80px; }
.footer-main__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 60px; }

.footer-features { background: rgba(255,255,255,0.04); backdrop-filter: blur(5px); border-radius: 12px; padding: 28px 0; }
.footer-features__pc { display: none; }
.footer-features__pad { display: flex; flex-direction: column; }
.footer-features__pad-row { display: flex; width: 100%; min-width: 0; align-items: stretch; }
.footer-features__item { display: flex; align-items: center; gap: 6px; padding: 12px 8px; flex: 1; min-width: 0; }
.footer-features__item img { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.footer-features__item span { font-size: 14px; line-height: 22px; color: #fff; min-width: 0; }
.footer-features__item--pc { gap: 8px; justify-content: center; }
.footer-features__item--pc span { font-size: 20px; line-height: 28px; font-weight: 500; white-space: nowrap; }

.footer-body { display: flex; gap: 72px; align-items: stretch; }
.footer-left { flex-shrink: 0; width: 328px; display: flex; flex-direction: column; gap: 40px; }
.footer-left__top { display: flex; flex-direction: column; gap: 24px; }
.footer-logo { width: 151px; height: 48px; }
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-slogan { font-size: 14px; line-height: 22px; color: #fff; }
.footer-divider { width: 1px; flex-shrink: 0; background: var(--footer-divider); align-self: stretch; }
.footer-right { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 24px; min-width: 0; }
.footer-column { min-width: 0; }
.footer-column__title { font-size: 20px; line-height: 28px; font-weight: 500; color: #fff; margin-bottom: 20px; }
.footer-column__links { display: flex; flex-direction: column; gap: 10px; }
.footer-column__links a { font-size: 14px; line-height: 22px; color: #fff; transition: color 0.2s ease; }
.footer-column__links a:hover { text-decoration: underline; }

.footer-body--mobile { display: none; flex-direction: column; gap: 32px; }
.footer-mobile-top { display: flex; flex-direction: column; gap: 16px; }
.footer-mobile-logo { width: 151px; height: 48px; }
.footer-mobile-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-mobile-slogan { font-size: 12px; line-height: 18px; color: #fff; }
.footer-accordion { width: 100%; }
.footer-accordion__item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-accordion__item > summary { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; padding: 16px 0; text-align: left; font-size: 14px; line-height: 22px; font-weight: 500; color: #fff; cursor: pointer; list-style: none; user-select: none; }
.footer-accordion__item > summary::-webkit-details-marker { display: none; }
.footer-accordion__item > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #8f959e; border-bottom: 2px solid #8f959e; transform: rotate(45deg); transition: transform 0.2s ease; flex-shrink: 0; }
.footer-accordion__item[open] > summary::after { transform: rotate(-135deg); }
.footer-accordion__panel { display: flex; flex-direction: column; padding-bottom: 12px; }
.footer-accordion__panel a { display: block; padding: 8px 0; font-size: 14px; line-height: 22px; color: #fff; }
.footer-accordion__panel a:hover { text-decoration: underline; }

.footer-legal { background: var(--footer-legal-bg); padding: 24px 0; }
.footer-legal__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.footer-legal__disclaimer { font-size: 12px; line-height: 18px; color: var(--footer-text-muted); text-align: center; }
.footer-legal__disclaimer a { text-decoration: underline; }
.footer-legal__disclaimer a:hover { color: #fff; }
.footer-legal__copyright { font-size: 12px; line-height: 18px; color: var(--footer-text-muted); text-align: center; }
.footer-legal__icp { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; font-size: 12px; line-height: 18px; color: var(--footer-text-muted); }
.footer-legal__icp a:hover { color: #fff; text-decoration: underline; }

/* ==================== 响应式 ==================== */
@media (max-width: 1023px) {
  .pc-nav { display: none; }
  .header-spacer { height: var(--header-height-mobile); flex-shrink: 0; }
  .mobile-bar { display: flex; }
  .header { box-shadow: 0 1px 48px 0 rgba(24, 33, 47, 0.08); }
}
@media (min-width: 1024px) and (max-width: 1320px) {
  .dropdown-content { padding: 0 24px; }
  .category-row { gap: 24px; }
  .scenarios-grid { gap: 20px 40px; }
}
@media (min-width: 1024px) and (max-width: 1200px) {
  .scenarios-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .footer-cta__inner { padding: 60px 24px; }
  .footer-cta__title { font-size: 36px; line-height: 44px; }
  .footer-cta__title--mobile { display: none; }
  .footer-cta__title--pc { display: block; }
  .footer-cta__subtitle { font-size: 16px; line-height: 24px; }
  .footer-cta__actions { display: none; }
  .footer-cta__btn--pc { display: inline-flex; }
  .footer-features { border-radius: 0; background: #272b30; padding: 6px 16px; backdrop-filter: none; }
  .footer-features__pad { display: none; }
  .footer-features__pc { display: flex; align-items: flex-start; justify-content: space-between; }
  .footer-main { padding: 40px 0 52px; }
  .footer-main__inner { padding: 0 24px; }
  .footer-right { gap: 48px 40px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-body { flex-direction: column; gap: 40px; }
  .footer-divider { display: none; }
  .footer-left { width: 100%; }
}
@media (max-width: 767px) {
  .footer-cta__btn--pc { display: none; }
  .footer-body { display: none; }
  .footer-body--mobile { display: flex; }
}