﻿:root {
      --primary-color: rgb(255, 149, 0);
      --primary-hover: rgb(230, 135, 0);
      --bg-color: #f7f9fa;
      --card-bg: #ffffff;
      --text-main: #2c3e50;
      --text-muted: #7f8c8d;
      --border-color: #ebedf0;
      --max-width: 1200px;
    }
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      background-color: var(--bg-color);
      color: var(--text-main);
      line-height: 1.6;
    }
    a {
      color: inherit;
      text-decoration: none;
      transition: color 0.3s;
    }
    a:hover {
      color: var(--primary-color);
    }
    img {
      max-width: 100%;
      height: auto;
      display: block;
    }
    .container {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 20px;
    }
    
    
    .header {
      background-color: #fff;
      border-bottom: 1px solid var(--border-color);
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    .header-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 70px;
    }
    .logo {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
    }
    .logo img {
      display: block;
      height: 40px;
      width: auto;
      max-width: 160px;
      object-fit: contain;
      flex-shrink: 0;
    }
    .logo span {
      display: inline-block;
      font-size: 20px;
      font-weight: 800;
      line-height: 1;
      color: #111;
      white-space: nowrap;
    }
    .nav-list {
      display: flex;
      gap: 24px;
      list-style: none;
      align-items: center;
    }
    .nav-list a {
      font-weight: 500;
      font-size: 15px;
      padding: 8px 4px;
      border-bottom: 2px solid transparent;
    }
    .nav-list a:hover {
      border-bottom-color: var(--primary-color);
    }
    .menu-toggle {
      display: none;
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
      color: var(--text-main);
    }

    
    .drawer-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      z-index: 9998;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }
    .drawer-overlay.active {
      opacity: 1;
      visibility: visible;
    }
    .drawer {
      position: fixed;
      top: 0;
      left: -280px;
      width: 280px;
      height: 100%;
      background: #fff;
      z-index: 9999;
      box-shadow: 4px 0 12px rgba(0,0,0,0.15);
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      padding: 20px;
    }
    .drawer.active {
      left: 0;
    }
    .drawer-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 30px;
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 15px;
    }
    .drawer-close {
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
    }
    .drawer-nav {
      display: flex;
      flex-direction: column;
      gap: 20px;
      overflow-y: auto;
    }
    .drawer-nav a {
      font-size: 16px;
      font-weight: 500;
      padding: 5px 0;
    }

    
    .archive-header {
      background: #fff;
      border-bottom: 1px solid var(--border-color);
      padding: 30px 0;
      margin-bottom: 30px;
    }
    .breadcrumb {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 10px;
    }
    .breadcrumb a {
      color: var(--text-muted);
    }
    .breadcrumb a:hover {
      color: var(--primary-color);
    }
    .archive-title {
      font-size: 26px;
      font-weight: 800;
    }

    .main-grid {
      display: grid;
      grid-template-columns: 1fr 340px;
      gap: 30px;
      margin-bottom: 40px;
    }

    
    .post-list {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .post-card {
      background: var(--card-bg);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0,0,0,0.02);
      border: 1px solid var(--border-color);
      display: flex;
      transition: transform 0.3s, box-shadow 0.3s;
    }
    .post-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    }
    .post-thumb {
      width: 240px;
      min-width: 240px;
      position: relative;
      overflow: hidden;
      background-color: #eaeaea;
    }
    .post-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s;
    }
    .post-card:hover .post-thumb img {
      transform: scale(1.05);
    }
    .post-body {
      padding: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      flex-grow: 1;
    }
    .post-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 10px;
    }
    .post-meta a {
      color: var(--primary-color);
    }
    .post-card h2 {
      font-size: 18px;
      font-weight: 700;
      line-height: 1.4;
      margin-bottom: 10px;
    }
    .post-summary {
      font-size: 14px;
      color: var(--text-muted);
      margin-bottom: 15px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .post-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .read-more {
      font-size: 14px;
      font-weight: 600;
      color: var(--primary-color);
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    
    .pagination {
      margin-top: 40px;
      display: flex;
      justify-content: center;
      gap: 8px;
    }
    .pagination a, .pagination span {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 40px;
      height: 40px;
      padding: 0 10px;
      border-radius: 6px;
      background: #fff;
      border: 1px solid var(--border-color);
      font-weight: 600;
      font-size: 14px;
      transition: all 0.3s;
    }
    .pagination a:hover {
      background: var(--primary-color);
      color: #fff;
      border-color: var(--primary-color);
    }
    .pagination .active {
      background: var(--primary-color);
      color: #fff;
      border-color: var(--primary-color);
    }
    .pagination .disabled {
      background: #f7f9fa;
      color: #ccc;
      border-color: var(--border-color);
      cursor: not-allowed;
    }

    
    .sidebar {
      display: flex;
      flex-direction: column;
      gap: 30px;
    }
    .sidebar-widget {
      background: var(--card-bg);
      border-radius: 12px;
      padding: 24px;
      border: 1px solid var(--border-color);
      box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    }
    .widget-title {
      font-size: 16px;
      font-weight: 800;
      margin-bottom: 18px;
      border-bottom: 2px solid var(--border-color);
      padding-bottom: 10px;
      position: relative;
    }
    .widget-title::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 40px;
      height: 2px;
      background-color: var(--primary-color);
    }
    .hot-list {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    .hot-item {
      display: flex;
      gap: 12px;
      align-items: flex-start;
    }
    .hot-rank {
      width: 22px;
      height: 22px;
      background: #f0f0f0;
      color: #666;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 700;
      flex-shrink: 0;
    }
    .hot-item:nth-child(1) .hot-rank { background: #ff4757; color: #fff; }
    .hot-item:nth-child(2) .hot-rank { background: var(--primary-color); color: #fff; }
    .hot-item:nth-child(3) .hot-rank { background: #ffa502; color: #fff; }
    .hot-info h3 {
      font-size: 14px;
      font-weight: 600;
      line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .hot-meta {
      font-size: 11px;
      color: var(--text-muted);
    }
    .tag-cloud {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .tag-cloud a {
      background: #f1f2f6;
      padding: 6px 12px;
      border-radius: 4px;
      font-size: 13px;
      color: #57606f;
      transition: all 0.3s;
    }
    .tag-cloud a:hover {
      background: var(--primary-color);
      color: #fff;
    }

    
    .footer {
      background-color: #1a1a1a;
      color: #999;
      padding: 50px 0 20px;
      font-size: 14px;
    }
    .footer-top {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1.5fr;
      gap: 40px;
      border-bottom: 1px solid #2d2d2d;
      padding-bottom: 40px;
    }
    .footer-col {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    .footer-col h4 {
      color: #fff;
      font-size: 16px;
      font-weight: 700;
    }
    .footer-col ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .footer-col ul a {
      color: #999;
    }
    .footer-col ul a:hover {
      color: #fff;
    }
    .footer-about .logo {
      margin-bottom: 15px;
    }
    .footer-about .logo span {
      color: #fff;
    }
    .footer-contact p {
      margin-bottom: 8px;
    }

    
    .friend-links {
      padding: 20px 0;
      border-bottom: 1px solid #2d2d2d;
    }
    .friend-title {
      font-weight: 700;
      color: #fff;
      margin-bottom: 12px;
      font-size: 14px;
    }
    .friend-content {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
    }
    .friend-content a {
      color: #888;
      font-size: 13px;
    }
    .friend-content a:hover {
      color: var(--primary-color);
    }

    .footer-bottom {
      padding-top: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 15px;
      font-size: 13px;
    }

    @media (max-width: 992px) {
      .main-grid {
        grid-template-columns: 1fr;
      }
      .nav-list {
        display: none;
      }
      .menu-toggle {
        display: block;
      }
      .footer-top {
        grid-template-columns: 1fr 1fr;
      }
    }
    @media (max-width: 600px) {
      .post-card {
        flex-direction: column;
      }
      .post-thumb {
        width: 100%;
        height: 180px;
      }
      .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
      }
      .footer-bottom {
        flex-direction: column;
        text-align: center;
      }
    }