﻿:root {
      --primary-color: rgb(59,130,246);
      --primary-light: rgba(59,130,246,0.1);
      --text-main: #1e293b;
      --text-muted: #64748b;
      --bg-global: #f8fafc;
      --border-color: rgba(15,23,42,0.08);
      --shadow-md: 0 10px 30px rgba(15,23,42,0.06);
      --radius-md: 16px;
      --radius-lg: 24px;
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--text-main); background-color: var(--bg-global); line-height: 1.6; }
    a { color: inherit; text-decoration: none; transition: all 0.25s ease; }

    
    .site-header{
      position:sticky;
      top:0;
      z-index:900;
      width:100%;
      background:rgba(255,255,255,.92);
      backdrop-filter:blur(16px);
      -webkit-backdrop-filter:blur(16px);
      border-bottom:1px solid rgba(15,23,42,.08);
    }
    .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: var(--primary-light); color: var(--primary-color); }
    .mobile-menu-btn{ display:none; width:44px; height:44px; border:0; border-radius:14px; background:rgba(15,23,42,.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:99px; background:#111827; }

    
    .mobile-nav-mask{ position:fixed; inset:0; z-index:998; background:rgba(15,23,42,.54); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .25s ease, visibility .25s ease; }
    .mobile-drawer{ position:fixed; top:0; left:0; z-index:999; width:min(86vw, 360px); height:100vh; height:100dvh; background:#ffffff; color:#111827; transform:translateX(-105%); transition:transform .28s ease; box-shadow:24px 0 60px rgba(15,23,42,.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 rgba(15,23,42,.08); 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,.08); color:#111827; font-size:26px; line-height:1; cursor:pointer; flex-shrink:0; }
    .drawer-body{ flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; 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,.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(59,130,246,.12); color: var(--primary-color); }
    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-hero {
      background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
      color: #fff;
      padding: 60px 0;
      text-align: center;
    }
    .tag-index-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
    .tag-index-hero p { font-size: 15px; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }

    .tag-index-container { width: min(1000px, calc(100% - 32px)); margin: 60px auto; }
    .tag-wrapper-box { background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 50px 40px; box-shadow: var(--shadow-md); }
    .tag-intro-text { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 40px; text-align: center; }
    
    .large-tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
    .large-tag-cloud a {
      font-size: 14px;
      font-weight: 600;
      background: var(--bg-global);
      border: 1px solid var(--border-color);
      padding: 10px 20px;
      border-radius: 99px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .large-tag-cloud a:hover {
      background: var(--primary-color);
      color: #fff;
      border-color: var(--primary-color);
      transform: translateY(-2px);
    }
    .large-tag-cloud a span { font-size: 11px; background: rgba(15,23,42,0.1); color: var(--text-muted); padding: 2px 8px; border-radius: 99px; }
    .large-tag-cloud a:hover span { background: rgba(255,255,255,0.2); color: #fff; }

    
    .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){
      .header-inner{ width:min(100% - 24px, 1200px); min-height:64px; gap:12px; }
      .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; }
    }