/* 导航、首页、分类布局、优势及页尾。 */
/* 顶部导航 */

    .header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(236, 236, 244, 0.9);
    }

    .nav {
      height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      position: relative;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 22px;
      font-weight: 800;
      white-space: nowrap;
    }

    /* Logo与favicon使用同一份SVG矢量文件 */
    .logo-icon {
      display: block;
      flex: 0 0 40px;
      width: 40px;
      height: 40px;
      border-radius: 12px;
      object-fit: contain;
      box-shadow: 0 8px 20px rgba(109, 93, 252, 0.25);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 22px;
      white-space: nowrap;
      color: #535367;
      font-size: 14px;
    }

    .nav-links a {
      transition: 0.2s;
    }

    .nav-links a:hover,
    .nav-links a.active {
      color: var(--primary);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .btn {
      border: 0;
      cursor: pointer;
      padding: 11px 18px;
      border-radius: 12px;
      transition: 0.2s ease;
    }

    .explore-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 10px 12px;
      color: #6653d6;
      background: #efebff;
      box-shadow: 0 5px 14px rgba(109, 93, 252, 0.08);
      font-size: 14px;
      font-weight: 650;
      white-space: nowrap;
    }

    .explore-arrow {
      display: inline-block;
      font-size: 17px;
      line-height: 1;
      transition: transform 0.2s;
    }

    .explore-btn:hover {
      transform: translateY(-1px);
      color: #5542cc;
      background: #e6e0ff;
      box-shadow: 0 8px 18px rgba(109, 93, 252, 0.12);
    }

    .explore-btn:hover .explore-arrow {
      transform: translateX(3px);
    }

    .menu-toggle {
      display: none;
      width: 42px;
      height: 42px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: #fff;
      color: var(--text);
      cursor: pointer;
      font-size: 21px;
    }

    /* Hero */

    .hero {
      padding: 75px 0 55px;
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: "";
      position: absolute;
      width: 520px;
      height: 520px;
      border-radius: 50%;
      background: rgba(109, 93, 252, 0.13);
      filter: blur(80px);
      top: -180px;
      right: -120px;
    }

    .hero-content {
      max-width: 850px;
      margin: 0 auto;
      text-align: center;
      position: relative;
      z-index: 2;
    }

    .hero-badge {
      display: inline-flex;
      padding: 8px 15px;
      margin-bottom: 22px;
      border-radius: 999px;
      background: rgba(109, 93, 252, 0.09);
      color: var(--primary);
      font-size: 14px;
      font-weight: 600;
    }

    .hero h1 {
      font-size: clamp(42px, 6vw, 68px);
      line-height: 1.12;
      letter-spacing: -2px;
      margin-bottom: 22px;
    }

    .gradient-text {
      background: linear-gradient(135deg, #5948f1, #a45cff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero p {
      color: var(--muted);
      font-size: 18px;
      max-width: 700px;
      margin: 0 auto 32px;
    }

    /* 搜索 */

    .search-box {
      max-width: 720px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      padding: 8px;
      background: white;
      border: 1px solid var(--border);
      border-radius: 18px;
      box-shadow: var(--shadow);
    }

    .search-icon {
      width: 48px;
      color: #9999aa;
      text-align: center;
      font-size: 20px;
    }

    .search-box input {
      flex: 1;
      min-width: 0;
      border: 0;
      outline: 0;
      padding: 10px 5px;
      background: transparent;
    }

    .search-btn {
      border: 0;
      color: white;
      background: var(--primary);
      padding: 12px 25px;
      border-radius: 12px;
      cursor: pointer;
      font-weight: 600;
    }

    .hot-keywords {
      margin-top: 18px;
      color: #9696a8;
      font-size: 13px;
    }

    .hot-keywords a {
      margin-left: 12px;
      color: #626278;
    }

    .hot-keywords a:hover {
      color: var(--primary);
    }

    /* 数据 */

    .stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      margin-top: 48px;
      background: white;
      border: 1px solid var(--border);
      border-radius: 20px;
      box-shadow: 0 16px 45px rgba(33, 34, 61, 0.06);
    }

    .stat-item {
      padding: 23px;
      text-align: center;
      position: relative;
    }

    .stat-item:not(:last-child)::after {
      content: "";
      position: absolute;
      right: 0;
      top: 50%;
      width: 1px;
      height: 36px;
      transform: translateY(-50%);
      background: var(--border);
    }

    .stat-number {
      display: block;
      font-size: 25px;
      font-weight: 800;
    }

    .stat-label {
      color: #9494a5;
      font-size: 13px;
    }

    section {
      padding: 52px 0;
    }

    .section-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 20px;
      margin-bottom: 25px;
    }

    .section-head h2 {
      font-size: 30px;
    }

    .section-head p {
      margin-top: 5px;
      color: var(--muted);
      font-size: 14px;
    }

    .more-link {
      color: var(--primary);
      font-size: 14px;
    }

    /* 分类 */

    .category-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 16px;
    }

    .category-card {
      background: white;
      padding: 23px 16px;
      border: 1px solid var(--border);
      border-radius: 18px;
      transition: 0.25s;
    }

    .category-card:hover {
      transform: translateY(-5px);
      border-color: rgba(109, 93, 252, 0.3);
      box-shadow: var(--shadow);
    }

    .category-top {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .category-icon {
      flex: 0 0 auto;
      width: 56px;
      height: 56px;
      display: grid;
      place-items: center;
      border-radius: 16px;
      font-size: 25px;
      background: #f4f2ff;
    }

    .category-card h3 {
      font-size: 17px;
      margin-bottom: 3px;
    }

    .category-card span {
      color: #a0a0af;
      font-size: 12px;
    }

    .category-card p {
      margin-top: 16px;
      padding-top: 14px;
      border-top: 1px solid #f0f0f5;
      color: #88889a;
      font-size: 13px;
    }

/* 平台优势 */

    .features {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

    .feature-card {
      padding: 25px;
      background: white;
      border: 1px solid var(--border);
      border-radius: 18px;
    }

    .feature-icon {
      width: 46px;
      height: 46px;
      margin-bottom: 16px;
      display: grid;
      place-items: center;
      background: #f3f1ff;
      border-radius: 13px;
      font-size: 20px;
    }

    .feature-card h3 {
      font-size: 16px;
      margin-bottom: 7px;
    }

    .feature-card p {
      color: var(--muted);
      font-size: 13px;
    }

    /* Footer */

    .footer {
      margin-top: 40px;
      padding: 55px 0 25px;
      background: #171822;
      color: white;
    }

    .footer-grid {
      display: grid;
      /* 品牌区稍收窄，四栏之间分布更均衡 */
      grid-template-columns: minmax(270px, 1.55fr) repeat(3, minmax(150px, 1fr));
      column-gap: clamp(24px, 3.8vw, 52px);
      row-gap: 30px;
      padding-bottom: 40px;
      align-items: start;
    }

    /* 链接、关于本站与公众号三个栏目：标题和内容均在各自列内居中 */
    .footer-column {
      min-width: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .footer-column h4 {
      width: 100%;
      text-align: center;
    }

    .footer-column .footer-links {
      justify-items: center;
      text-align: center;
    }

    .footer-brand p {
      max-width: 300px;
      margin-top: 15px;
      color: #8d8e9e;
      font-size: 13px;
    }

    .footer h4 {
      font-size: 14px;
      margin-bottom: 16px;
    }

    .footer-links {
      display: grid;
      gap: 10px;
    }

    .footer-links a {
      color: #9394a4;
      font-size: 13px;
    }

    .footer-links a:hover {
      color: white;
    }

    /* 公众号图片与100×100占位框完全重合，消除默认行内/网格占位偏差 */
    .footer-qr-frame {
      position: relative;
      display: block;
      width: 100px;
      height: 100px;
      margin: 6px auto 0;
      border-radius: 12px;
      background: #fff;
      overflow: hidden;
      isolation: isolate;
    }

    .footer-qr-placeholder {
      position: absolute;
      inset: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 8px;
      color: #8a86a0;
      font-size: 12px;
      line-height: 1.5;
      text-align: center;
    }

    .footer-qr {
      position: absolute;
      inset: 0;
      display: block;
      width: 100%;
      height: 100%;
      padding: 0;
      margin: 0;
      object-fit: contain;
      opacity: 0;
    }

    .footer-qr-frame.qr-loaded .footer-qr { opacity: 1; }
    .footer-qr-frame.qr-loaded .footer-qr-placeholder { display: none; }
    .footer-qr-frame.qr-unavailable .footer-qr { display: none; }

    .copyright {
      padding-top: 24px;
      border-top: 1px solid #2a2b38;
      color: #777887;
      font-size: 12px;
      display: flex;
      justify-content: space-between;
      gap: 20px;
    }
    .copyright a { color: inherit; }
    .copyright a:hover, .copyright a:focus-visible {
      color: #e5e0ff;
      text-decoration: underline;
      text-underline-offset: 3px;
    }
