/* ==========================================================================
   页面组件 (Navbar, Hero, Toolbar, Mod Grid, FAQ, Footer, Toast)
   ========================================================================== */
    /* ==========================================================================
       顶部通告横幅 (Notice Alert Bar)
       ========================================================================== */
    .notice-bar {
      background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(16, 185, 129, 0.15));
      border-bottom: 1px solid rgba(245, 158, 11, 0.25);
      padding: 7px 16px;
      font-size: 0.8125rem;
      text-align: center;
      color: var(--text-main);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      font-weight: 500;
    }

    .notice-badge {
      background: var(--status-green);
      color: #000;
      padding: 2px 8px;
      border-radius: var(--radius-full);
      font-size: 0.725rem;
      font-weight: 700;
    }

    /* ==========================================================================
       顶部导航栏 (Navbar)
       ========================================================================== */
    .navbar-wrapper {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      background: var(--glass-bg);
      border-bottom: 1px solid var(--glass-border);
      transition: all var(--transition-normal);
    }

    .navbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 70px;
      gap: 16px;
    }
    .nav-brand {
      flex-shrink: 0;
    }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-wrap: nowrap;
      flex-shrink: 0;
    }
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .nav-brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 800;
      font-size: 1.3rem;
      letter-spacing: -0.02em;
    }

    .brand-logo-icon {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--gta-gold), #b45309);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #000;
      font-size: 1.25rem;
      font-weight: 900;
      box-shadow: 0 4px 16px var(--gta-gold-glow);
      transform: rotate(-4deg);
      transition: transform var(--transition-normal);
    }

    .nav-brand:hover .brand-logo-icon {
      transform: rotate(0deg) scale(1.06);
    }

    .brand-text-sub {
      font-size: 0.75rem;
      color: var(--gta-gold);
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .nav-link {
      padding: 8px 16px;
      font-size: 0.925rem;
      font-weight: 500;
      color: var(--text-secondary);
      border-radius: var(--radius-sm);
      transition: all var(--transition-fast);
      position: relative;
    }

    .nav-link:hover, .nav-link.active {
      color: var(--text-main);
      background: var(--bg-surface-elevated);
    }

    .nav-link.active {
      color: var(--gta-gold);
      font-weight: 600;
    }

    .nav-link.active::after {
      content: '';
      position: absolute;
      bottom: 4px;
      left: 50%;
      transform: translateX(-50%);
      width: 16px;
      height: 2px;
      background: var(--gta-gold);
      border-radius: var(--radius-full);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .search-trigger-btn {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--bg-surface-elevated);
      border: 1px solid var(--border-subtle);
      color: var(--text-secondary);
      padding: 8px 14px;
      border-radius: var(--radius-full);
      font-size: 0.85rem;
      transition: all var(--transition-fast);
    }

    .search-trigger-btn:hover {
      border-color: var(--gta-gold);
      color: var(--text-main);
      box-shadow: 0 0 12px var(--gta-gold-glow);
    }

    .kbd-shortcut {
      background: var(--bg-surface-subtle);
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 0.725rem;
      font-family: var(--font-mono);
      color: var(--text-muted);
      border: 1px solid var(--border-subtle);
    }

    .icon-btn {
      width: 40px;
      height: 40px;
      border-radius: var(--radius-full);
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--bg-surface-elevated);
      border: 1px solid var(--border-subtle);
      color: var(--text-main);
      transition: all var(--transition-fast);
    }

    .icon-btn:hover {
      background: var(--bg-surface-subtle);
      border-color: var(--gta-gold);
      transform: scale(1.05);
    }

    .mobile-menu-toggle {
      display: none;
    }

    .mobile-drawer {
      display: none;
      position: fixed;
      top: 70px;
      left: 0;
      right: 0;
      background: var(--bg-surface);
      border-bottom: 1px solid var(--border-subtle);
      padding: 20px;
      z-index: 99;
      transform: translateY(-100%);
      opacity: 0;
      transition: all var(--transition-normal);
    }

    .mobile-drawer.open {
      display: block;
      transform: translateY(0);
      opacity: 1;
    }

    .mobile-drawer .nav-link {
      display: block;
      padding: 12px 16px;
      font-size: 1rem;
    }

    /* ==========================================================================
       Hero 横幅与前置三件套 (Hero Section & Essentials)
       ========================================================================== */
    .hero-section {
      padding: 48px 0 36px;
      text-align: center;
      position: relative;
    }

    .hero-version-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 16px;
      background: var(--bg-surface-elevated);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-full);
      font-size: 0.825rem;
      color: var(--text-secondary);
      margin-bottom: 20px;
      box-shadow: var(--shadow-card);
    }

    .status-pulse {
      width: 8px;
      height: 8px;
      background-color: var(--status-green);
      border-radius: var(--radius-full);
      box-shadow: 0 0 10px var(--status-green);
      animation: pulse-glow 2s infinite;
    }

    @keyframes pulse-glow {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(1.3); }
    }

    .hero-title {
      font-size: clamp(2.3rem, 5vw, 4rem);
      font-weight: 900;
      letter-spacing: -0.03em;
      line-height: 1.15;
      margin-bottom: 18px;
    }

    .gold-gradient-text {
      background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      text-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
    }

    .hero-desc {
      font-size: clamp(1rem, 2vw, 1.2rem);
      color: var(--text-secondary);
      max-width: 720px;
      margin: 0 auto 32px;
      line-height: 1.7;
    }

    /* 搜索栏大组件 */
    .hero-search-box {
      max-width: 680px;
      margin: 0 auto 36px;
      position: relative;
      display: flex;
      align-items: center;
      background: var(--bg-surface);
      border: 2px solid var(--border-subtle);
      border-radius: var(--radius-full);
      padding: 6px 8px 6px 20px;
      box-shadow: var(--shadow-card), 0 0 25px rgba(0, 0, 0, 0.3);
      transition: all var(--transition-normal);
    }

    .hero-search-box:focus-within {
      border-color: var(--gta-gold);
      box-shadow: 0 0 25px var(--gta-gold-glow);
    }

    .hero-search-input {
      flex: 1;
      font-size: 1.05rem;
      color: var(--text-main);
      padding: 8px 0;
    }

    .hero-search-btn {
      padding: 12px 24px;
      background: linear-gradient(135deg, var(--gta-gold), var(--gta-gold-hover));
      color: #000;
      font-weight: 700;
      font-size: 0.95rem;
      border-radius: var(--radius-full);
      display: flex;
      align-items: center;
      gap: 6px;
      transition: transform var(--transition-fast);
    }

    .hero-search-btn:hover {
      transform: scale(1.03);
    }

    /* 核心数据看板 */
    .hero-stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      max-width: 860px;
      margin: 0 auto 48px;
    }

    .hero-stat-card {
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 16px;
      text-align: center;
      transition: transform var(--transition-fast);
    }

    .hero-stat-card:hover {
      transform: translateY(-2px);
      border-color: var(--gta-gold);
    }

    .stat-number {
      font-size: 1.6rem;
      font-weight: 900;
      font-family: var(--font-display);
      color: var(--text-main);
    }

    .stat-label {
      font-size: 0.78rem;
      color: var(--text-muted);
      margin-top: 2px;
    }

    /* 必备前置运行库卡片 (Essential Tools) */
    .essentials-container {
      background: var(--card-bg);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 24px 28px;
      margin-bottom: 48px;
      box-shadow: var(--shadow-card);
    }

    .essentials-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 18px;
    }

    .essentials-title {
      font-size: 1.15rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .essentials-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
      gap: 16px;
    }

    .essential-item {
      background: var(--bg-surface-elevated);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      transition: all var(--transition-normal);
    }

    .essential-item:hover {
      border-color: var(--gta-gold);
      transform: translateY(-2px);
    }

    .essential-info {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      flex: 1;
    }

    .essential-info > div {
      min-width: 0;
    }

    .essential-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: var(--bg-surface-subtle);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.3rem;
      flex-shrink: 0;
    }

    .essential-name {
      font-weight: 700;
      font-size: 0.95rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .essential-ver {
      font-size: 0.75rem;
      color: var(--text-muted);
      font-family: var(--font-mono);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .essential-dl-btn {
      padding: 8px 16px;
      background: var(--bg-surface-subtle);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-full);
      font-size: 0.825rem;
      font-weight: 600;
      color: var(--text-main);
      white-space: nowrap;
      flex-shrink: 0;
      transition: all var(--transition-fast);
    }

    .essential-dl-btn:hover {
      background: var(--gta-gold);
      color: #000;
      border-color: var(--gta-gold);
    }

    /* ==========================================================================
       模组筛选过滤系统 (Filter Toolbar)
       ========================================================================== */
    .section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
      flex-wrap: wrap;
      gap: 16px;
    }

    .section-title {
      font-size: 1.6rem;
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 10px;
      letter-spacing: -0.02em;
    }

    .section-title::before {
      content: '';
      width: 4px;
      height: 22px;
      background: var(--gta-gold);
      border-radius: var(--radius-full);
    }

    .filter-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
      margin-bottom: 28px;
    }

    .category-tabs {
      display: flex;
      align-items: center;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 4px;
      scrollbar-width: none;
    }

    .category-tabs::-webkit-scrollbar {
      display: none;
    }

    .category-tab {
      padding: 9px 18px;
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-full);
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--text-secondary);
      white-space: nowrap;
      transition: all var(--transition-fast);
      cursor: pointer;
    }

    .category-tab:hover {
      background: var(--bg-surface-elevated);
      color: var(--text-main);
    }

    .category-tab.active {
      background: linear-gradient(135deg, var(--gta-gold), var(--gta-gold-hover));
      border-color: var(--gta-gold);
      color: #000;
      box-shadow: 0 4px 14px var(--gta-gold-glow);
    }

    .sort-control {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 0.875rem;
      color: var(--text-secondary);
    }

    .sort-select {
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      color: var(--text-main);
      padding: 8px 14px;
      border-radius: var(--radius-sm);
      font-size: 0.85rem;
      cursor: pointer;
    }

    /* ==========================================================================
       模组卡片网格 (Mod Grid & Cards)
       ========================================================================== */
    .mod-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
      gap: 26px;
      margin-bottom: 56px;
    }

    .mod-card {
      background: var(--card-bg);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      box-shadow: var(--shadow-card);
      transition: all var(--transition-normal);
      position: relative;
    }

    .mod-card:hover {
      transform: translateY(-5px);
      border-color: rgba(245, 158, 11, 0.4);
      box-shadow: var(--shadow-card), 0 0 25px rgba(245, 158, 11, 0.15);
    }

    .mod-cover {
      height: 175px;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #0d111a;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      transition: all var(--transition-normal);
    }
    .mod-cover::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
      background-size: 16px 16px;
      opacity: 0.4;
      pointer-events: none;
    }
    .mod-card:hover .mod-cover {
      border-bottom-color: rgba(245, 158, 11, 0.3);
    }

    .mod-cat-art-svg {
      width: 76px;
      height: 76px;
      transition: all var(--transition-slow);
      filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
      opacity: 0.88;
    }

    .mod-card:hover .mod-cat-art-svg {
      transform: scale(1.1) translateY(-2px);
      opacity: 1;
      filter: drop-shadow(0 6px 18px currentColor);
    }

    .mod-badge-float {
      position: absolute;
      top: 14px;
      left: 14px;
      padding: 4px 10px;
      border-radius: var(--radius-full);
      font-size: 0.75rem;
      font-weight: 700;
      backdrop-filter: blur(8px);
      background: rgba(0, 0, 0, 0.65);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #fff;
    }

    .mod-safe-badge {
      position: absolute;
      top: 14px;
      right: 14px;
      padding: 4px 10px;
      border-radius: var(--radius-full);
      font-size: 0.725rem;
      font-weight: 700;
      background: rgba(16, 185, 129, 0.2);
      border: 1px solid var(--status-green);
      color: var(--status-green);
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .mod-body {
      padding: 22px;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .mod-title {
      font-size: 1.2rem;
      font-weight: 800;
      color: var(--text-main);
      line-height: 1.4;
      margin-bottom: 10px;
      transition: color var(--transition-fast);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      min-height: 2.8em;
    }

    .mod-card:hover .mod-title {
      color: var(--gta-gold);
    }

    .mod-meta-grid {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
      margin-bottom: 14px;
    }

    .meta-chip {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 8px;
      background: var(--bg-surface-subtle);
      border: 1px solid var(--border-subtle);
      border-radius: 6px;
      font-size: 0.74rem;
      font-family: var(--font-mono);
      color: var(--text-secondary);
      white-space: nowrap;
    }

    .meta-chip.highlight {
      border-color: rgba(245, 158, 11, 0.35);
      color: var(--gta-gold);
      background: rgba(245, 158, 11, 0.08);
      font-weight: 600;
    }

    .mod-desc {
      font-size: 0.88rem;
      color: var(--text-secondary);
      line-height: 1.6;
      margin-bottom: 16px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
      overflow: hidden;
    }

    .mod-tags-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 20px;
    }

    .mod-tag-pill {
      font-size: 0.725rem;
      background: var(--bg-surface-subtle);
      color: var(--text-secondary);
      padding: 2px 8px;
      border-radius: 4px;
    }

    .mod-actions-footer {
      display: grid;
      grid-template-columns: 1fr 1.3fr;
      gap: 10px;
      border-top: 1px solid var(--border-subtle);
      padding-top: 16px;
    }

    .btn-detail {
      background: var(--bg-surface-elevated);
      border: 1px solid var(--border-subtle);
      color: var(--text-main);
      padding: 10px;
      border-radius: var(--radius-sm);
      font-size: 0.875rem;
      font-weight: 600;
      text-align: center;
      transition: all var(--transition-fast);
    }

    .btn-detail:hover {
      background: var(--bg-surface-subtle);
      border-color: var(--text-secondary);
    }

    .btn-download-lock {
      background: linear-gradient(135deg, var(--gta-gold), #d97706);
      color: #000;
      padding: 10px;
      border-radius: var(--radius-sm);
      font-size: 0.875rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      box-shadow: 0 4px 12px var(--gta-gold-glow);
      transition: all var(--transition-fast);
    }

    .btn-download-lock:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
    }

    .btn-download-lock.unlocked {
      background: linear-gradient(135deg, var(--status-green), #059669);
      color: #fff;
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }

    .empty-state {
      grid-column: 1 / -1;
      text-align: center;
      padding: 60px 20px;
      background: var(--bg-surface);
      border: 1px dashed var(--border-subtle);
      border-radius: var(--radius-lg);
      color: var(--text-muted);
    }

    /* ==========================================================================
       新手安装指南与 FAQ 折叠板 (Tutorial & FAQ)
       ========================================================================== */
    .guide-section {
      margin: 64px 0;
      padding: 40px;
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
    }

    .guide-steps-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 20px;
      margin-top: 24px;
    }

    .guide-step-card {
      background: var(--bg-surface-elevated);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 20px;
      position: relative;
    }

    .step-number {
      font-size: 2rem;
      font-weight: 900;
      font-family: var(--font-display);
      color: var(--gta-gold);
      opacity: 0.6;
      line-height: 1;
      margin-bottom: 10px;
    }

    .step-card-title {
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 8px;
    }

    .step-card-desc {
      font-size: 0.85rem;
      color: var(--text-secondary);
      line-height: 1.55;
    }

    /* FAQ 折叠面板 */
    .faq-container {
      margin-top: 32px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .faq-item {
      background: var(--bg-surface-elevated);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      overflow: hidden;
      cursor: pointer;
    }

    .faq-question {
      padding: 16px 20px;
      font-weight: 700;
      font-size: 0.95rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .faq-answer {
      padding: 0 20px 16px;
      font-size: 0.88rem;
      color: var(--text-secondary);
      line-height: 1.6;
      display: none;
    }

    .faq-item.active .faq-answer {
      display: block;
    }

    .faq-item.active .faq-toggle-icon {
      transform: rotate(180deg);
    }

    /* ==========================================================================
       页脚与返回顶部 (Footer & Back to Top)
       ========================================================================== */
    .site-footer {
      background: var(--bg-surface);
      border-top: 1px solid var(--border-subtle);
      padding: 56px 0 32px;
      margin-top: 80px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 40px;
      margin-bottom: 36px;
    }

    .footer-brand-title {
      font-size: 1.3rem;
      font-weight: 900;
      margin-bottom: 10px;
    }

    .footer-disclaimer {
      font-size: 0.825rem;
      color: var(--text-muted);
      line-height: 1.6;
      max-width: 540px;
    }

    .footer-links-col h5 {
      font-size: 0.95rem;
      font-weight: 700;
      margin-bottom: 14px;
      color: var(--text-main);
    }

    .footer-links-col ul {
      display: flex;
      flex-direction: column;
      gap: 10px;
      font-size: 0.85rem;
      color: var(--text-secondary);
    }

    .footer-bottom {
      border-top: 1px solid var(--border-subtle);
      padding-top: 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .back-to-top {
      position: fixed;
      bottom: 32px;
      right: 32px;
      width: 44px;
      height: 44px;
      border-radius: var(--radius-full);
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      box-shadow: var(--shadow-card);
      color: var(--text-main);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 900;
      opacity: 0;
      visibility: hidden;
      transform: translateY(12px);
      transition: all var(--transition-normal);
    }

    .back-to-top.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .back-to-top:hover {
      background: var(--gta-gold);
      color: #000;
      border-color: var(--gta-gold);
      transform: translateY(-3px);
    }

    /* Toast 通知 */
    .toast-container {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 3000;
      display: flex;
      flex-direction: column;
      gap: 8px;
      pointer-events: none;
    }

    .toast-msg {
      background: var(--bg-surface-elevated);
      border: 1px solid var(--border-subtle);
      color: var(--text-main);
      padding: 10px 22px;
      border-radius: var(--radius-full);
      font-size: 0.88rem;
      box-shadow: var(--shadow-card);
      animation: toastIn 0.3s ease forwards;
    }

    @keyframes toastIn {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: translateY(0); }
    }

