:root {
  /* Logo */
  --logo-token: #111111;
  --logo-456: #7a7a80;

  /* Base */
  --bg-page: #f5f5f7;
  --bg-header: rgba(255,255,255,.82);
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --bg-card: #ffffff;
  --bg-card-hover: #fbfbfd;
  --bg-hero: linear-gradient(180deg, #fcfcfd 0%, #f7f7f9 100%);

  /* Text */
  --text-1: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #8e8e93;

  /* Lines */
  --line: rgba(60, 60, 67, 0.10);
  --line-soft: rgba(60, 60, 67, 0.06);
  --line-softer: rgba(60, 60, 67, 0.04);

  /* Accent: restrained Apple-like blue */
  --accent: #0071e3;
  --accent-hover: #0066cc;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --accent-soft-strong: rgba(0, 113, 227, 0.12);
  --accent-line: rgba(0, 113, 227, 0.18);

  /* Supporting colors */
  --success: #2f9e44;
  --warning: #ff9f0a;

  /* Radius */
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.03), 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.04), 0 16px 40px rgba(0, 0, 0, 0.06);
  --shadow-3: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 10px 26px rgba(0,0,0,.04);

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --duration-fast: .18s;
  --duration-normal: .28s;

  /* Layout */
  --header-h: 56px;
  --hero-gap-top: 4px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    background: 
        radial-gradient(circle at 12% 18%, rgba(82, 145, 255, 0.08), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(168, 132, 255, 0.07), transparent 24%),
        linear-gradient(180deg, #f7f8fb 0%, #f3f4f7 100%);
    color: var(--text-1);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Layout */
.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 247, 0.9) 55%, rgba(245, 245, 247, 1) 100%);
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  min-height: var(--header-h);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  height: var(--header-h);
}

.site-header .brand,
.site-header .brand-logo,
.site-header .brand-text {
  line-height: 1;
}

.site-header .brand-subtitle,
.site-header .header-meta {
  font-size: 14px;
  color: #8e8e93;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 28px;
  width: auto;
}

.brand-mark,
.brand-wordmark {
  display: inline-flex;
  align-items: center;
}

.brand-token {
  color: var(--logo-token);
}

.brand-456 {
  color: var(--logo-456);
}

.header-meta {
  color: var(--text-3);
  font-size: 13px;
  letter-spacing: .02em;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: var(--hero-gap-top);
  border: 1px solid var(--line-soft);
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  background: var(--bg-hero);
}

.hero__inner {
  position: relative;
  padding: 28px 36px 8px;
  min-height: 140px;
}

.hero-title {
  margin: 0;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero-desc {
  max-width: 720px;
  margin-top: 10px;
  margin-bottom: 0;
  color: #6e6e73;
  font-size: 17px;
  line-height: 1.4;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.62);
  color: var(--text-2);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(255,255,255,0.4) inset;
}

/* Section cards */
.tools-panel {
  border: 1px solid var(--line-soft);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.section-list {
  display: grid;
  gap: 0;
  padding: 0;
}

.section-card {
  margin-top: 0;
  border-radius: 0;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--line-softer);
  border-left: 0;
  border-right: 0;
  box-shadow: none;
  transition: none;
}

.section-card:first-of-type {
  margin-top: 0;
  border-top: 0;
}

.section-card__inner {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px 28px;
}

.section-title {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
}

.section-subtitle {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 13px;
}

/* Chips */
.tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 12px;
}

.tool-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  background: #fff;
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: all 0.18s ease;
}

.tool-chip:hover {
  background: rgba(0, 113, 227, 0.06);
  border-color: rgba(0, 113, 227, 0.18);
  color: #0071e3;
  transform: translateY(-1px);
}

.tool-chip.is-active {
  color: var(--accent);
  border-color: var(--accent-line);
  background: rgba(0,113,227,.06);
  box-shadow: inset 0 0 0 1px rgba(0,113,227,.08);
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    transform var(--duration-fast) var(--ease),
    background-color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #1691ff 0%, var(--accent) 100%);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.22);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #1490ff 0%, var(--accent-hover) 100%);
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.28);
}

.btn-secondary {
  color: var(--text-1);
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 113, 227, 0.14);
  color: var(--accent-hover);
}

/* Search */
.search-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow-1);
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), background-color var(--duration-fast) var(--ease);
}

.search-shell:focus-within {
  border-color: rgba(0, 113, 227, 0.24);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(0, 113, 227, 0.10),
    0 12px 28px rgba(0, 113, 227, 0.08);
}

.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-1);
  font-size: 15px;
}

.search-input::placeholder {
  color: var(--text-3);
}

/* Small accents */
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 600;
}

.link-inline {
  color: var(--accent);
  transition: color var(--duration-fast) var(--ease), opacity var(--duration-fast) var(--ease);
}

.link-inline:hover {
  color: var(--accent-hover);
}

/* Footer */
.site-footer {
  padding: 18px 0 32px;
  color: var(--text-3);
  font-size: 13px;
}

/* 页面主体上下留白也收一点 */
.page-main,
.main-content,
.container-main,
.main-wrap,
.home-main {
  padding-top: 8px;
  padding-bottom: 32px;
}

/* Responsive */
@media (max-width: 900px) {
  .container {
    width: min(100%, calc(100% - 28px));
  }

  .site-header__inner {
    min-height: 60px;
  }

  .header-meta {
    display: none;
  }

  .hero__inner {
    padding: 36px 22px 28px;
  }

  .hero-title {
    font-size: 40px;
  }

  .section-card__inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 18px;
  }
}

/* 适配现有结构 */
.app {
  min-height: 100vh;
  background: var(--bg-page);
}

