/* ---------------- Sidebar Styles ---------------- */
#sidebar {
  position: fixed;
  top: 260px; /* 调整以适应头部高度（桌面版内边距110px + 内容约110px + 20px间距） */
  bottom: 40px; /* 距离页面底部40px */
  left: 30px;
  width: 240px;
  max-height: calc(100vh - 260px); /* 限制最大高度，留出更多顶部空间 */
  overflow: auto; /* 如果内容过多，添加滚动条 */
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}
#sidebar h3 {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 8px;
}
#sidebar .section {
  width: 100%;
  text-align: center;
  margin-bottom: 18px;
}
#clock, #countdown {
  font-size: 0.95em;
  color: #222;
  font-weight: 500;
  margin-top: 4px;
}
#quick-links a {
  display: block;
  background: #fff;
  border-radius: 10px;
  margin: 5px 0;
  padding: 6px 0;
  color: #0077cc;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
#quick-links a:hover {
  background: #0077cc;
  color: #fff;
}
/* 桌面窄屏/平板/手机端隐藏固定分栏，避免覆盖中间主内容。
   固定分栏只在足够宽的桌面视口展示；小屏内容优先。 */
@media (max-width: 1320px) {
  #sidebar,
  #right-sidebar {
    display: none;
  }
}

/* 介于 1321px-1500px 的桌面窄屏保留左栏，但收窄并降低存在感；右栏隐藏。 */
@media (min-width: 1321px) and (max-width: 1500px) {
  #sidebar {
    left: 16px;
    width: 200px;
    padding: 16px 12px;
  }
  #right-sidebar {
    display: none;
  }
}
/* ---------------- Right Sidebar Styles ---------------- */
#right-sidebar {
  position: fixed;
  top: 260px;
  bottom: 40px;
  right: 30px;
  width: 280px;
  max-height: calc(100vh - 260px);
  overflow: auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}
