@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Noto+Sans+SC:wght@400;500;600;700;800;900&family=Noto+Serif+SC:wght@400;500;700&display=swap');

:root {
  --navy: #0a1f3d;
  --navy-light: #0c1f3d;
  --navy-dark: #06122a;
  --red: #e63946;
  --red-light: #fff1f2;
  --amber: #f59e0b;
  --green: #16a34a;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --text: #1f2328;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-light: #8a93a0;
  --border: #f0f2f5;
  --border-light: #f5f6f8;
  --bg: #f3f4f6;
  --bg-card: #fff;
  --bg-hover: #fafbfc;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(20,30,50,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: 'Noto Sans SC', 'PingFang SC', sans-serif; background: #e9ecf2; color: var(--text); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }
ul { list-style: none; }
img { max-width: 100%; }

.mono { font-family: 'JetBrains Mono', monospace; }
.serif { font-family: 'Noto Serif SC', 'PingFang SC', serif; }
.container { max-width: 1280px; margin: 0 auto; }
.page-wrap { background: var(--bg); border-radius: 8px; padding: 16px; }

/* ===== Top Bar ===== */
.top-bar {
  background: var(--navy-dark); color: rgba(255,255,255,0.55); padding: 6px 24px;
  display: flex; justify-content: space-between; align-items: center; font-size: 11px;
  border-radius: 8px 8px 0 0;
}
.top-bar-left { display: flex; align-items: center; gap: 14px; }
.top-bar-weather {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px;
  background: rgba(255,255,255,0.06); border-radius: 3px;
}
.top-bar-right { display: flex; gap: 16px; opacity: 0.75; font-size: 11px; }
.top-bar-right span { cursor: pointer; }

/* ===== Header / Nav ===== */
.site-header {
  background: linear-gradient(180deg, var(--navy-light) 0%, #091830 100%);
  padding: 14px 24px; display: flex; align-items: center; gap: 24px;
  border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 100;
  overflow: visible;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 42px; height: 34px; background: var(--red); color: #fff;
  font-weight: 900; font-size: 10px; letter-spacing: 0.05em;
  display: flex; align-items: center; justify-content: center; flex-direction: column; line-height: 1.05;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%, 0 78%);
}
.logo-text { font-size: 19px; font-weight: 900; letter-spacing: 0.08em; color: #fff; }
.logo-sub { font-size: 9px; color: rgba(255,255,255,0.55); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 1px; }

.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; height: 36px; }
.main-nav a {
  padding: 0 14px; height: 100%; display: flex; align-items: center;
  font-size: 14px; color: rgba(255,255,255,0.78); position: relative; cursor: pointer;
  transition: color 0.15s;
}
.main-nav a:hover { color: #fff !important; }
.main-nav a.active { color: #fff; font-weight: 700; }
.main-nav a.active::after {
  content: ''; position: absolute; left: 20%; right: 20%; bottom: -14px;
  height: 3px; background: var(--red);
}

.header-search {
  display: flex; align-items: center; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
  height: 34px; padding: 0 14px; width: 200px; flex-shrink: 0;
}
.header-search svg { margin-right: 8px; }
.header-search span { color: rgba(255,255,255,0.5); font-size: 12px; }

.header-user {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px;
  border-radius: 999px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14); flex-shrink: 0;
  position: relative; cursor: pointer;
}
.header-user:hover { background: rgba(255,255,255,0.15); }
.header-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--red));
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.header-dropdown {
  display: none; position: absolute; top: 100%; right: 0; padding-top: 8px;
  z-index: 9999; flex-direction: column;
}
.header-dropdown-inner {
  background: #fff; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  width: 170px; padding: 6px 0; position: relative;
}
.header-dropdown-inner::before {
  content: ''; position: absolute; top: -6px; right: 16px;
  width: 12px; height: 12px; background: #fff; transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(0,0,0,0.04);
}
.header-user:hover .header-dropdown { display: flex; }
.header-dropdown-inner a {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  font-size: 13px; color: var(--text); transition: background 0.15s;
  white-space: nowrap;
}
.header-dropdown-inner a:hover { background: var(--bg); }
.header-dropdown-inner a .dd-icon {
  width: 26px; height: 26px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0;
}
.header-dropdown-inner .dd-divider { height: 1px; background: var(--border); margin: 4px 0; }
.header-dropdown-inner a.dd-logout { color: var(--red); }
.header-dropdown-inner a.dd-logout .dd-icon { background: var(--red-light); }

