/**
 * Brave Love Theme Extra Styles
 */

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.22rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span,
.gallery-pagination a,
.gallery-pagination span,
.notes-pagination a,
.notes-pagination span,
.love-list-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.85rem;
    border: 1px solid var(--editorial-border-subtle);
    background: var(--editorial-surface-base);
    border-radius: 999px;
    color: rgba(120, 86, 92, 0.94);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow:
        0 10px 20px rgba(24, 14, 22, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pagination a:hover,
.gallery-pagination a:hover,
.notes-pagination a:hover,
.love-list-pagination a.page-numbers:hover {
    border-color: rgba(255, 81, 98, 0.22);
    background: var(--editorial-surface-hover);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow:
        0 12px 24px rgba(24, 14, 22, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pagination .current,
.gallery-pagination .current,
.notes-pagination .current,
.love-list-pagination .page-numbers.current {
    border-color: rgba(255, 81, 98, 0.18);
    background: var(--editorial-surface-active);
    color: var(--primary-color);
    box-shadow:
        0 10px 22px rgba(255, 81, 98, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.page-hero-section + .content-section {
    padding-bottom: 0.62rem;
}

/* 评论分页 */
.comment-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.comment-navigation a {
    color: var(--primary-color);
    font-size: 0.875rem;
}

/* 说说图片网格优化 */
.note-images {
    gap: 4px;
}

.note-images.count-1 .note-image {
    border-radius: 8px;
}

.note-images.count-2 .note-image,
.note-images.count-4 .note-image {
    aspect-ratio: 1;
}

/* 淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 导航栏毛玻璃效果增强 */
.navbar-brave.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-brave.scrolled .navbar-brand-subtitle {
    color: var(--text-muted) !important;
}

/* 导航栏汉堡菜单颜色调整 */
.navbar-brave.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%2833,37,41,0.9%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* 响应式调整 */
@media (max-width: 575px) {
    .pagination a,
    .pagination span {
        min-width: 34px;
        height: 34px;
        padding: 0 0.75rem;
        font-size: 0.8rem;
    }
    
    .note-images.count-5 .note-image:nth-child(1),
    .note-images.count-5 .note-image:nth-child(2) {
        grid-column: span 1;
    }
    
    .note-images.count-5 .note-image:nth-child(3),
    .note-images.count-5 .note-image:nth-child(4),
    .note-images.count-5 .note-image:nth-child(5) {
        grid-column: span 1;
    }
    
    .note-images.count-7 .note-image:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .note-images.count-8 .note-image:nth-child(1),
    .note-images.count-8 .note-image:nth-child(2),
    .note-images.count-8 .note-image:nth-child(3) {
        grid-column: span 1;
    }
}


        html[data-theme="dark"] .pagination a,
    html[data-theme="dark"] .pagination span,
    html[data-theme="dark"] .gallery-pagination a,
    html[data-theme="dark"] .gallery-pagination span,
    html[data-theme="dark"] .notes-pagination a,
    html[data-theme="dark"] .notes-pagination span,
    html[data-theme="dark"] .love-list-pagination .page-numbers {
        background: var(--editorial-surface-base);
        border-color: var(--editorial-border-subtle);
        color: #f2e6ea;
        box-shadow:
            0 12px 24px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

        html[data-theme="dark"] .pagination a:hover,
    html[data-theme="dark"] .gallery-pagination a:hover,
    html[data-theme="dark"] .notes-pagination a:hover,
    html[data-theme="dark"] .love-list-pagination a.page-numbers:hover {
        border-color: rgba(255, 143, 155, 0.18);
        background: var(--editorial-accent-wash);
        color: #ff8f9b;
    }

        html[data-theme="dark"] .pagination .current,
    html[data-theme="dark"] .gallery-pagination .current,
    html[data-theme="dark"] .notes-pagination .current,
    html[data-theme="dark"] .love-list-pagination .page-numbers.current {
        background: var(--editorial-surface-active);
        border-color: var(--editorial-border-strong);
        color: #ffe5ea;
        box-shadow:
            0 12px 24px rgba(0, 0, 0, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }


/* 纪念日倒计时卡片 */
.anniversary-card.countdown .anniversary-days {
    color: #2196f3;
}

.anniversary-card.countup .anniversary-days {
    color: var(--primary-color);
}

/* 提交按钮点击反馈 */
.btn-submit:active {
    transform: scale(0.98);
}

/* 返回顶部按钮悬停 */
.back-to-top:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 说说卡片的时间 */
.note-header {
    margin-bottom: 0.5rem;
}

/* 屏幕阅读器隐藏 */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* 加载状态 */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* 空状态图标 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 响应式字体大小调整 */
@media (max-width: 575px) {
    html {
        font-size: 15px;
    }
}

/* 平板横屏适配 */
@media (min-width: 768px) and (max-width: 991px) {
    .memory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .entry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 暗色模式支持（可选） */

        html[data-theme="dark"] {
        --bg-color: #121212;
        --card-bg: #1e1e1e;
        --text-color: #e0e0e0;
        --text-muted: #a0a0a0;
        --border-color: rgba(255, 255, 255, 0.1);
    }
    
        html[data-theme="dark"] .footer {
        background: #1a1a1a;
    }
    
        html[data-theme="dark"] .navbar-brave.scrolled {
        background: rgba(30, 30, 30, 0.95) !important;
    }
    
    /* ================================
       计时器深色模式
       ================================ */
        html[data-theme="dark"] .timer-shell,
    html[data-theme="dark"] .weather-shell,
    html[data-theme="dark"] .anniversary-shell,
    html[data-theme="dark"] .entry-shell {
        border-color: var(--editorial-border-subtle);
        background-color: #221e25;
        background-image:
            linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 22%),
            radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 34%),
            radial-gradient(circle at bottom left, rgba(255, 143, 155, 0.07), transparent 60%),
            linear-gradient(180deg, rgba(35, 31, 39, 0.94), rgba(23, 21, 27, 0.9));
        box-shadow:
            0 20px 38px rgba(0, 0, 0, 0.22),
            0 3px 12px rgba(0, 0, 0, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

        html[data-theme="dark"] .timer-shell::before,
    html[data-theme="dark"] .weather-shell::before,
    html[data-theme="dark"] .anniversary-shell::before,
    html[data-theme="dark"] .entry-shell::before {
        background: linear-gradient(90deg, rgba(255, 143, 155, 0.16), rgba(255, 143, 155, 0) 58%);
    }

        html[data-theme="dark"] .timer-wrapper.has-countdown .timer-section + .timer-section {
        border-top-color: rgba(255, 255, 255, 0.08);
    }

        html[data-theme="dark"] .timer-section {
        background: transparent;
    }

        html[data-theme="dark"] .timer-title {
        color: #888;
    }
    
        html[data-theme="dark"] .countdown-target {
        color: #e0e0e0;
    }
    
        html[data-theme="dark"] .timer-display {
        color: #888;
    }
    
        html[data-theme="dark"] .timer-number {
        color: #ff6b7a;
    }
    
        html[data-theme="dark"] .timer-date {
        color: #666;
    }
    
        html[data-theme="dark"] .celebration-message {
        color: #ff6b7a;
    }
    
    /* ================================
       天气深色模式
       ================================ */
        html[data-theme="dark"] .weather-section {
        background: #1a1a1a;
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    
        html[data-theme="dark"] .weather-section-title {
        color: #e0e0e0;
    }
    
    /* 天气卡片在深色模式下调整阴影 */
        html[data-theme="dark"] .weather-card {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }
    
        html[data-theme="dark"] .weather-card:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    }
    
        html[data-theme="dark"] .weather-card[data-weather="sunny"] {
        box-shadow: 0 4px 15px rgba(246, 185, 59, 0.4);
    }
    
        html[data-theme="dark"] .weather-card[data-weather="cloudy"] {
        box-shadow: 0 4px 15px rgba(127, 179, 213, 0.4);
    }
    
        html[data-theme="dark"] .weather-card[data-weather="rainy"] {
        box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    }
    
        html[data-theme="dark"] .weather-card[data-weather="snowy"] {
        box-shadow: 0 4px 15px rgba(155, 191, 211, 0.4);
    }


/* ================================
   双计时器样式 - 完全统一
   ================================ */

.timer-band {
    margin: 0 0 1rem;
    padding: 0;
}

.timer-shell,
.weather-shell,
.anniversary-shell,
.entry-shell {
    position: relative;
    padding: clamp(0.95rem, 1.8vw, 1.2rem);
    border: 1px solid var(--editorial-border-subtle);
    border-radius: 28px;
    overflow: hidden;
    background-color: #fffcfb;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 24%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.68), transparent 38%),
        radial-gradient(circle at bottom left, rgba(255, 81, 98, 0.05), transparent 56%),
        linear-gradient(180deg, rgba(255, 248, 250, 0.94), rgba(255, 255, 255, 0.9));
    box-shadow:
        0 16px 32px rgba(24, 14, 22, 0.05),
        0 3px 10px rgba(24, 14, 22, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.timer-shell::before,
.weather-shell::before,
.anniversary-shell::before,
.entry-shell::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 81, 98, 0.14), rgba(255, 81, 98, 0) 58%);
}

/* 计时器区域包裹 */
.timer-wrapper {
    display: grid;
    gap: 0.82rem;
    padding: 0;
}

/* 计时器区域基础样式 - 消除所有额外间距 */
.timer-section {
    text-align: center;
    padding: 0;
    margin: 0;
    background: transparent;
}

.timer-wrapper.has-countdown .timer-section + .timer-section {
    padding-top: 0.82rem;
    border-top: 1px solid rgba(255, 81, 98, 0.08);
}

/* 计时器标题 - 统一 */
.timer-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.42rem;
    font-weight: 400;
    line-height: 1.65;
}

/* 倒计时目标名称（第二个计时器用） */
.countdown-target {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.42rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* 计时器数字显示 - 完全统一 */
.timer-display {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.24rem 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1;
}

/* 数字样式 - 统一 */
.timer-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 1.5ch;
}

/* 时间单位文字 */
.timer-display {
    color: #666;
}

/* 时间戳 */
.timer-date {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.42rem;
}

.timer-date-warning {
    color: #ff5162;
}

/* 庆祝信息 */
.celebration-message {
    animation: pulse 2s infinite;
    color: #ff5162;
    font-size: 1rem;
    margin-top: 0.4rem;
    font-weight: bold;
}

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

/* 移动端适配 */
@media (max-width: 575px) {
    .timer-band {
        margin-bottom: 0.9rem;
        padding: 0;
    }

    .timer-shell {
        padding: 0.9rem 0.92rem;
    }
    
    .timer-wrapper {
        gap: 0.74rem;
    }
    
    .timer-wrapper.has-countdown .timer-section + .timer-section {
        padding-top: 0.74rem;
    }
    
    .timer-title,
    .countdown-target {
        font-size: 0.9rem;
        margin-bottom: 0.34rem;
    }
    
    .timer-number {
        font-size: 1.4rem;
    }
    
    .timer-display {
        font-size: 0.85rem;
        gap: 0.2rem 0.42rem;
    }

    .timer-date {
        margin-top: 0.34rem;
    }
}

/* ================================
   天气小组件 - 总览卡片 + 详情面板
   ================================ */

.weather-section {
    margin: 0 0 1rem;
    padding: 0;
    background: transparent !important;
    border-top: 0 !important;
}

.weather-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.72rem;
}

.weather-section-copy {
    max-width: 34rem;
}

.weather-section-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.55rem;
    padding: 0.3rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 81, 98, 0.08);
    color: var(--primary-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.weather-section-title {
    margin: 0;
    color: var(--text-color) !important;
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    font-weight: 700;
}

.weather-section-subtitle {
    margin: 0.45rem 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.68;
}

.weather-scroll {
    display: flex;
    gap: 0.82rem;
    overflow-x: auto;
    padding: 0.04rem 0 0.16rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.weather-scroll.is-scrollable {
    cursor: grab;
}

.weather-scroll.is-dragging {
    cursor: grabbing;
    user-select: none;
}

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

.weather-card {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    width: clamp(146px, 15.8vw, 174px);
    min-height: 162px;
    padding: 0.8rem 0.82rem 0.8rem;
    border: 1px solid var(--editorial-border-subtle);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.98)),
        var(--card-bg);
    color: var(--text-color);
    text-align: left;
    box-shadow:
        0 18px 34px rgba(255, 81, 98, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.weather-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 81, 98, 0.22), rgba(255, 81, 98, 0));
}

.weather-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -36px;
    width: 104px;
    height: 104px;
    border-radius: 999px;
    background: rgba(255, 81, 98, 0.08);
    opacity: 0.9;
    pointer-events: none;
}

.weather-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 22px 40px rgba(255, 81, 98, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.weather-card:active {
    transform: scale(0.98);
}

.weather-card:focus-visible,
.weather-modal-close:focus-visible {
    outline: 2px solid rgba(255, 81, 98, 0.35);
    outline-offset: 2px;
}

.weather-card.is-loading {
    opacity: 0.78;
}

.weather-card.is-error {
    cursor: default;
    opacity: 0.86;
}

.weather-card[data-weather="sunny"] {
    background:
        radial-gradient(circle at top right, rgba(255, 209, 119, 0.46), transparent 34%),
        linear-gradient(180deg, rgba(255, 252, 241, 0.98), rgba(255, 255, 255, 0.99));
    border-color: rgba(255, 181, 64, 0.18);
}

.weather-card[data-weather="cloudy"] {
    background:
        radial-gradient(circle at top right, rgba(167, 192, 216, 0.32), transparent 34%),
        linear-gradient(180deg, rgba(245, 248, 251, 0.98), rgba(255, 255, 255, 0.99));
    border-color: rgba(123, 156, 190, 0.16);
}

.weather-card[data-weather="rainy"] {
    background:
        radial-gradient(circle at top right, rgba(110, 161, 225, 0.24), transparent 34%),
        linear-gradient(180deg, rgba(241, 247, 255, 0.98), rgba(255, 255, 255, 0.99));
    border-color: rgba(96, 144, 202, 0.16);
}

.weather-card[data-weather="snowy"] {
    background:
        radial-gradient(circle at top right, rgba(206, 227, 240, 0.32), transparent 34%),
        linear-gradient(180deg, rgba(247, 251, 255, 0.99), rgba(255, 255, 255, 0.99));
    border-color: rgba(171, 202, 221, 0.16);
}

.weather-card[data-weather="stormy"] {
    background:
        radial-gradient(circle at top right, rgba(255, 179, 122, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(245, 247, 255, 0.98), rgba(255, 255, 255, 0.99));
    border-color: rgba(211, 145, 97, 0.16);
}

.weather-card[data-weather="sunny"]::after {
    background: rgba(255, 192, 92, 0.18);
}

.weather-card[data-weather="cloudy"]::after {
    background: rgba(149, 181, 210, 0.16);
}

.weather-card[data-weather="rainy"]::after {
    background: rgba(106, 151, 214, 0.14);
}

.weather-card[data-weather="snowy"]::after {
    background: rgba(185, 211, 228, 0.16);
}

.weather-card[data-weather="stormy"]::after {
    background: rgba(238, 163, 118, 0.14);
}

.weather-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.weather-city-name {
    min-width: 0;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weather-card-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    color: var(--primary-color);
    font-size: 0.66rem;
    font-weight: 700;
}

.weather-card-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.72rem;
    align-items: center;
    margin: 0.76rem 0 0.8rem;
    position: relative;
    z-index: 1;
}

.weather-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 10px 18px rgba(255, 81, 98, 0.08);
    font-size: 1.72rem;
    line-height: 1;
}

.weather-card-main-copy {
    min-width: 0;
}

.weather-temp {
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.weather-desc {
    margin-top: 0.26rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.weather-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.42rem;
    margin-top: auto;
    padding-top: 0.72rem;
    border-top: 1px dashed rgba(255, 81, 98, 0.14);
    position: relative;
    z-index: 1;
}

.weather-range,
.weather-precip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.12rem 0.48rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
}

/* ================================
   天气详情模态框
   ================================ */

.weather-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
    background: rgba(18, 12, 18, 0.48);
    backdrop-filter: blur(12px);
}

.weather-modal.active {
    display: flex;
}

.weather-modal-content {
    width: min(100%, 548px);
    max-height: min(68vh, 640px);
    overflow-y: auto;
    padding: clamp(0.82rem, 1.55vw, 1.08rem);
    border: 1px solid var(--editorial-border-subtle);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.88), transparent 32%),
        linear-gradient(180deg, rgba(255, 248, 250, 0.98), rgba(255, 255, 255, 0.94));
    box-shadow:
        0 20px 46px rgba(24, 14, 22, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    color: var(--text-color);
    animation: weatherModalIn 0.24s ease;
}