#right-sidebar::-webkit-scrollbar {
  width: 4px;
}
#right-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}
#right-sidebar h3 {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 12px;
  width: 100%;
  text-align: center;
}
#right-sidebar .section {
  width: 100%;
  margin-bottom: 18px;
}
.snapshot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.snapshot-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 8px;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.snapshot-item:hover {
  transform: translateY(-2px);
  background: #f0f8ff;
  color: #0077cc;
}
.snapshot-item img {
  width: 45px;
  height: 65px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 10px;
  flex-shrink: 0;
}
.snapshot-item img.steam-img {
  width: 75px;
  height: 35px;
}
.snapshot-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  flex-grow: 1;
  width: 100%;
}
.snapshot-title {
  font-size: 0.9em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.snapshot-meta {
  font-size: 0.8em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.score {
  color: #e67e22;
  font-weight: bold;
}
.discount {
  background: #4c6b22;
  color: #a4d007;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: bold;
}
.price {
  color: #66c0f4;
  font-weight: bold;
}
/* 右栏更早隐藏；1321px-1500px 的规则会覆盖/补充这里的行为。 */
@media (max-width: 1500px) {
  #right-sidebar {
    display: none;
  }
}
/* ---------------- TrendRadar/GitHubIntelligence Special Card ---------------- */
.trend-radar-card, .github-intelligence-card {
    background: linear-gradient(135deg, #1a2942 0%, #2c3e50 100%) !important;
    color: #fff !important;
    border: 1px solid #34495e;
}
.trend-radar-card .feed-title, .github-intelligence-card .feed-title {
    color: #fff !important;
    font-size: 1.4em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.trend-radar-card .feed-meta, .github-intelligence-card .feed-meta {
    color: rgba(255,255,255,0.6) !important;
}
.trend-radar-card .feed-summary, .github-intelligence-card .feed-summary {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1em;
}
.trend-radar-card .trend-radar-badge, .github-intelligence-card .trend-radar-badge {
    background-color: #e74c3c; /* Keep red badge for contrast */
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.trend-radar-card:hover, .github-intelligence-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
/* Hide the image container for TrendRadar cards to give more space to text */
.trend-radar-card .feed-image, .github-intelligence-card .feed-image {
    display: none !important;
}

/* ---------------- Main Daily Styles ---------------- */
.daily-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 0;
    position: relative;
    z-index: 10;
}
.feed-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    width: 100%;
}
@media (min-width: 768px) {
    .feed-item {
        flex-direction: row;
        height: 180px;
    }
}
.feed-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.feed-image {
    width: 100%;
    height: 180px;
    background-color: #f8f9fa;
    flex-shrink: 0;
    position: relative;
}
@media (min-width: 768px) {
    .feed-image {
        width: 240px;
        height: 100%;
    }
}
.feed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feed-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 3em;
}
.feed-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    justify-content: flex-start;
}
.feed-title {
    font-size: 1.25em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.3;
}
.feed-meta {
    font-size: 0.85em;
    color: #7f8c8d;
    margin: 0 0 10px 0;
}
.feed-summary {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trend-radar-badge {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    font-size: 0.75em;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-weight: bold;
    text-transform: uppercase;
    width: fit-content;
}
.date-header {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    color: #555;
    font-size: 2em;
}
.modal-body {
    max-height: 80vh;
    overflow-y: auto;
}
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
#summaryModal .gallery-item {
    flex: 1 1 100%;
    height: 200px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #ddd;
}
#summaryModal .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
@media (min-width: 576px) {
    #summaryModal .gallery-item {
        flex-basis: calc(50% - 5px);
    }
}
@media (min-width: 992px) {
    #summaryModal .gallery-item {
        flex-basis: calc(33.333% - 7px);
    }
}
/* ---------------- Pixel Office Coming Soon ---------------- */
.coming-soon-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    width: 100%;
    position: relative;
    z-index: 10;
    padding: 20px 0 35px;
    cursor: pointer;
}
.pixel-office-card {
    --pixel-bg: #1f2a44;
    --pixel-wall: #28385f;
    --pixel-window: #90d7ff;
    --pixel-window-dark: #4e88b8;
    --pixel-floor: #73513b;
    --pixel-floor-dark: #533827;
    --pixel-line: #172033;
    --pixel-glow: #ffe8a6;
    width: min(100%, 760px);
    background: #f7efe1;
    border: 4px solid var(--pixel-line);
    border-radius: 0;
    box-shadow: 8px 8px 0 rgba(23, 32, 51, 0.18), 0 18px 35px rgba(0,0,0,0.08);
    padding: 12px;
    font-family: "Courier New", "SFMono-Regular", Consolas, monospace;
    image-rendering: pixelated;
}
.pixel-office-toolbar {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #2f3f68;
    border: 4px solid var(--pixel-line);
    border-bottom: 0;
    color: #fff4d6;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.pixel-office-lights {
    display: flex;
    gap: 6px;
}
.pixel-office-lights i {
    width: 10px;
    height: 10px;
    display: block;
    background: #ff5d5d;
    box-shadow: inset -2px -2px 0 rgba(0,0,0,.22);
}
.pixel-office-lights i:nth-child(2) { background: #ffd166; }
.pixel-office-lights i:nth-child(3) { background: #50d890; }
.pixel-office-scene {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border: 4px solid var(--pixel-line);
    background:
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(0deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(180deg, #263b68 0%, var(--pixel-wall) 68%, var(--pixel-floor) 68%, var(--pixel-floor) 100%);
}
.pixel-office-scene::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 32%;
    background:
        repeating-linear-gradient(90deg, transparent 0 38px, rgba(23,32,51,.22) 38px 42px),
        repeating-linear-gradient(0deg, transparent 0 22px, rgba(83,56,39,.65) 22px 26px);
    pointer-events: none;
}
.pixel-window {
    position: absolute;
    top: 36px;
    left: 42px;
    width: 190px;
    height: 124px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.32), transparent 40%),
        linear-gradient(135deg, var(--pixel-window) 0 48%, var(--pixel-window-dark) 49% 100%);
    border: 5px solid var(--pixel-line);
    box-shadow: inset 0 -10px 0 rgba(23,32,51,.15), 7px 7px 0 rgba(23,32,51,.16);
}
.pixel-window::before,
.pixel-window::after {
    content: "";
    position: absolute;
    background: var(--pixel-line);
}
.pixel-window::before { left: 50%; top: 0; width: 5px; height: 100%; transform: translateX(-50%); }
.pixel-window::after { left: 0; top: 50%; width: 100%; height: 5px; transform: translateY(-50%); }
.pixel-skyline {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 38px;
    background:
      linear-gradient(#35527e,#35527e) 0 14px / 26px 24px no-repeat,
      linear-gradient(#2d446b,#2d446b) 38px 2px / 34px 36px no-repeat,
      linear-gradient(#3e5d8d,#3e5d8d) 86px 20px / 30px 18px no-repeat,
      linear-gradient(#314a74,#314a74) 128px 8px / 36px 30px no-repeat;
    opacity: .9;
}
.pixel-clock {
    position: absolute;
    top: 43px;
    right: 62px;
    width: 62px;
    height: 62px;
    background: #fff4d6;
    border: 5px solid var(--pixel-line);
    box-shadow: 5px 5px 0 rgba(23,32,51,.16);
}
.pixel-clock::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 12px;
    width: 5px;
    height: 22px;
    background: var(--pixel-line);
    transform-origin: bottom center;
    animation: pixelTick 12s steps(12) infinite;
}
.pixel-clock::after {
    content: "";
    position: absolute;
    left: 29px;
    top: 28px;
    width: 18px;
    height: 5px;
    background: var(--pixel-line);
}
.pixel-desk {
    position: absolute;
    left: 50%;
    bottom: 60px;
    width: 430px;
    height: 72px;
    transform: translateX(-50%);
    background: #9d6b43;
    border: 5px solid var(--pixel-line);
    box-shadow: inset 0 -14px 0 #6c452d, 8px 8px 0 rgba(23,32,51,.16);
    z-index: 4;
}
.pixel-desk::before,
.pixel-desk::after {
    content: "";
    position: absolute;
    bottom: -70px;
    width: 34px;
    height: 70px;
    background: #6c452d;
    border: 5px solid var(--pixel-line);
    border-top: 0;
}
.pixel-desk::before { left: 34px; }
.pixel-desk::after { right: 34px; }
.pixel-monitor {
    position: absolute;
    left: 50%;
    bottom: 132px;
    width: 220px;
    height: 132px;
    transform: translateX(-50%);
    background: #20283f;
    border: 6px solid var(--pixel-line);
    box-shadow: 7px 7px 0 rgba(23,32,51,.18);
    z-index: 5;
}
.pixel-monitor::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 14px;
    bottom: 24px;
    background:
      linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px) 0 0 / 12px 12px,
      linear-gradient(0deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 12px 12px,
      #10182a;
    border: 4px solid #0b1020;
    box-shadow: 0 0 0 4px rgba(144,215,255,.1), inset 0 0 18px rgba(80,216,144,.18);
}
.pixel-monitor::after {
    content: "COMING SOON";
    position: absolute;
    left: 30px;
    top: 44px;
    color: #50d890;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 2px 0 0 rgba(80,216,144,.25);
    animation: pixelBlink 1.6s steps(2) infinite;
}
.pixel-monitor-stand {
    position: absolute;
    left: 50%;
    bottom: 100px;
    width: 70px;
    height: 36px;
    transform: translateX(-50%);
    background: #20283f;
    border: 5px solid var(--pixel-line);
    z-index: 4;
}
.pixel-keyboard {
    position: absolute;
    left: 50%;
    bottom: 104px;
    width: 190px;
    height: 26px;
    transform: translateX(-50%);
    background:
      repeating-linear-gradient(90deg, #edf2f4 0 12px, #cbd5e1 12px 16px);
    border: 4px solid var(--pixel-line);
    z-index: 6;
}
.pixel-mug {
    position: absolute;
    left: calc(50% + 150px);
    bottom: 120px;
    width: 38px;
    height: 44px;
    background: #ff6b6b;
    border: 5px solid var(--pixel-line);
    box-shadow: inset -8px 0 0 rgba(0,0,0,.16);
    z-index: 6;
}
.pixel-mug::before {
    content: "";
    position: absolute;
    right: -20px;
    top: 10px;
    width: 16px;
    height: 18px;
    border: 5px solid var(--pixel-line);
    border-left: 0;
}
.pixel-mug::after {
    content: "";
    position: absolute;
    left: 6px;
    top: -22px;
    width: 5px;
    height: 18px;
    background: rgba(255,255,255,.72);
    box-shadow: 12px -5px 0 rgba(255,255,255,.48);
    animation: pixelSteam 2.4s steps(4) infinite;
}
.pixel-plant {
    position: absolute;
    left: calc(50% - 214px);
    bottom: 120px;
    width: 46px;
    height: 40px;
    background: #d98245;
    border: 5px solid var(--pixel-line);
    z-index: 6;
}
.pixel-plant::before {
    content: "";
    position: absolute;
    left: -12px;
    bottom: 34px;
    width: 68px;
    height: 58px;
    background:
      linear-gradient(#50d890,#50d890) 18px 6px / 14px 42px no-repeat,
      linear-gradient(#36a36f,#36a36f) 34px 18px / 14px 34px no-repeat,
      linear-gradient(#50d890,#50d890) 2px 22px / 18px 14px no-repeat,
      linear-gradient(#36a36f,#36a36f) 48px 4px / 18px 16px no-repeat;
    animation: pixelPlant 3s steps(3) infinite;
}
.pixel-lamp {
    position: absolute;
    right: 190px;
    bottom: 134px;
    width: 76px;
    height: 118px;
    z-index: 5;
}
.pixel-lamp::before {
    content: "";
    position: absolute;
    left: 32px;
    bottom: 0;
    width: 8px;
    height: 84px;
    background: var(--pixel-line);
}
.pixel-lamp::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    width: 58px;
    height: 34px;
    background: #ffd166;
    border: 5px solid var(--pixel-line);
    box-shadow: 0 0 0 8px rgba(255,209,102,.12), 0 0 30px rgba(255,209,102,.3);
    animation: pixelLamp 2s steps(2) infinite;
}
.pixel-cat {
    position: absolute;
    left: calc(50% + 228px);
    bottom: 54px;
    width: 74px;
    height: 42px;
    background: #2d2a32;
    border: 5px solid var(--pixel-line);
    border-radius: 0;
    z-index: 5;
}
.pixel-cat::before {
    content: "";
    position: absolute;
    left: 8px;
    top: -30px;
    width: 42px;
    height: 32px;
    background:
      linear-gradient(135deg, transparent 0 48%, #2d2a32 49%) 0 -15px / 20px 20px no-repeat,
      linear-gradient(225deg, transparent 0 48%, #2d2a32 49%) 22px -15px / 20px 20px no-repeat,
      #2d2a32;
    border: 5px solid var(--pixel-line);
    border-bottom: 0;
}
.pixel-cat::after {
    content: "";
    position: absolute;
    right: -26px;
    top: 0;
    width: 28px;
    height: 10px;
    background: #2d2a32;
    border: 5px solid var(--pixel-line);
    animation: pixelTail 1.8s steps(3) infinite;
}
.pixel-office-copy {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 18px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    color: #fff4d6;
    z-index: 7;
    pointer-events: none;
}
.pixel-office-copy h2 {
    margin: 0;
    color: #fff4d6;
    font-size: 1.55em;
    line-height: 1.25;
    text-shadow: 3px 3px 0 rgba(23,32,51,.85);
}
.pixel-office-copy p {
    margin: 8px 0 0;
    color: #c9d7ee;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.pixel-progress {
    min-width: 180px;
    color: #fff4d6;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}
.pixel-progress-bar {
    display: block;
    height: 16px;
    margin-top: 8px;
    background: #10182a;
    border: 4px solid var(--pixel-line);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.06);
}
.pixel-progress-bar i {
    display: block;
    width: 68%;
    height: 100%;
    background: repeating-linear-gradient(90deg, #50d890 0 12px, #36a36f 12px 16px);
    animation: pixelLoading 2.8s steps(6) infinite alternate;
}
@keyframes pixelBlink { 0%, 70% { opacity: 1; } 71%, 100% { opacity: .45; } }
@keyframes pixelTick { to { transform: rotate(360deg); } }
@keyframes pixelSteam { 0% { transform: translateY(6px); opacity: .15; } 50% { opacity: .75; } 100% { transform: translateY(-8px); opacity: 0; } }
@keyframes pixelPlant { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(2px); } }
@keyframes pixelLamp { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.13); } }
@keyframes pixelTail { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pixelLoading { from { width: 48%; } to { width: 82%; } }

/* ---- Easter Egg: Pixel Plant Trigger ---- */
.pixel-plant {
    cursor: pointer;
    transition: filter 0.3s;
}
.pixel-plant:hover {
    filter: brightness(1.3) drop-shadow(0 0 12px rgba(255, 209, 102, 0.7));
}

/* ---- JZXM Terminal Overlay ---- */
#jzxm-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0b0c10;
    z-index: 99999;
    overflow-y: auto;
    animation: jzxmFadeIn 0.3s ease;
}
@keyframes jzxmFadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
#jzxm-overlay::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(31,40,51,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31,40,51,0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}
.jzxm-terminal {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 50px auto;
    padding: 0 30px 60px;
    font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
}
.jzxm-term-header {
    border-bottom: 1px solid rgba(102,252,241,0.15);
    padding-bottom: 30px;
    margin-bottom: 40px;
}
.jzxm-term-prompt {
    color: #a0a0a0;
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.jzxm-term-prompt .g { color: #4caf50; font-weight: bold; }
.jzxm-term-prompt .w { color: #fff; margin: 0 4px; }
.jzxm-term-prompt .b { color: #2196f3; font-weight: bold; }
.jzxm-term-prompt .y { color: #ffeb3b; }
.jzxm-term-title {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 700;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
}
.jzxm-term-title::before {
    content: ">_ ";
    color: #4caf50;
    animation: blink 1.2s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.jzxm-term-desc {
    color: #8a9bb5;
    font-size: 1.25rem;
    margin: 0;
}
.jzxm-term-close {
    position: fixed;
    top: 20px;
    right: 24px;
    color: #666;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 100000;
    transition: color 0.2s;
    font-family: sans-serif;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
}
.jzxm-term-close:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.jzxm-cat {
    margin-bottom: 36px;
}
.jzxm-cat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.jzxm-cat-badge {
    display: inline-block;
    background: rgba(102,252,241,0.1);
    color: #66fcf1;
    font-size: 17px;
    font-weight: 700;
    padding: 5px 16px;
    border: 1px solid rgba(102,252,241,0.2);
    letter-spacing: 1px;
}
.jzxm-cat-count {
    color: #555;
    font-size: 15px;
}
.jzxm-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.jzxm-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.02);
    text-decoration: none;
    transition: all 0.2s;
}
.jzxm-item:hover {
    background: rgba(102,252,241,0.06);
    border-color: rgba(102,252,241,0.15);
    transform: translateX(4px);
}
.jzxm-idx {
    color: #4caf50;
    font-size: 17px;
    flex-shrink: 0;
    min-width: 40px;
}
.jzxm-name {
    color: #e0e0e0;
    font-size: 1.35rem;
    flex: 1;
    line-height: 1.5;
}
.jzxm-item:hover .jzxm-name { color: #fff; }
.jzxm-date {
    color: #555;
    font-size: 15px;
    flex-shrink: 0;
}
.jzxm-footer {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: #444;
    font-size: 15px;
    text-align: center;
}
@media (max-width: 768px) {
    .jzxm-terminal { margin: 20px auto; padding: 0 16px 40px; }
    .jzxm-term-title { font-size: 2.2rem; }
    .jzxm-name { font-size: 1.15rem; }
    .jzxm-item { flex-wrap: wrap; gap: 6px 16px; padding: 10px 14px; }
    .jzxm-date { font-size: 13px; }
}

/* ---------------- Pixel News Card (toggle) ---------------- */
.coming-soon-section.news-open {
    align-items: center;
}
.pixel-news-card {
    width: min(100%, 760px);
    position: relative;
    background: #f7efe1;
    border: 4px solid #172033;
    box-shadow: 8px 8px 0 rgba(23, 32, 51, 0.18), 0 18px 35px rgba(0,0,0,0.08);
    padding: 12px;
    font-family: "Courier New", "SFMono-Regular", Consolas, monospace;
    image-rendering: pixelated;
    animation: pixelNewsReveal 0.34s cubic-bezier(.2,.8,.2,1);
}
@keyframes pixelNewsReveal {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.pixel-news-subtitle {
    font-size: 11px;
    color: #c9d7ee;
    letter-spacing: 0.8px;
    text-transform: none;
    white-space: nowrap;
}
.pixel-news-hint {
    padding: 8px 12px;
    color: #9fb2d0;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    line-height: 1.5;
}
.pixel-news-toolbar {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #2f3f68;
    border: 4px solid #172033;
    border-bottom: 0;
    color: #fff4d6;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.pixel-news-close {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
    color: #ff5d5d;
    transition: color 0.2s;
}
.pixel-news-close:hover {
    color: #ff8a8a;
}

/* ---- News Scene (dark inner area) ---- */
.pixel-news-scene {
    border: 4px solid #172033;
    background:
      radial-gradient(circle at 12% 0%, rgba(102,194,255,0.10), transparent 32%),
      linear-gradient(180deg, #1a2338 0%, #121a2b 100%);
    height: 360px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3d4f78 #1a2338;
}
.pixel-news-scene::-webkit-scrollbar { width: 6px; }
.pixel-news-scene::-webkit-scrollbar-track { background: #1a2338; }
.pixel-news-scene::-webkit-scrollbar-thumb { background: #3d4f78; border-radius: 3px; }

/* ---- Info Bar (top) ---- */
.news-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.news-info-bar .bar-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: #6b7fa3;
    font-weight: 600;
    text-transform: uppercase;
}
.news-info-bar .bar-date {
    font-size: 11px;
    color: #6b7fa3;
}

/* ---- News Detail Card (primary view, flex center) ---- */
.pixel-news-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 16px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(102,194,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(102,194,255,0.18);
    border-left: 5px solid #66c2ff;
    animation: pixelNewsReveal 0.3s ease;
}
.pixel-news-detail .detail-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 10px;
    margin-bottom: 10px;
    color: #fff;
    background: #ff5d5d;
    text-transform: uppercase;
    width: fit-content;
}
.pixel-news-detail .detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.35;
}
.pixel-news-detail .detail-summary {
    color: #b9c7dc;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 14px;
}
.pixel-news-detail .detail-meta {
    color: #8a9bb5;
    font-size: 11px;
}
.pixel-news-detail .detail-hint {
    margin-top: 10px;
    font-size: 12px;
    color: #66c2ff;
    opacity: 0.7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---- Date Strip (bottom) ---- */
.news-date-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.news-date-strip::-webkit-scrollbar { display: none; }
.news-date-strip .date-label {
    font-size: 11px;
    color: #6b7fa3;
    white-space: nowrap;
    margin-right: 4px;
    flex-shrink: 0;
    font-weight: 600;
}
.news-date-strip .date-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    transition: all 0.15s;
    flex-shrink: 0;
    min-width: 48px;
}
.news-date-strip .date-cell:hover {
    background: rgba(102,194,255,0.12);
    border-color: rgba(102,194,255,0.3);
}
.news-date-strip .date-cell.active {
    background: #66c2ff;
    border-color: #66c2ff;
}
.news-date-strip .date-cell .d-num {
    font-size: 16px;
    font-weight: 700;
    color: #e8edf5;
    line-height: 1;
}
.news-date-strip .date-cell .d-weekday {
    font-size: 10px;
    color: #8a9bb5;
    margin-top: 3px;
}
.news-date-strip .date-cell.active .d-num { color: #1a2338; }
.news-date-strip .date-cell.active .d-weekday { color: #1a2338; }
.news-date-strip .cal-toggle {
    font-size: 12px;
    color: #66c2ff;
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid rgba(102,194,255,0.25);
    background: rgba(102,194,255,0.06);
    transition: all 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
}
.news-date-strip .cal-toggle:hover {
    color: #66c2ff;
    border-color: rgba(102,194,255,0.3);
}

/* ---- Calendar Panel ---- */
.news-calendar-panel {
    margin: 10px 16px 16px;
    display: none;
    animation: pixelNewsReveal 0.25s ease;
}
.news-calendar-panel.open { display: block; }
.news-calendar-panel .cal-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 12px;
}
.news-calendar-panel .cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.news-calendar-panel .cal-nav button {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: #8a9bb5;
    font-size: 14px;
    padding: 2px 10px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s, border-color 0.15s;
}
.news-calendar-panel .cal-nav button:hover {
    color: #66c2ff;
    border-color: rgba(102,194,255,0.3);
}
.news-calendar-panel .cal-month-label {
    color: #e8edf5;
    font-size: 13px;
    font-weight: 600;
}
.news-calendar-panel .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}
.news-calendar-panel .cal-hd {
    font-size: 10px;
    color: #8a9bb5;
    padding: 4px 0;
}
.news-calendar-panel .cal-day {
    font-size: 12px;
    color: #555;
    padding: 6px 0;
    cursor: default;
    position: relative;
    transition: all 0.15s;
}
.news-calendar-panel .cal-day.empty { color: #333; }
.news-calendar-panel .cal-day.has-report {
    color: #e8edf5;
    cursor: pointer;
    font-weight: 600;
}
.news-calendar-panel .cal-day.has-report:hover {
    background: rgba(102,194,255,0.15);
    color: #66c2ff;
}
.news-calendar-panel .cal-day.has-report::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: #66c2ff;
    border-radius: 50%;
    margin: 2px auto 0;
}
.news-calendar-panel .cal-day.active {
    background: rgba(102,194,255,0.22);
    color: #66c2ff;
}
.news-calendar-panel .cal-day.today:not(.has-report) {
    color: #8a9bb5;
    font-weight: 600;
}
.news-calendar-panel .cal-day.today {
    outline: 1px solid rgba(102,194,255,0.3);
    outline-offset: -1px;
}

/* ---- News empty state ---- */
.news-empty-state {
    padding: 30px 14px;
    text-align: center;
    color: #8a9bb5;
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .coming-soon-section {
        min-height: 430px;
        padding-top: 10px;
    }
    .pixel-office-card {
        padding: 8px;
        box-shadow: 5px 5px 0 rgba(23, 32, 51, 0.18);
    }
    .pixel-office-toolbar {
        font-size: 11px;
        padding: 0 8px;
    }
    .pixel-office-scene {
        min-height: 340px;
    }
    .pixel-news-scene {
        height: 340px;
    }
    .pixel-window {
        left: 22px;
        top: 34px;
        width: 128px;
        height: 90px;
    }
    .pixel-clock,
    .pixel-lamp,
    .pixel-cat {
        display: none;
    }
    .pixel-desk {
        width: 310px;
        bottom: 70px;
    }
    .pixel-monitor {
        width: 174px;
        height: 112px;
        bottom: 142px;
    }
    .pixel-monitor::after {
        left: 23px;
        top: 39px;
        font-size: 14px;
    }
    .pixel-keyboard {
        bottom: 114px;
        width: 148px;
    }
    .pixel-mug {
        left: calc(50% + 105px);
        bottom: 130px;
    }
    .pixel-plant {
        left: calc(50% - 155px);
        bottom: 130px;
    }
    .pixel-office-copy {
        left: 16px;
        right: 16px;
        bottom: 16px;
        display: block;
    }
    .pixel-office-copy h2 {
        font-size: 1.12em;
    }
    .pixel-office-copy p {
        font-size: 11px;
    }
    .pixel-progress {
        min-width: 0;
        margin-top: 12px;
        text-align: left;
    }
    .pixel-news-card {
        padding: 8px;
        box-shadow: 5px 5px 0 rgba(23, 32, 51, 0.18);
    }
    .pixel-news-toolbar {
        font-size: 11px;
        padding: 0 8px;
    }
    .pixel-news-card {
        width: 100%;
    }
    .pixel-news-subtitle {
        display: none;
    }
    .pixel-news-detail {
        margin: 8px 8px 0;
        padding: 12px;
    }
    .pixel-news-detail .detail-title {
        font-size: 14px;
    }
    .pixel-news-detail .detail-summary {
        font-size: 12px;
    }
    .news-date-strip {
        padding: 8px;
        gap: 4px;
    }
    .news-date-strip .date-cell {
        padding: 4px 6px;
        min-width: 34px;
    }
    .news-calendar-panel {
        margin: 0 8px 8px;
    }
    .news-calendar-panel .cal-card {
        padding: 8px;
    }
    .news-calendar-panel .cal-day {
        font-size: 11px;
        padding: 4px 0;
    }
}

/* ---- Daily Sections (News + GWY stacked in one card) ---- */
.daily-section {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.daily-section:first-child {
    margin-top: 0;
}
.daily-section-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.section-icon {
    font-size: 14px;
}
.section-label {
    color: #8899bb;
}

/* ---- Tuitui Modal: Bright Study Theme ---- */
.tuitui-modal-dialog { max-width: 780px; }
.tuitui-modal-content {
  background: #fdf8f0;
  border: 2px solid #d4c5a9;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
}
.tuitui-modal-header {
  background: linear-gradient(135deg, #f5e6c8 0%, #fdf8f0 100%);
  border-bottom: 2px solid #e8d5b7;
  border-radius: 12px 12px 0 0;
  padding: 20px 24px 16px;
  position: relative;
}
.tuitui-modal-title {
  color: #5a3e1b;
  font-size: 1.4em;
  font-weight: 700;
  margin: 0;
}
.tuitui-modal-date {
  color: #8b7355;
  font-size: 0.85em;
  margin-top: 4px;
}
.tuitui-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  color: #8b7355;
  opacity: 0.7;
}
.tuitui-modal-close:hover { opacity: 1; color: #5a3e1b; }
.tuitui-modal-body {
  padding: 0;
  max-height: 75vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d4c5a9 #fdf8f0;
}
.tuitui-modal-body::-webkit-scrollbar { width: 6px; }
.tuitui-modal-body::-webkit-scrollbar-track { background: #fdf8f0; }
.tuitui-modal-body::-webkit-scrollbar-thumb { background: #d4c5a9; border-radius: 3px; }

/* Section dividers */
.tuitui-section-group {
  padding: 20px 24px;
  border-bottom: 1px solid #e8d5b7;
}
.tuitui-section-group:last-child { border-bottom: none; }
.tuitui-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px dashed #d4c5a9;
}
.tuitui-section-heading .badge {
  display: inline-block;
  background: #5a3e1b;
  color: #fdf8f0;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.tuitui-section-heading .badge.leibi { background: #7b5ea7; }
.tuitui-section-heading h4 {
  color: #5a3e1b;
  font-size: 1.05em;
  margin: 0;
  font-weight: 600;
}

/* Individual question */
.tuitui-q-block {
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #e8d5b7;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tuitui-q-block:last-child { margin-bottom: 0; }
.tuitui-q-header {
  padding: 8px 16px;
  background: #faf4ea;
  border-bottom: 1px solid #e8d5b7;
  font-size: 13px;
  color: #8b7355;
  font-weight: 600;
}
.tuitui-q-text {
  padding: 12px 16px 4px;
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}
.tuitui-q-img {
  text-align: center;
  padding: 8px 16px 12px;
}
.tuitui-q-img img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #e0d5c3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.tuitui-q-toggle {
  padding: 10px 16px;
  border-top: 1px dashed #e0d5c3;
  cursor: pointer;
  color: #8b7355;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  transition: color 0.2s, background 0.2s;
}
.tuitui-q-toggle:hover {
  color: #5a3e1b;
  background: #faf4ea;
}
.tuitui-q-toggle .arrow {
  font-size: 10px;
  transition: transform 0.2s;
  display: inline-block;
}
.tuitui-q-toggle .arrow.open { transform: rotate(90deg); }
.tuitui-q-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}
.tuitui-q-answer.open {
  max-height: 600px;
  padding: 10px 16px 14px;
}
.tuitui-q-answer .ref {
  color: #c0392b;
  font-weight: 600;
  margin-bottom: 6px;
}
.tuitui-q-answer .exp {
  color: #666;
  font-size: 13px;
  line-height: 1.8;
}

/* Empty state */
.tuitui-empty {
  text-align: center;
  padding: 40px 20px;
  color: #8b7355;
  font-size: 14px;
}

.chengyu-modal-dialog { max-width: 720px; }
.chengyu-modal-content { background: #fefcf7; border: 2px solid #c9b896; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.15); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif; }
.chengyu-modal-header { background: linear-gradient(135deg, #f0e4cc 0%, #fefcf7 100%); border-bottom: 2px solid #ddd0b5; border-radius: 12px 12px 0 0; padding: 20px 24px 16px; position: relative; }
.chengyu-modal-title { color: #4a3520; font-size: 1.4em; font-weight: 700; margin: 0; }
.chengyu-modal-meta { color: #8b7355; font-size: 0.85em; margin-top: 4px; }
.chengyu-modal-close { position: absolute; top: 16px; right: 20px; font-size: 24px; color: #8b7355; opacity: 0.7; }
.chengyu-modal-close:hover { opacity: 1; color: #4a3520; }
.chengyu-modal-body { padding: 24px; max-height: 75vh; overflow-y: auto; }
.chengyu-card { background: #fff; border: 1px solid #e0d5c3; border-radius: 8px; padding: 16px 20px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.chengyu-card:last-child { margin-bottom: 0; }
.chengyu-card .cy-num { display: inline-block; background: #4a3520; color: #fefcf7; font-size: 11px; font-weight: 700; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; margin-right: 10px; }
.chengyu-card .cy-idiom { font-size: 1.15em; font-weight: 700; color: #4a3520; letter-spacing: 2px; }
.chengyu-card .cy-def { margin-top: 8px; font-size: 14px; color: #555; line-height: 1.8; padding-left: 32px; }
.chengyu-empty { text-align: center; padding: 40px 20px; color: #8b7355; font-size: 14px; }

        /* Modal Customization */
        .modal-content {
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            border: none;
        }
        .modal-header {
            border-bottom: 1px solid #eee;
            padding: 20px 25px;
            background: #f8f9fa;
            border-radius: 12px 12px 0 0;
        }
        .modal-title {
            font-weight: 700;
            color: #2c3e50;
            font-size: 1.5em;
        }
        .modal-body {
            padding: 25px;
            font-size: 1.05em;
            line-height: 1.7;
            color: #333;
        }
        /* Markdown Styles within Modal */
        .markdown-body h1, .markdown-body h2, .markdown-body h3 {
            margin-top: 1.5em;
            margin-bottom: 0.8em;
            font-weight: 600;
            color: #2c3e50;
        }
        .markdown-body h1 { font-size: 1.8em; border-bottom: 2px solid #eee; padding-bottom: 0.3em; }
        .markdown-body h2 { font-size: 1.5em; border-bottom: 1px solid #eee; padding-bottom: 0.3em; }
        .markdown-body h3 { font-size: 1.25em; }
        .markdown-body ul, .markdown-body ol {
            padding-left: 20px;
            margin-bottom: 1em;
        }
        .markdown-body li {
            margin-bottom: 0.5em;
        }
        .markdown-body p {
            margin-bottom: 1em;
        }
        .markdown-body blockquote {
            border-left: 4px solid #007bff;
            padding: 10px 15px;
            color: #666;
            background: #f1f8ff;
            border-radius: 4px;
            margin: 1em 0;
        }
        .markdown-body code {
            background: #f6f8fa;
            padding: 2px 6px;
            border-radius: 4px;
            font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
            font-size: 0.9em;
            color: #d63384;
        }
        .markdown-body pre {
            background: #f6f8fa;
            padding: 15px;
            border-radius: 8px;
            overflow: auto;
            margin: 1em 0;
        }
        .markdown-body pre code {
            background: transparent;
            padding: 0;
            color: inherit;
        }
        .markdown-body a {
            color: #0366d6;
            text-decoration: none;
        }
        .markdown-body a:hover {
            text-decoration: underline;
        }
        /* Dark Theme Specifics for TrendRadar */
        .modal-content.trend-radar-theme {
            background: #1a2942;
            color: #e0e6ed;
        }
        .trend-radar-theme .modal-header {
            background: #152238;
            border-bottom: 1px solid #2c3e50;
        }
        .trend-radar-theme .modal-title {
            color: #fff;
        }
        .trend-radar-theme .close {
            color: #fff;
            opacity: 0.8;
            text-shadow: none;
        }
        .trend-radar-theme .close:hover {
            opacity: 1;
        }
        .trend-radar-theme .modal-body {
            color: #e0e6ed;
        }
        .trend-radar-theme .markdown-body h1, 
        .trend-radar-theme .markdown-body h2, 
        .trend-radar-theme .markdown-body h3 {
            color: #fff;
            border-color: #34495e;
        }
        .trend-radar-theme .markdown-body blockquote {
            background: #25334d;
            border-left-color: #e74c3c;
            color: #b0b8c3;
        }
        .trend-radar-theme .markdown-body code {
            background: #2c3e50;
            color: #ff7b72;
        }
        .trend-radar-theme .markdown-body pre {
            background: #25334d;
            border: 1px solid #34495e;
        }
        .trend-radar-theme .markdown-body a {
            color: #58a6ff;
        }
        .trend-radar-theme .modal-footer {
            border-top: 1px solid #2c3e50;
        }
        .trend-radar-theme .btn-default {
            background: #34495e;
            border: none;
            color: #fff;
        }
        .trend-radar-theme .btn-default:hover {
            background: #465f76;
        }
        
        .modal-footer {
            border-top: 1px solid #eee;
            padding: 15px 25px;
        }

/* ---------------- Backroom (wall clock easter egg) ---------------- */
.pixel-clock {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.pixel-clock:hover {
    transform: translateY(-3px) rotate(3deg);
    box-shadow: 5px 5px 0 rgba(0,0,0,.3), 0 0 18px rgba(255,209,102,.45);
}

/* ---------------- Ground Defense (coffee mug easter egg) ---------------- */
.pixel-mug {
    cursor: pointer;
    transition: transform 0.15s;
}
.pixel-mug:hover {
    transform: translateY(-3px) rotate(-4deg);
}
#game-overlay {
    position: fixed;
    inset: 0;
    display: none;
    background:
        radial-gradient(circle at 50% 24%, rgba(76, 40, 130, 0.28), transparent 55%),
        rgba(4, 6, 12, 0.95);
    z-index: 1200;
    overflow-y: auto;
}
#game-overlay .game-close {
    position: fixed;
    top: 22px;
    right: 28px;
    width: 42px;
    height: 42px;
    font-size: 17px;
    font-weight: 700;
    color: #ffd166;
    background: #1a1428;
    border: 1px solid rgba(255, 209, 102, 0.4);
    border-radius: 8px;
    cursor: pointer;
}
#game-overlay .game-close:hover {
    background: rgba(255, 209, 102, 0.16);
}
.game-cabinet {
    max-width: 680px;
    margin: 52px auto 64px;
    padding: 0 16px;
    filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.6));
}
.game-marquee {
    position: relative;
    padding: 20px 16px 16px;
    text-align: center;
    background: linear-gradient(180deg, #3b1f5e 0%, #251243 100%);
    border: 1px solid rgba(255, 209, 102, 0.35);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    box-shadow: inset 0 -8px 22px rgba(0, 0, 0, 0.45), 0 0 34px rgba(255, 178, 74, 0.14);
}
.game-marquee::before,
.game-marquee::after {
    content: "";
    position: absolute;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffd166;
    box-shadow: 0 0 10px rgba(255, 209, 102, 0.9);
}
.game-marquee::before { left: 16px; }
.game-marquee::after { right: 16px; }
.game-marquee-cn {
    display: block;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.34em;
    text-indent: 0.34em;
    color: #ffd166;
    text-shadow: 0 0 14px rgba(255, 190, 80, 0.7), 0 0 2px #fff8e0;
}
.game-marquee-en {
    display: block;
    margin-top: 7px;
    font-size: 10px;
    letter-spacing: 0.52em;
    text-indent: 0.52em;
    color: #b78bd6;
}
.game-screen {
    position: relative;
    padding: 14px;
    background: #05070d;
    border-left: 1px solid rgba(255, 209, 102, 0.22);
    border-right: 1px solid rgba(255, 209, 102, 0.22);
}
#game-canvas {
    display: block;
    width: 100%;
    background: #0d1420;
    cursor: crosshair;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    border-radius: 4px;
    box-shadow: 0 0 26px rgba(64, 224, 208, 0.10);
}
.game-scanlines {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    pointer-events: none;
    border-radius: 4px;
    background: repeating-linear-gradient(0deg,
        rgba(0, 0, 0, 0.22) 0px, rgba(0, 0, 0, 0.22) 1px,
        transparent 1px, transparent 3px);
    box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.6);
}
.game-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 16px 18px 18px;
    background: linear-gradient(180deg, #131829 0%, #0d1120 100%);
    border: 1px solid rgba(255, 209, 102, 0.22);
    border-top: 2px solid rgba(255, 209, 102, 0.45);
    border-radius: 0 0 16px 16px;
}
.game-key {
    min-width: 26px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: #cdd6f4;
    background: #1c2440;
    border: 1px solid #3a4666;
    border-radius: 6px;
    box-shadow: 0 2px 0 #3a4666;
}
.game-label {
    margin-right: 8px;
    font-size: 12px;
    color: #8899bb;
}
.game-tip {
    width: 100%;
    font-size: 11px;
    color: #6b7a99;
}
@media (max-width: 767px) {
    .game-cabinet { margin: 26px auto 40px; }
    .game-marquee-cn { font-size: 22px; }
}
