:root {
  --blue: #1877f2;
  --blue-2: #075fcf;
  --blue-soft: #eaf3ff;
  --paper: #f3f6fa;
  --ink: #0d1b34;
  --muted: #65738a;
  --line: #dce4ef;
  --white: #fff;
  --shadow: 0 14px 36px rgba(30, 55, 90, .09);
  --radius: 20px;
  --content-width: 1480px;
  --font-ui: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --font-zh: "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -4%, rgba(24,119,242,.09), transparent 27rem),
    radial-gradient(circle at 92% 12%, rgba(62,181,255,.07), transparent 24rem),
    var(--paper);
  font-family: var(--font-ui);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(24,119,242,.28); outline-offset: 3px; }
svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(212,222,236,.86);
  box-shadow: 0 8px 30px rgba(27,48,79,.055);
  backdrop-filter: blur(22px) saturate(1.25);
}
.header-inner {
  width: min(var(--content-width), calc(100% - 48px));
  height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 38px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-symbol {
  width: 50px;
  height: 50px;
  overflow: visible;
  filter: drop-shadow(0 7px 14px rgba(24,119,242,.22));
  stroke: none;
}
.logo-tile { fill: var(--blue); }
.logo-sun { fill: #ffd45c; }
.logo-island { fill: #fff; }
.logo-valley { fill: none; stroke: #1677ea; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.logo-wave { fill: none; stroke: #8fe4ff; stroke-width: 2.1; stroke-linecap: round; }
.brand-wordmark { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; white-space: nowrap; color: #0e1c38; line-height: 1; }
.brand-wordmark strong {
  font-family: var(--font-zh);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: .08em;
}
.brand-wordmark b {
  color: var(--blue-2);
  font: 850 11px/1.2 var(--font-ui);
  letter-spacing: .24em;
}
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(17px, 1.7vw, 28px);
  margin-left: auto;
}
.primary-nav a {
  position: relative;
  padding: 27px 0 24px;
  color: #263a5d;
  font-size: 14.5px;
  font-weight: 720;
  white-space: nowrap;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
  transition: left .2s, right .2s;
}
.primary-nav a:hover { color: var(--blue); }
.primary-nav a:hover::after { left: 0; right: 0; }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid #d9e7fa;
  border-radius: 999px;
  background: #f3f7fd;
  color: #65748d;
  font-size: 14px;
  font-weight: 800;
}
.lang-toggle .active { color: var(--blue); }
.lang-toggle i { width: 1px; height: 13px; background: #c8d4e7; }

main { width: min(var(--content-width), calc(100% - 48px)); margin: 24px auto 0; }
.hero {
  position: relative;
  min-height: 312px;
  padding: clamp(30px, 3.2vw, 46px) clamp(24px, 3.6vw, 54px) 28px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background: linear-gradient(128deg, #0d63d7 0%, #1877f2 46%, #168cfa 100%);
  box-shadow: 0 22px 52px rgba(24,119,242,.22);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .17);
}
.hero::before {
  width: 320px;
  height: 320px;
  right: -70px;
  top: -125px;
  box-shadow: 0 0 0 40px rgba(255,255,255,.035), 0 0 0 85px rgba(255,255,255,.02);
}
.hero::after { width: 360px; height: 120px; left: -130px; bottom: -88px; transform: rotate(10deg); }
.hero-art {
  position: absolute;
  right: 8%;
  top: 18px;
  width: 250px;
  height: 170px;
  opacity: .28;
  background-image: radial-gradient(circle, #fff 1.5px, transparent 1.7px);
  background-size: 21px 21px;
  mask-image: radial-gradient(circle, #000 15%, transparent 70%);
}
.hero-art i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 15px #fff; }
.hero-art i:nth-child(1) { left: 21%; top: 32%; }
.hero-art i:nth-child(2) { left: 50%; top: 15%; }
.hero-art i:nth-child(3) { left: 72%; top: 38%; }
.hero-art i:nth-child(4) { left: 38%; top: 68%; }
.hero-art i:nth-child(5) { left: 83%; top: 74%; }
.hero-art i:nth-child(6) { left: 11%; top: 76%; }
.hero-topline { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: start; gap: 36px; }
.hero-message p { margin: 0 0 11px; color: #d8edff; font-size: 14px; font-weight: 760; letter-spacing: .13em; }
.hero-message h1 { margin: 0; max-width: 680px; font-family: var(--font-zh); font-size: clamp(31px, 3.15vw, 46px); font-weight: 850; line-height: 1.25; letter-spacing: -.035em; }
.live-widgets { display: flex; align-items: stretch; gap: 9px; }
.date-widget, .time-widget, .weather-widget {
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 15px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
}
.date-widget { min-width: 164px; padding: 13px 16px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.date-widget span { color: #d9ebff; font-size: 12px; }
.date-widget strong { font-size: 14px; }
.time-widget { min-width: 132px; padding: 13px 15px; display: flex; align-items: baseline; justify-content: center; gap: 7px; }
.time-widget strong { font: 800 29px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: -.08em; }
.time-widget span { color: #ffe185; font: 800 12px ui-monospace, monospace; }
.weather-widget {
  min-width: 210px;
  padding: 10px 13px;
  border-color: rgba(255, 255, 255, .24);
  color: #fff;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 10px;
  text-align: left;
}
.weather-icon { grid-row: 1 / 3; align-self: center; font-size: 30px; }
.weather-widget > span:nth-child(2) { display: flex; align-items: baseline; gap: 7px; }
.weather-widget strong { font-size: 21px; }
.weather-widget small { color: #e5f2ff; font-size: 12px; }
.weather-widget em { grid-column: 2; display: flex; align-items: center; gap: 4px; color: #d8edff; font-size: 12px; font-style: normal; }
.weather-widget em svg { width: 12px; height: 12px; }
.search-shell {
  position: relative;
  z-index: 2;
  width: min(960px, 78%);
  min-height: 64px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 130px 1px auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 48, 116, .22);
}
.search-shell select { height: 46px; padding: 0 13px; border: 0; outline: 0; color: #334761; background: #fff; font-size: 14px; font-weight: 700; }
.search-divider { width: 1px; height: 26px; background: #dce3ee; }
.search-shell > svg { margin-left: 15px; color: #8796aa; }
.search-shell input { min-width: 0; height: 46px; padding: 0 13px; border: 0; outline: 0; color: #17233c; font-size: 16px; }
.search-shell input::placeholder { color: #8b98ab; }
.search-shell button[type=submit] {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(24, 119, 242, .24);
  transition: background .2s, transform .2s;
}
.search-shell button[type=submit]:hover { background: #0868d9; transform: translateY(-1px); }
.search-shell button svg { width: 19px; height: 19px; }
.hot-queries { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 15px; color: #dceeff; font-size: 14px; }
.hot-queries > span { color: #bcdfff; }
.hot-queries button { padding: 0; border: 0; background: transparent; color: #fff; }
.hot-queries button:hover { text-decoration: underline; }

.channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 18px 0; }
.channel-card {
  min-width: 0;
  min-height: 100px;
  display: grid;
  grid-template-columns: 45px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  border: 1px solid rgba(219,228,240,.95);
  border-radius: 19px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 7px 22px rgba(31,53,84,.05);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.channel-card:hover { transform: translateY(-3px); border-color: #b8cdf1; box-shadow: var(--shadow); }
.channel-card > svg { width: 45px; height: 45px; padding: 10px; border-radius: 14px; }
.channel-card span { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.channel-card strong { font-size: 16px; font-weight: 780; white-space: nowrap; }
.channel-card small { overflow: hidden; color: #75839a; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.channel-card > b { font-size: 24px; font-weight: 400; }
.channel-card.blue > svg { color: #1670df; background: #e8f2ff; }
.channel-card.blue > b { color: #1670df; }
.channel-card.amber > svg, .channel-card.orange > svg { color: #c77a00; background: #fff3df; }
.channel-card.amber > b, .channel-card.orange > b { color: #c77a00; }
.channel-card.violet > svg { color: #653ae6; background: #f0eaff; }
.channel-card.violet > b { color: #653ae6; }
.channel-card.cyan > svg { color: #0b89b8; background: #e4f8ff; }
.channel-card.cyan > b { color: #0b89b8; }
.channel-card.green > svg { color: #13945a; background: #e5f8ee; }
.channel-card.green > b { color: #13945a; }

.portal-dashboard { display: grid; grid-template-columns: minmax(330px, 1.08fr) minmax(330px, 1fr) minmax(360px, 1.08fr); gap: 16px; align-items: stretch; }
.news-panel { grid-column: auto; }
.middle-stack { grid-column: auto; display: grid; grid-template-rows: 1fr auto; gap: 16px; }
.directory-panel { grid-column: auto; }
.panel {
  padding: clamp(17px, 1.5vw, 22px);
  border: 1px solid rgba(218,227,239,.96);
  border-radius: 21px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 30px rgba(31,53,84,.055);
  scroll-margin-top: 92px;
}
.panel-heading { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.panel-heading > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.panel-heading i { width: 4px; height: 21px; border-radius: 8px; background: var(--blue); }
.panel-heading .amber-title i { background: #f39a0b; }
.panel-heading h2 { margin: 0; font-family: var(--font-zh); font-size: 18px; font-weight: 800; letter-spacing: -.015em; white-space: nowrap; }
.panel-heading > a, .panel-heading > .heat-note { color: var(--blue); font-size: 12px; white-space: nowrap; }
.source-pills { display: flex; gap: 4px; }
.source-pills b { padding: 4px 7px; border-radius: 6px; color: #60758f; background: #edf2f8; font-size: 12px; font-weight: 750; }
.trend-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; padding: 7px 9px; border-radius: 9px; background: #f5f8fc; }
.trend-status > span { display: flex; align-items: center; gap: 5px; color: #0d67d8; font-size: 12px; }
.trend-status svg { width: 13px; height: 13px; color: #f04a3a; }
.trend-status small { color: #7e8da3; font-size: 12px; text-align: right; }
.trend-list { display: grid; gap: 7px; }
.trend-item { display: grid; grid-template-columns: 32px 36px 1fr auto; align-items: center; gap: 9px; min-height: 58px; padding: 7px; border-radius: 10px; transition: background .18s; }
.trend-item:hover { background: #f2f6fc; }
.trend-item.featured { min-height: 148px; grid-template-columns: 42px 52px 1fr; padding: 17px; color: #fff; background: linear-gradient(135deg, #126de2, #22a0ee); box-shadow: 0 9px 22px rgba(24, 119, 242, .18); }
.trend-item.featured:hover { background: linear-gradient(135deg, #0d63d2, #168fdb); }
.trend-item .rank { color: #8a98ac; font: 800 12px ui-monospace, monospace; text-align: center; }
.trend-item.featured .rank { color: #dcefff; font-size: 15px; }
.trend-item .favicon-wrap { width: 34px; height: 34px; display: grid; place-items: center; }
.trend-item .favicon-wrap img { width: 23px; height: 23px; }
.trend-item.featured .rank, .trend-item.featured .favicon-wrap { grid-row: 1 / 3; }
.trend-item.featured .favicon-wrap { width: 48px; height: 48px; border-radius: 12px; background: #fff; }
.trend-item.featured .favicon-wrap img { width: 28px; height: 28px; }
.trend-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.trend-copy strong { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.35; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.trend-item.featured .trend-copy strong { font-size: 19px; line-height: 1.38; -webkit-line-clamp: 3; }
.trend-copy small { overflow: hidden; color: #8391a6; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.trend-item.featured .trend-copy small { color: #d9ecff; }
.trend-score { padding: 4px 7px; border-radius: 999px; color: #e24f42; background: #fff0ee; font-size: 12px; font-style: normal; white-space: nowrap; }
.trend-item.featured .trend-score { grid-column: 3; justify-self: start; color: #fff; background: rgba(255,255,255,.16); }

.site-grid { display: grid; gap: 8px; }
.ai-grid { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.shop-grid { grid-template-columns: repeat(auto-fit, minmax(94px, 1fr)); }
.directory-grid { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.site-card {
  position: relative;
  min-width: 0;
  min-height: 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 8px;
  border: 1px solid #e4e9f1;
  border-radius: 15px;
  background: #fff;
  text-align: center;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.site-card:hover { z-index: 2; transform: translateY(-2px); border-color: #b8cdf0; box-shadow: 0 8px 20px rgba(39,71,116,.09); }
.favicon-wrap { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #f2f5f9; }
.favicon-wrap img { position: relative; z-index: 2; width: 27px; height: 27px; object-fit: contain; }
.favicon-fallback { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; color: #fff; background: var(--blue); font-weight: 900; }
.site-card strong { max-width: 100%; overflow: hidden; font-size: 14px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.site-card small { max-width: 100%; overflow: hidden; color: #7a879b; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.heat-chip { position: absolute; top: 6px; right: 6px; padding: 2px 5px; border-radius: 999px; color: #d84d3f; background: #fff0ee; font-size: 12px; font-style: normal; }
.directory-panel .site-card { min-height: 84px; }
.directory-panel .favicon-wrap { width: 35px; height: 35px; }
.directory-panel .favicon-wrap img { width: 25px; height: 25px; }

.beauty-section { margin: 18px 0; padding: clamp(17px, 1.8vw, 24px); border: 1px solid #d8e4f2; border-radius: 24px; background: linear-gradient(145deg, #fff 0%, #fbfdff 58%, #f3f8ff 100%); box-shadow: 0 12px 34px rgba(31,53,84,.065); scroll-margin-top: 96px; }
.beauty-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.beauty-heading > div { display: flex; align-items: center; gap: 11px; }
.beauty-accent { width: 5px; height: 30px; border-radius: 8px; background: linear-gradient(#1877f2, #53b8ff); }
.beauty-heading h2 { margin: 0; font-family: var(--font-zh); font-size: 25px; font-weight: 850; letter-spacing: -.02em; }
.beauty-heading > div:first-child > b { color: #163a7a; font-size: 13px; letter-spacing: .12em; }
.beauty-heading p { margin: 0; color: #75849a; font-size: 13px; }
.beauty-live { display: flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; color: #166bd7; background: #eef5ff; font-size: 12px; }
.beauty-live svg { width: 13px; height: 13px; color: #f04e3e; }
.beauty-heading button { padding: 8px 13px; border: 1px solid #d9e8fb; border-radius: 999px; color: var(--blue); background: #fff; font-size: 14px; font-weight: 750; box-shadow: 0 4px 12px rgba(24,119,242,.08); }
.beauty-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(11px, 1.2vw, 17px); }
.beauty-card {
  position: relative;
  aspect-ratio: 6 / 5;
  min-height: 0;
  display: flex;
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 18px;
  background-image: url("./assets/beauty-strip.webp");
  background-repeat: no-repeat;
  background-size: 400% auto;
  background-color: #d9e4f2;
  box-shadow: 0 9px 22px rgba(24,43,70,.12);
  isolation: isolate;
  transition: transform .2s, box-shadow .2s;
}
.beauty-card::before { content: ""; position: absolute; inset: -8%; z-index: 0; background-image: var(--beauty-image); background-position: center; background-size: cover; filter: blur(16px); opacity: 0; transform: scale(1.08); transition: opacity .25s ease; pointer-events: none; }
.beauty-card::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(5,17,36,.88) 0%, rgba(5,17,36,.24) 47%, rgba(5,17,36,.02) 72%); pointer-events: none; }
.beauty-photo { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: 50% 35%; opacity: 0; transform: scale(1); transition: opacity .25s ease, transform .35s ease; }
.beauty-card.has-live-image::before { opacity: .68; }
.beauty-card.has-live-image .beauty-photo { opacity: 1; }
.beauty-card.has-live-image:hover .beauty-photo { transform: scale(1.018); }
.beauty-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(31,53,82,.16); }
.beauty-card.has-live-image { background-image: none; }
.beauty-1 { background-position: 0 top; }
.beauty-2 { background-position: 33.333% top; }
.beauty-3 { background-position: 66.666% top; }
.beauty-4 { background-position: 100% top; }
.beauty-card > span { position: relative; z-index: 3; min-width: 0; padding: 15px 16px; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.beauty-source { max-width: 100%; align-self: flex-start; overflow: hidden; margin-bottom: 3px; padding: 3px 7px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; color: #fff; background: rgba(10,29,57,.34); font-size: 12px; font-style: normal; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(8px); }
.beauty-card strong { font-size: 17px; font-weight: 800; }
.beauty-card small { color: #e7eef7; font-size: 12.5px; }
.beauty-card > b { position: relative; z-index: 3; margin: 0 13px 15px auto; flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; font-size: 20px; font-weight: 400; }

.lower-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 470px), 1fr)); gap: 16px; margin: 18px 0; }
.community-links { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.life-content { display: grid; grid-template-columns: 190px 1fr; gap: 9px; }
.life-weather { min-height: 195px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 20px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #1275e7, #17a0df); text-align: left; }
.life-weather > span { color: #d9f2ff; font-size: 12px; font-weight: 750; }
.life-weather strong { margin: 5px 0; font-size: 48px; letter-spacing: -.07em; }
.life-weather small { color: #d8ecff; font-size: 12px; line-height: 1.5; }
.life-weather em { margin-top: 15px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.3); border-radius: 7px; font-size: 14px; font-style: normal; }
.life-links { grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); }

footer { width: min(var(--content-width), calc(100% - 48px)); margin: 0 auto 24px; border: 1px solid #dce5f0; border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 10px 28px rgba(31,53,84,.05); }
.footer-main { min-height: 112px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; padding: 24px 30px; }
.footer-brand .brand-symbol { width: 40px; height: 40px; }
.footer-brand .brand-wordmark strong { font-size: 20px; }
.footer-brand .brand-wordmark b { font-size: 10px; }
.footer-slogan { color: #8390a3; font-size: 14px; }
.footer-contact { text-align: right; }
.footer-contact strong { font-size: 14px; }
.footer-contact strong span { color: #253a5d; }
.footer-contact strong a { color: var(--blue); }
.footer-contact p { margin: 5px 0 0; color: #7d8a9e; font-size: 14px; }
.footer-bottom { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; border-top: 1px solid #e8ecf2; color: #8996a8; font-size: 12px; }
.footer-bottom a:hover { color: var(--blue); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; padding: 11px 17px; border-radius: 10px; color: #fff; background: #15213a; box-shadow: 0 14px 35px rgba(5,18,42,.22); font-size: 14px; opacity: 0; pointer-events: none; transform: translate(-50%,12px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1220px) {
  .header-inner, main, footer { width: min(100% - 28px, var(--content-width)); }
  .primary-nav { gap: 15px; }
  .primary-nav a { font-size: 14px; }
  .portal-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-panel, .middle-stack { grid-column: span 1; }
  .directory-panel { grid-column: 1 / -1; }
  .directory-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .live-widgets { display: grid; grid-template-columns: 1fr 1fr; }
  .weather-widget { grid-column: 1 / -1; }
  .search-shell { width: 85%; }
}
@media (max-width: 820px) {
  .header-inner { height: auto; min-height: 68px; flex-wrap: wrap; padding: 8px 0 0; gap: 7px 16px; }
  .brand-symbol { width: 42px; height: 42px; }
  .brand-wordmark strong { font-size: 21px; }
  .brand-wordmark b { font-size: 9.5px; }
  .lang-toggle { margin-left: auto; }
  .primary-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .primary-nav a { padding: 11px 0 10px; }
  .hero { padding: 27px 20px 22px; }
  .hero-topline { display: block; }
  .live-widgets { margin-top: 19px; grid-template-columns: 1fr 1fr; }
  .weather-widget { grid-column: 1 / -1; }
  .search-shell { width: 100%; margin-top: 18px; grid-template-columns: 100px 1px auto minmax(0,1fr) auto; }
  .search-shell button[type=submit] { width: 50px; padding: 0; justify-content: center; }
  .search-shell button[type=submit] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .portal-dashboard { grid-template-columns: 1fr; }
  .news-panel, .middle-stack, .directory-panel { grid-column: auto; }
  .directory-grid { grid-template-columns: repeat(3, 1fr); }
  .beauty-heading { align-items: flex-start; }
  .beauty-heading > div:first-child { flex-wrap: wrap; }
  .beauty-heading p { width: 100%; margin-left: 16px; }
  .beauty-grid { grid-template-columns: 1fr 1fr; }
  .beauty-card { aspect-ratio: 5 / 4; }
  .lower-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: auto 1fr; }
  .footer-contact { grid-column: 1 / -1; text-align: left; }
  .footer-bottom { flex-wrap: wrap; padding: 12px 20px; }
}
@media (max-width: 560px) {
  main, footer { width: calc(100% - 16px); }
  .header-inner { width: calc(100% - 20px); }
  .brand-wordmark strong { font-size: 19px; }
  .brand-wordmark b { font-size: 9px; }
  .hero { min-height: 0; border-radius: 17px; }
  .hero-message h1 { font-size: 28px; }
  .date-widget, .time-widget { min-width: 0; }
  .search-shell { grid-template-columns: 74px 1px minmax(0,1fr) auto; padding: 5px; }
  .search-shell > svg { display: none; }
  .search-shell select { padding: 0 8px; font-size: 14px; }
  .search-shell input { padding: 0 9px; font-size: 14px; }
  .hot-queries { justify-content: flex-start; gap: 10px; }
  .channel-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .channel-card { min-height: 96px; grid-template-columns: 40px 1fr; padding: 13px; }
  .channel-card > svg { width: 38px; height: 38px; }
  .channel-card > b { display: none; }
  .channel-card strong { font-size: 13.5px; }
  .ai-grid, .shop-grid, .directory-grid, .community-links, .life-links { grid-template-columns: repeat(2, 1fr); }
  .beauty-heading { display: block; }
  .beauty-heading > div:last-child { margin-top: 10px; }
  .beauty-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 3px; }
  .beauty-card { flex: 0 0 84%; aspect-ratio: 4 / 5; min-height: 0; scroll-snap-align: start; }
  .life-content { grid-template-columns: 1fr; }
  .life-weather { min-height: 180px; }
  .footer-main { display: flex; flex-direction: column; align-items: flex-start; }
  .footer-slogan { margin: 0; }
  .footer-bottom { align-items: flex-start; }
  .panel { padding: 13px; }
  .panel-heading h2 { font-size: 16px; }
  .source-pills { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