.weather-modal-content[data-weather="sunny"] {
    background:
        radial-gradient(circle at top right, rgba(255, 209, 119, 0.38), transparent 30%),
        linear-gradient(180deg, rgba(255, 252, 241, 0.98), rgba(255, 255, 255, 0.95));
}

.weather-modal-content[data-weather="cloudy"] {
    background:
        radial-gradient(circle at top right, rgba(167, 192, 216, 0.26), transparent 30%),
        linear-gradient(180deg, rgba(245, 248, 251, 0.98), rgba(255, 255, 255, 0.95));
}

.weather-modal-content[data-weather="rainy"] {
    background:
        radial-gradient(circle at top right, rgba(110, 161, 225, 0.2), transparent 30%),
        linear-gradient(180deg, rgba(241, 247, 255, 0.98), rgba(255, 255, 255, 0.95));
}

.weather-modal-content[data-weather="snowy"] {
    background:
        radial-gradient(circle at top right, rgba(206, 227, 240, 0.28), transparent 30%),
        linear-gradient(180deg, rgba(247, 251, 255, 0.99), rgba(255, 255, 255, 0.95));
}

.weather-modal-content[data-weather="stormy"] {
    background:
        radial-gradient(circle at top right, rgba(255, 179, 122, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(244, 246, 255, 0.98), rgba(255, 255, 255, 0.95));
}

@keyframes weatherModalIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.weather-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 0.66rem;
}

