:root {
    /* 米白主色系 */
    --paper: #f5efe1;            /* 宣纸米白 */
    --paper-soft: #faf6ec;       /* 浅宣纸 */
    --paper-deep: #ede4cf;       /* 深米白 */
    --ink: #2b2620;              /* 墨色 */
    --ink-soft: #4a4138;         /* 淡墨 */
    --ink-light: #6b5d4e;        /* 远墨 */
    --ink-faint: rgba(43, 38, 32, 0.45);
    --cinnabar: #b8403a;         /* 朱砂红 */
    --cinnabar-deep: #8f2e29;
    --jade: #6b8e6b;             /* 青瓷绿 */
    --gold: #b08d3c;             /* 古金 */
    --lotus-pink: #e8a8a8;       /* 莲粉 */

    /* 卡片 */
    --card-bg: rgba(250, 246, 236, 0.78);
    --card-border: rgba(43, 38, 32, 0.18);
    --card-shadow: 0 18px 50px rgba(60, 50, 40, 0.18), 0 4px 12px rgba(60, 50, 40, 0.08);

    /* 字体 */
    --font-brush: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', serif;
    --font-serif: 'ZCOOL XiaoWei', 'Noto Serif SC', 'STKaiti', serif;
    --font-body: 'Noto Serif SC', 'STKaiti', serif;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(176, 141, 60, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(107, 142, 107, 0.05) 0%, transparent 45%),
        linear-gradient(135deg, #f7f1e3 0%, #f0e8d4 50%, #f5efe1 100%);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 16px;
    position: relative;
    transition: background-color 1.2s ease, background-image 1.2s ease;
}

/* 水墨晕染背景纹理 */
.ink-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(43, 38, 32, 0.12) 0%, transparent 35%),
        radial-gradient(ellipse at 85% 25%, rgba(43, 38, 32, 0.08) 0%, transparent 30%),
        radial-gradient(ellipse at 50% 90%, rgba(107, 142, 107, 0.10) 0%, transparent 40%);
    filter: blur(1px);
    opacity: 0.9;
    transition: opacity 1.2s ease;
    will-change: opacity;
}

.ink-bg-2 {
    background:
        radial-gradient(ellipse at 70% 50%, rgba(184, 64, 58, 0.04) 0%, transparent 30%),
        radial-gradient(ellipse at 25% 75%, rgba(176, 141, 60, 0.06) 0%, transparent 35%);
    filter: blur(4px);
    opacity: 0.6;
}

/* 远山剪影 */
.mountain-deco {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

.mountain-deco svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* 主容器 */
.app-container {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    z-index: 10;
}

/* ============ 顶部标题栏 ============ */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

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

.brand-seal {
    width: 48px;
    height: 48px;
    background: var(--cinnabar);
    color: var(--paper-soft);
    font-family: var(--font-brush);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(184, 64, 58, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.15);
    transform: rotate(-3deg);
    letter-spacing: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-brush);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: 2px;
    line-height: 1;
}

.brand-sub {
    font-family: var(--font-serif);
    font-size: 0.78rem;
    color: var(--ink-light);
    margin-top: 4px;
    letter-spacing: 3px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-area {
    position: relative;
}

.user-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--ink-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(60, 50, 40, 0.1);
    position: relative;
    overflow: hidden;
}

.user-toggle i {
    width: 20px;
    height: 20px;
}

.user-toggle .user-seal {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brush);
    font-size: 1.2rem;
    color: var(--paper-soft);
    background: var(--cinnabar);
}

.user-toggle.logged-in .user-seal {
    display: flex;
}

.user-toggle.logged-in i {
    display: none;
}

.user-toggle:hover {
    transform: translateY(-2px);
    color: var(--cinnabar);
    box-shadow: 0 6px 16px rgba(60, 50, 40, 0.15);
}

.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: rgba(250, 246, 236, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 12px 30px rgba(60, 50, 40, 0.18);
    z-index: 100;
    display: none;
}

.user-menu.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.user-greeting {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin-bottom: 12px;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(43, 38, 32, 0.08);
}

.user-greeting span {
    color: var(--cinnabar);
    font-weight: 500;
}

