/* ============================================================
 * IP 天气查询系统 - 样式表
 * 深色科技风 + 金色主题 + 鼠标四态 + 手机竖版自适应
 * 背景随天气变化（sunny/partly/cloudy/rain/snow/fog/thunder）
 * ============================================================ */

:root {
    --bg-1: #0b0f1a;
    --bg-2: #141a2b;
    --card: rgba(20, 26, 43, 0.88);
    --card-border: rgba(255, 255, 255, 0.09);
    --text: #e8ecf5;
    --text-dim: #9aa5bd;
    --gold: #f5c542;
    --gold-light: #ffe08a;
    --gold-dark: #c89b1e;
    --gold-deep: #8f6d0c;
    --red: #ff5d5d;
    --green: #4ade80;
    --blue: #6ea8ff;
    --radius: 14px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    min-height: 100%;
    background: #0b0f1a;
}

body {
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    min-height: 100vh;
    padding: 32px 16px 48px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background 0.6s ease;
}

/* ============================================================
 * 天气背景主题（12 种：晴/多云/雾/雨/大雨暴雨/雪/大雪暴雪
 *                    风/大风/龙卷风/雷阵雨/雷暴/沙尘暴）
 * ============================================================ */
body.weather-sunny {
    background: linear-gradient(160deg, #1e3a5f 0%, #4a6f9e 48%, #b97f35 100%);
}

body.weather-cloud {
    background: linear-gradient(160deg, #232a38 0%, #454e5e 50%, #1b212c 100%);
}

/* 阴：更灰暗，无太阳 */
body.weather-overcast {
    background: linear-gradient(160deg, #1d232e 0%, #39414f 52%, #161b24 100%);
}

body.weather-fog {
    background: linear-gradient(160deg, #3a3f47 0%, #6a7078 52%, #2c3036 100%);
}

body.weather-rain {
    background: linear-gradient(160deg, #0d1420 0%, #243447 55%, #0a0e16 100%);
}

body.weather-heavy-rain {
    background: linear-gradient(160deg, #09121f 0%, #16263b 55%, #070b12 100%);
}

body.weather-snow {
    background: linear-gradient(160deg, #22303f 0%, #5a6f83 52%, #1c2632 100%);
}

body.weather-heavy-snow {
    background: linear-gradient(160deg, #2c3d4f 0%, #77899b 50%, #232f3d 100%);
}

body.weather-wind {
    background: linear-gradient(160deg, #1c2733 0%, #4a5a6a 52%, #141c26 100%);
}

body.weather-gale {
    background: linear-gradient(160deg, #15202e 0%, #3a4d61 52%, #0f1620 100%);
}

body.weather-tornado {
    background: linear-gradient(160deg, #141221 0%, #33283f 52%, #0a0a14 100%);
}

body.weather-thundershower {
    background: linear-gradient(160deg, #121528 0%, #2a2345 52%, #0a0d18 100%);
}

body.weather-thunderstorm {
    background: linear-gradient(160deg, #100d22 0%, #241638 52%, #070912 100%);
}

body.weather-sandstorm {
    background: linear-gradient(160deg, #3a2f1a 0%, #6b5426 52%, #241c0d 100%);
}

/* ============================================================
 * 天气特效粒子层（DOM 动画，pointer-events 穿透）
 * ============================================================ */
.wx-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.wx {
    position: absolute;
    pointer-events: none;
}

/* --- 晴：金色光点上浮 --- */
.wx.sun-ray {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffe08a 0%, rgba(255, 224, 138, 0) 70%);
    box-shadow: 0 0 8px rgba(255, 224, 138, 0.9);
    animation-name: wx-sun;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes wx-sun {
    0%   { transform: translateY(0); opacity: 0; }
    15%  { opacity: 0.95; }
    100% { transform: translateY(-92vh); opacity: 0; }
}

/* --- 多云/阴：太阳 + 白云（太阳发光，白云缓缓漂过） --- */
.wx.cloud-sun {
    left: 14%;
    top: 10%;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffe9ad 0%, #ffd35c 45%, rgba(255, 197, 66, 0) 72%);
    box-shadow: 0 0 46px rgba(255, 211, 92, 0.75), 0 0 90px rgba(255, 197, 66, 0.35);
    animation: wx-sun-pulse 3.6s ease-in-out infinite;
}

.wx.cloud-sun::before {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 230%; height: 230%;
    margin-left: -115%; margin-top: -115%;
    background: conic-gradient(from 0deg,
        rgba(255, 224, 138, 0) 0deg, rgba(255, 224, 138, 0.5) 14deg, rgba(255, 224, 138, 0) 28deg,
        rgba(255, 224, 138, 0) 180deg, rgba(255, 224, 138, 0.5) 194deg, rgba(255, 224, 138, 0) 208deg);
    border-radius: 50%;
    animation: wx-sun-spin 18s linear infinite;
    pointer-events: none;
}

@keyframes wx-sun-pulse {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.08); }
}

@keyframes wx-sun-spin {
    to { transform: rotate(360deg); }
}

.wx.cloud {
    width: 130px; height: 38px;
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.16);
    filter: blur(12px);
    animation-name: wx-cloud;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.wx.cloud:nth-child(3n) { width: 190px; height: 52px; opacity: 0.8; }
.wx.cloud:nth-child(3n+1) { width: 90px; height: 26px; opacity: 0.55; }

@keyframes wx-cloud {
    0%   { transform: translateX(112vw); opacity: 0; }
    12%  { opacity: 0.85; }
    88%  { opacity: 0.85; }
    100% { transform: translateX(-36vw); opacity: 0; }
}

/* --- 雾：大块雾气缓慢浮动 --- */
.wx.fog {
    width: 58vw; height: 22vh;
    border-radius: 50%;
    background: rgba(185, 196, 214, 0.13);
    filter: blur(26px);
    animation-name: wx-fog;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes wx-fog {
    0%   { transform: translateX(-20vw); opacity: 0.4; }
    50%  { opacity: 0.9; }
    100% { transform: translateX(120vw); opacity: 0.4; }
}

/* --- 雨：斜雨丝 --- */
.wx.rain {
    width: 2px; height: 16px;
    top: -24px;
    background: linear-gradient(180deg, rgba(160, 200, 255, 0) 0%, rgba(160, 200, 255, 0.75) 100%);
    border-radius: 2px;
    animation-name: wx-rain;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes wx-rain {
    0%   { transform: translateY(-30px); opacity: 0; }
    10%  { opacity: 1; }
    100% { transform: translateY(105vh); opacity: 0.25; }
}

/* --- 大雨/暴雨：更密更长更斜 --- */
.wx.hrain {
    width: 2px; height: 26px;
    top: -30px;
    background: linear-gradient(180deg, rgba(150, 195, 255, 0) 0%, rgba(150, 195, 255, 0.85) 100%);
    border-radius: 2px;
    animation-name: wx-hrain;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes wx-hrain {
    0%   { transform: translate(-14px, -36px); opacity: 0; }
    10%  { opacity: 1; }
    100% { transform: translate(46px, 105vh); opacity: 0.3; }
}

/* --- 雪：雪花左右飘落 --- */
.wx.snow {
    width: 8px; height: 8px;
    top: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%);
    animation-name: wx-snow;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes wx-snow {
    0%   { transform: translate(0, -20px); opacity: 0; }
    12%  { opacity: 1; }
    25%  { transform: translate(26px, 26vh); }
    50%  { transform: translate(-22px, 52vh); }
    75%  { transform: translate(20px, 78vh); }
    100% { transform: translate(-12px, 105vh); opacity: 0.4; }
}

/* --- 大雪/暴雪：密集雪花 + 风偏移 --- */
.wx.hsnow {
    width: 10px; height: 10px;
    top: -14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0) 70%);
    animation-name: wx-hsnow;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes wx-hsnow {
    0%   { transform: translate(0, -24px); opacity: 0; }
    10%  { opacity: 1; }
    30%  { transform: translate(70px, 32vh); }
    60%  { transform: translate(-34px, 64vh); }
    100% { transform: translate(52px, 105vh); opacity: 0.35; }
}

/* --- 风：横向风线（右→左） --- */
.wx.wind-line {
    width: 90px; height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(205, 225, 255, 0.55) 55%, rgba(255, 255, 255, 0) 100%);
    animation-name: wx-wind;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes wx-wind {
    0%   { transform: translateX(112vw); opacity: 0; }
    12%  { opacity: 0.85; }
    100% { transform: translateX(-32vw); opacity: 0; }
}

/* --- 大风：更长更亮的风线 + 飞尘 --- */
.wx.gale {
    width: 150px; height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(225, 240, 255, 0.75) 55%, rgba(255, 255, 255, 0) 100%);
    animation-name: wx-wind;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.wx.gale:nth-child(5n) {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(214, 226, 240, 0.7);
    box-shadow: 0 0 6px rgba(214, 226, 240, 0.6);
}

/* --- 沙尘暴：土黄沙尘横飞 --- */
.wx.sand {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(216, 180, 106, 0.85);
    box-shadow: 0 0 6px rgba(216, 180, 106, 0.55);
    animation-name: wx-sand;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes wx-sand {
    0%   { transform: translateX(112vw); opacity: 0; }
    10%  { opacity: 0.95; }
    100% { transform: translateX(-24vw); opacity: 0; }
}

/* --- 龙卷风：粒子绕中心旋转上升 --- */
.wx.tornado {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(210, 220, 235, 0.75);
    box-shadow: 0 0 7px rgba(210, 220, 235, 0.7);
    animation-name: wx-tornado;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes wx-tornado {
    0%   { transform: rotate(0deg) translate(var(--tx, 40px), 0) translateY(0); opacity: 0; }
    15%  { opacity: 0.95; }
    100% { transform: rotate(1080deg) translate(var(--tx, 40px), 0) translateY(-74vh); opacity: 0; }
}

/* 龙卷风中心漏斗 */
.wx.tornado-body {
    left: 50%;
    top: 42%;
    width: 220px;
    height: 260px;
    margin-left: -110px;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(190, 205, 225, 0.28) 0%, transparent 62%),
        radial-gradient(ellipse at 50% 28%, rgba(190, 205, 225, 0.2) 0%, transparent 55%);
    border-radius: 50%;
    filter: blur(2px);
    animation: wx-tornado-body 1.1s linear infinite;
}

@keyframes wx-tornado-body {
    0%   { transform: rotate(0deg) scaleY(1); }
    50%  { transform: rotate(180deg) scaleY(1.16); }
    100% { transform: rotate(360deg) scaleY(1); }
}

/* --- 雷阵雨 / 雷暴：雨（复用 hrain 视觉） --- */
.wx.tshower {
    width: 2px; height: 20px;
    top: -26px;
    background: linear-gradient(180deg, rgba(160, 200, 255, 0) 0%, rgba(160, 200, 255, 0.8) 100%);
    border-radius: 2px;
    animation-name: wx-rain;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.wx.thunder {
    width: 2px; height: 26px;
    top: -30px;
    background: linear-gradient(180deg, rgba(150, 195, 255, 0) 0%, rgba(150, 195, 255, 0.85) 100%);
    border-radius: 2px;
    animation-name: wx-hrain;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* 闪电全屏闪烁（多次明暗，模拟真实闪电） */
.wx-flash {
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 0;
    animation: wx-flash-fade 0.54s ease-out;
}

@keyframes wx-flash-fade {
    0%   { opacity: 1; }
    18%  { opacity: 0.12; }
    32%  { opacity: 0.95; }
    50%  { opacity: 0.08; }
    66%  { opacity: 0.7; }
    100% { opacity: 0; }
}

/* 叉状闪电图形（锯齿折线，发光） */
.wx.bolt {
    width: 44px;
    height: 230px;
    background: rgba(235, 245, 255, 0.95);
    clip-path: polygon(
        38% 0, 58% 0, 48% 26%, 72% 26%, 40% 60%, 55% 60%,
        26% 100%, 34% 66%, 14% 66%, 44% 32%, 24% 32%);
    filter: drop-shadow(0 0 12px rgba(210, 230, 255, 0.95))
            drop-shadow(0 0 26px rgba(160, 200, 255, 0.6));
    animation: wx-bolt-flicker 0.54s ease-out;
}

@keyframes wx-bolt-flicker {
    0%   { opacity: 0; }
    8%   { opacity: 1; }
    20%  { opacity: 0.15; }
    32%  { opacity: 1; }
    48%  { opacity: 0.08; }
    62%  { opacity: 0.8; }
    100% { opacity: 0; }
}

/* ============================================================
 * 卡片布局
 * ============================================================ */
.container {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.card {
    background: rgba(16, 22, 38, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 28px 30px 26px;
}

/* 头部 */
.head { text-align: center; margin-bottom: 24px; }

.head-icon {
    width: 58px; height: 58px;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    background: linear-gradient(135deg, rgba(245, 197, 66, 0.22), rgba(245, 197, 66, 0.05));
    border: 1px solid rgba(245, 197, 66, 0.35);
    border-radius: 16px;
    box-shadow: 0 0 24px rgba(245, 197, 66, 0.25);
}

.head h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.head p { margin-top: 6px; font-size: 13px; color: var(--text-dim); }

/* ============================================================
 * IP 输入框（四态金色）
 * ============================================================ */
.form { margin-bottom: 4px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    padding-left: 2px;
}

/* ============================================================
 * IP 分段输入控件（自绘：四段 + 点分隔，四态金色）
 * ============================================================ */
.ip-input {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 48px;
    padding: 0 10px;
    background: rgba(13, 17, 29, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.ip-input:hover {
    border-color: rgba(245, 197, 66, 0.55);
    background: rgba(13, 17, 29, 0.9);
}

/* 任一段获得焦点：容器金色光晕 */
.ip-input:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.18), 0 0 16px rgba(245, 197, 66, 0.22);
    background: rgba(13, 17, 29, 0.95);
}

.ip-input.invalid {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(255, 93, 93, 0.15);
}

.ip-seg {
    flex: 1;
    min-width: 0;
    height: 30px;
    padding: 0 2px;
    border: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
    text-align: center;
    font-size: 16px;
    font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
    color: var(--text);
    appearance: none;
    -webkit-appearance: none;
    caret-color: var(--gold);
    transition: color 0.2s ease;
}

/* 段无任何边框/背景，聚焦仅文字变色 */
.ip-seg:focus { color: var(--gold-light); }

.ip-seg::selection { background: rgba(245, 197, 66, 0.3); }

.ip-dot {
    color: var(--gold);
    font-size: 16px;
    font-weight: 700;
    user-select: none;
    pointer-events: none;
}

/* ============================================================
 * 状态与加载
 * ============================================================ */
.status {
    display: none;
    margin-top: 14px;
    padding: 11px 16px;
    font-size: 14px;
    border-radius: 10px;
    line-height: 1.5;
}

.status.show { display: block; animation: fadeIn 0.3s ease; }

.status-error {
    color: #ffb3b3;
    background: rgba(255, 93, 93, 0.12);
    border: 1px solid rgba(255, 93, 93, 0.4);
}

.status-empty {
    color: #ffd98a;
    background: rgba(245, 197, 66, 0.1);
    border: 1px solid rgba(245, 197, 66, 0.35);
}

.loading {
    display: none;
    margin-top: 14px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 0;
}

.loading.show { display: flex; animation: fadeIn 0.3s ease; }

.spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(245, 197, 66, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading .tip { font-size: 13px; color: var(--text-dim); }

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
 * 当前天气
 * ============================================================ */
.now {
    display: none;
    margin-top: 20px;
    padding: 22px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 14px;
}

.now.show { display: flex; animation: fadeIn 0.4s ease; }

.now-left { flex: 1 1 200px; min-width: 180px; }

.now-temp {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.now-desc { margin-top: 6px; font-size: 15px; color: var(--text-dim); }

.now-right { flex: 1 1 220px; min-width: 180px; display: flex; flex-direction: column; gap: 6px; }

.now-icon { font-size: 52px; line-height: 1; }

.now-loc { font-size: 17px; font-weight: 600; color: var(--gold-light); }

.now-meta { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

/* ============================================================
 * 15 天预报（横向滚动 + 细线金色滚动条）
 * ============================================================ */
.forecast { margin-top: 22px; }

.sec-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-left: 2px;
    letter-spacing: 0.5px;
}

.fc-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 6px 18px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.fc-scroll::-webkit-scrollbar { display: none; }

/* 拖拽中：抓手光标 + 卡片不响应 hover/翻转 */
.fc-scroll:active { cursor: grabbing; }

.fc-scroll.dragging .fc-card {
    pointer-events: none;
    transition: none;
}

/* 卡片：横向平铺，实心不透明，hover 金色光晕 + 3D 翻转详情 */
.fc-card {
    flex: 0 0 112px;
    border-radius: 12px;
    text-align: center;
    background: #161d2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    perspective: 800px;
    z-index: 1;
    will-change: transform;
    transition: transform 0.25s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

/* hover：金色光晕高亮（不位移） */
.fc-card:hover {
    border-color: rgba(245, 197, 66, 0.6);
    background: #1e2740;
    box-shadow: 0 12px 28px rgba(245, 197, 66, 0.28);
}

/* 3D 翻转容器 */
.fc-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.fc-card.flipped .fc-inner { transform: rotateY(180deg); }

.fc-face,
.fc-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 11px;
}

.fc-face {
    padding: 14px 8px 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 背面详情 */
.fc-back {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transform: rotateY(180deg);
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    background: linear-gradient(180deg, #40351a, #2a2110);
    border: 1px solid rgba(245, 197, 66, 0.45);
}

.fb-date { font-size: 12px; color: var(--gold-light); font-weight: 600; }

.fb-icon { font-size: 26px; }

.fb-desc { font-size: 12px; color: var(--text-dim); }

.fb-temp { font-size: 13px; font-weight: 600; color: #ffd98a; }

.fb-rain { font-size: 11px; color: var(--blue); }

.fb-wind { font-size: 11px; color: var(--text-dim); }

/* 卡片默认统一灰色（无金色高亮），hover 金色光晕（不位移，3D 由万花筒控制） */
.fc-card.active {
    border-color: var(--gold-dark);
    background: rgba(245, 197, 66, 0.18);
    box-shadow: 0 0 20px rgba(245, 197, 66, 0.3);
}

.fc-date { font-size: 12px; color: var(--text-dim); }

.fc-week { font-size: 12px; margin-top: 2px; color: var(--gold-light); font-weight: 600; }

.fc-icon { font-size: 28px; margin: 10px 0 6px; }

.fc-desc { font-size: 12px; color: var(--text-dim); min-height: 18px; }

.fc-temp { margin-top: 6px; font-size: 14px; font-weight: 600; }

.fc-temp .hi { color: #ffd98a; }

.fc-temp .lo { color: var(--text-dim); margin-left: 4px; }

.fc-rain { margin-top: 4px; font-size: 11px; color: var(--blue); }

.fc-loading { padding: 26px 0; width: 100%; text-align: center; color: var(--text-dim); font-size: 13px; }

/* 页脚 */
.foot {
    margin-top: 22px;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    opacity: 0.75;
}

/* ============================================================
 * 手机竖版自适应
 * ============================================================ */
@media (max-width: 640px) {
    body { padding: 18px 12px 36px; }

    .card { padding: 22px 18px 22px; border-radius: 12px; }

    .head h1 { font-size: 20px; }

    .ip-input { height: 50px; }

    .ip-seg { height: 34px; font-size: 16px; }

    .now { padding: 18px; }

    .now-temp { font-size: 46px; }

    .fc-card { flex: 0 0 106px; }
}
