/* ==========================================================
   base.css - 一个页面 1onege.cn
   优化说明：
   1. 修复原文件中的语法错误（// 注释、多余大括号、媒体查询未闭合）
   2. 弹窗 #skintip / #abouttip 统一用 transform 居中（水平+垂直）
   3. #app 图标区改用 Grid 布局，每列左右严格对齐
   4. 通过媒体查询适配 PC / 平板 / 移动端
   5. 移动端：页面宽度为设备宽度的 70%，高度自适应；
      #tab-menu 吸附左侧纵向排列；图标每排 3-5 个
   ========================================================== */

/* ========== 基础重置 ========== */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    background: url("../images/bg/a01.jpg") no-repeat center center;
    background-size: cover;
    font-family: 'iconfont', "Microsoft Yahei", Verdana, Arial, Helvetica, sans-serif;
}
div, ul, li {
    margin: 0;
    padding: 0;
    border: 0;
    list-style-type: none;
}
a {
    text-decoration: none;
}
p {
    color: #000;
    font-size: 14px;
    margin-bottom: 5px;
}
.left {
    float: left;
}
.right {
    float: right;
}

/* ========== 顶部栏 ========== */
.top {
    width: 95%;
    height: 35px;
    margin: 15px auto;
}
.weather {
    height: 100%;
    float: left;
    margin-top: 16px;
}
/* 顶栏天气条（IP 自动定位 + Open-Meteo 实时数据） */
#weather-bar {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .25);
    color: #FFF;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
#weather-bar:hover {
    background: rgba(255, 255, 255, .42);
}
#weather-icon {
    font-size: 18px;
    line-height: 1;
}
/* app 网格里的实时天气图标 */
.app-weather-icon {
    font-size: 32px;
    line-height: 1;
    user-select: none;
}
/* 天气弹窗内容 */
.weather-detail {
    margin-top: 14px;
    color: #333;
    overflow-y: auto;
}
.w-now {
    text-align: center;
    padding: 8px 0 14px;
    border-bottom: 1px solid #EEE;
}
.w-big {
    font-size: 56px;
    line-height: 1.25;
}
.w-temp {
    font-size: 38px;
    font-weight: 600;
    color: #222;
}
.w-temp span {
    font-size: 20px;
}
.w-desc {
    margin-top: 4px;
    font-size: 15px;
    color: #555;
}
.w-rows {
    padding: 8px 6px;
    border-bottom: 1px solid #EEE;
}
.w-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 4px;
    font-size: 14px;
    color: #555;
}
.w-days {
    display: flex;
    gap: 8px;
    padding-top: 12px;
}
.w-day {
    flex: 1;
    text-align: center;
    background: #F5F7FB;
    border-radius: 10px;
    padding: 10px 4px;
}
.w-date {
    display: block;
    font-size: 12px;
    color: #888;
}
.w-ico {
    display: block;
    font-size: 26px;
    margin: 6px 0;
}
.w-range {
    display: block;
    font-size: 12px;
    color: #555;
}
.tools {
    margin-top: 16px;
}
.tools ul {
    list-style-type: none;
}
.tools li {
    float: left;
    display: block;
    margin-right: 25px;
    color: #FFF;
    cursor: pointer;
    opacity: 0.8;
}
.tools li:hover {
    opacity: 1;
}
/* 三个工具图标统一 24px 字形框：字形在框内垂直居中，保证横向基线一致 */
#chskin:before {
    content: "\e61a";
    font-size: 20px;
    display: block;
    height: 24px;
    line-height: 24px;
}
/* 随机壁纸按钮：点击时以图标自身中心为圆心旋转 180°
   （字形在 24px 框内垂直居中，盒中心 = 图标中心，
    transform-origin 50% 50% 即图标自身中心） */