.user-menu-btn {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(43, 38, 32, 0.12);
    border-radius: 10px;
    background: rgba(255, 252, 240, 0.6);
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 2px;
}

.user-menu-btn:hover {
    background: rgba(184, 64, 58, 0.08);
    color: var(--cinnabar);
    border-color: rgba(184, 64, 58, 0.25);
}

.user-menu-btn + .user-menu-btn {
    margin-top: 8px;
}

.verify-status {
    font-family: var(--font-serif);
    font-size: 0.78rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.verify-status.verified {
    color: var(--jade);
}

.verify-status.unverified {
    color: var(--cinnabar);
}

.sound-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--ink-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(60, 50, 40, 0.1);
}

.sound-toggle:hover {
    transform: translateY(-2px);
    color: var(--cinnabar);
    box-shadow: 0 6px 16px rgba(60, 50, 40, 0.15);
}

.sound-toggle.muted {
    color: var(--ink-faint);
}

.sound-toggle i {
    width: 20px;
    height: 20px;
}

/* ============ 搜索栏 ============ */
.search-bar {
    position: relative;
    z-index: 50;
}

.search-bar input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border-radius: 28px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--ink);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(60, 50, 40, 0.08);
    letter-spacing: 1px;
}

.search-bar input::placeholder {
    color: var(--ink-faint);
    font-family: var(--font-serif);
}

.search-bar input:focus {
    background: rgba(250, 246, 236, 0.95);
    border-color: var(--cinnabar);
    box-shadow: 0 8px 22px rgba(184, 64, 58, 0.15);
    transform: translateY(-1px);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-light);
    width: 18px;
    height: 18px;
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(250, 246, 236, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 22px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    max-height: 260px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 12px 30px rgba(60, 50, 40, 0.18);
    content-visibility: auto;
    contain-intrinsic-size: auto 260px;
}

.search-results.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    color: var(--ink-soft);
    border-bottom: 1px solid rgba(43, 38, 32, 0.06);
    font-family: var(--font-body);
    letter-spacing: 0.5px;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: rgba(184, 64, 58, 0.06);
    color: var(--cinnabar);
    padding-left: 26px;
}

/* ============ 主天气卡片 ============ */
.weather-card {
    border-radius: 30px;
    padding: 28px 26px;
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    min-height: 580px;
    display: flex;
    flex-direction: column;
    contain: layout style paint;
    transition: transform 0.15s ease-out, box-shadow 0.4s ease;
    will-change: transform;
}

/* 卡片上的传统纹样边框 */
.weather-card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(43, 38, 32, 0.08);
    border-radius: 24px;
    pointer-events: none;
    z-index: 1;
}

/* 右上角角花 */
.weather-card::after {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    background-image:
        linear-gradient(45deg, transparent 48%, rgba(184, 64, 58, 0.25) 48%, rgba(184, 64, 58, 0.25) 52%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(184, 64, 58, 0.25) 48%, rgba(184, 64, 58, 0.25) 52%, transparent 52%);
    background-size: 12px 12px;
    background-position: 0 0, 0 0;
    background-repeat: no-repeat;
    opacity: 0.4;
    pointer-events: none;
    z-index: 2;
}

/* ============ 3D 莲花舞台 ============ */
.lotus-stage {
    position: relative;
    width: 100%;
    height: 280px;
    margin-bottom: 8px;
    border-radius: 20px;
    overflow: hidden;
    z-index: 2;
    contain: layout style;
}

.lotus-stage canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.lotus-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 240, 200, 0.5) 0%, rgba(232, 168, 168, 0.18) 35%, transparent 70%);
    pointer-events: none;
    filter: blur(8px);
    transition: background 1.2s ease, opacity 1.2s ease;
    will-change: opacity;
    z-index: 0;
}

/* ============ 加载 ============ */
.loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--ink-light);
    background: rgba(250, 246, 236, 0.85);
    backdrop-filter: blur(8px);
    border-radius: inherit;
    z-index: 20;
    letter-spacing: 4px;
}

