/* ============ 主题变量 ============ */
:root {
  --accent: #ff7d00;
  --accent-soft: rgba(255, 125, 0, .1);
  --accent-line: rgba(255, 125, 0, .35);
  --panel: rgba(255, 255, 255, .92);
  --panel-solid: #ffffff;
  --card-bg: #ffffff;
  --text: #1f2329;
  --text-sub: #8a919f;
  --line: #ebedf0;
  --shadow: 0 2px 14px rgba(15, 25, 40, .08);
  --shadow-hover: 0 6px 20px rgba(255, 125, 0, .16);
  --topbar-bg: rgba(255, 255, 255, .58);
  --topbar-text: #1f2329;
  --bg-overlay: linear-gradient(180deg, rgba(10, 22, 30, .34) 0%, rgba(10, 22, 30, .2) 45%, rgba(10, 22, 30, .58) 100%);
  --bg-filter: none;
  --hero-text: #ffffff;
  --radius: 14px;
}

body.theme-dark {
  --panel: rgba(24, 27, 32, .88);
  --panel-solid: #1b1e24;
  --card-bg: rgba(38, 42, 50, .72);
  --text: #e7e9ec;
  --text-sub: #949aa4;
  --line: rgba(255, 255, 255, .09);
  --shadow: 0 2px 14px rgba(0, 0, 0, .35);
  --shadow-hover: 0 6px 20px rgba(255, 125, 0, .25);
  --topbar-bg: rgba(16, 18, 22, .6);
  --topbar-text: #e7e9ec;
  --bg-overlay: linear-gradient(180deg, rgba(6, 10, 14, .55) 0%, rgba(6, 10, 14, .42) 45%, rgba(6, 10, 14, .7) 100%);
  --bg-filter: brightness(.55) saturate(.85);
}

/* ============ 基础 ============ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #eef1f4;
  -webkit-font-smoothing: antialiased;
}

body.theme-dark { background: #101216; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("../img/bg.jpg") center top / cover no-repeat;
  filter: var(--bg-filter);
  transition: filter .3s ease;
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
}

/* ============ 顶栏 ============ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(125, 135, 150, .16);
  transition: background .3s ease;
}

.brand { display: flex; align-items: center; gap: 9px; flex: none; }

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}

.brand-text { font-size: 16px; font-weight: 700; color: var(--topbar-text); }
.brand-text em { font-style: normal; color: var(--accent); }

.header-search {
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(140, 150, 165, .2);
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

body.scrolled .header-search { opacity: 1; transform: none; pointer-events: auto; }

body.theme-dark .header-search { background: rgba(0, 0, 0, .32); border-color: rgba(255, 255, 255, .12); }

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.header-search input::placeholder { color: var(--text-sub); }

.header-engine {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.search-icon {
  width: 28px;
  height: 28px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 125, 0, .16);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: none; }

.weather-box { position: relative; }

.weather-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--topbar-text);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(140, 150, 165, .3);
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
}

.weather-btn:hover { border-color: var(--accent); color: var(--accent); }

.w-go { opacity: .5; flex: none; }

.weather-btn:hover .w-go { opacity: 1; }

.w-ico { display: inline-flex; align-items: center; }
.w-now { line-height: 1; }

.weather-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 232px;
  padding: 4px 12px 10px;
  border-radius: 12px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(15, 25, 40, .16);
  z-index: 60;
}

/* 透明悬停桥，避免鼠标从按钮移到面板时中间空隙导致面板关闭 */
.weather-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -9px;
  height: 9px;
}

.wf-place {
  font-size: 12px;
  color: var(--text-sub);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.wf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  font-size: 13px;
  color: var(--text);
}

.wf-row + .wf-row { border-top: 1px solid var(--line); }
.wf-day { width: 34px; flex: none; font-size: 12px; color: var(--text-sub); }
.wf-desc { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-temp { flex: none; color: var(--accent); font-weight: 600; }

.icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--topbar-text);
  display: grid;
  place-items: center;
}

.icon-btn:hover { background: rgba(125, 135, 150, .16); }

body.theme-light .ico-moon, body.theme-dark .ico-sun { display: none; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 90px 20px 200px;
  color: var(--hero-text);
}

.hero-title {
  font-size: 46px;
  font-weight: 400;
  letter-spacing: 4px;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.ai-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}

.ai-tab {
  font-size: 15px;
  color: rgba(255, 255, 255, .78);
  background: none;
  border: 0;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease;
}