#randbg {
    transition: transform .5s ease;
    line-height: 24px;
    transform-origin: 50% 50%;
}
#randbg:before {
    content: "\e6a9";
    font-size: 17px;
    margin-top: 0;
    display: block;
    height: 24px;
    line-height: 24px;
}
/* 随机网络壁纸明暗未知：强制白色文字 + 阴影保证可读性 */
body.random-bg .site-title {
    color: #FFF !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}
body.random-bg .site-wrap-a {
    opacity: 1 !important;
}
body.random-bg .tab-btn {
    color: #FFF !important;
    border-bottom-color: #FFF !important;
}
body.random-bg #time,
body.random-bg #date {
    color: #FFF !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
body.random-bg .tools li {
    color: #FFF !important;
}
body.random-bg #weather-bar {
    color: #FFF !important;
    background: rgba(0, 0, 0, .35);
}
body.random-bg .weather {
    text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
#setting:before {
    content: "\e620";
    font-size: 20px;
    display: block;
    height: 24px;
    line-height: 24px;
}

/* ========== 主体区域（高度自适应） ========== */
.main {
    width: 70%;
    height: auto;
    min-height: 600px;
    margin: 8px auto 30px auto;
}
.clock {
    width: 40%;
    height: 85px;
    text-align: center;
    padding: 3px;
    margin: 0 auto 5px auto;
}
#time {
    color: #FFF;
    font-size: 2.5rem;
    margin: 2px auto;
    font-weight: 500;
}
#date {
    color: #FFF;
    font-size: 15px;
    font-weight: 500;
}

/* ========== 搜索框 ========== */
#search-box {
    width: 50%;
    min-width: 300px;
    max-width: 600px;
    height: 54px;
    background: #fff;
    border-radius: 5px;
    margin: 20px auto 10px auto;
    position: relative;
    opacity: 0.5;
    transition: transform .3s, opacity .5s;
    z-index: 2;
    border: 1px solid #FFF;
    display: flex;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 10px 3px;
}
#search-box:hover {
    opacity: 1 !important;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 10px 3px;
}
/* 搜索引擎切换区：点击当前图标弹出候选框 */
#search-type {
    flex: none;
    width: 46px;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
#engine-icon {
    width: 24px;
    height: 24px;
    opacity: .75;
    transition: opacity .2s;
}
#search-type:hover #engine-icon {
    opacity: 1;
}
/* 搜索引擎候选框：图标 + 文字说明，纵向列表 */
.search-list {
    position: absolute;
    left: 0; /* 与搜索框左侧对齐（#search-type 位于搜索框最左端） */
    top: calc(100% + 8px);
    width: 200px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #FFF;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .04);
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 40;
}
.search-list.open {
    display: flex;
    animation: dropDown .18s ease-out;
}
@keyframes dropDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
}
.search-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
}
.search-list li:hover {
    background: #EEF3FB;
}
.search-list li img {
    width: 22px;
    height: 22px;
    flex: none;
}
.search-name {
    font-size: 14px;
    color: #333;
    line-height: 1;
    user-select: none;
}
.search-list li:hover .search-name {
    color: #000;
    font-weight: 500;
}
#search-form {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}
.search-btn {
    width: 24px;
    height: 24px;
    border: none;
    float: right;
    background: url(../images/searchChoice/searchbtn.svg) no-repeat;
    background-size: contain;
    background-position: center;
    opacity: .5;
    cursor: pointer;
    margin-right: 14px;
}
.search-btn:hover {
    opacity: 0.8;
}
.kw {
    position: absolute;
    left: 46px;
    top: 1px;
    width: 81%;
    height: 90%;
    border: none;
    overflow: hidden;
    outline: none;
    font-size: 15px;
}
.froms {
    width: 100%;
}
#clearButton {
    width: 19px;
    height: 19px;
    border: none;
    float: right;
    background: url(../images/searchChoice/clear.svg) no-repeat;
    opacity: .4;
    right: 45px;
    position: absolute;
    cursor: pointer;
}
#clearButton:hover {
    opacity: .8;
}