.loading-ring {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(184, 64, 58, 0.2);
    border-top-color: var(--cinnabar);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============ 天气内容 ============ */
.weather-content {
    animation: fadeIn 0.6s ease-out forwards;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 2;
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
}

.hidden {
    display: none !important;
}

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

.current-weather {
    text-align: center;
    margin-bottom: 22px;
}

.city-name {
    font-family: var(--font-brush);
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 6px;
    letter-spacing: 4px;
    text-shadow: 0 2px 8px rgba(60, 50, 40, 0.1);
}

.date {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--ink-light);
    margin-bottom: 16px;
    letter-spacing: 3px;
}

.desc {
    font-family: var(--font-brush);
    font-size: 1.5rem;
    color: var(--cinnabar);
    margin-bottom: 12px;
    letter-spacing: 4px;
}

.temp {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

#current-temp {
    font-family: 'Noto Serif SC', serif;
    font-size: 5.5rem;
    font-weight: 300;
    line-height: 0.9;
    letter-spacing: -3px;
    color: var(--ink);
    text-shadow: 0 4px 16px rgba(60, 50, 40, 0.12);
}

.degree {
    font-size: 2.6rem;
    font-weight: 300;
    color: var(--ink-soft);
    margin-top: 8px;
}

/* ============ 指标 ============ */
.metrics {
    display: flex;
    justify-content: space-between;
    padding: 20px 8px;
    margin-bottom: 24px;
    border-top: 1px solid rgba(43, 38, 32, 0.12);
    border-bottom: 1px solid rgba(43, 38, 32, 0.12);
    position: relative;
}

/* 中间分隔小印 */
.metrics::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--cinnabar);
    border-radius: 50%;
    opacity: 0.5;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.metric i {
    width: 22px;
    height: 22px;
    color: var(--gold);
}

.metric span {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--ink);
    font-weight: 500;
}

.metric label {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    color: var(--ink-light);
    letter-spacing: 2px;
}

/* ============ 预报 ============ */
.forecast-container {
    width: 100%;
}

.forecast-title {
    font-family: var(--font-brush);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 14px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 3px;
}

.forecast-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: var(--cinnabar);
    border-radius: 2px;
}

.forecast-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forecast-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 252, 240, 0.6);
    border: 1px solid rgba(43, 38, 32, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.forecast-item:hover {
    transform: translateX(4px);
    background: rgba(184, 64, 58, 0.05);
    border-color: rgba(184, 64, 58, 0.2);
}

.fc-day {
    flex: 1;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1rem;
    color: var(--ink);
    letter-spacing: 2px;
}

.fc-cond {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fc-cond i {
    width: 20px;
    height: 20px;
    color: var(--ink-soft);
}

.fc-cond-text {
    font-family: var(--font-serif);
    font-size: 0.82rem;
    color: var(--ink-light);
    letter-spacing: 1px;
}

.fc-temp {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1rem;
}

.fc-temp .max {
    color: var(--cinnabar);
    font-weight: 600;
}

.fc-temp .min {
    color: var(--ink-light);
    font-weight: 400;
}

/* ============ 底部 ============ */
.app-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--ink-light);
    font-family: var(--font-serif);
    font-size: 0.78rem;
    letter-spacing: 4px;
    flex-wrap: wrap;
}

.footer-seal {
    width: 24px;
    height: 24px;
    background: var(--cinnabar);
    color: var(--paper-soft);
    font-family: var(--font-brush);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    opacity: 0.85;
}

/* ============ 滚动条 ============ */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(43, 38, 32, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 64, 58, 0.4);
}

/* ============ 天气主题色变化（背景渐变微调）============ */
body.theme-sunny {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 220, 150, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(176, 141, 60, 0.10) 0%, transparent 45%),
        linear-gradient(135deg, #fbf4dd 0%, #f3e9c9 50%, #f5efe1 100%);
}