.ai-tab:hover { color: #fff; }

.ai-tab.active {
  color: #fff;
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.search-wrap { width: 100%; max-width: 780px; }

.search-box {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease;
}

.search-box:focus-within {
  background: rgba(255, 255, 255, .32);
  border-color: rgba(255, 255, 255, .6);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
}

.search-box input::placeholder { color: rgba(255, 255, 255, .7); }

.search-btn {
  width: 38px;
  height: 38px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}

.search-btn:hover { background: var(--accent); }

.engines {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.engine {
  font-size: 14px;
  color: rgba(255, 255, 255, .82);
  background: none;
  border: 0;
  transition: color .2s ease;
}

.engine:hover { color: var(--accent); }

/* ============ 日期倒计时条 ============ */
.date-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 78px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  color: #fff;
}

.date-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  padding-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, .3);
  margin-right: 28px;
}

.date-num {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.date-meta { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.date-meta small { font-size: 12px; opacity: .85; }
.date-meta em { font-style: normal; color: #ffc043; font-weight: 700; }

.festivals {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.festivals::-webkit-scrollbar { display: none; }

.festival {
  flex: none;
  padding: 0 22px;
  border-right: 1px solid rgba(255, 255, 255, .22);
  font-size: 14px;
  white-space: nowrap;
}

.festival:last-child { border-right: 0; }
.festival em { font-style: normal; color: #ffc043; font-weight: 700; margin-left: 4px; }

/* ============ 主体布局 ============ */
.layout {
  position: relative;
  max-width: 1400px;
  margin: -30px auto 0;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 290px;
  gap: 16px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
}

/* 左侧分类 */
.col-side {
  position: sticky;
  top: 70px;
  align-self: start;
}

.cat-nav {
  padding: 8px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}

.cat-item {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border-left: 3px solid transparent;
  color: var(--text);
  transition: background .18s ease, color .18s ease;
}

.cat-item:hover { background: rgba(125, 135, 150, .1); }

.cat-item.active {
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

/* 中间内容 */
.panel-head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 20px 12px;
}

.tab-muted { font-size: 15px; color: var(--text); }

.tab-active {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 3px;
  border-bottom: 2px solid var(--accent);
}

.recent-body { padding: 0 20px 18px; }

.empty-tip {
  font-size: 13px;
  color: var(--text-sub);
  text-align: center;
  padding: 14px 0 18px;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 10px;
}

.cat-section { margin-top: 16px; scroll-margin-top: 68px; }

.cat-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px 4px;
  flex-wrap: wrap;
}

.cat-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  flex: none;
}

.sub-tabs { display: flex; flex-wrap: wrap; gap: 18px; }

.sub-tab {
  font-size: 13px;
  color: var(--text-sub);
  background: none;
  border: 0;
  padding: 0;
  transition: color .18s ease;
}

.sub-tab:hover { color: var(--accent); }

.sub-tab.active { color: var(--text); font-weight: 600; }

.more-btn {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-sub);
  background: none;
  border: 0;
  flex: none;
}

.more-btn:hover { color: var(--accent); }

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 10px;
  padding: 14px 16px 18px;
}

.site-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.site-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-hover);
}

.site-logo {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
  background: #6b7280;
}

.site-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.site-info { display: block; min-width: 0; flex: 1; }

.site-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-desc {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-badge {
  flex: none;
  font-size: 11px;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  padding: 1px 5px;
  transform: translateY(-16px);
}

/* 搜索命中高亮 */
mark { background: rgba(255, 125, 0, .22); color: var(--accent); border-radius: 3px; padding: 0 1px; }

/* 右侧榜单 */
.col-rank {
  position: sticky;
  top: 70px;
  align-self: start;
}

.rank-panel { overflow: hidden; }

.rank-tabs { display: flex; border-bottom: 1px solid var(--line); }

.rank-tab {
  flex: 1;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-sub);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
}

.rank-tab.active {
  color: var(--accent);
  font-weight: 700;
  border-bottom-color: var(--accent);
  background: var(--accent-soft);
}

.rank-list { padding: 10px 12px 14px; }

.rank-item {
  display: flex;
  gap: 10px;
  padding: 8px 4px;
  border-radius: 8px;
}

.rank-item:hover { background: rgba(125, 135, 150, .08); }

.rank-no {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #c3c8d0;
  margin-top: 2px;
}

