﻿:root {
      --primary: rgb(234,67,53);
      --twilight-blue: #4F7CFF;
      --rose-gold: #F59EBC;
      --mist-gray: #f8fafc;
      --dark-bg: #0f172a;
      --text-main: #1e293b;
      --text-muted: #64748b;
      --border-color: rgba(15,23,42,.08);
      --card-bg: #ffffff;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      color: var(--text-main);
      background-color: var(--mist-gray);
      line-height: 1.6;
    }

    a { color: inherit; text-decoration: none; transition: color 0.2s ease; }

    
    .site-header {
      position: sticky; top: 0; z-index: 900; width: 100%;
      background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-color);
    }
    .header-inner {
      width: min(1200px, calc(100% - 32px)); margin: 0 auto; min-height: 72px;
      display: flex; align-items: center; justify-content: space-between; gap: 24px;
    }
    .logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; flex-shrink: 0; }
    .logo img { display: block; height: 40px; width: auto; max-width: 160px; object-fit: contain; flex-shrink: 0; }
    .logo span { display: inline-block; font-size: 18px; font-weight: 800; line-height: 1.2; color: #111827; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
    .desktop-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; }
    .desktop-nav::-webkit-scrollbar { display: none; }
    .desktop-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #334155; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
    .desktop-nav a:hover { background: rgba(79, 124, 255, 0.08); color: var(--twilight-blue); }
    .mobile-menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: rgba(15, 23, 42, 0.08); align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; flex-shrink: 0; }
    .mobile-menu-btn span { display: block; width: 20px; height: 2px; border-radius: 999px; background: #111827; }

    .mobile-nav-mask { position: fixed; inset: 0; z-index: 998; background: rgba(15, 23, 42, 0.54); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.25s ease, visibility 0.25s ease; }
    .mobile-drawer { position: fixed; top: 0; left: 0; z-index: 999; width: min(86vw, 360px); height: 100vh; background: #ffffff; color: #111827; transform: translateX(-105%); transition: transform 0.28s ease; box-shadow: 24px 0 60px rgba(15, 23, 42, 0.22); display: flex; flex-direction: column; overflow: hidden; }
    .drawer-head { min-height: 76px; padding: 18px 18px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
    .drawer-logo img { height: 36px; max-width: 130px; }
    .drawer-logo span { max-width: 150px; font-size: 17px; }
    .drawer-close { width: 40px; height: 40px; border: 0; border-radius: 14px; background: rgba(15, 23, 42, 0.08); color: #111827; font-size: 26px; line-height: 1; cursor: pointer; flex-shrink: 0; }
    .drawer-body { flex: 1; overflow-y: auto; padding: 14px; }
    .drawer-nav { display: flex; flex-direction: column; gap: 8px; }
    .drawer-nav a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 13px 14px; border-radius: 14px; background: rgba(15, 23, 42, 0.04); color: #111827; text-decoration: none; font-size: 15px; font-weight: 700; line-height: 1.35; word-break: break-word; overflow-wrap: anywhere; }
    .drawer-nav a:hover { background: rgba(79, 124, 255, 0.12); color: var(--twilight-blue); }
    body.drawer-open { overflow: hidden; touch-action: none; }
    body.drawer-open .mobile-nav-mask { opacity: 1; visibility: visible; pointer-events: auto; }
    body.drawer-open .mobile-drawer { transform: translateX(0); }

    
    .tag-index-container {
      width: min(1000px, calc(100% - 32px));
      margin: 80px auto;
      background: var(--card-bg);
      border-radius: 32px;
      padding: 48px;
      border: 1px solid var(--border-color);
    }

    .tag-index-container h1 {
      font-size: 28px;
      color: var(--dark-bg);
      margin-bottom: 16px;
    }

    .tag-index-container p.desc {
      color: var(--text-muted);
      font-size: 16px;
      margin-bottom: 40px;
    }

    .tag-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
    }

    .tag-card {
      display: inline-flex;
      align-items: center;
      background: var(--mist-gray);
      border: 1px solid var(--border-color);
      padding: 12px 24px;
      border-radius: 99px;
      font-size: 16px;
      font-weight: 700;
      color: var(--text-main);
    }

    .tag-card:hover {
      background: rgba(79, 124, 255, 0.08);
      color: var(--twilight-blue);
      border-color: rgba(79, 124, 255, 0.2);
    }

    .tag-card-count {
      margin-left: 8px;
      background: rgba(15, 23, 42, 0.06);
      color: var(--text-muted);
      font-size: 12px;
      padding: 2px 8px;
      border-radius: 99px;
    }

    
    .site-footer { width: 100%; background: #0f172a; color: #e5e7eb; overflow: hidden; }
    .footer-inner { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 34px; display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, .8fr)); gap: 28px; align-items: start; }
    .footer-logo span { color: #ffffff; }
    .footer-brand p { margin: 18px 0 0; color: rgba(226, 232, 240, .78); line-height: 1.8; font-size: 14px; max-width: 420px; }
    .footer-column h3 { margin: 0 0 14px; color: #ffffff; font-size: 15px; font-weight: 800; }
    .footer-column ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
    .footer-column li, .footer-column a { color: rgba(226, 232, 240, .78); font-size: 14px; line-height: 1.55; text-decoration: none; word-break: break-word; overflow-wrap: anywhere; }
    .footer-column a:hover { color: #ffffff; }
    .footer-bottom { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 24px; border-top: 1px solid rgba(226, 232, 240, .12); display: flex; align-items: center; justify-content: space-between; gap: 14px; color: rgba(226, 232, 240, .68); font-size: 13px; line-height: 1.6; }

    @media (max-width: 900px) {
      .desktop-nav { display: none !important; }
      .mobile-menu-btn { display: inline-flex !important; }
      .logo img { height: 34px; max-width: 120px; }
      .logo span { font-size: 16px; max-width: 150px; }
      .footer-inner { width: min(100% - 24px, 1200px); grid-template-columns: 1fr 1fr; gap: 24px 18px; padding: 42px 0 28px; }
      .footer-brand { grid-column: 1 / -1; }
      .footer-bottom { width: min(100% - 24px, 1200px); flex-direction: column; align-items: flex-start; }
    }

    @media (max-width: 520px) {
      .tag-index-container { padding: 24px; }
      .mobile-drawer { width: 88vw; }
      .logo span, .drawer-logo span { max-width: 120px; }
      .footer-inner { grid-template-columns: 1fr; }
    }