body.theme-cloudy {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(107, 142, 107, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(107, 93, 78, 0.12) 0%, transparent 45%),
        linear-gradient(135deg, #efe9d8 0%, #e8e0cc 50%, #ede4cf 100%);
}

body.theme-rainy {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(80, 100, 120, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(60, 80, 100, 0.10) 0%, transparent 45%),
        linear-gradient(135deg, #e6e2d2 0%, #d8d4c2 50%, #ddd8c5 100%);
}

body.theme-snowy {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(200, 210, 220, 0.20) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(180, 190, 200, 0.15) 0%, transparent 45%),
        linear-gradient(135deg, #f4f0e6 0%, #ece8de 50%, #f0ece2 100%);
}

body.theme-storm {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(60, 50, 70, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(50, 50, 60, 0.14) 0%, transparent 45%),
        linear-gradient(135deg, #d8d4c5 0%, #c8c4b5 50%, #d0ccbd 100%);
}

body.theme-foggy {
    background-image:
        radial-gradient(circle at 50% 50%, rgba(180, 180, 170, 0.25) 0%, transparent 50%),
        linear-gradient(135deg, #ebe7da 0%, #e0dcd0 50%, #e5e1d4 100%);
}

/* ============ 注册 / 登录弹窗 ============ */
body.modal-open {
    overflow: hidden;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(43, 38, 32, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.auth-panel {
    width: 100%;
    max-width: 380px;
    background: rgba(250, 246, 236, 0.97);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px 28px 26px;
    box-shadow: var(--card-shadow);
    position: relative;
    animation: fadeInDown 0.35s ease;
}

.auth-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--ink-light);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.auth-close:hover {
    color: var(--cinnabar);
    background: rgba(184, 64, 58, 0.08);
}

.auth-seal {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    background: var(--cinnabar);
    color: var(--paper-soft);
    font-family: var(--font-brush);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(184, 64, 58, 0.35);
    transform: rotate(-3deg);
}

.auth-title {
    font-family: var(--font-brush);
    font-size: 1.8rem;
    font-weight: 400;
    text-align: center;
    color: var(--ink);
    letter-spacing: 4px;
    margin-bottom: 6px;
}

.auth-sub {
    font-family: var(--font-serif);
    font-size: 0.82rem;
    color: var(--ink-light);
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 22px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field label {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.82rem;
    color: var(--ink-light);
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.auth-field input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    background: rgba(255, 252, 240, 0.7);
    color: var(--ink);
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
    transition: all 0.25s ease;
}

.auth-field input:focus {
    border-color: var(--cinnabar);
    box-shadow: 0 0 0 3px rgba(184, 64, 58, 0.12);
    background: rgba(250, 246, 236, 0.95);
}

.auth-field input::placeholder {
    color: var(--ink-faint);
}

.auth-message {
    min-height: 20px;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    text-align: center;
    letter-spacing: 1px;
}

.auth-message.error {
    color: var(--cinnabar);
}

.auth-message.success {
    color: var(--jade);
}

.auth-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 16px;
    background: var(--cinnabar);
    color: var(--paper-soft);
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(184, 64, 58, 0.3);
    margin-top: 4px;
}

.auth-submit:hover:not(:disabled) {
    background: var(--cinnabar-deep);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(184, 64, 58, 0.35);
}

.auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.auth-switch {
    margin-top: 18px;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--ink-light);
    letter-spacing: 1px;
}

.auth-switch a {
    color: var(--cinnabar);
    text-decoration: none;
    margin-left: 4px;
    transition: opacity 0.2s ease;
}

.auth-switch a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.verify-hint {
    font-family: var(--font-serif);
    font-size: 0.88rem;
    color: var(--ink-soft);
    text-align: center;
    letter-spacing: 1px;
    line-height: 1.6;
    margin-bottom: 4px;
}

.verify-hint strong {
    color: var(--cinnabar);
    font-weight: 500;
    word-break: break-all;
}

.demo-code-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(184, 64, 58, 0.06);
    border: 1px dashed rgba(184, 64, 58, 0.3);
    margin-bottom: 4px;
}

.demo-code-label {
    font-family: var(--font-serif);
    font-size: 0.72rem;
    color: var(--ink-light);
    letter-spacing: 2px;
}

.demo-code-value {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 8px;
    color: var(--cinnabar);
    padding-left: 8px;
}

.demo-code-tip {
    font-family: var(--font-serif);
    font-size: 0.7rem;
    color: var(--ink-faint);
    letter-spacing: 1px;
}

#verify-code {
    text-align: center;
    letter-spacing: 8px;
    font-size: 1.25rem;
    font-family: 'Noto Serif SC', serif;
}

.auth-resend {
    width: 100%;
    margin-top: 4px;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--ink-light);
    font-family: var(--font-serif);
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.auth-resend:hover:not(:disabled) {
    color: var(--cinnabar);
}

.auth-resend:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ============ 高端动效增强 ============ */

/* 卡片视差悬停光晕 */
.weather-card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(43, 38, 32, 0.08);
    border-radius: 24px;
    pointer-events: none;
    z-index: 1;
    transition: border-color 0.6s ease;
}

.weather-card:hover {
    box-shadow: 0 24px 60px rgba(60, 50, 40, 0.22), 0 6px 16px rgba(60, 50, 40, 0.1);
}

.weather-card:hover::before {
    border-color: rgba(184, 64, 58, 0.12);
}

/* 墨韵揭幕动画（纯 transform+opacity，避免 blur 触发昂贵的 GPU 合成） */
.ink-reveal {
    animation: inkReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes inkReveal {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 指标卡片微交互 */
.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    padding: 10px 6px;
    border-radius: 14px;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.metric:hover {
    background: rgba(184, 64, 58, 0.05);
    transform: translateY(-2px);
}

.metric i {
    width: 22px;
    height: 22px;
    color: var(--gold);
    transition: transform 0.3s ease, color 0.3s ease;
}

.metric:hover i {
    transform: scale(1.15);
    color: var(--cinnabar);
}

.metric span {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--ink);
    font-weight: 500;
    transition: color 0.3s ease;
}

.metric:hover span {
    color: var(--cinnabar);
}

.metric label {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    color: var(--ink-light);
    letter-spacing: 2px;
}

/* 加载骨架屏脉冲 */
.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 252, 240, 0.4) 50%, transparent 100%);
    animation: shimmer 1.8s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 加载文字呼吸效果 */
