﻿:root {
      --primary-color: rgb(12,113,195);
      --primary-hover: #0a5fa3;
      --text-main: #334155;
      --bg-light: #F8FAFC;
    }
    
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      color: var(--text-main);
      background-color: #ffffff;
      line-height: 1.6;
      overflow-x: hidden;
    }

    
    .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: rgba(12,113,195, 0.08);
      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:999px;
      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(12,113,195,.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);
    }

    
    .article-container {
      width: min(1200px, calc(100% - 32px));
      margin: 40px auto;
      display: grid;
      grid-template-columns: 2.6fr 1fr;
      gap: 40px;
    }
    .article-main {
      background: #ffffff;
      border: 1px solid rgba(15,23,42,0.06);
      border-radius: 20px;
      padding: 40px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.01);
    }
    .breadcrumb {
      font-size: 14px;
      color: #64748b;
      margin-bottom: 24px;
    }
    .breadcrumb a {
      color: var(--primary-color);
      text-decoration: none;
    }
    .post-title {
      font-size: clamp(22px, 4vw, 34px);
      font-weight: 850;
      color: #111827;
      line-height: 1.35;
      margin-bottom: 18px;
    }
    .post-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 16px;
      font-size: 13.5px;
      color: #64748b;
      padding-bottom: 24px;
      border-bottom: 1px solid #f1f5f9;
      margin-bottom: 30px;
    }
    .post-author {
      font-weight: 700;
      color: #111827;
    }
    .post-content {
      font-size: 16px;
      line-height: 1.8;
      color: #334155;
    }
    .post-content p {
      margin-bottom: 24px;
    }
    .post-content img {
      max-width: 100%;
      border-radius: 12px;
      margin: 12px 0;
    }

    
    .post-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 40px 0 24px;
      padding-top: 24px;
      border-top: 1px solid #f1f5f9;
    }
    .tag-link {
      background: rgba(12,113,195,0.06);
      color: var(--primary-color);
      padding: 4px 12px;
      border-radius: 8px;
      font-size: 13.5px;
      text-decoration: none;
      font-weight: 600;
    }

    
    .prev-next-links {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-top: 40px;
      padding-top: 30px;
      border-top: 1px solid #f1f5f9;
    }
    .pn-card {
      text-decoration: none;
      color: var(--text-main);
      display: block;
    }
    .pn-label {
      font-size: 12px;
      color: #64748b;
      text-transform: uppercase;
      font-weight: 700;
      margin-bottom: 6px;
    }
    .pn-title {
      font-size: 14.5px;
      font-weight: 700;
      color: #111827;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .pn-card:hover .pn-title {
      color: var(--primary-color);
    }

    
    .related-section {
      margin-top: 50px;
    }
    .related-title {
      font-size: 20px;
      font-weight: 800;
      color: #111827;
      margin-bottom: 24px;
    }
    .related-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 20px;
    }
    .related-card {
      background: #ffffff;
      border: 1px solid rgba(15,23,42,0.06);
      border-radius: 12px;
      padding: 16px;
      text-decoration: none;
      color: var(--text-main);
      display: block;
      transition: transform 0.2s ease;
    }
    .related-card:hover {
      transform: translateY(-2px);
    }
    .related-card-title {
      font-size: 14.5px;
      font-weight: 700;
      color: #111827;
      line-height: 1.4;
      margin-bottom: 8px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .related-card-time {
      font-size: 12px;
      color: #64748b;
    }

    
    .sidebar {
      display: flex;
      flex-direction: column;
      gap: 30px;
    }
    .widget {
      background: #ffffff;
      border: 1px solid rgba(15,23,42,0.06);
      border-radius: 16px;
      padding: 24px;
    }
    .widget-title {
      font-size: 16px;
      font-weight: 800;
      color: #111827;
      margin-bottom: 16px;
      border-left: 4px solid var(--primary-color);
      padding-left: 12px;
    }
    .widget-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .widget-list li a {
      font-size: 14.5px;
      color: var(--text-main);
      text-decoration: none;
      font-weight: 600;
      display: block;
      line-height: 1.4;
    }
    .widget-list li a:hover {
      color: var(--primary-color);
    }

    
    .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;
      }
      .article-container {
        grid-template-columns: 1fr;
        gap: 30px;
      }
      .article-main {
        padding: 24px;
      }
      .prev-next-links {
        grid-template-columns: 1fr;
        gap: 16px;
      }
    }

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