.rank-item:nth-child(1) .rank-no { background: var(--accent); }
.rank-item:nth-child(2) .rank-no { background: #ff9f43; }
.rank-item:nth-child(3) .rank-no { background: #f7b731; }

.rank-body { display: block; min-width: 0; flex: 1; }

.rank-name { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-desc { display: block; font-size: 12px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ 页脚 ============ */
.footer {
  position: relative;
  margin-top: 30px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 34px 20px 24px;
  display: grid;
  grid-template-columns: 1fr 0.8fr 2.5fr;
  gap: 30px;
}

.footer-col h4 { font-size: 15px; margin-bottom: 12px; color: var(--accent); }
.footer-col p { font-size: 13px; line-height: 1.9; color: var(--text-sub); }
.footer-col code { background: rgba(125, 135, 150, .16); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; }
.footer-links-5 { grid-template-columns: repeat(5, 1fr); }

.footer-links a { font-size: 13px; color: var(--text-sub); }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 20px 26px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-sub);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-bottom a:hover { color: var(--accent); }
.dot { opacity: .5; }

/* ============ 悬浮按钮 ============ */
.float-bar {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.float-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: color .18s ease, border-color .18s ease;
}

.float-btn:hover { color: var(--accent); border-color: var(--accent-line); }

body.theme-light .ico-moon, body.theme-dark .ico-sun { display: none; }

/* ============ Toast ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 20px);
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(20, 22, 26, .9);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 60;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ 广告位 ============ */
.ad-slot { margin: 14px 0; }

/* ============ 404 页面 ============ */
body.err-body { display: flex; flex-direction: column; }

body.err-body .err-hero { flex: 1 0 auto; }

.err-hero {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 110px 20px 50px;
  color: #fff;
  text-align: center;
}

.err-code {
  font-size: 104px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 8px;
  background: linear-gradient(135deg, #ffffff 18%, #ffc27a 58%, #ff7d00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.err-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}

.err-desc {
  font-size: 14px;
  line-height: 2;
  color: rgba(255, 255, 255, .84);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}

.err-search { width: 100%; max-width: 620px; }

.err-engine {
  flex: none;
  max-width: 92px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffc043;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.err-engine option { color: #1f2329; }

.err-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #ff9a3d, #ff6a00);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 106, 0, .35);
}

.btn-primary:hover { filter: brightness(1.07); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .2); }

.hot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }

.hot-link {
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
  color: rgba(255, 255, 255, .9);
}

.hot-link:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .24); }

.err-tips { max-width: 980px; margin: 0 auto 40px; padding: 0 20px; }

.tip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.tip-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tip-ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 10px;
}

.tip-card h3 { font-size: 15px; margin-bottom: 6px; }

.tip-card p { font-size: 13px; line-height: 1.8; color: var(--text-sub); }

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 180px minmax(0, 1fr); }
  .col-rank { grid-column: 1 / -1; position: static; }
  .rank-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 16px; }
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 110px 16px 34px; gap: 16px; }
  .hero-title { font-size: 30px; letter-spacing: 2px; }
  .ai-tabs { gap: 16px; }
  .ai-tab { font-size: 13px; }
  .search-box { height: 46px; }
  .engines { gap: 18px; }
  .engine { font-size: 13px; }
  .date-strip {
    position: static;
    margin-top: 30px;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0 16px;
  }
  .date-num { font-size: 30px; }
  .festival { padding: 0 14px; font-size: 13px; }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    margin-top: -20px;
    padding: 0 12px 30px;
  }
  .col-side { position: sticky; top: 56px; z-index: 30; }
  .cat-nav {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    max-height: none;
    padding: 8px;
    border-radius: 12px;
  }
  .cat-item {
    flex: none;
    white-space: nowrap;
    padding: 7px 13px;
    font-size: 13px;
    border-left: 0;
    border-radius: 999px;
  }
  .cat-item.active { border-left: 0; }
  .site-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); padding: 12px; }
  .site-desc { display: none; }
  .recent-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .cat-head { padding: 14px 14px 2px; gap: 12px; }
  .sub-tabs { gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-links-5 { grid-template-columns: repeat(2, 1fr); }
  .header-search { display: none; }
  .weather-btn { padding: 5px 10px; }

  .err-hero { min-height: auto; padding: 100px 16px 34px; gap: 14px; }
  .err-code { font-size: 72px; letter-spacing: 5px; }
  .err-title { font-size: 22px; letter-spacing: 2px; }
  .err-desc { font-size: 13px; line-height: 1.9; }
  .err-search { max-width: 100%; }
  .tip-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-title { font-size: 24px; }
  .ai-tabs { gap: 12px; }
  .date-block { padding-right: 16px; margin-right: 16px; }
  .float-bar { flex-direction: row; right: 10px; bottom: 10px; }
}