.loading span {
    animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 温度数字发光 */
#current-temp {
    transition: text-shadow 0.8s ease;
}

.theme-sunny #current-temp {
    text-shadow: 0 4px 20px rgba(255, 200, 80, 0.2);
}

.theme-rainy #current-temp {
    text-shadow: 0 4px 20px rgba(80, 100, 120, 0.15);
}

.theme-storm #current-temp {
    text-shadow: 0 4px 20px rgba(100, 80, 120, 0.2);
}

/* 品牌印章呼吸光晕 */
.brand-seal {
    animation: sealGlow 4s ease-in-out infinite;
}

@keyframes sealGlow {
    0%, 100% { box-shadow: 0 4px 12px rgba(184, 64, 58, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.15); }
    50% { box-shadow: 0 4px 20px rgba(184, 64, 58, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.25); }
}

/* 搜索框聚焦涟漪 */
.search-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(184, 64, 58, 0.08);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.search-bar:focus-within::after {
    width: 120%;
    height: 300%;
}

/* 预报项交错入场动画 */
.forecast-item {
    will-change: transform, opacity;
}

/* 天气描述文字墨韵渐现 */
.desc {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* 模态框弹入增强 */
.auth-panel {
    animation: modalEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalEnter {
    from { opacity: 0; transform: scale(0.92) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 底部印鉴呼吸 */
.footer-seal {
    animation: footerPulse 5s ease-in-out infinite;
}

@keyframes footerPulse {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* ============ 响应式 ============ */
@media (max-width: 480px) {
    body {
        padding: 16px 12px;
    }
    .app-container {
        gap: 14px;
    }
    .brand-seal {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }
    .brand-title {
        font-size: 1.5rem;
    }
    .brand-sub {
        font-size: 0.72rem;
        letter-spacing: 2px;
    }
    .weather-card {
        padding: 22px 18px;
        border-radius: 24px;
        min-height: 540px;
    }
    .lotus-stage {
        height: 240px;
    }
    .city-name {
        font-size: 2rem;
    }
    #current-temp {
        font-size: 4.5rem;
    }
    .degree {
        font-size: 2.2rem;
    }
    .metrics {
        padding: 16px 4px;
    }
    .metric span {
        font-size: 0.95rem;
    }
    .forecast-item {
        padding: 12px 14px;
    }
}

@media (max-width: 360px) {
    .lotus-stage {
        height: 210px;
    }
    .city-name {
        font-size: 1.7rem;
    }
    #current-temp {
        font-size: 4rem;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
