﻿:root {
      --primary-color: rgb(17, 24, 39);
      --primary-hover: #1f2937;
      --accent-color: #e11d48;
      --accent-light: #fff1f2;
      --bg-main: #f8fafc;
      --bg-card: #ffffff;
      --text-main: #111827;
      --text-muted: #6b7280;
      --border-color: #e5e7eb;
      --radius: 8px;
    }
    * { 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-main); color: var(--text-main); line-height: 1.6; }
    a { color: inherit; text-decoration: none; transition: color 0.2s, background-color 0.2s; }
    a:hover { color: var(--accent-color); }
    img { max-width: 100%; height: auto; display: block; }
    .container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
    
    
    .site-header { background-color: var(--primary-color); color: #ffffff; sticky: top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
    .header-container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
    .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: #ffffff; white-space: nowrap; }
    .desktop-nav { display: flex; gap: 4px; align-items: center; }
    .desktop-nav a { padding: 8px 16px; font-size: 15px; font-weight: 500; color: #e5e7eb; border-radius: 4px; }
    .desktop-nav a:hover { background-color: rgba(255,255,255,0.1); color: #ffffff; }
    .mobile-toggle { display: none; background: none; border: none; color: #ffffff; cursor: pointer; padding: 6px; }
    
    
    .mobile-drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 998; opacity: 0; transition: opacity 0.3s; }
    .mobile-drawer-overlay.active { display: block; opacity: 1; }
    .mobile-drawer { position: fixed; top: 0; left: -280px; width: 280px; height: 100%; background: #ffffff; z-index: 999; transition: left 0.3s ease; display: flex; flex-direction: column; box-shadow: 4px 0 16px rgba(0,0,0,0.2); }
    .mobile-drawer.active { left: 0; }
    .drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: var(--primary-color); color: #ffffff; }
    .drawer-close { background: none; border: none; color: #ffffff; font-size: 24px; cursor: pointer; }
    .drawer-nav { display: flex; flex-direction: column; padding: 16px 0; overflow-y: auto; }
    .drawer-nav a { padding: 12px 24px; font-size: 16px; color: var(--text-main); border-bottom: 1px solid var(--border-color); }
    .drawer-nav a:hover { background: var(--accent-light); color: var(--accent-color); }

    
    .portal-notice-bar { background: #ffffff; border-bottom: 1px solid var(--border-color); padding: 16px 0; margin-bottom: 24px; }
    .notice-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
    .notice-info { display: flex; align-items: center; gap: 12px; }
    .notice-badge { background: var(--accent-color); color: #ffffff; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
    .notice-text { font-size: 14px; color: var(--text-muted); }
    .notice-text strong { color: var(--text-main); }
    .custom-banner-slot { margin-top: 12px; width: 100%; }

    
    .portal-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin-bottom: 40px; }
    
    
    .section-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 20px; }
    .section-header h2 { font-size: 20px; font-weight: 800; color: var(--primary-color); display: flex; align-items: center; gap: 8px; }
    .section-header h2::before { content: ""; display: inline-block; width: 4px; height: 18px; background: var(--accent-color); border-radius: 2px; }

    
    .post-list { display: flex; flex-direction: column; gap: 20px; }
    .post-card { display: flex; gap: 20px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 16px; transition: transform 0.2s, box-shadow 0.2s; }
    .post-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.06); }
    .post-thumb { width: 220px; height: 140px; flex-shrink: 0; overflow: hidden; border-radius: 6px; background-color: #e5e7eb; }
    .post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
    .post-card:hover .post-thumb img { transform: scale(1.05); }
    .post-body { display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
    .post-meta { display: flex; items-center; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; flex-wrap: wrap; }
    .post-meta span { display: flex; align-items: center; gap: 4px; }
    .post-meta .tag-badge { background: var(--accent-light); color: var(--accent-color); padding: 2px 6px; border-radius: 4px; font-weight: 600; }
    .post-title { font-size: 18px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; line-height: 1.4; }
    .post-title a:hover { color: var(--accent-color); }
    .post-summary { font-size: 14px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
    .post-footer { display: flex; justify-content: flex-end; }
    .read-more { font-size: 13px; font-weight: 600; color: var(--accent-color); display: inline-flex; align-items: center; gap: 4px; }

    
    .sidebar { display: flex; flex-direction: column; gap: 24px; }
    .widget { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; }
    .widget-title { font-size: 16px; font-weight: 700; color: var(--primary-color); border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
    .widget-title::after { content: ""; display: block; width: 30px; height: 2px; background: var(--accent-color); }
    
    .hot-list { display: flex; flex-direction: column; gap: 14px; }
    .hot-item { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; }
    .hot-rank { font-size: 14px; font-weight: 800; color: var(--text-muted); width: 24px; height: 24px; background: #f1f5f9; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .hot-item:nth-child(-n+3) .hot-rank { background: var(--accent-color); color: #ffffff; }
    .hot-content { flex: 1; }
    .hot-title { font-size: 14px; font-weight: 600; color: var(--text-main); line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .hot-info { font-size: 11px; color: var(--text-muted); }

    .tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
    .tag-item { font-size: 12px; background: #f1f5f9; color: var(--text-main); padding: 6px 12px; border-radius: 20px; transition: all 0.2s; }
    .tag-item:hover { background: var(--primary-color); color: #ffffff; }

    .portal-cta-box { background: linear-gradient(135deg, var(--primary-color), #1f2937); color: #ffffff; border-radius: var(--radius); padding: 20px; text-align: center; }
    .portal-cta-box h3 { font-size: 16px; margin-bottom: 8px; }
    .portal-cta-box p { font-size: 12px; color: #9ca3af; margin-bottom: 16px; }
    .btn-cta { display: inline-block; background: var(--accent-color); color: #ffffff; font-size: 14px; font-weight: 600; padding: 8px 18px; border-radius: 4px; }
    .btn-cta:hover { background: #be123c; color: #ffffff; }

    
    .site-footer { background-color: var(--primary-color); color: #9ca3af; padding-top: 48px; padding-bottom: 24px; margin-top: 40px; border-top: 1px solid #374151; }
    .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 32px; margin-bottom: 32px; }
    .footer-brand .logo span { color: #ffffff; }
    .brand-desc { font-size: 13px; line-height: 1.7; margin-top: 16px; color: #9ca3af; }
    .footer-title { font-size: 16px; font-weight: 700; color: #ffffff; margin-bottom: 16px; }
    .footer-menu { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
    .footer-menu a { color: #9ca3af; }
    .footer-menu a:hover { color: #ffffff; }
    .footer-contact-col p { font-size: 13px; margin-bottom: 8px; }

    .friend-links { border-top: 1px solid #374151; border-bottom: 1px solid #374151; padding: 16px 0; margin-bottom: 24px; }
    .friend-title { font-size: 14px; font-weight: 700; color: #ffffff; margin-bottom: 8px; }
    .friend-content { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; }
    .friend-content a { color: #9ca3af; }
    .friend-content a:hover { color: var(--accent-color); }

    .footer-bottom { text-align: center; font-size: 13px; color: #6b7280; }
    .footer-bottom a { color: #9ca3af; }

    @media (max-width: 992px) {
      .portal-grid { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 768px) {
      .desktop-nav { display: none; }
      .mobile-toggle { display: block; }
      .post-card { flex-direction: column; }
      .post-thumb { width: 100%; height: 180px; }
      .footer-grid { grid-template-columns: 1fr; }
    }