/* roulang page: index */
:root {
      --app-bg: #f8fafc;
      --app-surface: #ffffff;
      --app-primary: #1d4ed8;
      --app-primary-light: #eff6ff;
      --app-primary-grad: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
      --app-accent: #0284c7;
      --app-warning: #f59e0b;
      --app-success: #10b981;
      --app-border: #e2e8f0;
      --app-border-light: #f1f5f9;
      --app-text-main: #0f172a;
      --app-text-muted: #64748b;
      --app-text-light: #94a3b8;
      --app-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
      --app-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
      --app-shadow-lg: 0 14px 28px -5px rgba(15, 23, 42, 0.1), 0 6px 12px -3px rgba(15, 23, 42, 0.05);
      --sidebar-width: 240px;
    }

    * { box-sizing: border-box; }
    body {
      margin: 0;
      padding: 0;
      background-color: var(--app-bg);
      color: var(--app-text-main);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
    a:hover { color: var(--app-primary); }

    /* App Shell Sidebar */
    .app-sidebar {
      position: fixed;
      top: 0;
      left: 0;
      width: var(--sidebar-width);
      height: 100vh;
      background: var(--app-surface);
      border-right: 1px solid var(--app-border);
      display: flex;
      flex-direction: column;
      z-index: 1040;
    }
    .sidebar-brand {
      height: 72px;
      display: flex;
      align-items: center;
      padding: 0 1.25rem;
      border-bottom: 1px solid var(--app-border-light);
    }
    .sidebar-brand-title {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--app-primary);
      display: flex;
      align-items: center;
      gap: 0.5rem;
      letter-spacing: -0.2px;
    }
    .sidebar-brand-title svg { fill: var(--app-primary); width: 22px; height: 22px; flex-shrink: 0; }
    .sidebar-nav {
      padding: 1.25rem 0.75rem;
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }
    .nav-section-title {
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--app-text-light);
      padding: 0.5rem 0.75rem 0.25rem;
      margin-top: 0.5rem;
    }
    .nav-item-link {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.65rem 0.85rem;
      border-radius: 10px;
      font-size: 0.92rem;
      font-weight: 500;
      color: var(--app-text-muted);
      transition: all 0.2s;
    }
    .nav-item-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
    .nav-item-link:hover {
      background-color: var(--app-primary-light);
      color: var(--app-primary);
    }
    .nav-item-link.active {
      background: var(--app-primary-grad);
      color: #ffffff;
      box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
    }
    .nav-item-link.active svg { stroke: #ffffff; }
    .sidebar-footer {
      padding: 1rem;
      border-top: 1px solid var(--app-border-light);
      background: #fafcff;
    }
    .sidebar-status-box {
      background: #ffffff;
      border: 1px solid var(--app-border);
      border-radius: 10px;
      padding: 0.75rem;
      font-size: 0.8rem;
    }
    .status-dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: var(--app-success);
      margin-right: 6px;
      box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    }

    /* Mobile Header */
    .mobile-app-header {
      display: none;
      height: 62px;
      background: var(--app-surface);
      border-bottom: 1px solid var(--app-border);
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1030;
      padding: 0 1rem;
      align-items: center;
      justify-content: space-between;
    }

    /* Main Wrapper */
    .app-main-wrapper {
      margin-left: var(--sidebar-width);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      padding-bottom: 72px; /* space for floating bar */
    }

    /* Component Card */
    .saas-card {
      background: var(--app-surface);
      border: 1px solid var(--app-border);
      border-radius: 14px;
      box-shadow: var(--app-shadow-sm);
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }
    .saas-card:hover {
      box-shadow: var(--app-shadow-md);
      border-color: #cbd5e1;
    }

    /* Badges */
    .saas-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.35rem 0.85rem;
      font-size: 0.82rem;
      font-weight: 600;
      border-radius: 9999px;
      background-color: var(--app-primary-light);
      color: var(--app-primary);
    }
    .badge-accent {
      background-color: #e0f2fe;
      color: var(--app-accent);
    }
    .badge-time {
      background-color: rgba(15, 23, 42, 0.75);
      color: #ffffff;
      font-size: 0.75rem;
      border-radius: 6px;
      padding: 2px 6px;
    }

    /* Buttons */
    .btn-saas-primary {
      background: var(--app-primary-grad);
      color: #ffffff;
      font-weight: 600;
      padding: 0.65rem 1.4rem;
      border-radius: 10px;
      border: none;
      box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      transition: all 0.2s;
    }
    .btn-saas-primary:hover {
      color: #ffffff;
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    }
    .btn-saas-outline {
      background: #ffffff;
      color: var(--app-text-main);
      font-weight: 600;
      padding: 0.65rem 1.3rem;
      border-radius: 10px;
      border: 1px solid var(--app-border);
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      transition: all 0.2s;
    }
    .btn-saas-outline:hover {
      background-color: #f1f5f9;
      color: var(--app-primary);
      border-color: #cbd5e1;
    }

    /* Section Global */
    .section-padding {
      padding: 3.5rem 0;
    }
    .section-header {
      margin-bottom: 2.25rem;
    }
    .section-tag {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--app-primary);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 0.4rem;
    }
    .section-title {
      font-size: 1.85rem;
      font-weight: 700;
      letter-spacing: -0.5px;
      color: var(--app-text-main);
      margin-bottom: 0.65rem;
    }
    .section-lead {
      color: var(--app-text-muted);
      font-size: 1rem;
      max-width: 680px;
      margin: 0;
    }

    /* Hero Section */
    .hero-container {
      padding: 3.5rem 0 3rem;
      background: radial-gradient(circle at 100% 0%, #e0f2fe 0%, #f8fafc 60%);
      border-bottom: 1px solid var(--app-border-light);
    }
    .hero-h1 {
      font-size: 2.45rem;
      font-weight: 800;
      line-height: 1.25;
      letter-spacing: -0.8px;
      color: var(--app-text-main);
      margin-bottom: 1.25rem;
    }
    .hero-desc {
      font-size: 1.05rem;
      color: var(--app-text-muted);
      line-height: 1.7;
      margin-bottom: 1.75rem;
    }
    .hero-stage {
      background: #ffffff;
      border: 1px solid var(--app-border);
      border-radius: 16px;
      box-shadow: var(--app-shadow-lg);
      overflow: hidden;
    }
    .stage-header {
      background: #f8fafc;
      padding: 0.75rem 1rem;
      border-bottom: 1px solid var(--app-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .stage-dots {
      display: flex;
      gap: 6px;
    }
    .stage-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #cbd5e1;
    }
    .stage-screen {
      padding: 1.25rem;
      background: #0f172a;
      color: #ffffff;
      position: relative;
    }
    .mock-player-box {
      border-radius: 10px;
      background: #1e293b;
      padding: 1.5rem 1rem;
      text-align: center;
      position: relative;
    }
    .player-ctrl-bar {
      margin-top: 1rem;
      height: 6px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 4px;
      position: relative;
    }
    .player-ctrl-progress {
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 68%;
      background: var(--app-primary);
      border-radius: 4px;
    }

    /* Feature Cards */
    .feature-icon-box {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background: var(--app-primary-light);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--app-primary);
      margin-bottom: 1.25rem;
    }
    .feature-icon-box svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }

    /* Multi Device Mockup Cards */
    .device-view-card {
      border: 1px solid var(--app-border);
      border-radius: 12px;
      padding: 1.25rem;
      background: #ffffff;
      height: 100%;
    }
    .device-badge {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--app-accent);
      background: #f0f9ff;
      padding: 2px 8px;
      border-radius: 6px;
    }

    /* Category Cards (Limited links) */
    .cat-entry-card {
      border: 1px solid var(--app-border);
      border-radius: 14px;
      background: #ffffff;
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      height: 100%;
      position: relative;
      transition: all 0.25s;
    }
    .cat-entry-card:hover {
      border-color: var(--app-primary);
      transform: translateY(-3px);
      box-shadow: var(--app-shadow-md);
    }
    .cat-arrow-icon {
      margin-top: auto;
      color: var(--app-primary);
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.88rem;
    }

    /* Metric Grid */
    .metric-card {
      background: #ffffff;
      border: 1px solid var(--app-border);
      border-radius: 12px;
      padding: 1.25rem;
      text-align: left;
    }
    .metric-value {
      font-size: 1.95rem;
      font-weight: 800;
      color: var(--app-primary);
      letter-spacing: -0.5px;
      margin-bottom: 0.2rem;
    }
    .metric-title {
      font-size: 0.85rem;
      color: var(--app-text-muted);
      font-weight: 500;
    }

    /* Comparison Table */
    .table-card {
      background: #ffffff;
      border: 1px solid var(--app-border);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: var(--app-shadow-sm);
    }
    .table-custom {
      margin-bottom: 0;
    }
    .table-custom th, .table-custom td {
      padding: 1rem 1.25rem;
      vertical-align: middle;
      border-color: var(--app-border-light);
    }
    .table-custom thead {
      background: #f8fafc;
      font-size: 0.88rem;
    }
    .table-pill-good {
      color: #059669;
      background: #ecfdf5;
      font-size: 0.82rem;
      font-weight: 600;
      padding: 3px 8px;
      border-radius: 6px;
    }
    .table-pill-bad {
      color: #dc2626;
      background: #fef2f2;
      font-size: 0.82rem;
      font-weight: 600;
      padding: 3px 8px;
      border-radius: 6px;
    }

    /* Media Resource Card */
    .media-card {
      background: #ffffff;
      border: 1px solid var(--app-border);
      border-radius: 12px;
      overflow: hidden;
      transition: all 0.2s;
    }
    .media-card:hover {
      box-shadow: var(--app-shadow-md);
      transform: translateY(-2px);
    }
    .media-thumb {
      height: 150px;
      background: linear-gradient(135deg, #1e293b, #334155);
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #ffffff;
    }
    .media-body {
      padding: 1rem;
    }
    .media-title {
      font-size: 0.95rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      height: 2.7rem;
      line-height: 1.35rem;
    }

    /* Accordion FAQ */
    .accordion-saas .accordion-item {
      border: 1px solid var(--app-border);
      border-radius: 10px !important;
      margin-bottom: 0.75rem;
      overflow: hidden;
    }
    .accordion-saas .accordion-button {
      font-weight: 600;
      font-size: 0.95rem;
      background-color: #ffffff;
      color: var(--app-text-main);
      padding: 1rem 1.25rem;
      box-shadow: none !important;
    }
    .accordion-saas .accordion-button:not(.collapsed) {
      color: var(--app-primary);
      background-color: #f8fafc;
    }
    .accordion-saas .accordion-body {
      color: var(--app-text-muted);
      font-size: 0.9rem;
      line-height: 1.65;
      padding: 1.15rem 1.25rem;
      border-top: 1px solid var(--app-border-light);
    }

    /* Footer */
    .app-footer {
      background: #ffffff;
      border-top: 1px solid var(--app-border);
      padding: 3rem 0 2rem;
      font-size: 0.88rem;
      color: var(--app-text-muted);
    }
    .footer-title {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--app-text-main);
      margin-bottom: 1rem;
    }
    .footer-links {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .footer-bottom {
      border-top: 1px solid var(--app-border-light);
      margin-top: 2.5rem;
      padding-top: 1.5rem;
      text-align: center;
      font-size: 0.82rem;
    }

    /* Floating Conversion Bar */
    .floating-bar {
      position: fixed;
      bottom: 0;
      left: var(--sidebar-width);
      right: 0;
      height: 64px;
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(8px);
      border-top: 1px solid var(--app-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 2rem;
      z-index: 1020;
      box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.04);
    }

    /* Responsive */
    @media (max-width: 991.98px) {
      .app-sidebar { display: none; }
      .mobile-app-header { display: flex; }
      .app-main-wrapper { margin-left: 0; padding-top: 62px; }
      .floating-bar { left: 0; padding: 0 1rem; }
      .hero-h1 { font-size: 1.85rem; }
      .section-title { font-size: 1.5rem; }
    }

/* roulang page: category1 */
:root {
    --app-bg: #f8fafc;
    --app-surface: #ffffff;
    --app-primary: #1d4ed8;
    --app-primary-light: #eff6ff;
    --app-primary-grad: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --app-accent: #0284c7;
    --app-warning: #f59e0b;
    --app-success: #10b981;
    --app-border: #e2e8f0;
    --app-border-light: #f1f5f9;
    --app-text-main: #0f172a;
    --app-text-muted: #64748b;
    --app-text-light: #94a3b8;
    --app-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --app-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --app-shadow-lg: 0 14px 28px -5px rgba(15, 23, 42, 0.1), 0 6px 12px -3px rgba(15, 23, 42, 0.05);
    --sidebar-width: 240px;
  }
  body {
    margin: 0;
    padding: 0;
    background-color: var(--app-bg);
    color: var(--app-text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
  a:hover { color: var(--app-primary); }

  /* App Shell Sidebar */
  .app-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--app-surface);
    border-right: 1px solid var(--app-border);
    display: flex;
    flex-direction: column;
    z-index: 1020;
  }
  .sidebar-brand {
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--app-border-light);
  }
  .sidebar-brand-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--app-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.2px;
  }
  .brand-badge-icon {
    width: 30px;
    height: 30px;
    background: var(--app-primary-grad);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .sidebar-nav {
    padding: 1.25rem 0.75rem;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--app-text-light);
    padding: 0.5rem 0.75rem 0.25rem;
    margin-top: 0.5rem;
  }
  .nav-item-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--app-text-muted);
    transition: all 0.2s;
  }
  .nav-item-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
  .nav-item-link:hover {
    background-color: var(--app-primary-light);
    color: var(--app-primary);
  }
  .nav-item-link.active {
    background: var(--app-primary-grad);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  }
  .nav-item-link.active svg { stroke: #ffffff; }
  .sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--app-border-light);
    background: #fafcff;
  }

  /* Mobile App Header */
  .mobile-app-header {
    display: none;
    height: 62px;
    background: var(--app-surface);
    border-bottom: 1px solid var(--app-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
  }

  /* Main Wrapper */
  .app-main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 72px;
  }

  /* Compact Hero for Category */
  .category-header-box {
    background: var(--app-surface);
    border-bottom: 1px solid var(--app-border);
    padding: 2.25rem 0 2rem;
  }
  .breadcrumb-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--app-text-muted);
    margin-bottom: 0.75rem;
  }
  .breadcrumb-wrap a:hover {
    color: var(--app-primary);
  }
  .category-h1 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--app-text-main);
    margin-bottom: 0.5rem;
  }
  .category-desc {
    color: var(--app-text-muted);
    font-size: 0.95rem;
    max-width: 820px;
    line-height: 1.6;
    margin: 0;
  }

  /* Common UI Cards */
  .saas-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 14px;
    box-shadow: var(--app-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .saas-card:hover {
    box-shadow: var(--app-shadow-md);
    border-color: #cbd5e1;
  }
  .saas-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 9999px;
    background-color: var(--app-primary-light);
    color: var(--app-primary);
  }

  /* Filters */
  .filter-panel {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
  }
  .filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.4rem 0;
  }
  .filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--app-text-muted);
    width: 72px;
    flex-shrink: 0;
  }
  .filter-btn {
    font-size: 0.82rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    color: var(--app-text-muted);
    background: #f1f5f9;
    font-weight: 500;
    border: 1px solid transparent;
  }
  .filter-btn:hover {
    color: var(--app-primary);
    background: var(--app-primary-light);
  }
  .filter-btn.active {
    background: var(--app-primary);
    color: #ffffff;
    font-weight: 600;
  }

  /* Resource Video Card */
  .resource-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--app-shadow-sm);
    transition: all 0.25s ease;
  }
  .resource-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--app-shadow-md);
    border-color: #cbd5e1;
  }
  .resource-poster {
    position: relative;
    width: 100%;
    padding-top: 62%;
    background: #1e293b;
    overflow: hidden;
  }
  .resource-poster-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(45deg, #1e3a8a, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
  }
  .tag-quality {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(37, 99, 235, 0.9);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
  }
  .tag-time {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 4px;
  }
  .resource-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .resource-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 0.5rem;
    color: var(--app-text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .resource-meta {
    font-size: 0.8rem;
    color: var(--app-text-muted);
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--app-border-light);
  }

  /* Custom Pagination */
  .custom-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2.5rem;
  }
  .page-link-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    color: var(--app-text-main);
    font-size: 0.88rem;
    font-weight: 600;
  }
  .page-link-btn:hover {
    border-color: var(--app-primary);
    color: var(--app-primary);
    background: var(--app-primary-light);
  }
  .page-link-btn.active {
    background: var(--app-primary-grad);
    color: #ffffff;
    border-color: transparent;
  }

  /* Ranking Strip */
  .rank-strip-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
  }
  .rank-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px dashed var(--app-border);
  }
  .rank-item:last-child {
    border-bottom: none;
  }
  .rank-num {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #f1f5f9;
    color: var(--app-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .rank-num.top1 { background: #fee2e2; color: #dc2626; }
  .rank-num.top2 { background: #ffedd5; color: #ea580c; }
  .rank-num.top3 { background: #fef3c7; color: #d97706; }

  /* Guide Cards */
  .tech-guide-box {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 14px;
    padding: 1.75rem;
  }

  /* Accordion Custom */
  .accordion-saas .accordion-item {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 10px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
  }
  .accordion-saas .accordion-button {
    background: var(--app-surface);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--app-text-main);
    box-shadow: none !important;
    padding: 1rem 1.25rem;
  }
  .accordion-saas .accordion-button:not(.collapsed) {
    background-color: var(--app-primary-light);
    color: var(--app-primary);
  }
  .accordion-saas .accordion-body {
    font-size: 0.9rem;
    color: var(--app-text-muted);
    line-height: 1.65;
    padding: 1rem 1.25rem 1.25rem;
  }

  /* Footer */
  .app-footer {
    background: var(--app-surface);
    border-top: 1px solid var(--app-border);
    padding: 3rem 0 2rem;
    margin-top: auto;
  }
  .footer-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--app-text-main);
    margin-bottom: 1rem;
  }
  .footer-link {
    font-size: 0.85rem;
    color: var(--app-text-muted);
    margin-bottom: 0.5rem;
  }
  .footer-link a:hover { color: var(--app-primary); }

  /* Floating Bar */
  .floating-bottom-bar {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--app-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    z-index: 1010;
  }

  /* Responsive */
  @media (max-width: 991.98px) {
    .app-sidebar { display: none; }
    .mobile-app-header { display: flex; }
    .app-main-wrapper {
      margin-left: 0;
      padding-top: 62px;
    }
    .floating-bottom-bar {
      left: 0;
      padding: 0 1rem;
    }
  }

/* roulang page: category2 */
:root {
      --app-bg: #f8fafc;
      --app-surface: #ffffff;
      --app-primary: #1d4ed8;
      --app-primary-light: #eff6ff;
      --app-primary-grad: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
      --app-accent: #0284c7;
      --app-warning: #f59e0b;
      --app-success: #10b981;
      --app-border: #e2e8f0;
      --app-border-light: #f1f5f9;
      --app-text-main: #0f172a;
      --app-text-muted: #64748b;
      --app-text-light: #94a3b8;
      --app-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
      --app-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
      --app-shadow-lg: 0 14px 28px -5px rgba(15, 23, 42, 0.1), 0 6px 12px -3px rgba(15, 23, 42, 0.05);
      --sidebar-width: 240px;
    }
    body {
      margin: 0;
      padding: 0;
      background-color: var(--app-bg);
      color: var(--app-text-main);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }
    a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
    a:hover { color: var(--app-primary); }

    /* App Shell Layout */
    .app-sidebar {
      width: var(--sidebar-width);
      height: 100vh;
      position: fixed;
      top: 0;
      left: 0;
      background: var(--app-surface);
      border-right: 1px solid var(--app-border);
      display: flex;
      flex-direction: column;
      z-index: 1020;
    }
    .sidebar-brand {
      height: 72px;
      display: flex;
      align-items: center;
      padding: 0 1.25rem;
      border-bottom: 1px solid var(--app-border-light);
    }
    .brand-badge-icon {
      width: 32px;
      height: 32px;
      background: var(--app-primary-grad);
      color: #fff;
      font-weight: 800;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
    }
    .brand-text {
      font-size: 1rem;
      font-weight: 700;
      color: var(--app-text-main);
      margin-left: 0.5rem;
      letter-spacing: -0.3px;
    }
    .sidebar-nav {
      padding: 1.25rem 0.75rem;
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }
    .nav-section-title {
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--app-text-light);
      padding: 0.5rem 0.75rem 0.25rem;
      margin-top: 0.5rem;
    }
    .nav-item-link {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.65rem 0.85rem;
      border-radius: 10px;
      font-size: 0.92rem;
      font-weight: 500;
      color: var(--app-text-muted);
      transition: all 0.2s;
    }
    .nav-item-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
    .nav-item-link:hover {
      background-color: var(--app-primary-light);
      color: var(--app-primary);
    }
    .nav-item-link.active {
      background: var(--app-primary-grad);
      color: #ffffff;
      box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
    }
    .nav-item-link.active svg { stroke: #ffffff; }
    .sidebar-footer {
      padding: 1rem;
      border-top: 1px solid var(--app-border-light);
      background: #fafcff;
    }

    /* Mobile Header */
    .mobile-app-header {
      display: none;
      height: 62px;
      background: var(--app-surface);
      border-bottom: 1px solid var(--app-border);
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1030;
      padding: 0 1rem;
      align-items: center;
      justify-content: space-between;
    }

    /* Main Content */
    .app-main-wrapper {
      margin-left: var(--sidebar-width);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      padding-bottom: 72px;
    }

    /* Component Card */
    .saas-card {
      background: var(--app-surface);
      border: 1px solid var(--app-border);
      border-radius: 14px;
      box-shadow: var(--app-shadow-sm);
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }
    .saas-card:hover {
      box-shadow: var(--app-shadow-md);
      border-color: #cbd5e1;
    }

    /* Badges & Pills */
    .saas-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.35rem 0.85rem;
      font-size: 0.82rem;
      font-weight: 600;
      border-radius: 9999px;
      background-color: var(--app-primary-light);
      color: var(--app-primary);
    }
    .badge-accent {
      background-color: #e0f2fe;
      color: var(--app-accent);
    }
    .badge-time {
      background-color: rgba(15, 23, 42, 0.75);
      color: #ffffff;
      font-size: 0.75rem;
      border-radius: 6px;
      padding: 2px 6px;
    }

    /* Buttons */
    .btn-saas-primary {
      background: var(--app-primary-grad);
      color: #ffffff;
      font-weight: 600;
      padding: 0.65rem 1.4rem;
      border-radius: 10px;
      border: none;
      box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      transition: all 0.2s;
    }
    .btn-saas-primary:hover {
      color: #ffffff;
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    }
    .btn-saas-outline {
      background: #ffffff;
      color: var(--app-text-main);
      font-weight: 600;
      padding: 0.65rem 1.3rem;
      border-radius: 10px;
      border: 1px solid var(--app-border);
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      transition: all 0.2s;
    }
    .btn-saas-outline:hover {
      background-color: #f1f5f9;
      color: var(--app-primary);
      border-color: #cbd5e1;
    }

    /* Category Compact Header */
    .category-header-wrap {
      background: #ffffff;
      border-bottom: 1px solid var(--app-border);
      padding: 2rem 0;
    }
    .breadcrumb-item a { color: var(--app-text-muted); font-size: 0.88rem; }
    .breadcrumb-item.active { color: var(--app-text-main); font-weight: 600; font-size: 0.88rem; }
    .category-h1 {
      font-size: 2rem;
      font-weight: 800;
      letter-spacing: -0.5px;
      color: var(--app-text-main);
      margin-bottom: 0.5rem;
    }

    /* Filter Bar */
    .filter-bar-container {
      background: #ffffff;
      border-bottom: 1px solid var(--app-border-light);
      padding: 1.2rem 0;
    }
    .filter-group-label {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--app-text-muted);
      margin-right: 0.75rem;
      white-space: nowrap;
    }
    .filter-pill {
      font-size: 0.84rem;
      padding: 0.35rem 0.9rem;
      border-radius: 9999px;
      background: var(--app-bg);
      color: var(--app-text-muted);
      border: 1px solid var(--app-border);
      cursor: pointer;
      transition: all 0.15s ease;
      display: inline-block;
      text-decoration: none;
    }
    .filter-pill:hover {
      background: #f1f5f9;
      color: var(--app-text-main);
    }
    .filter-pill.active {
      background: var(--app-primary);
      color: #ffffff;
      border-color: var(--app-primary);
      font-weight: 600;
    }

    /* Video Media Card */
    .media-card {
      position: relative;
      background: #ffffff;
      border: 1px solid var(--app-border);
      border-radius: 12px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .media-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--app-shadow-lg);
      border-color: #cbd5e1;
    }
    .media-poster-box {
      position: relative;
      width: 100%;
      height: 180px;
      background: #1e293b;
      overflow: hidden;
    }
    .media-poster-svg {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.85;
      transition: transform 0.4s ease;
    }
    .media-card:hover .media-poster-svg {
      transform: scale(1.05);
    }
    .media-badge-tag {
      position: absolute;
      top: 10px;
      left: 10px;
      background: rgba(30, 64, 175, 0.9);
      backdrop-filter: blur(4px);
      color: #ffffff;
      font-size: 0.7rem;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 6px;
      letter-spacing: 0.3px;
    }
    .media-badge-time {
      position: absolute;
      bottom: 10px;
      right: 10px;
      background: rgba(15, 23, 42, 0.85);
      color: #ffffff;
      font-size: 0.72rem;
      padding: 2px 7px;
      border-radius: 6px;
      font-family: monospace;
    }
    .media-body {
      padding: 1rem;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    .media-title {
      font-size: 0.98rem;
      font-weight: 700;
      color: var(--app-text-main);
      line-height: 1.45;
      margin-bottom: 0.5rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      min-height: 2.9rem;
    }
    .media-meta {
      font-size: 0.8rem;
      color: var(--app-text-muted);
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: auto;
      padding-top: 0.75rem;
      border-top: 1px solid var(--app-border-light);
    }

    /* Rank List Cards */
    .rank-card {
      background: #ffffff;
      border: 1px solid var(--app-border);
      border-radius: 12px;
      padding: 1.25rem;
      transition: all 0.2s ease;
    }
    .rank-card:hover {
      border-color: #cbd5e1;
      box-shadow: var(--app-shadow-md);
    }
    .rank-num {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 0.9rem;
      flex-shrink: 0;
    }
    .rank-top1 { background: #fee2e2; color: #dc2626; }
    .rank-top2 { background: #fef3c7; color: #d97706; }
    .rank-top3 { background: #e0f2fe; color: #0284c7; }
    .rank-norm { background: #f1f5f9; color: var(--app-text-muted); }

    /* Custom Accordion */
    .accordion-saas .accordion-item {
      background-color: var(--app-surface);
      border: 1px solid var(--app-border);
      border-radius: 12px !important;
      margin-bottom: 0.85rem;
      overflow: hidden;
    }
    .accordion-saas .accordion-button {
      font-weight: 600;
      font-size: 0.98rem;
      color: var(--app-text-main);
      background-color: var(--app-surface);
      padding: 1.15rem 1.25rem;
      box-shadow: none;
    }
    .accordion-saas .accordion-button:not(.collapsed) {
      color: var(--app-primary);
      background-color: var(--app-primary-light);
    }
    .accordion-saas .accordion-body {
      font-size: 0.92rem;
      line-height: 1.7;
      color: var(--app-text-muted);
      padding: 1.25rem;
      border-top: 1px solid var(--app-border-light);
    }

    /* Floating Bar */
    .bottom-floating-bar {
      position: fixed;
      bottom: 0;
      left: var(--sidebar-width);
      right: 0;
      height: 66px;
      background: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(12px);
      border-top: 1px solid var(--app-border);
      box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
      display: flex;
      align-items: center;
      padding: 0 2rem;
      z-index: 1010;
      justify-content: space-between;
    }

    /* Footer */
    .app-footer {
      background-color: #ffffff;
      border-top: 1px solid var(--app-border);
      padding: 3rem 0 2rem;
      margin-top: auto;
    }
    .footer-title {
      font-size: 0.92rem;
      font-weight: 700;
      color: var(--app-text-main);
      margin-bottom: 1rem;
    }
    .footer-link {
      margin-bottom: 0.5rem;
      font-size: 0.85rem;
      color: var(--app-text-muted);
    }
    .footer-link a:hover { color: var(--app-primary); }

    /* Responsive */
    @media (max-width: 991.98px) {
      .app-sidebar { display: none; }
      .mobile-app-header { display: flex; }
      .app-main-wrapper {
        margin-left: 0;
        padding-top: 62px;
      }
      .bottom-floating-bar {
        left: 0;
        padding: 0 1rem;
      }
      .category-h1 { font-size: 1.6rem; }
    }

/* roulang: framework shim */
/* 覆盖 Bootstrap 等对 a/btn 的全局默认，避免导航出现下划线/蓝链 */
.site-header a,.site-header a:hover,.navbar a,.navbar a:hover,.nav-links a,.nav-links a:hover,header nav a,header nav a:hover{text-decoration:none}
.site-header .btn,.navbar .btn,.nav-cta{text-decoration:none}