/* ========== 应用图标区（Grid 栅格，列左右对齐） ========== */
#app {
    width: 100%;
    height: auto;
    margin: 5px auto;
    font-size: 15px;
}
.tab-menu {
    width: 75%;
    height: 40px;
    margin: 5px auto;
    text-align: center;
}
.tab-menu li::before {
    content: "";
    border-left: 2px solid #555;
    display: block;
    position: absolute;
    top: 90%;
    left: 50%;
    height: 0px;
    transform: scale(0);
    transform-origin: center top;
    transition: all 0.2s ease-out 0s;
}
.tab-menu li::after {
    content: "";
    border-bottom: 2px solid currentColor; /* 跟随菜单文字颜色（含 JS 明暗自适应），避免出现第二条异色下划线 */
    display: block;
    transform: scale(0);
    transition: all 0.2s ease-out 0s;
}
li:hover::after, li:hover::before {
    transform: scale(1);
}
.tab-head {
    width: auto;
    height: 42px;
    position: relative;
    margin: 20px auto 0 auto;
    text-align: center;
}
.tab-head ul {
    position: relative;
    left: 50%;
    float: left;
}
.tab-head li {
    color: #000;
    width: 42px;
    list-style-type: none;
    position: relative;
    right: 50%;
    margin-right: 35px;
    display: inline;
    float: left;
    cursor: pointer;
}
.tab-head li:hover {
    font-weight: bold;
}
.tab-head li:last-child {
    margin-right: 0px;
}
.tab-btn {
    color: #000;
}
.current {
    font-weight: 600;
}
/* 选中项的常驻下划线：复用 ::after 那条线（currentColor），避免与边框形成双线 */
.tab-head li.current::after {
    transform: scale(1);
}
.tab-content {
    display: none;
}
.active {
    display: block;
    animation: fadeIn 1s ease-in-out forwards;
}
.tab-container {
    width: 85%;
    height: auto;
    margin: 45px auto;
}
@keyframes fadeIn {
    from { opacity: 20%; }
    to   { opacity: 100%; }
}

/* 图标区：Grid 布局，固定列数（各终端统一），每列等宽 1fr，
   列左右边缘严格对齐，每排图标数量一致 */