/* ===== AI Bar ===== */
.ai-bar {
  background: var(--navy); padding: 18px 24px;
  display: grid; grid-template-columns: 200px 1fr 280px; gap: 18px; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08); position: relative; overflow: hidden;
}
.ai-bar-greeting .label { font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 0.18em; margin-bottom: 6px; }
.ai-bar-greeting .title { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: 0.02em; line-height: 1.3; }
.ai-bar-greeting .subtitle { color: rgba(255,255,255,0.6); font-weight: 400; font-size: 13px; }

.ai-bar-search {
  display: flex; align-items: center; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 0 16px; height: 48px;
}
.ai-badge {
  width: 28px; height: 28px; border-radius: 6px; background: var(--red);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; margin-right: 12px; flex-shrink: 0;
}
.ai-bar-search .placeholder { color: rgba(255,255,255,0.55); font-size: 14px; flex: 1; }
.ai-bar-search .tags { display: flex; gap: 6px; flex-shrink: 0; }
.ai-bar-search .tag {
  font-size: 11px; padding: 4px 10px; border-radius: 3px; font-weight: 500;
}
.ai-bar-search .tag--hot { background: rgba(230,57,70,0.15); color: #f97c84; }
.ai-bar-search .tag--normal { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); }

.ai-bar-right { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.ai-bar-radio {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
}
.ai-bar-radio .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.ai-bar-radio .text { font-size: 12px; color: rgba(255,255,255,0.85); font-weight: 500; }
.ai-bar-radio .time { font-size: 10px; color: rgba(255,255,255,0.5); }
.ai-bar-date { font-size: 10px; color: rgba(255,255,255,0.45); letter-spacing: 0.1em; text-align: right; line-height: 1.4; }

/* ===== Three Column Layout ===== */
.three-col {
  padding: 14px 24px 0;
  display: grid; grid-template-columns: 220px 1fr 280px; gap: 18px;
}

/* ===== Sidebar Card ===== */
.card {
  background: var(--bg-card); border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--navy);
}
.card-title::before { content: ''; width: 3px; height: 13px; background: var(--red); display: block; }
.card-badge { font-size: 9px; color: var(--text-light); letter-spacing: 0.08em; }

.section-label {
  padding: 12px 14px 8px; font-size: 12px; font-weight: 700; color: var(--text);
  letter-spacing: 0.06em; display: flex; align-items: center;
}
.section-label::before {
  content: ''; display: inline-block; width: 12px; height: 2px;
  background: var(--red); margin-right: 6px;
}

/* ===== City Widget ===== */
.city-header {
  background: var(--navy); color: #fff; padding: 14px 14px 12px;
}
.city-header .label { font-size: 10px; color: rgba(255,255,255,0.55); letter-spacing: 0.18em; margin-bottom: 4px; }
.city-header .name { font-size: 19px; font-weight: 800; letter-spacing: 0.04em; }
.city-header .code { font-size: 11px; color: rgba(255,255,255,0.5); margin-left: 8px; }
.city-header .temp { font-size: 30px; font-weight: 700; margin-top: 10px; }
.city-header .weather-text { font-size: 12px; color: rgba(255,255,255,0.7); margin-left: 8px; }