.weather-modal-header-copy {
    flex: 1;
    min-width: 0;
}

.weather-modal-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.24rem;
    padding: 0.16rem 0.52rem;
    border-radius: 999px;
    background: rgba(255, 81, 98, 0.07);
    color: var(--primary-color);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.weather-modal-city {
    margin: 0;
    color: var(--text-color);
    font-size: clamp(1.15rem, 1.8vw, 1.42rem);
    font-weight: 700;
}

.weather-modal-time {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.weather-modal-close {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-top: 0.15rem;
    border: 1px solid var(--editorial-border-subtle);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--text-color);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.weather-modal-close:hover {
    background: rgba(255, 255, 255, 0.96);
    transform: translateY(-1px);
}

.weather-modal-alert {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.56rem;
    align-items: flex-start;
    margin-bottom: 0.68rem;
    padding: 0.62rem 0.72rem;
    border: 1px solid rgba(255, 81, 98, 0.14);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 246, 240, 0.92), rgba(255, 252, 250, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.weather-modal-alert[data-tone="moderate"] {
    border-color: rgba(214, 174, 84, 0.28);
    background: linear-gradient(180deg, rgba(255, 251, 237, 0.94), rgba(255, 253, 247, 0.98));
}

.weather-modal-alert[data-tone="sensitive"] {
    border-color: rgba(225, 176, 84, 0.32);
    background: linear-gradient(180deg, rgba(255, 245, 227, 0.94), rgba(255, 251, 240, 0.98));
}

.weather-modal-alert[data-tone="unhealthy"],
.weather-modal-alert[data-tone="hazardous"] {
    border-color: rgba(214, 124, 96, 0.28);
    background: linear-gradient(180deg, rgba(255, 239, 233, 0.94), rgba(255, 248, 244, 0.98));
}

.weather-modal-alert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.18rem 0.64rem;
    border-radius: 999px;
    background: rgba(255, 81, 98, 0.08);
    color: rgba(143, 76, 63, 0.94);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.weather-modal-alert-copy {
    min-width: 0;
}

.weather-modal-alert-title {
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 700;
}

.weather-modal-alert-meta {
    margin-top: 0.14rem;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.weather-modal-main {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(196px, 0.9fr);
    gap: 0.68rem;
    align-items: stretch;
    padding: 0.68rem 0.76rem;
    border: 1px solid rgba(255, 81, 98, 0.1);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.58));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.weather-modal-main-primary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.68rem;
    align-items: center;
    min-width: 0;
}

.weather-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 10px 20px rgba(255, 81, 98, 0.08);
    font-size: 2rem;
    line-height: 1;
}

.weather-modal-main-copy {
    display: grid;
    gap: 0;
    min-width: 0;
}

.weather-modal-temp-row {
    display: flex;
    align-items: flex-end;
    gap: 0.46rem;
    flex-wrap: wrap;
}

.weather-modal-temp {
    color: var(--text-color);
    font-size: clamp(1.86rem, 4.05vw, 2.38rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.weather-modal-feels-badge {
    display: inline-grid;
    grid-template-columns: 6px minmax(0, 1fr);
    column-gap: 0.34rem;
    row-gap: 0.06rem;
    justify-items: start;
    align-content: center;
    min-height: 0;
    max-width: min(100%, 11rem);
    padding: 0.3rem 0.66rem 0.32rem;
    border: 1px solid rgba(255, 81, 98, 0.12);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 241, 244, 0.98), rgba(255, 251, 252, 0.82));
    box-shadow:
        0 10px 18px rgba(255, 81, 98, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.weather-modal-feels-badge::before {
    content: '';
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    width: 6px;
    height: 6px;
    margin-top: 0.22rem;
    border-radius: 999px;
    background: rgba(255, 102, 121, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 102, 121, 0.1);
}

.weather-modal-feels-head {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    grid-column: 2;
}

.weather-modal-feels-label {
    color: rgba(130, 111, 117, 0.72);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.weather-modal-feels-value {
    color: var(--text-color);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
}

.weather-modal-desc {
    margin-top: 0.18rem;
    color: var(--text-color);
    font-size: 0.86rem;
    font-weight: 600;
}

.weather-modal-range {
    margin-top: 0.16rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.weather-modal-feels-note {
    grid-column: 2;
    color: rgba(125, 103, 110, 0.78);
    font-size: 0.58rem;
    line-height: 1.34;
}

.weather-modal-sunline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem 0.68rem;
    margin-top: 0.38rem;
    padding-top: 0.34rem;
    border-top: 1px dashed rgba(255, 81, 98, 0.12);
}

.weather-modal-main-insights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0.44rem;
    padding-top: 0.34rem;
    border-top: 1px dashed rgba(255, 81, 98, 0.12);
}

.weather-modal-main-metric {
    min-width: 0;
    padding: 0.22rem 0;
    border-bottom: 1px solid rgba(255, 81, 98, 0.06);
}

.weather-modal-main-metric:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.weather-modal-main-metric .weather-modal-aside-row {
    grid-template-columns: 3.8rem minmax(0, 1fr);
    align-items: center;
    gap: 0.18rem;
    min-height: 0;
    padding: 0;
    border-bottom: 0;
}

.weather-modal-main-metric .weather-modal-aside-label {
    display: inline-flex;
    min-width: 3.8rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.weather-modal-main-metric .weather-modal-aside-value {
    width: 100%;
    justify-self: start;
    text-align: left;
    transform: none;
}

.weather-modal-main-metric .weather-modal-aside-text {
    min-height: 0;
    line-height: 1.32;
}

.weather-modal-sunitem {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.weather-modal-sunicon {
    font-size: 0.78rem;
    line-height: 1;
    opacity: 0.88;
}

.weather-modal-aside {
    display: grid;
    gap: 0.26rem;
    min-width: 0;
    padding: 0.44rem 0.52rem;
    border: 1px solid rgba(255, 81, 98, 0.09);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.62));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.weather-modal-aside-summary {
    display: grid;
    gap: 0;
}

.weather-modal-aside-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 0.42rem;
    min-height: 27px;
    padding: 0.18rem 0;
    border-bottom: 1px solid rgba(255, 81, 98, 0.05);
}

.weather-modal-aside-row:last-child {
    border-bottom: 0;
}

.weather-modal-aside-label {
    display: inline-flex;
    align-items: center;
    color: rgba(130, 111, 117, 0.72);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
}

.weather-modal-aside-value {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    justify-self: end;
    gap: 0.36rem;
    min-width: 0;
    min-height: 18px;
    color: rgba(108, 91, 97, 0.76);
    font-size: 0.71rem;
    font-weight: 500;
    line-height: 1;
    text-align: right;
    transform: translateY(1px);
}

.weather-modal-aside-plain {
    color: rgba(108, 91, 97, 0.88);
}

.weather-modal-aside-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(140, 151, 172, 0.52);
    align-self: center;
}

.weather-modal-aside-text {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    min-height: 20px;
    line-height: 1;
}

.weather-modal-aside-value[data-tone="good"] {
    color: rgba(73, 108, 88, 0.84);
}

.weather-modal-aside-value[data-tone="good"] .weather-modal-aside-dot {
    background: #62b281;
}

.weather-modal-aside-value[data-tone="moderate"] {
    color: rgba(138, 109, 44, 0.84);
}

.weather-modal-aside-value[data-tone="moderate"] .weather-modal-aside-dot {
    background: #d7aa52;
}

.weather-modal-aside-value[data-tone="sensitive"],
.weather-modal-aside-value[data-tone="unhealthy"],
.weather-modal-aside-value[data-tone="hazardous"] {
    color: rgba(148, 88, 71, 0.82);
}

.weather-modal-aside-value[data-tone="sensitive"] .weather-modal-aside-dot,
.weather-modal-aside-value[data-tone="unhealthy"] .weather-modal-aside-dot,
.weather-modal-aside-value[data-tone="hazardous"] .weather-modal-aside-dot {
    background: #d07c63;
}

.weather-modal-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.18rem 0.62rem;
    border: 1px solid var(--editorial-border-subtle);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 239, 243, 0.96), rgba(255, 248, 249, 0.98));
    color: rgba(120, 86, 92, 0.94);
    font-size: 0.74rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.weather-modal-chip-neutral {
    background: linear-gradient(180deg, rgba(243, 246, 252, 0.96), rgba(252, 253, 255, 0.98));
    border-color: rgba(140, 151, 172, 0.16);
    color: rgba(86, 96, 118, 0.92);
}