.site-box {
    width: 100%;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    justify-items: center;
    align-items: start;
    row-gap: 18px;
    column-gap: 8px;
}
.site-wrap-a {
    width: 100%;
    max-width: 110px;
    text-align: center;
    text-decoration: none;
    color: #FFF;
    transition: all .2s;
}
.site-wrap-a:hover {
    opacity: 1 !important;
    transform: scale(1.05);
}
.site-wrap-a:hover > .site-wrap-li {
    box-shadow: 0 3px 6px rgba(0, 0, 0, .3);
}
.site-wrap-li {
    width: 55px;
    height: 55px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, .5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    border-radius: 25%;
    line-height: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.site-wrap-li:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.site-img {
    width: 75%;
    height: 75%;
    border-radius: 12px;
    user-select: none;
    -ms-user-select: none;
}
/* 日历动态图标（内联 SVG，日期由 vue.js 填充，替代原 iframe 方案以消除
   file:// 协议下 "Unsafe attempt to load URL" 跨源告警） */
.cal-svg {
    display: block;
    pointer-events: none;
}
.site-title {
    display: block;
    margin: 4px auto 0 auto;
    width: 90px;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 400;
    opacity: 1;
    font-size: 13px;
}
@keyframes bounce {
    0%   { transform: scale(0); animation-timing-function: ease-in; }
    50%  { transform: scale(0.5); animation-timing-function: ease-out; }
    100% { transform: scale(1); }
}

/* ========== 弹窗（水平 + 垂直居中，统一处理） ========== */
#skintip,
#abouttip,
#weathertip {
    width: min(520px, 86vw);
    height: min(500px, 80vh);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    background-color: #FFF;
    border: 1px solid #FFF;
    border-radius: 14px;
    padding: 25px;
    z-index: 999;
    animation: popIn 0.2s ease-out;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .25);
}
#skintip { z-index: 999; }
#abouttip { z-index: 999; }
#weathertip { z-index: 999; }
/* 加宽换肤弹窗，保证 10 个壁纸分类菜单一行排开不换行 */
#skintip {
    width: min(680px, 92vw);
}
/* 天气弹窗：宽度收窄、高度自适应 */
#weathertip {
    width: min(420px, 88vw);
    height: auto;
}
/* 弹窗弹出动画（保留 translate，避免跳位） */
@keyframes popIn {
    from { transform: translate(-50%, -50%) scale(0.6); opacity: 0.3; }
    to   { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
}
.tip {
    font-size: 1.3rem;
    font-weight: 600;
}
.hidden {
    display: none;
}
/* 关闭按钮（换肤 #clear / 关于 #close / 天气 #wclose，共用同一套图片素材）
   top 与弹窗标题文字同一水平线对齐 */
#clear,
#close,
#wclose {
    display: block;
    background: url(../images/searchChoice/close.svg) no-repeat center;
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: .4;
    cursor: pointer;
    top: 22px;
    right: 12px;
}
#clear:hover,
#close:hover,
#wclose:hover {
    /* 注意：background 简写会重置 position，必须带上 center，否则 hover 时图标偏移 */
    background: url(../images/searchChoice/closeover.svg) no-repeat center;
    opacity: 1;
    color: #F00;
}
/* 保存按钮（换肤 #confirm / 关于 #getit，共用同一套图片素材）
   right 与关闭按钮对齐 */
#confirm,
#getit {
    display: block;
    background: url(../images/searchChoice/confirm.svg) no-repeat center;
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: .4;
    cursor: pointer;
    bottom: 12px;
    right: 12px;
}
#confirm:hover,
#getit:hover {
    background: url(../images/searchChoice/confirmover.svg) no-repeat center;
    opacity: 1;
    cursor: pointer;
}
/* 弹窗打开时的遮罩：仅原位模糊 container（不脱离文档流，
   避免页面其余内容——如底部备案栏——被顶到页面上方） */
.overlay {
    filter: blur(8px);
}

/* ========== 弹窗内的分类标签与壁纸列表 ========== */
.skin-sort {
    height: 30px;
    position: relative;
    margin: 10px auto;
    text-align: center;
}
.skin-sort ul {
    position: relative;
    display: inline-block;
}
.skin-sort li {
    width: 34px;
    list-style-type: none;
    position: relative;
    margin-right: 20px;
    display: inline;
    float: left;
    cursor: pointer;
    color: #474747;
}
.skin-sort li:hover {
    color: #000;
    cursor: pointer;
    border-bottom: 2px solid #555;
}
.skin-sort li::before {
    content: "";
    border-left: 2px solid #555;
    display: block;
    position: absolute;
    top: 90%;
    left: 50%;
    height: 0px;
    transform: scale(0);
    transform-origin: center top;
    transition: all 0.2s ease-out 0s;
}
.skin-sort li::after {
    content: "";
    border-bottom: 2px solid #555;
    display: block;
    transform: scale(0);
    transition: all 0.2s ease-out 0s;
}
.tabcontent {
    display: none;
    height: calc(100% - 130px);
    overflow-y: auto;
    padding-right: 12px;   /* ← 新增:文字与滚动条之间留出间距 */
    scrollbar-gutter: stable;
}
/* 弹窗正文排版：加大行距，阅读更舒适 */
.tabcontent,
.tabcontent p,
.tabcontent div {
    line-height: 1.9;
    font-size: 14px;
    color: #333;
}
.skin-box {
    height: 100%;
    width: 100%;
    padding: 0;
    overflow-y: auto;
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background-color: #F5F5F5;
}
.tabcontent::-webkit-scrollbar { width: 6px; }
.tabcontent::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
/* 定义滚动条轨道 内阴影+圆角 */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    background-color: #F5F5F5;
}
/* 定义滑块 内阴影+圆角 */
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, .3);
    background-color: #9e9e9e;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #7c7c7c;
}
.skin-li {
    display: inline-flex;
    margin: 5px 15px 5px 0px;
    cursor: pointer;
    position: relative;
}
.skin-img {
    width: 130px;
    max-width: 100%;
    border-radius: 10px;
}
/* 选中/悬停的 ✓ 图标：始终位于壁纸缩略图的垂直+水平居中位置 */
.skin-li:hover::before,
.bg-selected::before {
    content: "\e648";
    font-size: 30px;
    color: #FFF;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    pointer-events: none;
}
.act {
    display: block;
}