.city-tabs { padding: 10px 12px; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 5px; }
.city-tab {
  padding: 4px 9px; font-size: 11px; border-radius: 3px;
  background: var(--bg); color: var(--text-secondary); cursor: pointer;
}
.city-tab.active { background: var(--navy); color: #fff; font-weight: 600; }

.local-item {
  padding: 8px 14px; font-size: 12px; color: #3a4150; line-height: 1.5;
  border-top: 1px solid var(--border-light); cursor: pointer;
}
.local-item:hover { background: var(--bg-hover); }
.local-item .time { font-size: 10px; color: var(--text-light); margin-top: 3px; }

/* ===== Quick Links ===== */
.quick-link {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  font-size: 12px; color: #3a4150; cursor: pointer; transition: background 0.15s;
}
.quick-link:hover { background: var(--bg-hover); }
.quick-link-icon {
  width: 22px; height: 22px; border-radius: 4px;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.quick-link .count { font-size: 10px; color: var(--text-light); margin-left: auto; }

.tool-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; font-size: 12px; color: #3a4150; cursor: pointer;
  transition: background 0.15s;
}
.tool-row:hover { background: var(--bg-hover); }
.tool-row + .tool-row { border-top: 1px solid var(--border-light); }
.tool-row .value { font-weight: 700; font-size: 12px; }

/* ===== Hero Banner ===== */
.hero {
  position: relative; height: 280px; border-radius: 10px; overflow: hidden;
  background: var(--navy); box-shadow: var(--shadow-md);
}
.hero-slides { position:absolute; inset:0; }
.hero-slide { position:absolute; inset:0; opacity:0; transition:opacity 0.6s ease; pointer-events:none; }
.hero-slide.active { opacity:1; pointer-events:auto; }
.hero-inner { position: absolute; inset: 0; display: flex; }
.hero-visual {
  width: 55%; height: 100%; position: relative; overflow: hidden;
  background: radial-gradient(circle at 25% 30%, rgba(59,130,246,0.45), transparent 55%),
              radial-gradient(circle at 80% 70%, rgba(139,92,246,0.45), transparent 55%),
              linear-gradient(135deg, var(--navy) 0%, #1a1740 100%);
}
.hero-content {
  flex: 1; background: #fff; padding: 36px 36px 28px 32px;
  display: flex; flex-direction: column; justify-content: space-between; position: relative;
}
.hero-counter { position: absolute; right: 24px; top: 18px; font-size: 11px; color: #b9c0c9; letter-spacing: 0.1em; }
.hero-tags { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px;
  font-size: 11px; font-weight: 700; border-radius: 3px; letter-spacing: 0.04em;
}
.hero-tag--featured { background: var(--red-light); color: var(--red); }
.hero-tag--ai { background: rgba(230,57,70,0.08); color: var(--red); font-size: 10px; }
.hero h2 { font-size: 26px; line-height: 1.35; font-weight: 800; color: var(--text); cursor: pointer; }
.hero h2:hover { color: var(--red); }
.hero p { font-size: 14px; line-height: 1.7; color: var(--text-secondary); margin-top: 12px; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 18px;
  background: var(--text); color: #fff; font-size: 13px; font-weight: 600; border-radius: 4px;
  transition: background 0.15s;
}
.hero-btn:hover { background: var(--red); }

.hero-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.85);
  color: var(--text); display: flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); z-index: 5;
  transition: background 0.15s;
}
.hero-nav-btn:hover { background: #fff; }
.hero-nav-btn--prev { left: 14px; }
.hero-nav-btn--next { right: 14px; }

.hero-dots {
  position: absolute; bottom: 14px; right: 24px; display: flex; gap: 6px;
}
.hero-dot { height: 4px; border-radius: 2px; cursor:pointer; transition:width 0.3s, background 0.3s; }
.hero-dot.active { width: 22px; background: var(--red); }
.hero-dot:not(.active) { width: 8px; background: rgba(0,0,0,0.18); }

/* ===== Quick Entry Cards ===== */
.quick-entries { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.quick-entry {
  background: #fff; border-radius: 8px; padding: 14px 16px;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
.quick-entry:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.quick-entry-icon {
  width: 38px; height: 38px; border-radius: 8px; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
}
.quick-entry-title { font-size: 13px; font-weight: 700; color: var(--text); }
.quick-entry-desc { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.quick-entry-count {
  font-size: 10px; padding: 2px 7px; border-radius: 99px; font-weight: 700;
}

/* ===== Feed Section ===== */
.feed { background: #fff; border-radius: 10px; box-shadow: var(--shadow-sm); overflow: hidden; }

.feed-tabs {
  display: flex; align-items: stretch; border-bottom: 1px solid var(--border);
  padding-left: 8px; background: var(--bg-hover);
}
.feed-tab {
  position: relative; padding: 14px 20px 12px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); cursor: pointer; transition: color 0.15s;
}
.feed-tab:hover { color: var(--text) !important; }
.feed-tab.active { font-weight: 700; color: var(--text); }
.feed-tab.active::after {
  content: ''; position: absolute; left: 20px; right: 20px; bottom: -1px;
  height: 3px; background: var(--red); border-radius: 2px 2px 0 0;
}
.feed-toolbar {
  margin-left: auto; display: flex; align-items: center; gap: 12px; padding: 0 18px;
}
.feed-ai-toggle {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 5px;
  background: var(--navy); border-radius: 999px; cursor: pointer;
}
.feed-ai-toggle .badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700; border-radius: 50%;
}
.feed-ai-toggle .text { font-size: 12px; color: #fff; font-weight: 500; }

.feed-list { padding: 8px; }

/* ===== Feed Item ===== */
.feed-item {
  display: flex; gap: 18px; padding: 14px; border-radius: 8px;
  cursor: pointer; transition: background 0.15s;
}
.feed-item:hover { background: var(--bg-hover); }
.feed-item + .feed-item { border-top: 1px dashed var(--border); }

.feed-thumb {
  flex-shrink: 0; width: 168px; height: 110px; border-radius: 6px;
  overflow: hidden; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feed-thumb-tag {
  position: absolute; top: 0; left: 0; color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 10px 4px; border-radius: 0 0 6px 0; z-index: 2;
}

.feed-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.feed-body h3 { font-size: 17px; line-height: 1.5; font-weight: 700; color: var(--text); margin: 0; }
.feed-body h3:hover { color: var(--red); }
.feed-body .desc { font-size: 13px; line-height: 1.7; color: var(--text-muted); margin-top: 8px; }

.feed-ai-summary {
  margin-top: 8px; padding: 6px 10px; border-left: 2px solid; border-radius: 0 3px 3px 0;
  font-size: 12px; color: var(--text-secondary); line-height: 1.5;
}
.feed-ai-summary .label {
  color: var(--red); font-weight: 700; font-size: 10px; letter-spacing: 0.06em;
}

.feed-meta {
  margin-top: 10px; display: flex; align-items: center; gap: 14px;
  font-size: 12px; color: var(--text-light);
}
.feed-meta .tag {
  font-size: 10px; padding: 1px 6px; border: 1px solid #e3e6eb; border-radius: 3px; color: var(--text-muted);
}
.feed-meta .author {
  display: inline-flex; align-items: center; gap: 4px;
}
.feed-meta .author-avatar {
  width: 16px; height: 16px; border-radius: 50%; color: #fff;
  font-size: 9px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.feed-meta .comments { margin-left: auto; color: var(--red); }

.feed-more {
  padding: 14px 0; text-align: center; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px; background: var(--bg-hover); cursor: pointer;
  transition: color 0.15s;
}
.feed-more:hover { color: var(--red); }

/* ===== Right Sidebar ===== */
.sidebar-right { display: flex; flex-direction: column; gap: 14px; }

.dark-card {
  background: var(--navy); border-radius: 8px; padding: 16px;
  color: #fff; position: relative; overflow: hidden;
}
.dark-card .label { font-size: 10px; color: rgba(255,255,255,0.55); letter-spacing: 0.18em; margin-bottom: 8px; }
.dark-card .title { font-size: 14px; font-weight: 700; line-height: 1.5; margin-bottom: 12px; }
.dark-card .subtitle { font-weight: 400; font-size: 12px; color: rgba(255,255,255,0.7); }
.dark-card-input {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px; padding: 10px 12px; font-size: 12px; color: rgba(255,255,255,0.5);
  margin-bottom: 10px; width: 100%;
}
.dark-card-link {
  font-size: 11px; padding: 7px 10px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px; color: rgba(255,255,255,0.85); cursor: pointer; display: block;
  transition: background 0.15s;
}
.dark-card-link:hover { background: rgba(255,255,255,0.12); }
.dark-card-link + .dark-card-link { margin-top: 6px; }

/* Visa tracker */
.visa-row {
  display: flex; align-items: center; padding: 9px 16px; font-size: 12px;
}
.visa-row + .visa-row { border-top: 1px solid var(--border-light); }
.visa-type { width: 50px; font-weight: 700; color: var(--navy); }
.visa-date { flex: 1; color: var(--text-secondary); }
.visa-badge {
  font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 3px;
}
.visa-badge--current { background: #dcfce7; color: #15803d; }
.visa-badge--slow { background: #fef2f2; color: #991b1b; }
.visa-badge--plus { background: #fef9c3; color: #a16207; }
.visa-badge--down { background: rgba(230,57,70,0.12); color: var(--red); }

/* Topic list */
.topic-item {
  padding: 9px 16px; font-size: 12px; color: #3a4150; line-height: 1.5; display: flex; gap: 8px;
}
.topic-item + .topic-item { border-top: 1px solid var(--border-light); }
.topic-quote { color: #b9c0c9; font-family: Georgia, serif; font-size: 16px; line-height: 1; flex-shrink: 0; }
.topic-meta { margin-top: 4px; font-size: 10px; color: var(--text-light); }
.topic-badge {
  font-size: 9px; font-weight: 700; color: #fff; padding: 1px 5px;
  border-radius: 2px; margin-left: 4px;
}
.topic-badge--hot { background: var(--red); }
.topic-badge--urgent { background: var(--amber); }

/* Ranking */
.rank-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 16px;
  font-size: 12px; color: #3a4150; line-height: 1.5; cursor: pointer;
}
.rank-item + .rank-item { border-top: 1px solid var(--border-light); }
.rank-item:hover { background: var(--bg-hover); }
.rank-num { font-weight: 800; font-size: 13px; flex-shrink: 0; }
.rank-num--1, .rank-num--2 { color: var(--red); }
.rank-num--3 { color: var(--amber); }

/* Ad card */
.ad-card {
  background: linear-gradient(135deg, var(--red) 0%, #b91c1c 100%);
  border-radius: 8px; padding: 18px; color: #fff; position: relative; overflow: hidden; cursor: pointer;
  transition: transform 0.15s;
}
.ad-card:hover { transform: translateY(-1px); }
.ad-card .watermark {
  position: absolute; right: -20px; top: -20px; font-size: 110px;
  font-weight: 900; color: rgba(255,255,255,0.06); line-height: 1;
}

/* ===== Footer ===== */
.site-footer { margin-top: 24px; background: var(--navy); color: rgba(255,255,255,0.7); border-radius: 8px; overflow: hidden; }
.footer-grid {
  padding: 28px 24px 18px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 24px;
}
.footer-brand { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-desc { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,0.55); }
.footer-social { margin-top: 14px; display: flex; gap: 8px; }
.footer-social-icon {
  width: 32px; height: 32px; border-radius: 4px; background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer;
  transition: background 0.15s;
}
.footer-social-icon:hover { background: rgba(255,255,255,0.15); }
.footer-col-title { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.footer-col li { cursor: pointer; transition: color 0.15s; }
.footer-col li:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: rgba(255,255,255,0.5);
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links span { cursor: pointer; }
.footer-bottom-links span:hover { color: rgba(255,255,255,0.8); }

/* ===== Left Sidebar ===== */
.sidebar-left { display: flex; flex-direction: column; gap: 14px; }

/* ===== Main Column ===== */
.main-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ===== Mobile Menu Button ===== */
.menu-toggle { display: none; background: none; border: none; padding: 6px; cursor: pointer; flex-shrink: 0; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; border-radius: 1px; transition: transform 0.2s, opacity 0.2s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== Responsive: Tablet (<=1024px) ===== */
@media (max-width: 1024px) {
  .container { max-width: 100%; }
  .page-wrap { border-radius: 0; padding: 0; }
  .top-bar { border-radius: 0; }

  .three-col { grid-template-columns: 1fr 260px; padding: 14px 16px 0; gap: 14px; }
  .sidebar-left { display: none; }

  .ai-bar { grid-template-columns: 1fr 1fr; padding: 14px 16px; gap: 12px; }
  .ai-bar-greeting { display: none; }

  .hero { height: 240px; }
  .hero-visual { width: 45%; }

  .quick-entries { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 16px; padding: 24px 16px; }
  .footer-grid > div:nth-child(5) { display: none; }

  .header-search { width: 160px; }
}

/* ===== Responsive: Mobile (<=768px) ===== */
@media (max-width: 768px) {
  html, body { font-size: 14px; }
  .top-bar { display: none; }

  .site-header { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none; flex-direction: column; width: 100%;
    background: var(--navy-dark); border-radius: 8px; padding: 8px 0;
    order: 10; gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; height: auto; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a.active::after { display: none; }

  .header-search { display: none; }
  .logo-text { font-size: 16px; }
  .logo-sub { display: none; }
  .logo-icon { width: 36px; height: 28px; font-size: 9px; }

  .ai-bar { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; }
  .ai-bar-greeting { display: none; }
  .ai-bar-search { height: 42px; padding: 0 12px; }
  .ai-bar-search .placeholder { font-size: 12px; }
  .ai-bar-search .tags { display: none; }
  .ai-bar-right { justify-content: space-between; width: 100%; }

  .three-col { display: flex; flex-direction: column; padding: 10px 12px 0; gap: 12px; }
  .sidebar-left { display: none; }
  .sidebar-right { display: none; }

  .hero { height: 200px; border-radius: 8px; }
  .hero-inner { flex-direction: column; }
  .hero-visual { width: 100%; height: 40%; }
  .hero-content { padding: 14px 16px 12px; }
  .hero-counter { top: 10px; right: 12px; font-size: 10px; }
  .hero h2 { font-size: 16px; line-height: 1.3; }
  .hero p { font-size: 12px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-tags { margin-bottom: 6px; }
  .hero-tag { font-size: 10px; height: 18px; padding: 0 6px; }
  .hero-btn { height: 30px; padding: 0 12px; font-size: 12px; }
  .hero-nav-btn { width: 28px; height: 28px; font-size: 13px; }
  .hero-nav-btn--prev { left: 6px; }
  .hero-nav-btn--next { right: 6px; }
  .hero-dots { bottom: 8px; right: 12px; }

  .quick-entries { grid-template-columns: 1fr; gap: 8px; }
  .quick-entry { padding: 10px 12px; }

  .feed-tabs { flex-wrap: wrap; padding-left: 4px; }
  .feed-tab { padding: 10px 14px 8px; font-size: 13px; }
  .feed-toolbar { display: none; }

  .feed-item { flex-direction: row; gap: 12px; padding: 12px; }
  .feed-thumb { width: 100px; height: 70px; }
  .feed-body h3 { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .feed-meta { gap: 8px; margin-top: 6px; }
  .feed-meta .author-avatar { width: 14px; height: 14px; font-size: 8px; }

  .footer-grid { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px; }
  .footer-grid > div:nth-child(n+3) { display: none; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding: 12px 16px; }
  .footer-bottom-links { justify-content: center; }

  .site-footer { border-radius: 0; margin-top: 12px; }
}

/* ===== Responsive: Small Mobile (<=480px) ===== */
@media (max-width: 480px) {
  .site-header { padding: 8px 12px; gap: 8px; }
  .logo { gap: 6px; }
  .logo-icon { width: 32px; height: 26px; font-size: 8px; }
  .logo-text { font-size: 14px; }

  .ai-bar { padding: 10px 12px; }
  .ai-bar-search { height: 38px; }
  .ai-bar-right { flex-wrap: wrap; gap: 6px; }
  .ai-bar-radio { padding: 4px 8px; }

  .three-col { padding: 8px 10px 0; }

  .hero { height: 180px; }
  .hero h2 { font-size: 14px; }
  .hero-content { padding: 10px 12px 8px; }

  .feed-item { padding: 10px; gap: 10px; }
  .feed-thumb { width: 80px; height: 56px; }
  .feed-body h3 { font-size: 13px; }
  .feed-meta { font-size: 10px; }

  .header-user span { display: none; }
}