.weather-modal-chip[data-tone="good"] {
    background: linear-gradient(180deg, rgba(235, 249, 241, 0.96), rgba(245, 255, 249, 0.98));
    border-color: rgba(92, 168, 123, 0.18);
    color: #397654;
}

.weather-modal-chip[data-tone="moderate"] {
    background: linear-gradient(180deg, rgba(255, 248, 229, 0.96), rgba(255, 252, 242, 0.98));
    border-color: rgba(213, 168, 66, 0.2);
    color: #8d6a16;
}

.weather-modal-chip[data-tone="sensitive"],
.weather-modal-chip[data-tone="unhealthy"],
.weather-modal-chip[data-tone="hazardous"] {
    background: linear-gradient(180deg, rgba(255, 240, 234, 0.96), rgba(255, 247, 243, 0.98));
    border-color: rgba(220, 124, 96, 0.18);
    color: #9c4f37;
}

.weather-modal-details {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    width: fit-content;
    max-width: 100%;
    margin-top: 0.64rem;
    border: 1px solid rgba(255, 81, 98, 0.1);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.58));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.weather-modal-item {
    display: flex;
    align-items: center;
    gap: 0.24rem;
    min-width: 0;
    padding: 0.46rem 0.56rem;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.weather-modal-item + .weather-modal-item {
    border-left: 1px solid rgba(255, 81, 98, 0.08);
}

.weather-modal-label {
    display: inline-flex;
    flex: none;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.weather-modal-value {
    display: inline-flex;
    flex: none;
    color: var(--text-color);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
    white-space: nowrap;
}

.weather-modal-subvalue {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: rgba(125, 103, 110, 0.76);
    font-size: 0.58rem;
    line-height: 1.1;
    white-space: nowrap;
}

.weather-modal-subvalue::before {
    content: '\00b7';
    margin-right: 0.18rem;
}

#modal-air-forecast {
    padding: 0.12rem 0.42rem;
    border: 1px solid rgba(140, 151, 172, 0.16);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(243, 246, 252, 0.96), rgba(252, 253, 255, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

#modal-air-forecast[data-tone="good"] {
    border-color: rgba(92, 168, 123, 0.18);
    background: linear-gradient(180deg, rgba(235, 249, 241, 0.96), rgba(245, 255, 249, 0.98));
    color: #397654;
}

#modal-air-forecast[data-tone="moderate"] {
    border-color: rgba(213, 168, 66, 0.2);
    background: linear-gradient(180deg, rgba(255, 248, 229, 0.96), rgba(255, 252, 242, 0.98));
    color: #8d6a16;
}

#modal-air-forecast[data-tone="sensitive"],
#modal-air-forecast[data-tone="unhealthy"],
#modal-air-forecast[data-tone="hazardous"] {
    border-color: rgba(220, 124, 96, 0.18);
    background: linear-gradient(180deg, rgba(255, 240, 234, 0.96), rgba(255, 247, 243, 0.98));
    color: #9c4f37;
}

#modal-air-forecast-item[data-tone="good"] .weather-modal-subvalue {
    color: rgba(73, 108, 88, 0.8);
}

#modal-air-forecast-item[data-tone="moderate"] .weather-modal-subvalue {
    color: rgba(138, 109, 44, 0.82);
}

#modal-air-forecast-item[data-tone="sensitive"] .weather-modal-subvalue,
#modal-air-forecast-item[data-tone="unhealthy"] .weather-modal-subvalue,
#modal-air-forecast-item[data-tone="hazardous"] .weather-modal-subvalue {
    color: rgba(148, 88, 71, 0.8);
}

.weather-modal-note {
    padding-top: 0.26rem;
    border-top: 1px dashed rgba(255, 81, 98, 0.14);
}

.weather-modal-note-label {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: rgba(125, 103, 110, 0.76);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.weather-modal-note-emoji {
    font-size: 0.82rem;
    line-height: 1;
}

.weather-modal-note-copy {
    margin: 0.28rem 0 0;
    color: rgba(106, 88, 95, 0.86);
    font-size: 0.72rem;
    line-height: 1.62;
}

.weather-modal-note-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    margin-top: 0.34rem;
    padding-top: 0.3rem;
    border-top: 1px dashed rgba(255, 81, 98, 0.1);
}

.weather-modal-note-meta-label {
    color: rgba(125, 103, 110, 0.78);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.weather-modal-note-meta-value {
    color: var(--text-color);
    font-size: 0.74rem;
    font-weight: 700;
}

.weather-modal-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.24rem;
    margin-top: 0.1rem;
}

.weather-modal-tag {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0.05rem 0.36rem;
    border: 1px solid rgba(255, 81, 98, 0.08);
    border-radius: 999px;
    background: var(--editorial-surface-base);
    color: rgba(111, 89, 96, 0.88);
    font-size: 0.63rem;
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.weather-modal-tag.is-extra {
    background: linear-gradient(180deg, rgba(255, 240, 244, 0.92), rgba(255, 248, 250, 0.98));
    color: rgba(125, 92, 99, 0.82);
}

.weather-modal-tag.is-muted {
    color: var(--text-muted);
}

.weather-modal-trend {
    margin-top: 0.64rem;
    padding: 0.66rem 0.72rem;
    border: 1px solid rgba(255, 81, 98, 0.1);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.56));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.weather-modal-section-title {
    margin-bottom: 0.46rem;
    color: var(--text-color);
    font-size: 0.76rem;
    font-weight: 700;
}

.weather-hourly-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(66px, 1fr);
    gap: 0.42rem;
    overflow-x: auto;
    padding-bottom: 0.16rem;
    scrollbar-width: none;
}

.weather-hourly-list::-webkit-scrollbar {
    display: none;
}

.weather-hourly-item {
    display: grid;
    gap: 0.24rem;
    justify-items: center;
    padding: 0.5rem 0.42rem;
    border: 1px solid rgba(255, 81, 98, 0.08);
    border-radius: 13px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.62));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    text-align: center;
}

.weather-hourly-time,
.weather-hourly-precip {
    color: var(--text-muted);
    font-size: 0.64rem;
    font-weight: 600;
}

.weather-hourly-icon {
    font-size: 1.12rem;
    line-height: 1;
}

.weather-hourly-temp {
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 700;
}