/* ========== 统一美化提示框（data-tip 自定义气泡，替代原生 title/alt 提示） ========== */
#global-tip {
    position: fixed;
    max-width: 260px;
    padding: 6px 12px;
    background: rgba(20, 20, 20, .66);
    color: #FFF;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .5px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity .15s ease, transform .15s ease;
    z-index: 9999;
}
#global-tip.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 底部（“关于”固定在页面最下方并居中） ========== */
.bot {
    width: 95%;
    margin: 20px auto 8px auto;
    color: #FFF;
    font-size: 13px;
    text-align: center;
}
.copyright {
    width: 100%;
    text-align: center;
    padding: 20px 0 0 0;
    margin: 0 auto;
    line-height: 30px;
}
.wtlk {
    color: #FFF;
}
#about {
    color: #FFF;
    display: inline-block;
    float: none;
    margin-right: 24px;
    cursor: pointer;
}

/* ========== 移动端菜单呼出按钮（PC 端隐藏） ========== */
#menu-fab {
    display: none;
}

/* ==========================================================
   响应式适配
   ========================================================== */

/* ---------- 中大屏笔记本（1025px ~ 1440px） ---------- */
@media screen and (max-width: 1440px) {
    .site-box {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ---------- 小屏笔记本 / 平板横屏（769px ~ 1024px） ---------- */
@media screen and (max-width: 1024px) {
    .main {
        width: 85%;
    }
    .site-box {
        grid-template-columns: repeat(5, 1fr);
    }
    .tab-menu {
        width: 90%;
    }
    .tab-head li {
        margin-right: 18px;
    }
    .top {
        width: 92%;
    }
    #search-box {
        width: 80%;
        min-width: 0;
    }
}

/* ---------- 移动端（<= 768px） ----------
   1. 页面宽度 = 设备分辨率宽度的 70%，高度自适应
   2. #tab-menu 吸附到页面左侧，从上到下排列
   3. 图标每排 3~5 个 */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }
    .top {
        width: 90%;
        margin: 10px auto;
    }
    /* 顶栏天气条缩小避免溢出 */
    #weather-bar {
        font-size: 12px;
        padding: 4px 10px;
        max-width: 46vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .tools li {
        margin-right: 14px;
    }
    /* 核心要求：整个页面宽度为终端设备分辨率的 70%，高度自适应 */
    .main {
        width: 70vw;
        min-width: 280px;
        height: auto;
        min-height: 0;
        margin: 15px auto;
    }
    .clock {
        width: 100%;
        margin-bottom: 10px;
    }
    #time {
        font-size: 2rem;
    }
    #search-box {
        width: min(100%, 560px);
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
    }
    #app {
        height: auto;
        font-size: 14px;
    }
    /* 链接菜单吸附到页面左侧，纵向从上到下排列；
       默认隐藏，由 JS 添加 menu-show 类后弹出 */
    #tab-menu {
        position: fixed;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        height: auto;
        margin: 0;
        padding: 10px 4px;
        background: rgba(255, 255, 255, .88);
        border-radius: 0 10px 10px 0;
        box-shadow: 2px 0 8px rgba(0, 0, 0, .15);
        z-index: 90;
        display: none;
    }
    #tab-menu.menu-show {
        display: block;
        animation: slideInLeft .25s ease-out;
    }
    /* 圆形菜单呼出按钮 */
    #menu-fab {
        display: flex;
        position: fixed;
        left: 16px;
        bottom: 28px;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background: rgba(0, 0, 0, .55);
        color: #FFF;
        font-size: 14px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 90;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
        user-select: none;
        -webkit-user-select: none;
    }
    #menu-fab:active {
        background: rgba(0, 0, 0, .78);
    }
    .tab-head {
        height: auto;
        margin: 0;
    }
    .tab-head ul {
        position: static;
        left: 0;
        float: none;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .tab-head li {
        float: none;
        display: block;
        width: auto;
        right: 0;
        margin: 0;
        padding: 2px 4px;
    }
    /* 移动端菜单自带浅色半透明底：tab 文字固定深色（!important 覆盖 JS 内联颜色） */
    #tab-menu .tab-head li {
        color: #333 !important;
        border-color: #333;
    }
    #tab-menu .tab-head li.current {
        border-bottom: 2px solid #333 !important;
    }
    .tab-menu li::before,
    .tab-menu li::after {
        display: none;
    }
    .tab-container {
        width: 100%;
        height: auto;
        margin: 30px auto;
    }
    /* 图标区：根据宽度自动每排 3~5 个（配合下面的区间规则） */
    .site-box {
        grid-template-columns: repeat(3, 1fr);
        /* 搜索框与图标区两端对齐：列拉伸至与搜索框同宽 */
        justify-items: stretch;
    }
    .site-wrap-a {
        max-width: 100%;
    }
    .bot {
        width: 90%;
    }
    .copyright {
        width: 100%;
        padding-top: 20px;
    }
    /* 小屏下弹窗宽度不够时，壁纸分类菜单一行排开 + 横向滚动 */
    .skin-sort {
        overflow-x: auto;
    }
    .skin-sort ul {
        min-width: max-content;
    }
}

