/* 首屏布局：文字在右，画面与快捷入口在左。 */
.hero-content { display: flex; flex-direction: column; align-items: flex-end; }
.hero-content > .eyebrow, .hero-content > h1, .hero-content > .hero-description, .hero-content > .hero-primary { width: min(100%, 380px); }
.hero-content > .hero-primary { text-align: center; }
.floating-entries { right: auto; left: max(18px, calc((100vw - 1600px) / 2)); }
.floating-entry:hover, .floating-entry:focus-visible { transform: translateX(4px); }
@media (min-width: 821px) {
  .hero-art, .hero-rays { right: auto; left: max(40px, calc((100% - 1200px) / 2)); transform: scaleX(-1); }
  .hero-shade { background: linear-gradient(270deg, #041c39 0%, #041c39d9 24%, #041c3930 48%, transparent 62%), linear-gradient(0deg, #061d34 0%, transparent 18%); }
}
@media (max-width: 820px) { .floating-entries { right: auto; left: 18px; } }
@media (max-width: 480px) { .floating-entries { right: auto; left: 12px; } }
@media (max-width: 820px) { .hero-content > .eyebrow { justify-content: flex-end; } .hero-content > h1, .hero-content > .hero-description { text-align: right; } }
/* 缩短桌面首屏，同时让右侧整组内容在首屏内垂直居中。 */
@media (min-width: 821px) {
  .hero { height: clamp(520px, 60vh, 640px); }
  .hero-content { height: 100%; box-sizing: border-box; padding-top: 0; padding-bottom: 0; justify-content: center; }
}
/* 安卓与 iOS 官方下载入口。 */
.hero-mobile-downloads { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:16px; }
.hero-mobile-card { display:flex; align-items:center; gap:8px; min-width:0; min-height:68px; padding:10px; text-align:left; border:1px solid #7194a9aa; border-radius:14px; color:#f3f8ff; background:linear-gradient(135deg,#0b2035ed,#071426ed); box-shadow:inset 0 1px 0 #ffffff16,0 5px 18px #00101d66; cursor:pointer; transition:border-color .2s,transform .2s,background .2s; }
.hero-mobile-card:hover { border-color:#71dce7; transform:translateY(-2px); background:linear-gradient(135deg,#10334bee,#0a2034ee); }
.hero-mobile-card:focus-visible { outline:2px solid #ffd47c; outline-offset:3px; }
.hero-mobile-card img { width:24px; height:24px; object-fit:contain; filter:invert(1); flex:none; }
.hero-mobile-copy { display:grid; gap:4px; flex:1; min-width:0; }
.hero-mobile-copy strong { font-size:13px; white-space:nowrap; }
.hero-mobile-copy small { font-size:11px; color:#a9c0d0; white-space:nowrap; }
.hero-mobile-badge { flex:none; color:#ffd47c; border:1px solid #b38a43; border-radius:20px; padding:3px 6px; font-size:10px; font-weight:800; white-space:nowrap; }
@media (max-width:480px) { .hero-mobile-card { gap:5px; padding:8px 6px; } .hero-mobile-card img { width:20px; height:20px; } .hero-mobile-copy strong { font-size:12px; } .hero-mobile-badge { padding:3px 4px; } .floating-entries { top:auto; bottom:16px; transform:none; } }
.hero-content > .hero-description { line-height:1.65; color:#d5e9f7; }
@media (max-width:480px) { .hero-content > .hero-description { font-size:13px; line-height:1.6; } }
@media (min-width:821px) {
  .hero-content > h1 { font-size:clamp(46px, 4.5vw, 68px); }
  .hero-content > .hero-primary { margin-top:16px; }
  .hero-trust { margin-top:12px; padding-top:10px; }
  .hero-mobile-downloads { margin-top:10px; }
}
/* 天气卡片 B 方案：放大当前天气与按实际数据计算的全天时间轴。 */
#weather-dashboard .current-weather { display:flex; flex-direction:column; border-color:#53bad28c; background:radial-gradient(ellipse at 15% 25%,#1a617749,transparent 48%),linear-gradient(145deg,#123b57,#08243b); box-shadow:inset 0 0 28px #38bdda12,0 8px 24px #00132955; }
#weather-dashboard .current-weather > header { background:transparent; border-bottom:1px solid #84dcea28; padding:17px 22px; gap:10px; }
#weather-dashboard .current-weather > header h3 { font-size:18px; color:#e6f8ff; }
#weather-dashboard .current-weather > header .reference-tag { padding:7px 13px; color:#bcefff; border-color:#55c7e1; background:#0c506c; font-size:12px; font-variant-numeric:tabular-nums; letter-spacing:0; }
#weather-dashboard .current-weather-main { flex:1; padding:22px 24px 14px; gap:20px; align-items:center; }
#weather-dashboard .current-weather-icon { width:140px; height:92px; flex:none; background:none; }
#weather-dashboard .current-weather-icon .weather-art { width:140px; height:84px; border-radius:12px; object-fit:cover; filter:drop-shadow(0 7px 12px #00162388); }
#weather-dashboard .current-weather-icon svg { width:85px; height:85px; }
#weather-dashboard .current-weather-main > div > h3 { color:#ffce6f; font-size:clamp(32px,2.8vw,42px); line-height:1.2; margin:0 0 8px; }
#weather-dashboard .current-weather-main p { font-size:14px; line-height:1.5; color:#c7deea; margin-bottom:10px; }
#weather-dashboard .next-weather { font-size:12px; padding:5px 10px; background:#164d68; border-color:#478aa7; color:#d8f5ff; }
#weather-dashboard .weather-strip-wrap { padding:35px 24px 24px; }
#weather-dashboard .weather-timeline { position:relative; }
#weather-dashboard .weather-strip { height:57px; border:1px solid #7de6f3; border-radius:15px; box-shadow:0 0 15px #28d9f32d; overflow:hidden; background:#163b57; }
#weather-dashboard .weather-segment { border-right:1px solid #b6effb88; overflow:hidden; }
#weather-dashboard .weather-segment.type-sunny { background:linear-gradient(145deg,#ffc46c,#ce7633 55%,#8c4d2e); }
#weather-dashboard .weather-segment.type-rain, #weather-dashboard .weather-segment.type-heavy-rain, #weather-dashboard .weather-segment.type-storm { background:linear-gradient(145deg,#346b9a,#163b70); }
#weather-dashboard .weather-segment.type-snow, #weather-dashboard .weather-segment.type-heavy-snow, #weather-dashboard .weather-segment.type-blizzard { background:linear-gradient(145deg,#b5d6e8,#567eaa); }
#weather-dashboard .weather-segment.type-fog { background:linear-gradient(145deg,#91aab9,#4d697e); }
#weather-dashboard .weather-segment.type-sand { background:linear-gradient(145deg,#d4ac67,#856440); }
#weather-dashboard .weather-segment.current { outline:2px solid #ffdd83; outline-offset:-2px; }
#weather-dashboard .weather-segment .weather-art { width:64px; height:39px; object-fit:cover; border-radius:7px; }
#weather-dashboard .weather-segment svg { width:38px; height:38px; }
#weather-dashboard .weather-now-marker { position:absolute; left:0; top:-17px; width:2px; height:calc(100% + 17px); background:#ffe087; box-shadow:0 0 9px #ffd66daa; z-index:5; pointer-events:none; }
#weather-dashboard .weather-now-marker span { position:absolute; top:-19px; left:50%; transform:translateX(-50%); border-radius:99px; padding:3px 7px; background:#ffdc85; color:#50390e; font-size:10px; font-weight:900; white-space:nowrap; }
#weather-dashboard .weather-axis { position:relative; margin-top:8px; font-size:12px; color:#c7edf8; }
@media (max-width:1100px) { #weather-dashboard .current-weather-icon { width:105px; } #weather-dashboard .current-weather-icon .weather-art { width:105px; height:66px; } }
@media (max-width:820px) { #weather-dashboard .current-weather-main { min-height:140px; } }
@media (max-width:480px) { #weather-dashboard .current-weather > header { padding:15px; } #weather-dashboard .current-weather > header .reference-tag { font-size:11px; } #weather-dashboard .current-weather-main { padding:18px 15px 8px; gap:12px; } #weather-dashboard .current-weather-icon { width:92px; } #weather-dashboard .current-weather-icon .weather-art { width:92px; height:58px; } #weather-dashboard .current-weather-main > div > h3 { font-size:29px; } #weather-dashboard .current-weather-main p { font-size:12px; } #weather-dashboard .next-weather { font-size:10px; } #weather-dashboard .weather-strip-wrap { padding:31px 15px 20px; } #weather-dashboard .weather-strip { height:47px; } #weather-dashboard .weather-segment .weather-art { width:48px; height:29px; } }
#weather-dashboard .weather-periods { display:flex; flex-wrap:wrap; gap:6px 12px; margin-top:13px; color:#d8edf5; font-size:11px; line-height:1.45; }
#weather-dashboard .weather-periods span { white-space:nowrap; }
#weather-dashboard .weather-periods b { color:#99c8da; font-weight:600; }
#weather-dashboard .weather-segment.type-sand { background:linear-gradient(145deg,#b4935e,#73513f); }
/* 轮播控制放在画面一侧，避开右侧首屏按钮。 */
@media (min-width:821px) { .hero-carousel-controls { left:max(40px,calc((100% - 1200px)/2)); right:auto; } }
/* 浮动充值入口上移，避开首屏轮播操作。 */
@media (min-width:481px) { .floating-entries { top:40%; } }
@media (max-width:480px) { .floating-entries { top:auto; bottom:120px; } }
/* Keep all three exploration tabs inside narrow mobile viewports. */
@media (max-width:360px) { .world-tabs button { min-width:0; min-height:44px; padding-inline:4px; white-space:normal; line-height:1.25; } }
@media(max-width:820px){.world-tabs{min-width:0;max-width:100%;box-sizing:border-box}.world-tabs button{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.3}}

/* 四次特殊天气等宽排列，非线性时间间隔以窄色条表示。 */
#weather-dashboard .weather-strip-wrap { --weather-gap-width:12px; }
#weather-dashboard .weather-event-strip,
#weather-dashboard .weather-event-axis { display:grid; grid-template-columns:minmax(0,1fr) var(--weather-gap-width) minmax(0,1fr) var(--weather-gap-width) minmax(0,1fr) var(--weather-gap-width) minmax(0,1fr); }
#weather-dashboard .weather-event-strip .weather-segment { position:relative; top:auto; bottom:auto; min-width:0; border-right:0; }
#weather-dashboard .weather-event-strip .weather-missing { background:#173449; }
#weather-dashboard .weather-gap { background:#173449; }
#weather-dashboard .weather-gap.is-sunny { background:linear-gradient(145deg,#ffc46c,#ce7633 55%,#8c4d2e); }
#weather-dashboard .weather-event-axis { gap:0; align-items:start; text-align:center; line-height:1.35; }
#weather-dashboard .weather-start { display:flex; flex-direction:column; align-items:center; min-width:0; color:#c7edf8; font-variant-numeric:tabular-nums; }
#weather-dashboard .weather-start b { color:#e6f8ff; }
#weather-dashboard .weather-start-missing { justify-content:center; color:#99b9c6; font-size:11px; }
@media (max-width:480px) { #weather-dashboard .weather-strip-wrap { --weather-gap-width:8px; } #weather-dashboard .weather-event-axis { font-size:11px; } #weather-dashboard .weather-start-missing { font-size:10px; } }

/* 天气文字按内容撑开卡片，长名称换行，完整时段保留在卡片内。 */
#weather-dashboard .reference-panel > header { flex-wrap:wrap; min-width:0; }
#weather-dashboard .reference-panel > header > *,
#weather-dashboard .current-weather-main > div:not(.current-weather-icon) { min-width:0; max-width:100%; overflow-wrap:anywhere; }
#weather-dashboard .current-weather-main > div:not(.current-weather-icon) { flex:1; }
#weather-dashboard .current-weather > header .reference-tag,
#weather-dashboard .weather-pets-weather,
#weather-dashboard .next-weather { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
#weather-dashboard .weather-report { display:flex; flex-wrap:wrap; align-items:stretch; }
#weather-dashboard .weather-report > header { flex:0 1 auto; max-width:100%; }
#weather-dashboard .weather-report-items { flex:1 1 24rem; min-width:0; max-width:100%; align-items:center; padding:12px 15px; }
#weather-dashboard .weather-report-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; flex:0 1 auto; align-items:center; gap:4px 10px; min-width:0; max-width:100%; padding:8px 12px; }
#weather-dashboard .weather-report-card .activity-icon { margin:0; }
#weather-dashboard .weather-report-card h4 { min-width:0; overflow-wrap:anywhere; }
#weather-dashboard .weather-report-card > strong { white-space:nowrap; font-variant-numeric:tabular-nums; }
#weather-dashboard .weather-report-card > small { grid-column:2 / -1; min-width:0; overflow-wrap:anywhere; }
#weather-dashboard .weather-week .week-grid { grid-template-columns:repeat(7,minmax(0,1fr)); }
#weather-dashboard .weather-week .week-day,
#weather-dashboard .weather-week-item { min-width:0; }
#weather-dashboard .weather-week .week-day > h4,
#weather-dashboard .weather-week-item > span { min-width:0; overflow-wrap:anywhere; }
#weather-dashboard .weather-week-item > span { flex:1 1 3em; }
