﻿:root {
      --primary: #A855F7;
      --secondary: #F472B6;
      --bg-dark: #101828;
      --bg-light: #FAF5FF;
      --text-dark: #111827;
      --text-muted: rgb(75,85,99);
      --accent: #FBCFE8;
      --white: #ffffff;
      --border-color: rgba(15,23,42,0.08);
    }
    
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      color: var(--text-dark);
      background-color: var(--bg-light);
      line-height: 1.6;
    }

    
    .site-header {
      position: sticky;
      top: 0;
      z-index: 900;
      width: 100%;
      background: rgba(255,255,255,0.92);
      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: var(--text-dark);
      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;
    }
    .desktop-nav a {
      display: inline-flex;
      align-items: center;
      min-height: 40px;
      padding: 0 14px;
      border-radius: 999px;
      font-size: 14px;
      font-weight: 600;
      color: var(--text-muted);
      text-decoration: none;
      white-space: nowrap;
      transition: all 0.2s ease;
    }
    .desktop-nav a:hover, .desktop-nav a.active {
      color: var(--primary);
      background: rgba(168,85,247,0.08);
    }
    .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: var(--text-dark);
    }

    
    .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;
      height: 100dvh;
      background: #ffffff;
      color: var(--text-dark);
      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: var(--text-dark);
      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,0.04);
      color: var(--text-dark);
      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(168,85,247,0.12);
      color: #7e22ce;
    }
    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);
    }

    
    .container {
      width: min(1200px, calc(100% - 32px));
      margin: 0 auto;
    }

    .tag-header {
      background: linear-gradient(135deg, #101828 0%, #311042 100%);
      color: var(--white);
      padding: 80px 0;
      text-align: center;
    }
    .tag-header h1 {
      font-size: clamp(24px, 4vw, 36px);
      margin-bottom: 12px;
    }
    .tag-info-bar {
      display: inline-flex;
      background: rgba(255,255,255,0.1);
      padding: 6px 16px;
      border-radius: 999px;
      font-size: 14px;
    }

    .list-wrapper {
      display: grid;
      grid-template-columns: 1fr 320px;
      gap: 32px;
      padding: 60px 0 80px;
    }

    
    .tag-article-list {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }
    .tag-article-card {
      background: var(--white);
      border: 1px solid var(--border-color);
      border-radius: 16px;
      padding: 24px;
      display: flex;
      gap: 20px;
      transition: all 0.25s ease;
    }
    .tag-article-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(168,85,247,0.06);
    }
    .tag-art-img {
      width: 200px;
      height: 120px;
      border-radius: 8px;
      overflow: hidden;
      flex-shrink: 0;
    }
    .tag-art-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .tag-art-content {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .tag-art-content h2 {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 8px;
    }
    .tag-art-content h2 a {
      color: var(--text-dark);
      text-decoration: none;
    }
    .tag-art-content h2 a:hover {
      color: var(--primary);
    }
    .tag-art-summary {
      font-size: 14px;
      color: var(--text-muted);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    
    .pagination {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-top: 48px;
    }
    .pagination a, .pagination span {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 40px;
      height: 40px;
      padding: 0 12px;
      border-radius: 8px;
      text-decoration: none;
      font-size: 14px;
      font-weight: 600;
      background: var(--white);
      color: var(--text-dark);
      border: 1px solid var(--border-color);
    }
    .pagination a:hover {
      background: var(--primary);
      color: var(--white);
    }
    .pagination .active {
      background: var(--primary);
      color: var(--white);
      pointer-events: none;
    }

    
    .sidebar {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }
    .widget {
      background: var(--white);
      border-radius: 16px;
      padding: 24px;
      border: 1px solid var(--border-color);
    }
    .widget-title {
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 16px;
      border-left: 4px solid var(--primary);
      padding-left: 12px;
    }

    
    .site-footer {
      background: #0b0f19;
      color: #94a3b8;
      padding: 80px 0 32px;
      border-top: 1px solid rgba(255,255,255,0.05);
    }
    .footer-top {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 40px;
      margin-bottom: 48px;
    }
    .footer-info p {
      font-size: 14px;
      margin: 16px 0 24px;
      line-height: 1.6;
    }
    .footer-nav-col h4 {
      color: var(--white);
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 20px;
    }
    .footer-nav-col ul {
      list-style: none;
    }
    .footer-nav-col ul li {
      margin-bottom: 12px;
    }
    .footer-nav-col ul li a {
      color: #94a3b8;
      text-decoration: none;
      font-size: 14px;
      transition: color 0.2s;
    }
    .footer-nav-col ul li a:hover {
      color: var(--primary);
    }
    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,0.05);
      padding-top: 32px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
      font-size: 13px;
    }

    @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;
      }
      .list-wrapper {
        grid-template-columns: 1fr;
      }
      .tag-article-card {
        flex-direction: column;
      }
      .tag-art-img {
        width: 100%;
        height: 160px;
      }
    }