.weather-hourly-empty {
    padding: 0.25rem 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

@media (max-width: 767px) {
    .weather-section {
        margin-bottom: 0.85rem;
        padding: 0;
    }

    .weather-scroll,
    .anniversary-scroll {
        gap: 0.74rem;
        padding: 0.02rem 0 0.14rem;
    }

    .weather-shell {
        padding: 1rem;
        border-radius: 24px;
    }

    .weather-section-subtitle {
        font-size: 0.88rem;
    }

    .weather-card {
        width: 144px;
        min-height: 154px;
        padding: 0.78rem;
    }

    .weather-card-main {
        gap: 0.64rem;
    }

    .weather-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 1.58rem;
    }

    .weather-temp {
        font-size: 1.66rem;
    }

    .weather-modal {
        align-items: flex-end;
        padding: 0;
    }

    .weather-modal-content {
        width: 100%;
        max-height: 90vh;
        border-radius: 28px 28px 0 0;
        padding: 0.88rem 0.84rem 1.04rem;
        animation-name: slideUp;
    }

    .weather-modal-main {
        grid-template-columns: 1fr;
        justify-items: stretch;
        gap: 0.56rem;
        text-align: left;
        padding: 0.78rem 0.72rem;
    }

    .weather-modal-main-primary {
        width: 100%;
        grid-template-columns: auto 1fr;
        align-items: start;
        justify-content: start;
        gap: 0.56rem;
    }

    .weather-modal-main-copy {
        width: 100%;
    }

    .weather-modal-aside {
        width: 100%;
        text-align: left;
        padding: 0.58rem 0.62rem;
        border-radius: 14px;
    }

    .weather-modal-alert {
        grid-template-columns: 1fr;
    }

    .weather-modal-details {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 0.56rem;
    }

    .weather-modal-icon {
        width: 52px;
        height: 52px;
        border-radius: 15px;
        font-size: 1.92rem;
    }

    .weather-modal-temp {
        font-size: 1.98rem;
    }

    .weather-modal-feels-badge {
        max-width: min(100%, 9.8rem);
        padding: 0.24rem 0.52rem 0.26rem;
    }

    .weather-modal-feels-label {
        font-size: 0.52rem;
    }

    .weather-modal-feels-value {
        font-size: 0.68rem;
    }

    .weather-modal-desc {
        margin-top: 0.1rem;
        font-size: 0.82rem;
    }

    .weather-modal-range {
        margin-top: 0.12rem;
        font-size: 0.74rem;
    }

    .weather-modal-feels-note {
        font-size: 0.52rem;
        line-height: 1.3;
    }

    .weather-modal-aside-row {
        gap: 0.42rem;
    }

    .weather-modal-aside-value {
        white-space: nowrap;
    }

    .weather-modal-sunline {
        justify-content: flex-start;
        gap: 0.24rem 0.56rem;
        margin-top: 0.3rem;
        padding-top: 0.28rem;
    }

    .weather-modal-main-insights {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 0.34rem;
        padding-top: 0.28rem;
    }

    .weather-modal-main-metric {
        padding: 0.18rem 0;
    }

    .weather-modal-main-metric .weather-modal-aside-row {
        grid-template-columns: 4.05rem minmax(0, 1fr);
        align-items: center;
        gap: 0.34rem;
    }

    .weather-modal-main-metric .weather-modal-aside-label {
        font-size: 0.58rem;
        min-width: 4.05rem;
        white-space: nowrap;
    }

    .weather-modal-main-metric .weather-modal-aside-value {
        width: 100%;
        justify-self: start;
        text-align: left;
        white-space: normal;
    }

    .weather-modal-note {
        padding-top: 0;
        border-top: 0;
    }

    .weather-modal-note-label {
        font-size: 0.58rem;
        letter-spacing: 0.08em;
    }

    .weather-modal-tag-list {
        margin-top: 0.16rem;
        gap: 0.26rem;
    }

    .weather-modal-tag {
        min-height: 22px;
        padding: 0.1rem 0.42rem;
        font-size: 0.62rem;
    }

    .weather-modal-note-copy {
        margin-top: 0.32rem;
        font-size: 0.74rem;
        line-height: 1.58;
    }

    .weather-modal-note-meta {
        gap: 0.34rem;
        margin-top: 0.28rem;
        padding-top: 0.26rem;
    }

    .weather-modal-note-meta-label {
        font-size: 0.58rem;
    }

    .weather-modal-note-meta-value {
        font-size: 0.7rem;
    }

    .weather-modal-item {
        gap: 0.22rem;
        padding: 0.42rem 0.44rem;
    }

    .weather-modal-item + .weather-modal-item {
        border-left: 0;
        border-top: 1px solid rgba(255, 81, 98, 0.08);
    }

    .weather-modal-label {
        font-size: 0.55rem;
    }

    .weather-modal-value {
        font-size: 0.71rem;
    }

    .weather-modal-subvalue {
        font-size: 0.54rem;
        line-height: 1.22;
        white-space: normal;
    }

    #modal-air-forecast {
        padding: 0.1rem 0.36rem;
    }

    .weather-modal-trend {
        margin-top: 0.56rem;
        padding: 0.6rem 0.64rem;
        border-radius: 16px;
    }

    .weather-hourly-list {
        grid-auto-columns: minmax(88px, 1fr);
        gap: 0.34rem;
    }
}

        html[data-theme="dark"] .weather-section-title {
        color: #f4eef3 !important;
    }

        html[data-theme="dark"] .weather-section-subtitle,
    html[data-theme="dark"] .weather-range,
    html[data-theme="dark"] .weather-modal-sunitem,
    html[data-theme="dark"] .weather-precip,
    html[data-theme="dark"] .weather-modal-time,
    html[data-theme="dark"] .weather-modal-aside-label,
    html[data-theme="dark"] .weather-hourly-time,
    html[data-theme="dark"] .weather-hourly-precip,
    html[data-theme="dark"] .weather-hourly-empty {
        color: rgba(224, 224, 224, 0.72);
    }

    html[data-theme="dark"] .weather-card,
    html[data-theme="dark"] .weather-modal-alert,
    html[data-theme="dark"] .weather-modal-main,
    html[data-theme="dark"] .weather-modal-aside,
    html[data-theme="dark"] .weather-modal-details,
    html[data-theme="dark"] .weather-modal-trend,
    html[data-theme="dark"] .weather-hourly-item {
        border-color: var(--editorial-border-subtle);
        background: rgba(28, 27, 34, 0.78);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
    }

        html[data-theme="dark"] .weather-modal-item {
        background: none;
        box-shadow: none;
    }

        html[data-theme="dark"] .weather-modal-item + .weather-modal-item {
        border-left-color: rgba(255, 255, 255, 0.08);
        border-top-color: rgba(255, 255, 255, 0.08);
    }

        html[data-theme="dark"] #modal-air-forecast {
        border-color: rgba(255, 255, 255, 0.08);
        background: linear-gradient(180deg, rgba(52, 57, 67, 0.92), rgba(37, 41, 49, 0.88));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
        color: #dde5f2;
    }

        html[data-theme="dark"] #modal-air-forecast[data-tone="good"] {
        border-color: rgba(115, 196, 150, 0.14);
        background: linear-gradient(180deg, rgba(41, 61, 51, 0.94), rgba(31, 46, 38, 0.9));
        color: #ccefd9;
    }

        html[data-theme="dark"] #modal-air-forecast[data-tone="moderate"] {
        border-color: rgba(221, 189, 113, 0.16);
        background: linear-gradient(180deg, rgba(66, 58, 35, 0.94), rgba(49, 43, 27, 0.9));
        color: #f3e2b2;
    }

        html[data-theme="dark"] #modal-air-forecast[data-tone="sensitive"],
    html[data-theme="dark"] #modal-air-forecast[data-tone="unhealthy"],
    html[data-theme="dark"] #modal-air-forecast[data-tone="hazardous"] {
        border-color: rgba(228, 151, 128, 0.18);
        background: linear-gradient(180deg, rgba(76, 52, 45, 0.94), rgba(57, 39, 34, 0.9));
        color: #f1c3b6;
    }

        html[data-theme="dark"] .weather-card[data-weather="sunny"] {
        background:
            radial-gradient(circle at top right, rgba(255, 196, 90, 0.18), transparent 34%),
            linear-gradient(180deg, rgba(40, 34, 27, 0.94), rgba(28, 27, 34, 0.9));
    }

        html[data-theme="dark"] .weather-card[data-weather="cloudy"] {
        background:
            radial-gradient(circle at top right, rgba(140, 163, 188, 0.14), transparent 34%),
            linear-gradient(180deg, rgba(31, 34, 40, 0.94), rgba(28, 27, 34, 0.9));
    }

        html[data-theme="dark"] .weather-card[data-weather="rainy"] {
        background:
            radial-gradient(circle at top right, rgba(90, 138, 197, 0.14), transparent 34%),
            linear-gradient(180deg, rgba(27, 34, 44, 0.94), rgba(28, 27, 34, 0.9));
    }

        html[data-theme="dark"] .weather-card[data-weather="snowy"] {
        background:
            radial-gradient(circle at top right, rgba(190, 213, 227, 0.14), transparent 34%),
            linear-gradient(180deg, rgba(30, 35, 40, 0.94), rgba(28, 27, 34, 0.9));
    }

        html[data-theme="dark"] .weather-card[data-weather="stormy"] {
        background:
            radial-gradient(circle at top right, rgba(255, 169, 120, 0.12), transparent 34%),
            linear-gradient(180deg, rgba(34, 32, 42, 0.94), rgba(28, 27, 34, 0.9));
    }

        html[data-theme="dark"] .weather-card::before {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    }

        html[data-theme="dark"] .weather-card::after {
        opacity: 0.65;
    }

        html[data-theme="dark"] .weather-city-name,
    html[data-theme="dark"] .weather-temp,
    html[data-theme="dark"] .weather-modal-city,
    html[data-theme="dark"] .weather-modal-temp,
    html[data-theme="dark"] .weather-modal-feels-value,
    html[data-theme="dark"] .weather-modal-desc,
    html[data-theme="dark"] .weather-modal-alert-title,
    html[data-theme="dark"] .weather-modal-value,
    html[data-theme="dark"] .weather-modal-aside-value,
    html[data-theme="dark"] .weather-modal-note-copy,
    html[data-theme="dark"] .weather-modal-note-meta-value,
    html[data-theme="dark"] .weather-modal-tag,
    html[data-theme="dark"] .weather-hourly-temp,
    html[data-theme="dark"] .weather-modal-section-title,
    html[data-theme="dark"] .weather-modal-note-label {
        color: #f4eef3;
    }

        html[data-theme="dark"] .weather-icon,
    html[data-theme="dark"] .weather-modal-icon,
    html[data-theme="dark"] .weather-modal-close {
        background: rgba(255, 255, 255, 0.08);
        color: #f4eef3;
    }

        html[data-theme="dark"] .weather-card-status,
    html[data-theme="dark"] .weather-range,
    html[data-theme="dark"] .weather-precip {
        background: rgba(255, 255, 255, 0.06);
        box-shadow: none;
        color: rgba(244, 238, 243, 0.82);
    }

    html[data-theme="dark"] .weather-modal-alert-meta,
    html[data-theme="dark"] .weather-modal-feels-label,
    html[data-theme="dark"] .weather-modal-feels-note,
    html[data-theme="dark"] .weather-modal-note-meta-label,
    html[data-theme="dark"] .weather-modal-subvalue {
        color: rgba(232, 221, 225, 0.72);
    }

        html[data-theme="dark"] .weather-modal-feels-badge {
        background: linear-gradient(180deg, rgba(53, 44, 51, 0.92), rgba(37, 31, 38, 0.86));
        border-color: rgba(255, 255, 255, 0.09);
        box-shadow:
            0 12px 22px rgba(0, 0, 0, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

        html[data-theme="dark"] .weather-modal-feels-badge::before {
        background: rgba(255, 138, 154, 0.92);
        box-shadow: 0 0 0 3px rgba(255, 138, 154, 0.14);
    }

        html[data-theme="dark"] .weather-modal-chip {
        background: var(--editorial-surface-base);
        border-color: var(--editorial-border-subtle);
        color: #f2e6ea;
        box-shadow:
            0 12px 24px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

        html[data-theme="dark"] .weather-modal-chip-neutral {
        color: #dde5f2;
    }

        html[data-theme="dark"] .weather-modal-aside-value {
        color: rgba(232, 221, 225, 0.78);
    }

        html[data-theme="dark"] .weather-modal-note-label {
        color: rgba(232, 221, 225, 0.72);
    }

        html[data-theme="dark"] .weather-modal-aside-dot {
        background: rgba(221, 229, 242, 0.45);
    }

        html[data-theme="dark"] .weather-modal-aside-value[data-tone="good"] {
        color: rgba(214, 239, 223, 0.82);
    }

        html[data-theme="dark"] .weather-modal-aside-value[data-tone="good"] .weather-modal-aside-dot {
        background: #73c496;
    }

        html[data-theme="dark"] .weather-modal-aside-value[data-tone="moderate"] {
        color: rgba(243, 226, 178, 0.82);
    }

        html[data-theme="dark"] .weather-modal-aside-value[data-tone="moderate"] .weather-modal-aside-dot {
        background: #ddb46d;
    }

        html[data-theme="dark"] .weather-modal-aside-value[data-tone="sensitive"],
    html[data-theme="dark"] .weather-modal-aside-value[data-tone="unhealthy"],
    html[data-theme="dark"] .weather-modal-aside-value[data-tone="hazardous"] {
        color: rgba(241, 195, 182, 0.8);
    }

        html[data-theme="dark"] .weather-modal-aside-value[data-tone="sensitive"] .weather-modal-aside-dot,
    html[data-theme="dark"] .weather-modal-aside-value[data-tone="unhealthy"] .weather-modal-aside-dot,
    html[data-theme="dark"] .weather-modal-aside-value[data-tone="hazardous"] .weather-modal-aside-dot {
        background: #e49780;
    }

        html[data-theme="dark"] .weather-modal-chip[data-tone="good"] {
        border-color: rgba(115, 196, 150, 0.14);
        color: #ccefd9;
    }

        html[data-theme="dark"] .weather-modal-chip[data-tone="moderate"] {
        border-color: rgba(221, 189, 113, 0.16);
        color: #f3e2b2;
    }

        html[data-theme="dark"] .weather-modal-chip[data-tone="sensitive"],
    html[data-theme="dark"] .weather-modal-chip[data-tone="unhealthy"],
    html[data-theme="dark"] .weather-modal-chip[data-tone="hazardous"] {
        border-color: rgba(228, 151, 128, 0.18);
        color: #f1c3b6;
    }

        html[data-theme="dark"] .weather-modal-note {
        border-top-color: rgba(255, 255, 255, 0.08);
    }

        html[data-theme="dark"] .weather-modal-note-meta {
        border-top-color: rgba(255, 255, 255, 0.08);
    }

    html[data-theme="dark"] .weather-modal-aside-row {
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }

        html[data-theme="dark"] .weather-modal-sunline {
        border-top-color: rgba(255, 255, 255, 0.08);
    }

        html[data-theme="dark"] .weather-modal-tag {
        background: linear-gradient(180deg, rgba(43, 37, 45, 0.9), rgba(31, 27, 35, 0.92));
        border-color: rgba(255, 255, 255, 0.05);
        color: rgba(231, 220, 225, 0.72);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

        html[data-theme="dark"] .weather-modal-tag.is-extra {
        background: linear-gradient(180deg, rgba(67, 50, 56, 0.72), rgba(48, 37, 42, 0.78));
        border-color: rgba(242, 213, 220, 0.08);
        color: rgba(233, 198, 206, 0.68);
    }

        html[data-theme="dark"] .weather-modal-tag.is-muted {
        color: rgba(224, 224, 224, 0.62);
    }

        html[data-theme="dark"] .weather-modal {
        background: rgba(6, 6, 10, 0.62);
    }

        html[data-theme="dark"] .weather-modal-content {
        border-color: var(--editorial-border-subtle);
        background:
            radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 30%),
            linear-gradient(180deg, rgba(35, 32, 39, 0.96), rgba(21, 20, 26, 0.94));
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
    }

        html[data-theme="dark"] .weather-modal-content[data-weather="sunny"] {
        background:
            radial-gradient(circle at top right, rgba(255, 196, 90, 0.14), transparent 30%),
            linear-gradient(180deg, rgba(39, 33, 27, 0.96), rgba(21, 20, 26, 0.94));
    }

        html[data-theme="dark"] .weather-modal-content[data-weather="cloudy"] {
        background:
            radial-gradient(circle at top right, rgba(140, 163, 188, 0.12), transparent 30%),
            linear-gradient(180deg, rgba(31, 34, 40, 0.96), rgba(21, 20, 26, 0.94));
    }

        html[data-theme="dark"] .weather-modal-content[data-weather="rainy"] {
        background:
            radial-gradient(circle at top right, rgba(90, 138, 197, 0.12), transparent 30%),
            linear-gradient(180deg, rgba(27, 34, 44, 0.96), rgba(21, 20, 26, 0.94));
    }

        html[data-theme="dark"] .weather-modal-content[data-weather="snowy"] {
        background:
            radial-gradient(circle at top right, rgba(190, 213, 227, 0.12), transparent 30%),
            linear-gradient(180deg, rgba(30, 35, 40, 0.96), rgba(21, 20, 26, 0.94));
    }

        html[data-theme="dark"] .weather-modal-content[data-weather="stormy"] {
        background:
            radial-gradient(circle at top right, rgba(255, 169, 120, 0.1), transparent 30%),
            linear-gradient(180deg, rgba(34, 32, 42, 0.96), rgba(21, 20, 26, 0.94));
    }


@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ================================
   特别的日子
   ================================ */

.anniversary-section {
    margin: 0 0 1rem;
    padding: 0;
    background: transparent !important;
    border-top: 0 !important;
}

.anniversary-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.anniversary-section-copy {
    max-width: 34rem;
}

.anniversary-title {
    margin: 0;
    color: var(--text-color);
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    font-weight: 700;
    text-align: left;
}

.anniversary-scroll {
    display: flex;
    gap: 0.82rem;
    overflow-x: auto;
    padding: 0.04rem 0 0.16rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.anniversary-scroll.is-scrollable {
    cursor: grab;
}

.anniversary-scroll.is-dragging {
    cursor: grabbing;
    user-select: none;
}

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

.anniversary-card {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    width: clamp(146px, 15.8vw, 174px);
    min-height: 138px;
    padding: 0.74rem;
    border: 1px solid var(--editorial-border-subtle);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.98)),
        var(--card-bg);
    box-shadow:
        0 18px 34px rgba(255, 81, 98, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    color: var(--text-color);
    text-align: left;
    scroll-snap-align: start;
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.anniversary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 81, 98, 0.22), rgba(255, 81, 98, 0));
}

.anniversary-card::after {
    content: "";
    position: absolute;
    right: -26px;
    bottom: -34px;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: rgba(255, 81, 98, 0.08);
    opacity: 0.9;
    pointer-events: none;
}

.anniversary-card.countdown {
    background:
        radial-gradient(circle at top right, rgba(120, 188, 255, 0.22), transparent 34%),
        linear-gradient(180deg, rgba(244, 249, 255, 0.98), rgba(255, 255, 255, 0.99));
    border-color: rgba(111, 171, 220, 0.16);
}

.anniversary-card.countup {
    background:
        radial-gradient(circle at top right, rgba(255, 169, 192, 0.24), transparent 34%),
        linear-gradient(180deg, rgba(255, 246, 249, 0.98), rgba(255, 255, 255, 0.99));
    border-color: rgba(234, 145, 173, 0.16);
}

.anniversary-card.countdown::after {
    background: rgba(133, 188, 238, 0.16);
}

.anniversary-card.countup::after {
    background: rgba(255, 169, 192, 0.16);
}

.anniversary-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.anniversary-name {
    min-width: 0;
    margin: 0;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.38;
}

.anniversary-card-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    color: var(--primary-color);
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
}

.anniversary-card-main {
    margin: 0.7rem 0 0.72rem;
    position: relative;
    z-index: 1;
}

.anniversary-prefix {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.anniversary-days {
    display: flex;
    align-items: baseline;
    gap: 0.28rem;
    margin-top: 0.28rem;
    color: var(--text-color);
}

.anniversary-days strong {
    font-size: 1.64rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.anniversary-days span {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
}

.anniversary-date {
    margin-top: auto;
    padding-top: 0.64rem;
    border-top: 1px dashed rgba(255, 81, 98, 0.14);
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.anniversary-card.countdown .anniversary-days {
    color: #2f84c6;
}

.anniversary-card.countup .anniversary-days {
    color: var(--primary-color);
}

@media (max-width: 767px) {
    .anniversary-section {
        margin-bottom: 0.85rem;
        padding: 0;
    }

    .anniversary-shell {
        padding: 1rem;
        border-radius: 24px;
    }

    .anniversary-card {
        width: 144px;
        min-height: 142px;
        padding: 0.76rem;
    }

    .anniversary-title {
        font-size: 1.08rem;
    }

    .anniversary-days strong {
        font-size: 1.58rem;
    }
}
        html[data-theme="dark"] .anniversary-title,
    html[data-theme="dark"] .anniversary-name,
    html[data-theme="dark"] .anniversary-days,
    html[data-theme="dark"] .anniversary-days strong {
        color: #f4eef3;
    }

        html[data-theme="dark"] .anniversary-prefix,
    html[data-theme="dark"] .anniversary-date,
    html[data-theme="dark"] .anniversary-days span {
        color: rgba(224, 224, 224, 0.72);
    }

        html[data-theme="dark"] .anniversary-card {
        border-color: var(--editorial-border-subtle);
        background: rgba(28, 27, 34, 0.78);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
    }

        html[data-theme="dark"] .anniversary-card.countdown {
        background:
            radial-gradient(circle at top right, rgba(95, 156, 214, 0.16), transparent 34%),
            linear-gradient(180deg, rgba(26, 34, 44, 0.94), rgba(28, 27, 34, 0.9));
    }

        html[data-theme="dark"] .anniversary-card.countup {
        background:
            radial-gradient(circle at top right, rgba(255, 161, 188, 0.16), transparent 34%),
            linear-gradient(180deg, rgba(41, 31, 37, 0.94), rgba(28, 27, 34, 0.9));
    }

        html[data-theme="dark"] .anniversary-card::before {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    }

        html[data-theme="dark"] .anniversary-card-status {
        background: rgba(255, 255, 255, 0.06);
        box-shadow: none;
        color: rgba(244, 238, 243, 0.82);
    }

        html[data-theme="dark"] .anniversary-date {
        border-top-color: rgba(255, 255, 255, 0.08);
    }

        html[data-theme="dark"] .anniversary-card.countdown .anniversary-days {
        color: #8ccaff;
    }

        html[data-theme="dark"] .anniversary-card.countup .anniversary-days {
        color: #ff8ca0;
    }


/* ================================
   首页入口卡片
   ================================ */

.entry-home-section {
    padding: 0 0 0.72rem;
    background: transparent !important;
}

.entry-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.78rem;
}

.entry-section-copy {
    max-width: 34rem;
}

.entry-section-title {
    margin: 0;
    color: var(--text-color);
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    font-weight: 700;
}

.entry-section-subtitle {
    margin: 0.42rem 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.68;
}

.entry-home-section .entry-grid {
    max-width: none;
    margin: 0;
    gap: 0.85rem;
}

.entry-home-section .entry-card {
    position: relative;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    min-height: 194px;
    padding: 0.84rem;
    border: 1px solid rgba(255, 81, 98, 0.09);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.99)),
        var(--card-bg);
    box-shadow:
        0 12px 24px rgba(24, 14, 22, 0.045),
        0 2px 8px rgba(24, 14, 22, 0.028),
        inset 0 1px 0 rgba(255, 255, 255, 0.76);
    overflow: hidden;
    text-align: left;
    backdrop-filter: blur(14px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.entry-home-section .entry-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 81, 98, 0.14), rgba(255, 81, 98, 0));
}

.entry-home-section .entry-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -38px;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: rgba(255, 81, 98, 0.08);
    opacity: 0.44;
    pointer-events: none;
}

.entry-home-section .entry-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 28px rgba(24, 14, 22, 0.06),
        0 3px 10px rgba(24, 14, 22, 0.036),
        inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.entry-home-section .entry-card:focus-visible {
    outline: 2px solid rgba(255, 81, 98, 0.35);
    outline-offset: 2px;
}

.entry-card-top,
.entry-card-body,
.entry-card-footer {
    position: relative;
    z-index: 1;
}

.entry-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.entry-home-section .entry-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 1.56rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 10px 18px rgba(255, 81, 98, 0.08);
}

.entry-card-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    color: rgba(121, 93, 103, 0.88);
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
}

.entry-card-body {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0.44rem;
    margin: 0.92rem 0 0.84rem;
}

.entry-home-section .entry-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.38;
    color: var(--text-color);
}

.entry-home-section .entry-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.79rem;
    line-height: 1.66;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.entry-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.68rem;
    border-top: 1px solid rgba(255, 81, 98, 0.08);
}

.entry-card-link {
    color: rgba(98, 78, 87, 0.68);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.entry-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: rgba(121, 93, 103, 0.66);
    font-size: 0.84rem;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.entry-home-section .entry-card:hover .entry-card-link {
    color: rgba(98, 78, 87, 0.8);
}

.entry-home-section .entry-card:hover .entry-card-arrow {
    transform: translateX(3px);
    color: rgba(98, 78, 87, 0.82);
}

.entry-home-section .entry-card[data-tone="rose"] {
    background:
        radial-gradient(circle at top right, rgba(255, 186, 202, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 246, 249, 0.98), rgba(255, 255, 255, 0.99));
    border-color: rgba(234, 145, 173, 0.11);
}

.entry-home-section .entry-card[data-tone="peach"] {
    background:
        radial-gradient(circle at top right, rgba(245, 204, 177, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255, 247, 242, 0.98), rgba(255, 255, 255, 0.99));
    border-color: rgba(233, 161, 132, 0.11);
}

.entry-home-section .entry-card[data-tone="amber"] {
    background:
        radial-gradient(circle at top right, rgba(245, 222, 168, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255, 251, 241, 0.98), rgba(255, 255, 255, 0.99));
    border-color: rgba(228, 187, 108, 0.11);
}

.entry-home-section .entry-card[data-tone="sky"] {
    background:
        radial-gradient(circle at top right, rgba(180, 213, 244, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(243, 249, 255, 0.98), rgba(255, 255, 255, 0.99));
    border-color: rgba(123, 177, 223, 0.11);
}

.entry-home-section .entry-card[data-tone="mint"] {
    background:
        radial-gradient(circle at top right, rgba(186, 223, 207, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(244, 252, 248, 0.98), rgba(255, 255, 255, 0.99));
    border-color: rgba(130, 190, 164, 0.11);
}

.entry-home-section .entry-card[data-tone="coral"] {
    background:
        radial-gradient(circle at top right, rgba(244, 197, 184, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255, 246, 244, 0.98), rgba(255, 255, 255, 0.99));
    border-color: rgba(229, 154, 136, 0.11);
}

.entry-home-section .entry-card[data-tone="rose"]::after {
    background: rgba(255, 169, 192, 0.1);
}

.entry-home-section .entry-card[data-tone="peach"]::after {
    background: rgba(244, 191, 166, 0.1);
}

.entry-home-section .entry-card[data-tone="amber"]::after {
    background: rgba(241, 204, 132, 0.1);
}

.entry-home-section .entry-card[data-tone="sky"]::after {
    background: rgba(160, 198, 232, 0.1);
}

.entry-home-section .entry-card[data-tone="mint"]::after {
    background: rgba(156, 202, 183, 0.1);
}

.entry-home-section .entry-card[data-tone="coral"]::after {
    background: rgba(230, 178, 164, 0.1);
}

@media (max-width: 767px) {
    .entry-shell {
        padding: 1rem;
        border-radius: 24px;
    }

    .entry-section-subtitle {
        font-size: 0.86rem;
    }

    .entry-home-section .entry-card {
        min-height: 184px;
        padding: 0.8rem;
    }
}

@media (max-width: 460px) {
    .entry-home-section .entry-grid {
        grid-template-columns: 1fr;
    }
}
        html[data-theme="dark"] .entry-section-title,
    html[data-theme="dark"] .entry-home-section .entry-title,
    html[data-theme="dark"] .entry-card-link {
        color: #f4eef3;
    }

        html[data-theme="dark"] .entry-section-subtitle,
    html[data-theme="dark"] .entry-home-section .entry-desc {
        color: rgba(224, 224, 224, 0.72);
    }

        html[data-theme="dark"] .entry-home-section .entry-card {
        border-color: var(--editorial-border-subtle);
        background: rgba(28, 27, 34, 0.76);
        box-shadow:
            0 12px 24px rgba(0, 0, 0, 0.14),
            0 2px 8px rgba(0, 0, 0, 0.1);
    }

        html[data-theme="dark"] .entry-home-section .entry-card[data-tone="rose"] {
        background:
            radial-gradient(circle at top right, rgba(255, 161, 188, 0.1), transparent 34%),
            linear-gradient(180deg, rgba(41, 31, 37, 0.94), rgba(28, 27, 34, 0.9));
    }

        html[data-theme="dark"] .entry-home-section .entry-card[data-tone="peach"] {
        background:
            radial-gradient(circle at top right, rgba(255, 188, 157, 0.09), transparent 34%),
            linear-gradient(180deg, rgba(43, 34, 31, 0.94), rgba(28, 27, 34, 0.9));
    }

        html[data-theme="dark"] .entry-home-section .entry-card[data-tone="amber"] {
        background:
            radial-gradient(circle at top right, rgba(255, 202, 108, 0.09), transparent 34%),
            linear-gradient(180deg, rgba(41, 35, 27, 0.94), rgba(28, 27, 34, 0.9));
    }

        html[data-theme="dark"] .entry-home-section .entry-card[data-tone="sky"] {
        background:
            radial-gradient(circle at top right, rgba(95, 156, 214, 0.1), transparent 34%),
            linear-gradient(180deg, rgba(26, 34, 44, 0.94), rgba(28, 27, 34, 0.9));
    }

        html[data-theme="dark"] .entry-home-section .entry-card[data-tone="mint"] {
        background:
            radial-gradient(circle at top right, rgba(122, 191, 162, 0.09), transparent 34%),
            linear-gradient(180deg, rgba(27, 38, 34, 0.94), rgba(28, 27, 34, 0.9));
    }

        html[data-theme="dark"] .entry-home-section .entry-card[data-tone="coral"] {
        background:
            radial-gradient(circle at top right, rgba(244, 164, 146, 0.09), transparent 34%),
            linear-gradient(180deg, rgba(42, 31, 31, 0.94), rgba(28, 27, 34, 0.9));
    }

        html[data-theme="dark"] .entry-home-section .entry-card::before {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    }

        html[data-theme="dark"] .entry-card-tag,
    html[data-theme="dark"] .entry-home-section .entry-icon {
        background: rgba(255, 255, 255, 0.08);
        box-shadow: none;
        color: rgba(244, 238, 243, 0.8);
    }

        html[data-theme="dark"] .entry-card-link {
        color: rgba(244, 238, 243, 0.66);
    }

        html[data-theme="dark"] .entry-card-arrow {
        background: transparent;
        color: rgba(244, 238, 243, 0.62);
    }

        html[data-theme="dark"] .entry-home-section .entry-card:hover .entry-card-link {
        color: rgba(244, 238, 243, 0.82);
    }

        html[data-theme="dark"] .entry-home-section .entry-card:hover {
        box-shadow:
            0 16px 30px rgba(0, 0, 0, 0.18),
            0 3px 10px rgba(0, 0, 0, 0.12);
    }

        html[data-theme="dark"] .entry-home-section .entry-card:hover .entry-card-arrow {
        color: rgba(244, 238, 243, 0.82);
    }

        html[data-theme="dark"] .entry-card-footer {
        border-top-color: rgba(255, 255, 255, 0.06);
    }


/* ================================
   底部 PV 统计（液晶数字效果）
   ================================ */
.footer-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.18rem;
    font-size: 0.8rem;
    color: rgba(146, 118, 124, 0.58);
}

.pv-stats-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}

.pv-label {
    font-size: 0.76rem;
    color: rgba(146, 118, 124, 0.74);
    opacity: 1;
}

/* 液晶数字效果 */
.pv-number {
    font-family: 'Courier New', 'SF Mono', 'Consolas', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #d86b79;
    text-shadow: 
        0 0 2px rgba(216, 107, 121, 0.28),
        0 0 4px rgba(216, 107, 121, 0.14),
        1px 1px 0 rgba(0, 0, 0, 0.06);
    letter-spacing: 1px;
    padding: 0 2px;
    display: inline-block;
}

.pv-separator {
    margin: 0 0.22rem;
    opacity: 0.4;
}

@media (max-width: 640px) {
    .footer-stats {
        gap: 0.14rem;
        font-size: 0.76rem;
    }

    .pv-stats-inline {
        gap: 0.08rem;
    }

    .pv-label {
        font-size: 0.72rem;
    }

    .pv-number {
        font-size: 0.92rem;
        letter-spacing: 0.6px;
    }

    .pv-separator {
        margin: 0 0.16rem;
    }

}

/* 深色模式 */

        html[data-theme="dark"] .pv-label {
        color: rgba(212, 200, 204, 0.54);
    }
    
        html[data-theme="dark"] .pv-number {
        color: #e08a97;
        text-shadow: 
            0 0 2px rgba(224, 138, 151, 0.28),
            0 0 6px rgba(224, 138, 151, 0.14),
            0 0 10px rgba(224, 138, 151, 0.08);
    }