/* 顶部再薄一点 */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  min-height: var(--header-h);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.top-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 1;
}

.top-bar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.logo {
  height: 28px;
  width: auto;
  display: block;
}

.brand-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 1;
}

.brand-slogan {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-meta {
  font-size: 14px;
  color: var(--text-3);
  white-space: nowrap;
  margin-left: auto;
}

.top-notes {
  font-size: 14px;
  color: #8e8e93;
  white-space: nowrap;
  letter-spacing: .02em;
}

/* 顶部到 hero 的距离，真正是这两处在控制 */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2px 20px 32px;
}

.content-panel {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: var(--hero-gap-top);
}

/* hero 本体，真正控制你现在空白的是这里 */
.hero-inline {
  position: relative;
  padding: 24px 36px 8px;
  background: var(--bg-hero);
  border-bottom: 1px solid rgba(60, 60, 67, 0.035);
  min-height: 132px;
}

/* 标题和副标题也顺手收一下 */
.hero-inline .hero-title {
  margin: 0;
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text-1);
}

.hero-inline .hero-subtitle {
  margin-top: 8px;
  margin-bottom: 0;
  max-width: 720px;
  color: #6e6e73;
  font-size: 17px;
  line-height: 1.4;
}

.tools-panel {
  border: 1px solid var(--line-soft);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
  margin-top: 0;
}

.category-section {
  margin: 0;
  border-top: 0;
  padding: 0;
}

.category-section:first-child {
  border-top: 0;
}

.category-section__inner {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px 28px;
}

.category-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px 28px;
  background: var(--bg-card);
  border-top: 1px solid rgba(60, 60, 67, 0.025);
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  margin: 0;
  transition: none;
}

.category-row:first-of-type {
  border-top: 0;
}

.category-title {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 12px;
}

.category-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  background: #fff;
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: all 0.18s ease;
}

.category-link:hover {
  background: rgba(0, 113, 227, 0.06);
  border-color: rgba(0, 113, 227, 0.18);
  color: #0071e3;
  transform: translateY(-1px);
}

/* 大陆访问受限的链接样式 */
.category-link.limited-access {
  color: #8e8e93;
  border-color: rgba(60, 60, 67, 0.08);
  background: #f9f9f9;
}

/* 受限链接的hover效果 */
.category-link.limited-access:hover {
  color: #6e6e73;
  border-color: rgba(60, 60, 67, 0.12);
  background: #f5f5f5;
  transform: translateY(-1px);
}

.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 32px;
  color: var(--text-3);
  font-size: 13px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-link {
  text-decoration: none;
  color: var(--text-2);
  transition: color var(--duration-fast) var(--ease);
}

.footer-link:hover {
  color: var(--accent-hover);
}

.footer-copyright {
  white-space: nowrap;
}

/* 移动端页脚适配 */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .footer-links {
    width: 100%;
    gap: 12px;
  }
  
  .footer-link {
    white-space: nowrap;
    word-break: keep-all;
  }
  
  .footer-copyright {
    white-space: normal;
    word-break: break-word;
    line-height: 1.6;
    width: 100%;
  }
}

/* 关闭 tooltip，页面会更干净 */
.category-link::after {
  display: none;
}

/* 重点推荐 */
.category-link.featured {
  color: var(--accent);
  border-color: var(--accent-line);
  background: rgba(0,113,227,.06);
  box-shadow: inset 0 0 0 1px rgba(0,113,227,.08);
}

/* 你旧的分隔线直接隐藏，防止漏删 */
.category-divider {
  display: none !important;
}

/* 响应式设计 */
@media (max-width: 900px) {
  .top-bar-content {
    min-height: 60px;
    padding: 0 14px;
  }
  
  .top-bar-right {
    gap: 14px;
  }
  
  .brand-slogan {
    font-size: 14px;
  }
  
  .main-content {
    padding: 2px 14px 32px;
  }
  
  .hero-inline {
    padding: 36px 22px 28px;
  }
  
  .hero-inline .hero-title {
    font-size: 40px;
  }
  
  .category-section__inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 18px;
  }
  
  .category-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 18px;
  }
  
  .footer {
    padding: 18px 14px 32px;
  }
}

@media (max-width: 640px) {
  .brand-slogan {
    display: none;
  }
  
  .top-notes {
    display: none;
  }
}

@media (max-width: 400px) {
  .top-bar-left {
    gap: 10px;
  }
}

/* 关于页面 */
.info-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.nav-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(60, 60, 67, 0.08);
    background: rgba(255,255,255,0.72);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.nav-tab {
    padding: 10px 18px;
    border-radius: 999px;
    border-bottom: 0;
    color: var(--text-2);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    outline: none;
}

.nav-tab.active {
    color: #0b57d0;
    background: rgba(0, 113, 227, 0.10);
    box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.08);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 关于页面 */
.info-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.nav-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line-soft);
}

.nav-tab {
    padding: 12px 0;
    border-bottom: 2px solid transparent;
    color: var(--text-2);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    outline: none;
}

.nav-tab.active {
    border-bottom-color: var(--primary);
    color: var(--text-1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 关于页面 */
.info-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.nav-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line-soft);
}

.nav-tab {
    padding: 12px 0;
    border-bottom: 2px solid transparent;
    color: var(--text-2);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    outline: none;
}

.nav-tab.active {
    border-bottom-color: var(--primary);
    color: var(--text-1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 关于页面 */
.info-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.nav-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line-soft);
}

.nav-tab {
    padding: 12px 0;
    border-bottom: 2px solid transparent;
    color: var(--text-2);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    outline: none;
}

.nav-tab.active {
    border-bottom-color: var(--primary);
    color: var(--text-1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}