/* 移动端细分：随宽度增大，每排图标从 3 个增加到 5 个 */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .site-box {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media screen and (min-width: 601px) and (max-width: 768px) {
    .site-box {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 移动端菜单滑入动画 */
@keyframes slideInLeft {
    from { transform: translate(-110%, -50%); opacity: .3; }
    to   { transform: translate(0, -50%);     opacity: 1; }
}

/* ---------- 高分屏笔记本（宏碁等 125% 缩放屏） ---------- */
@media screen and (min-width: 1920px) and (min-device-pixel-ratio: 1.25) {
    html {
        zoom: 80%;
    }
}

/* ---------- 2K 及以上大屏 ---------- */
@media all and (min-width: 2560px) {
    .site-box {
        grid-template-columns: repeat(10, 1fr);
    }
    .site-wrap-li {
        width: 65px;
        height: 65px;
        background-color: rgba(255, 255, 255, 1);
    }
}

/* ========== 动态天气 SVG 图标（weatherSVG 生成，ws-* 动画类） ========== */
.wsvg {
    display: inline-block;
    vertical-align: -0.15em;
    overflow: visible;
}
/* Meteocons 动态图标（<img> 引用本地 SVG，SMIL 动画），随容器字号缩放 */
img.wsvg {
    width: 1.2em;
    height: 1.2em;
    object-fit: contain;
}
/* 天气加载中的转圈占位图标（自绘 SVG） */
@keyframes ws-rot {
    to { transform: rotate(360deg); }
}
.ws-rot {
    animation: ws-rot 2s linear infinite;
    transform-box: fill-box;
    transform-origin: center;
}
/* 尊重系统"减弱动态效果"设置 */
@media (prefers-reduced-motion: reduce) {
    .wsvg * { animation: none !important; }
}
