﻿:root { --user-theme: rgb(250,250,250); --primary: #64748B; --secondary: #06B6D4; --bg-light: #F8FAFC; --bg-dark: #020617; --metal: #E5E7EB; --accent: #0EA5E9; --text-main: #0F172A; --text-muted: #475569; --border-light: rgba(100, 116, 139, 0.15); --font-base: system-ui, -apple-system, sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-base); background-color: var(--bg-light); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }


.site-header { position: sticky; top: 0; z-index: 900; width: 100%; background: rgba(248, 250, 252, 0.92); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(15, 23, 42, 0.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; max-width: 160px; object-fit: contain; }
.logo span { font-size: 18px; font-weight: 800; 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; flex: 1; overflow-x: auto; scrollbar-width: none; }
.desktop-nav::-webkit-scrollbar { display: none; }
.desktop-nav a { padding: 0 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 14px; font-weight: 600; color: #334155; }
.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: 99px; background: #111827; }
.mobile-nav-mask { position: fixed; inset: 0; z-index: 998; background: rgba(15, 23, 42, 0.54); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.mobile-drawer { position: fixed; top: 0; left: 0; z-index: 999; width: min(86vw, 360px); height: 100vh; background: #ffffff; color: #111827; transform: translateX(-105%); transition: transform .28s ease; display: flex; flex-direction: column; }
.drawer-head { min-height: 76px; padding: 18px 18px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(15, 23, 42, 0.08); }
.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); font-size: 26px; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; 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: #111827; font-size: 15px; font-weight: 700; }
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); }

.site-footer { width: 100%; background: #0f172a; color: #e5e7eb; overflow: hidden; margin-top: 60px;}
.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; }
.footer-logo span { color: #ffffff; }
.footer-brand p { margin: 18px 0 0; color: rgba(226, 232, 240, 0.78); 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; display: flex; flex-direction: column; gap: 10px; }
.footer-column a { color: rgba(226, 232, 240, 0.78); font-size: 14px; }
.footer-bottom { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 24px; border-top: 1px solid rgba(226, 232, 240, 0.12); display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(226, 232, 240, 0.68); }

@media (max-width: 900px) {
  .header-inner { width: min(100% - 24px, 1200px); min-height: 64px; }
  .desktop-nav { display: none !important; }
  .mobile-menu-btn { display: inline-flex !important; }
  .footer-inner { width: min(100% - 24px, 1200px); grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { width: min(100% - 24px, 1200px); flex-direction: column; align-items: flex-start; }
}


.page-header { background: var(--bg-dark); color: #fff; padding: 80px 20px; text-align: center; }
.page-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
.page-desc { color: rgba(229, 231, 235, 0.8); max-width: 700px; margin: 0 auto; font-size: 1.1rem; }

.tag-cloud-container { width: min(1000px, calc(100% - 32px)); margin: 60px auto; background: #fff; padding: 40px; border-radius: 16px; border: 1px solid var(--border-light); box-shadow: 0 4px 20px rgba(15,23,42,0.02); }
.tag-cloud-intro { text-align: center; margin-bottom: 30px; color: var(--text-muted); font-size: 1.1rem; }
.tag-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.tag-item { display: inline-flex; align-items: center; padding: 10px 20px; background: rgba(100, 116, 139, 0.08); border: 1px solid rgba(100, 116, 139, 0.1); border-radius: 999px; font-weight: 600; color: var(--text-main); font-size: 0.95rem; transition: all 0.3s; }
.tag-item span { display: inline-block; margin-left: 8px; background: #fff; color: var(--primary); padding: 2px 8px; border-radius: 10px; font-size: 0.8rem; border: 1px solid var(--border-light); }
.tag-item:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }