/* ============================================================
   一、全局背景样式
   ============================================================ */
body {
    position: relative;
    font-family: "Microsoft Yahei", Arial, sans-serif;
    color: #e0e0e0;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background: url('https://i.imglt.com/20260522/5fc7e83a2159586cf99f3374819c80bf.jpg') center/cover no-repeat fixed;
    filter: brightness(1.0);
    transition: filter 0.3s;
}

body.light-mode {
    color: #333;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.7) 100%);
}

body.light-mode::before {
    filter: brightness(0.8) contrast(1.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================================
   二、顶部 Header 区域
   ============================================================ */
.header {
    text-align: center;
    padding: 20px 0;
    background: rgba(45, 45, 45, 0.5);
    border-bottom: 3px solid #3a3a3a;
    transition: all 0.3s;
}

.header.fixed {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(45, 45, 45, 0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 10px 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

body.light-mode .header { background: rgba(255, 255, 255, 0.9); border-bottom: 3px solid #ddd; }
body.light-mode .header.fixed { background: rgba(255, 255, 255, 0.95); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

.logo {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.header.fixed .logo { font-size: 28px; margin-bottom: 5px; }
body.light-mode .logo { color: #333; }

/* ============================================================
   三、搜索栏
   ============================================================ */
.search-container { margin: 0 auto; max-width: 1600px; padding: 10px 0; }

.search-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    gap: 5px;
}

.search-tab {
    padding: 5px 15px;
    background: rgba(51, 51, 51, 0.5);
    border: none;
    border-radius: 4px 4px 0 0;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.search-tab.active { background: rgba(102, 102, 102, 0.8); color: white; }
body.light-mode .search-tab { background: rgba(255, 255, 255, 0.7); color: #333; }
body.light-mode .search-tab.active { background: rgba(221, 221, 221, 0.9); color: #333; }

.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.search-box input {
    padding: 10px;
    width: 70%;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    background: rgba(51, 51, 51, 0.2);
    color: #e0e0e0;
}

body.light-mode .search-box input { background: rgba(255, 255, 255, 0.9); color: #333; }
.search-box input::placeholder { color: #888; }

.search-box button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background: #666666;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-box button:hover { background: #888888; }

/* ============================================================
   四、天气+时钟+日历 综合模块
   ============================================================ */
.weather-section {
    position: relative;
    background: rgba(45, 45, 45, 0.5);
    padding: 6px 12px;
    margin: 4px 0 0 0;
    border-radius: 8px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.25);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 34px;
}

body.light-mode .weather-section { background: rgba(255, 255, 255, 0.9); box-shadow: 0 3px 5px rgba(0,0,0,0.08); }

/* ---- 4.1 天气显示区 ---- */
.weather-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #e0e0e0;
    flex-shrink: 0;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

.weather-display:hover { background: rgba(255, 255, 255, 0.06); }
body.light-mode .weather-display:hover { background: rgba(0, 0, 0, 0.05); }

.weather-display .icon { width: 18px; height: 18px; flex-shrink: 0; }

.weather-display .icon svg {
    width: 100%; height: 100%;
    display: block;
    stroke: #e0e0e0;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.light-mode .weather-display .icon svg { stroke: #333; }
.weather-display .icon svg .fill-white { fill: #e0e0e0; stroke: none; }
body.light-mode .weather-display .icon svg .fill-white { fill: #333; }

.weather-display .city-name { font-weight: 600; font-size: 13px; color: #fff; }
body.light-mode .weather-display .city-name { color: #333; }
.weather-display .temp { font-size: 16px; font-weight: 300; color: #fff; margin: 0 2px; }
body.light-mode .weather-display .temp { color: #222; }
.weather-display .desc { font-size: 12px; color: #bbb; }
body.light-mode .weather-display .desc { color: #666; }
.weather-display .detail { font-size: 11px; color: #999; }
body.light-mode .weather-display .detail { color: #888; }

/* ---- 4.2 三天预报 ---- */
.weather-forecast {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.15);
}

body.light-mode .weather-forecast { border-left-color: rgba(0,0,0,0.1); }

.weather-forecast-day {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #ccc;
    padding: 1px 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.weather-forecast-day:hover { background: rgba(255,255,255,0.06); }
body.light-mode .weather-forecast-day:hover { background: rgba(0,0,0,0.05); }
.weather-forecast-day .day-name { font-weight: 600; color: #ddd; font-size: 11px; }
body.light-mode .weather-forecast-day .day-name { color: #444; }
.weather-forecast-day .day-icon { width: 14px; height: 14px; flex-shrink: 0; }

.weather-forecast-day .day-icon svg {
    width: 100%; height: 100%;
    display: block;
    stroke: #c0c0c0;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.light-mode .weather-forecast-day .day-icon svg { stroke: #555; }
.weather-forecast-day .day-icon svg .fill-white { fill: #c0c0c0; stroke: none; }
body.light-mode .weather-forecast-day .day-icon svg .fill-white { fill: #555; }
.weather-forecast-day .day-temp { font-size: 11px; }
.weather-forecast-day .temp-high { color: #fff; font-weight: 600; }
body.light-mode .weather-forecast-day .temp-high { color: #222; }
.weather-forecast-day .temp-low { color: #888; margin-left: 2px; }
body.light-mode .weather-forecast-day .temp-low { color: #999; }

/* ---- 4.3 实时时钟 ---- */
.live-clock {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    padding: 2px 8px;
    background: rgba(102, 102, 102, 0.6);
    border-radius: 10px;
    font-size: 13px;
    color: #e0e0e0;
    user-select: none;
    flex-shrink: 0;
    margin-left: auto;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

body.light-mode .live-clock { background: rgba(221, 221, 221, 0.9); color: #333; }
.live-clock .clock-icon { font-size: 12px; margin-right: 2px; }
.live-clock .clock-time { font-weight: 600; letter-spacing: 0.5px; }
.live-clock .clock-seconds { font-size: 11px; color: #aaa; margin-left: 1px; }
body.light-mode .live-clock .clock-seconds { color: #888; }

/* ---- 4.4 日历触发按钮 ---- */
.calendar-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(102, 102, 102, 0.6);
    border-radius: 10px;
    font-size: 11px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.calendar-trigger:hover { background: rgba(140, 140, 140, 0.8); color: #fff; }
body.light-mode .calendar-trigger { background: rgba(221, 221, 221, 0.9); color: #333; }
body.light-mode .calendar-trigger:hover { background: rgba(200, 200, 200, 1); }
.calendar-trigger .cal-icon { font-size: 12px; }

/* ---- 4.5 日历弹层 ---- */
.calendar-popup {
    position: absolute;
    top: calc(100% + 6px);
    right: 10px;
    background: #2d2d2d;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.55);
    z-index: 1500;
    width: 320px;
    display: none;
    border: 1px solid rgba(255,255,255,0.08);
}

.calendar-popup.active { display: block; animation: calPop 0.2s ease; }

@keyframes calPop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

body.light-mode .calendar-popup {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

.calendar-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }

.cal-nav {
    width: 26px; height: 26px;
    border-radius: 6px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: #ccc;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cal-nav:hover { background: rgba(255,255,255,0.18); color: #fff; }
body.light-mode .cal-nav { background: rgba(0,0,0,0.06); color: #555; }
body.light-mode .cal-nav:hover { background: rgba(0,0,0,0.12); color: #000; }

.cal-title { font-size: 15px; font-weight: 600; color: #fff; flex: 1; text-align: center; }
body.light-mode .cal-title { color: #222; }

.cal-today {
    padding: 4px 10px;
    border-radius: 6px;
    border: none;
    background: #3a7bd5;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.cal-today:hover { background: #4a8be5; }

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.calendar-weekdays > div {
    text-align: center;
    font-size: 11px;
    color: #888;
    padding: 4px 0;
    font-weight: 600;
}

.calendar-weekdays > div:last-child { color: #ff8888; }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: default;
    padding: 2px;
    transition: background 0.15s;
    position: relative;
    overflow: hidden;
}

.calendar-cell:hover { background: rgba(255,255,255,0.08); }
body.light-mode .calendar-cell:hover { background: rgba(0,0,0,0.05); }

.calendar-cell .solar { font-size: 13px; font-weight: 600; color: #ddd; line-height: 1.1; }
body.light-mode .calendar-cell .solar { color: #333; }

.calendar-cell .lunar {
    font-size: 9px;
    color: #888;
    line-height: 1.1;
    margin-top: 1px;
    transform: scale(0.9);
    transform-origin: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.calendar-cell.other-month .solar,
.calendar-cell.other-month .lunar { opacity: 0.3; }

.calendar-cell.weekend .solar { color: #ff8888; }
body.light-mode .calendar-cell.weekend .solar { color: #e05050; }

.calendar-cell.today { background: #3a7bd5; }
.calendar-cell.today .solar { color: #fff !important; }
.calendar-cell.today .lunar { color: rgba(255,255,255,0.85) !important; }

.calendar-cell.holiday { background: rgba(255, 80, 80, 0.18); }
.calendar-cell.holiday .solar { color: #ff7b7b !important; }
.calendar-cell.holiday .lunar { color: #ff9c9c !important; }
body.light-mode .calendar-cell.holiday { background: rgba(255, 80, 80, 0.12); }
body.light-mode .calendar-cell.holiday .solar { color: #d63030 !important; }
body.light-mode .calendar-cell.holiday .lunar { color: #e05050 !important; }

.calendar-cell.workday { background: rgba(80, 200, 120, 0.18); }
.calendar-cell.workday .solar { color: #4ecda4 !important; }
.calendar-cell.workday .lunar { color: #6eddb4 !important; }
body.light-mode .calendar-cell.workday { background: rgba(80, 200, 120, 0.12); }
body.light-mode .calendar-cell.workday .solar { color: #2a9d70 !important; }
body.light-mode .calendar-cell.workday .lunar { color: #3ab080 !important; }

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 11px;
    color: #999;
}

body.light-mode .calendar-legend { border-top-color: rgba(0,0,0,0.08); color: #777; }
.calendar-legend > span { display: inline-flex; align-items: center; gap: 4px; }
.calendar-legend .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.calendar-legend .holiday-dot { background: rgba(255, 80, 80, 0.5); }
.calendar-legend .workday-dot { background: rgba(80, 200, 120, 0.5); }
.calendar-legend .today-dot { background: #3a7bd5; }

/* ---- 4.6 城市标签区 ---- */
.weather-chips { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.weather-city-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    background: rgba(102, 102, 102, 0.6);
    border-radius: 10px;
    font-size: 10px;
    color: #e0e0e0;
    cursor: default;
    transition: all 0.2s;
}

.weather-city-tag .remove-city {
    cursor: pointer;
    font-size: 11px;
    opacity: 0.6;
    transition: opacity 0.2s;
    line-height: 1;
}

.weather-city-tag .remove-city:hover { opacity: 1; }
body.light-mode .weather-city-tag { background: rgba(221, 221, 221, 0.9); color: #333; }

.weather-add-btn {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 1.5px dashed #888;
    background: transparent;
    color: #aaa;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    line-height: 1;
    padding-bottom: 1px;
}

.weather-add-btn:hover { border-color: #fff; color: #fff; transform: scale(1.1); }
body.light-mode .weather-add-btn { border-color: #aaa; color: #888; }
body.light-mode .weather-add-btn:hover { border-color: #333; color: #333; }

/* ---- 4.7 添加城市弹窗 ---- */
.weather-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.weather-modal-overlay.active { display: flex; }

.weather-modal {
    background: #2d2d2d;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: modalIn 0.25s ease;
}

body.light-mode .weather-modal { background: #fff; }

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.weather-modal h4 { color: #fff; margin: 0 0 14px; font-size: 16px; }
body.light-mode .weather-modal h4 { color: #333; }

.weather-modal input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #1e1e1e;
    color: #e0e0e0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.weather-modal input:focus { border-color: #888; }
body.light-mode .weather-modal input { background: #f5f5f5; border-color: #ddd; color: #333; }

.weather-suggestions { margin-top: 8px; max-height: 220px; overflow-y: auto; border-radius: 6px; }

.weather-suggestion-item {
    padding: 7px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    color: #ccc;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.weather-suggestion-item:hover { background: rgba(255,255,255,0.1); }
.weather-suggestion-item.selected { background: rgba(100,150,255,0.25); }
body.light-mode .weather-suggestion-item { color: #444; }
body.light-mode .weather-suggestion-item:hover { background: rgba(0,0,0,0.05); }
body.light-mode .weather-suggestion-item.selected { background: rgba(100,150,255,0.15); }

.weather-suggestion-item .admin-info { font-size: 11px; color: #888; margin-left: 6px; }
.weather-suggestion-item .source-tag {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(100,150,255,0.4);
    color: #cde;
    margin-left: 6px;
}

.weather-modal-actions { display: flex; gap: 8px; margin-top: 14px; justify-content: flex-end; }

.weather-modal-actions button {
    padding: 7px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.weather-modal-actions .btn-cancel { background: transparent; color: #aaa; border: 1px solid #555; }
.weather-modal-actions .btn-cancel:hover { background: rgba(255,255,255,0.05); }
body.light-mode .weather-modal-actions .btn-cancel { color: #666; border-color: #ccc; }
.weather-modal-actions .btn-confirm { background: #666; color: #fff; }
.weather-modal-actions .btn-confirm:hover { background: #888; }
.weather-modal-actions .btn-confirm:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================================
   五、导航分类
   ============================================================ */
.category-box {
    background: rgba(45, 45, 45, 0.5);
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

body.light-mode .category-box { background: rgba(255, 255, 255, 0.9); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

.category-title {
    color: #ffffff;
    font-size: 24px;
    border-left: 4px solid #ffffff;
    padding-left: 10px;
    margin-bottom: 20px;
}

body.light-mode .category-title { color: #333; border-left: 4px solid #333; }

.link-list { display: flex; flex-wrap: wrap; gap: 15px; }

.link-item {
    flex: 1 1 calc(20% - 15px);
    min-width: 150px;
    padding: 12px;
    transition: all 0.3s;
    background: rgba(51, 51, 51, 0.5);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body.light-mode .link-item { background: rgba(255, 255, 255, 0.9); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

.link-item a {
    text-decoration: none;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 15px;
}

body.light-mode .link-item a { color: #333; }
.link-item a:hover { background: #666666; color: #fff; transform: translateY(-2px); }
body.light-mode .link-item a:hover { background: #ddd; color: #333; }

.link-item img {
    vertical-align: middle;
    margin-right: 12px;
    filter: brightness(0.9);
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ============================================================
   六、浮动按钮
   ============================================================ */
.float-btn {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background: #666666;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1001;
}

.float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 15px rgba(0,188,212,0.4); }
.float-btn::after { content: "↑"; color: white; font-size: 24px; }
body.light-mode .float-btn { background: #888888; }

.theme-switcher {
    position: fixed;
    bottom: 90px; right: 30px;
    width: 50px; height: 50px;
    background: #666666;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1001;
}

.theme-switcher:hover { transform: scale(1.1); box-shadow: 0 6px 15px rgba(0,188,212,0.4); }
.theme-switcher::after { content: "🌙"; color: white; font-size: 24px; }
body.light-mode .theme-switcher::after { content: "☀️"; }

/* ============================================================
   七、页脚
   ============================================================ */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background: rgba(30, 30, 30, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #aaa;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

body.light-mode .footer {
    background: rgba(245, 245, 245, 0.7);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #666;
}

.footer a { color: #bbb; text-decoration: none; margin: 0 5px; transition: color 0.3s; }
.footer a:hover { color: #fff; text-decoration: underline; }
body.light-mode .footer a { color: #555; }
body.light-mode .footer a:hover { color: #000; }

body { padding-bottom: 20px; }
.link-item img[data-auto-icon] { opacity: 0.8; }
#navContainer .category-box:first-child { margin-top: 0; }

/* ============================================================
   八、响应式
   ============================================================ */
@media (max-width: 900px) {
    .weather-forecast { padding-left: 8px; gap: 6px; }
    .weather-forecast-day .day-temp { font-size: 10px; }
    .calendar-popup { width: 300px; }
}

@media (max-width: 768px) {
    .link-item { flex: 1 1 calc(33.33% - 15px); }
    .category-box { padding: 15px; }
    .category-title { font-size: 22px; }
    .float-btn, .theme-switcher { width: 40px; height: 40px; }
    .theme-switcher { bottom: 70px; right: 20px; }
    .search-tabs { flex-wrap: wrap; }
    .search-tab { padding: 4px 10px; font-size: 12px; }
    .header.fixed .logo { font-size: 24px; }
    .footer { padding: 15px; font-size: 12px; }
    .weather-display .detail { display: none; }
    .weather-forecast { display: none; }
}

@media (max-width: 480px) {
    .link-item { flex: 1 1 calc(50% - 15px); }
    .search-box { flex-direction: column; gap: 10px; }
    .search-box input, .search-box button { width: 100%; }
    .search-tabs { flex-wrap: wrap; justify-content: flex-start; }
    .search-tab { flex: 1; min-width: 70px; text-align: center; }
    .footer { padding: 12px; font-size: 11px; }
    .weather-display .desc { display: none; }
    .weather-section { padding: 5px 8px; }
    .weather-display .temp { font-size: 15px; }
    .calendar-popup { width: calc(100vw - 40px); right: 0; }
    .live-clock .clock-seconds { display: none; }
}