@charset "UTF-8";
/* ============================================================================
   iwk-ui.css —— “周末风格”共享样式表（Element UI + 亮/暗双主题）
   ----------------------------------------------------------------------------
   来源：参考项目 D:\66666666\zliao\周末开源
     · 设计 token 取自 index/home.php:412 与 :608（该系统里唯一用 CSS 变量
       写全的一套）；
     · 语义色 --tint-* 取自参考项目 10 个页面共同复制的那一块
       （class.php:151 / data.php:100 / jkjg.php:105 / webest.php:50 ...）；
     · 页面骨架 .app-content-body / .help-card / .real-content-wrapper /
       .terminal-title 取自参考项目后台真正在渲染的写法；
       （注意：参考项目 15 个后台页面虽然都写了 .page-title 的样式，却没有一个
        页面真的渲染它，属死样式；而 .page-title 这个名字被老后台样式表
        assets/yqsladmin/css/index.css:95 占用成"标签页小胶囊"。本项目因此
        统一使用 .terminal-title，详见本文件"页标题"一节。）
     · 组件兜底（Element 弹层/表单/表格/分页）取值取自参考项目
       assets/css/pgkeep-page.css（该文件里 html.iwk-theme-dark .el-dialog{}
       一组本身就是全局作用域）。

   作用域约定（重要）：
     除了「第 3 节 暗色模式下 Element 弹层兜底」这一组以外，**所有规则都写在
     .iwk-page 之下**。没有给根容器加 .iwk-page 的页面，样式完全不受影响，
     因此本文件可以安全地由 head.php / headiwk.php 全局引入。

   颜色归一说明：参考项目里暗色底有 #2b2f36 与 #2f343c 两种写法混用，本文件
     统一采用 index/home.php 的 #2b2f36 / #343a43 / #3a404a 三级灰。
   ============================================================================ */


/* ==========================================================================
   1. 设计 token
   ========================================================================== */

:root{
    /* —— 参考项目 index/home.php:412 原值 —— */
    --bg-primary:#fff;
    --bg-secondary:#fff;
    --text-primary:#303133;
    --text-secondary:#606266;
    --border-color:#ebeef5;
    --shadow-sm:0 2px 12px rgba(0,0,0,.08);
    --shadow-md:0 4px 20px rgba(0,0,0,.12);
    --shadow-lg:0 6px 30px rgba(0,0,0,.15);
    --radius-global:3px;

    /* —— 参考项目 10 个页面共用的语义色 —— */
    --tint-primary:#409eff;
    --tint-success:#67c23a;
    --tint-danger:#f56c6c;
    --tint-warning:#e6a23c;
    --tint-info:#909399;

    /* —— 数据页（订单/设置/资料类）底色，取自参考项目 charge.php:6 / pgkeep —— */
    --page-bg:#f5f5f5;
    /* —— 页内浅色面板（统计小格、空状态等），取自 index/home.php:455 —— */
    --panel-bg:#f5f7fa;
    /* —— 品牌蓝（欢迎条 / 标题 / 链接），取自 index/home.php:418-424 —— */
    --accent:#1976d2;
    --accent-strong:#1565c0;
    --accent-soft:#e3f2fd;
    --accent-border:#90caf9;
    /* —— 表格表头，取自 pgkeep-page.css:62 —— */
    --thead-bg:#f6f8fb;
    --row-hover:#eef5ff;
}

html.iwk-theme-dark{
    color-scheme:dark;
    /* —— 参考项目 index/home.php:608 原值 —— */
    --bg-primary:#2b2f36;
    --bg-secondary:#343a43;
    --text-primary:#f3f4f6;
    --text-secondary:#e5e7eb;
    --border-color:rgba(255,255,255,.12);
    --shadow-sm:0 2px 12px rgba(0,0,0,.22);
    --shadow-md:0 4px 20px rgba(0,0,0,.28);
    --shadow-lg:0 6px 30px rgba(0,0,0,.34);

    --page-bg:#2b2f36;
    --panel-bg:rgba(255,255,255,.06);
    --accent:#ffffff;
    --accent-strong:#ffffff;
    --accent-soft:#3a404a;
    --accent-border:rgba(255,255,255,.12);
    --thead-bg:#3a404a;
    --row-hover:rgba(255,255,255,.06);
}


/* ==========================================================================
   2. 页面骨架（.iwk-page 作用域）
   ========================================================================== */

.iwk-page{
    background:var(--page-bg);
    min-height:100vh;
    padding:12px;
    box-sizing:border-box;
    font-family:'Helvetica Neue',Helvetica,'PingFang SC','Hiragino Sans GB','Microsoft YaHei','微软雅黑',Arial,sans-serif;
    font-size:14px;
    color:var(--text-primary);
}
.iwk-page *,
.iwk-page *::before,
.iwk-page *::after{box-sizing:border-box}

/* 仪表盘形态：整页铺开，不用 help-card 白卡（对齐 index/home.php:416） */
.iwk-page.main-container{
    background:var(--bg-primary);
    padding:20px 24px;
}

.iwk-page .help-card{
    background:var(--bg-secondary);
    border-radius:var(--radius-global);
    box-shadow:var(--shadow-sm);
    min-height:calc(100vh - 24px);
}
.iwk-page .real-content-wrapper{
    padding:24px;
    display:flex;
    flex-direction:column;
    gap:20px;
}

/* 页标题
   ---------------------------------------------------------------------------
   参考项目后台真正渲染的标题写法是 <h3 class="terminal-title">标题</h3>
   （assets/css 无关，出处：周末开源 index/charge.php:57、userinfo.php:214、
   apiinfo.php:113、zhiya.php:151）。改造后的 add / class / list / pay /
   userinfo 五个页面统一改用这一种。

   为什么不用 .page-title：参考项目里 15 个后台页面都写了 .page-title 的样式，
   却没有一个页面真的渲染它（逐文件扫过，markup 命中 0）——那是死样式。
   而这个类名被老后台样式表 assets/yqsladmin/css/index.css:95 占用：
       .page-title{height:30px;line-height:30px;font-size:.8em;background:#FFF;
                   border:1px solid #DDD;border-radius:6px;display:inline-block;
                   padding:0 8px;margin:0 3px;cursor:pointer}
   它是老后台"标签页小胶囊"的样式。谁用这个类名做页面标题，谁就会被压成
   30px 高的小胶囊（实测 boxH=30 / 内容 66px / 行高 30px / 字号 11.2px），
   并且标题下方那句说明会被下面的卡片盖住 17~25px，鼠标划过还会突然多出
   一圈灰边、文字左右跳 2px（老规则里有 .page-title:hover）。 */
/* 标题块 = 标题 + 一句操作说明。
   .iwk-page 里 .real-content-wrapper 是 flex 纵向 + gap:20px，标题和说明若做兄弟
   会被撑开 20px（说明离标题的下边框太远），所以用一个 wrapper 让它们贴在一起。

   【为什么这三个类名不做 .iwk-page 限定】「商品与货源」整组四次页
   （huoyuan / fenlei / yjdj / class）是照搬参考项目的，参考页面**没有**
   .iwk-page 这个根类。不能为了拿到标题样式就给它们加上：本文件有 221 组
   `.iwk-page .X` 规则，其中 .help-card / .real-content-wrapper / .form-group /
   .stat-card / .table-responsive / .toolbar / .el-button / .el-dialog /
   .el-pagination 等类名参考页面全都在用，`.iwk-page .X` 特异性(0,2,0)会压过
   页面内联 <style> 的 `.X`(0,1,0)，等于重演第九轮 .page-title 那类碰撞。
   所以这三个类名保持"全局唯一定义、谁挂谁生效"：没有别的样式表定义它们
   （全库实测只有本文件 + 本项目 10 个已改造页面在用），把限定去掉后
   已改造页面的计算样式完全不变，照搬页面则只需输出三个类名即可拿到同一套标题。 */
.terminal-title{
    font-size:20px;
    font-weight:600;
    margin:0;
    padding-bottom:14px;
    border-bottom:1px solid var(--border-color);
    color:var(--text-primary);
}
.terminal-head{display:flex;flex-direction:column}
.terminal-sub{
    margin:10px 0 0;
    font-size:13px;
    line-height:1.6;
    color:var(--text-secondary);
}

/* 兜底：.page-title 现在已无页面使用（见上）。
   这里把老规则会漏进来的 height / 行高 / 字号 / 背景 / 三面边框 / 圆角 /
   外边距 / 光标 全部显式重置，万一以后有人又拿这个类名做页面标题，
   也不会再退化成 30px 小胶囊。:hover 那条同样要压，否则悬停时老规则
   （border:1px solid #DDD + padding:0 10px + margin:0 1px）会让标题抖一下。 */
.iwk-page .page-title{
    display:block;
    height:auto;
    line-height:normal;
    font-size:inherit;
    background:transparent;
    border:0;
    border-bottom:1px solid var(--border-color);
    border-radius:0;
    margin:0;
    padding:0 0 14px;
    cursor:auto;
    white-space:normal;
}
.iwk-page .page-title:hover{
    border:0;
    border-bottom:1px solid var(--border-color);
    border-radius:0;
    margin:0;
    padding:0 0 14px;
}
.iwk-page .page-title h1{
    font-size:20px;
    font-weight:600;
    margin:0 0 6px;
    color:var(--text-primary);
}
.iwk-page .page-title p{
    font-size:13px;
    margin:0;
    color:var(--text-secondary);
}
/* 页内分区卡片 */
.iwk-page .section-card{
    border:1px solid var(--border-color);
    border-radius:var(--radius-global);
    background:var(--bg-secondary);
    padding:18px 20px;
    box-shadow:var(--shadow-sm);
}
.iwk-page .section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:14px;
}
.iwk-page .section-head h3{
    font-size:16px;
    font-weight:600;
    margin:0;
    color:var(--text-primary);
}
.iwk-page .section-head .mdi,
.iwk-page .section-head i{margin-right:6px}

/* 工具条 */
.iwk-page .toolbar{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}
.iwk-page .toolbar-right{margin-left:auto}

/* 欢迎条（对齐 index/home.php:418-424） */
.iwk-page .welcome-header{
    background:var(--accent-soft);
    border:1px solid var(--accent-border);
    border-radius:6px;
    padding:16px 24px;
    color:var(--accent);
    box-shadow:var(--shadow-sm);
}
.iwk-page .welcome-content{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}
.iwk-page .welcome-text h2{
    font-size:22px;
    margin:0 0 6px;
    font-weight:600;
    color:var(--accent-strong);
}
.iwk-page .welcome-text p{
    font-size:14px;
    margin:0;
    color:var(--accent);
}
.iwk-page .notice-button{
    background:rgba(21,101,192,.08);
    border:1px solid var(--accent-border);
    color:var(--accent-strong);
    padding:8px;
    border-radius:var(--radius-global);
    cursor:pointer;
    font-size:18px;
    line-height:1;
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
}


/* ==========================================================================
   3. 统计卡 / 图表 / 资料卡 / 成就 / 骨架屏
   ========================================================================== */

.iwk-page .stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}
.iwk-page .stat-card{
    background:var(--bg-secondary);
    border:1px solid var(--border-color);
    border-radius:6px;
    padding:14px 56px 14px 14px;
    min-height:110px;
    box-shadow:var(--shadow-sm);
    cursor:pointer;
    position:relative;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.iwk-page .stat-card:hover{box-shadow:var(--shadow-md)}
.iwk-page .stat-card-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:6px;
}
.iwk-page .stat-icon{
    width:36px;
    height:36px;
    border-radius:6px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    color:var(--icon-color,#1976d2);
    background:var(--icon-bg,#e3f2fd);
    position:absolute;
    right:14px;
    top:50%;
    transform:translateY(-50%);
}
.iwk-page .stat-title{
    font-size:13px;
    color:var(--text-secondary);
    margin-bottom:4px;
    font-weight:500;
}
.iwk-page .stat-value{
    font-size:22px;
    font-weight:700;
    color:var(--text-primary);
    margin-bottom:2px;
}
.iwk-page .stat-subtitle{
    font-size:12px;
    color:var(--text-secondary);
    margin-top:6px;
    min-height:16px;
    line-height:16px;
}
.iwk-page .stat-subtitle-row{
    display:flex;
    align-items:center;
    gap:6px;
}
.iwk-page .stat-trend{
    font-size:12px;
    padding:4px 8px;
    border-radius:12px;
    font-weight:600;
}
.iwk-page .stat-trend.up{color:#67c23a;background:rgba(103,194,58,.1)}
.iwk-page .stat-trend.down{color:#f56c6c;background:rgba(245,108,108,.1)}
/* 六色轮转（对齐 index/home.php:439-444）；需要固定色时用 style="--icon-bg:..." */
.iwk-page .stat-card:nth-child(6n+1){--icon-bg:#e3f2fd;--icon-color:#1976d2}
.iwk-page .stat-card:nth-child(6n+2){--icon-bg:#f3e5f5;--icon-color:#7b1fa2}
.iwk-page .stat-card:nth-child(6n+3){--icon-bg:#e8f5e9;--icon-color:#388e3c}
.iwk-page .stat-card:nth-child(6n+4){--icon-bg:#fff3e0;--icon-color:#f57c00}
.iwk-page .stat-card:nth-child(6n+5){--icon-bg:#ffebee;--icon-color:#c62828}
.iwk-page .stat-card:nth-child(6n+6){--icon-bg:#e0f2f1;--icon-color:#00796b}
/* 夜间：上面六组同样是硬编码的 Material 50 淡色，夜间会变成六个 36x36 的亮片。
 * 与 .action-btn 一样只覆盖 --icon-bg / --icon-color 两个变量，不直接写
 * background/color —— 直接写会以更高优先级盖掉别处可能存在的悬停/状态样式。 */
html.iwk-theme-dark .iwk-page .stat-card:nth-child(6n+1),
html[data-theme='dark'] .iwk-page .stat-card:nth-child(6n+1){--icon-bg:rgba(25,118,210,.18);--icon-color:#90caf9}
html.iwk-theme-dark .iwk-page .stat-card:nth-child(6n+2),
html[data-theme='dark'] .iwk-page .stat-card:nth-child(6n+2){--icon-bg:rgba(123,31,162,.20);--icon-color:#ce93d8}
html.iwk-theme-dark .iwk-page .stat-card:nth-child(6n+3),
html[data-theme='dark'] .iwk-page .stat-card:nth-child(6n+3){--icon-bg:rgba(56,142,60,.18);--icon-color:#a5d6a7}
html.iwk-theme-dark .iwk-page .stat-card:nth-child(6n+4),
html[data-theme='dark'] .iwk-page .stat-card:nth-child(6n+4){--icon-bg:rgba(245,124,0,.18);--icon-color:#ffcc80}
html.iwk-theme-dark .iwk-page .stat-card:nth-child(6n+5),
html[data-theme='dark'] .iwk-page .stat-card:nth-child(6n+5){--icon-bg:rgba(198,40,40,.18);--icon-color:#ef9a9a}
html.iwk-theme-dark .iwk-page .stat-card:nth-child(6n+6),
html[data-theme='dark'] .iwk-page .stat-card:nth-child(6n+6){--icon-bg:rgba(0,121,107,.20);--icon-color:#80cbc4}

.iwk-page .charts-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}
.iwk-page .chart-container{
    background:var(--bg-secondary);
    border:1px solid var(--border-color);
    border-radius:6px;
    padding:20px;
    box-shadow:var(--shadow-sm);
    overflow:hidden;
}
.iwk-page .chart-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
}
.iwk-page .chart-title{
    font-size:16px;
    font-weight:600;
    color:var(--text-primary);
}
.iwk-page .chart-value{
    font-size:24px;
    font-weight:700;
    color:var(--accent);
}
.iwk-page .chart-canvas{
    width:100%;
    height:200px;
    display:block;
    max-width:100%;
}

.iwk-page .content-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:20px;
}
.iwk-page .info-card{
    background:var(--bg-secondary);
    border:1px solid var(--border-color);
    border-radius:6px;
    box-shadow:var(--shadow-sm);
    overflow:hidden;
}
.iwk-page .card-header{
    padding:20px 24px;
    border-bottom:1px solid var(--border-color);
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:var(--bg-secondary);
}
.iwk-page .card-title{
    font-size:18px;
    font-weight:600;
    color:var(--text-primary);
    margin:0;
    display:flex;
    align-items:center;
    gap:10px;
}
.iwk-page .card-content{padding:24px}

.iwk-page .user-profile{
    display:flex;
    align-items:center;
    gap:16px;
    margin-bottom:20px;
}
.iwk-page .user-avatar{
    width:80px;
    height:80px;
    border-radius:6px;
    object-fit:cover;
    border:2px solid var(--accent-border);
    box-shadow:0 2px 8px rgba(144,202,249,.3);
    background:var(--panel-bg);
    flex:0 0 auto;
}
.iwk-page .user-info-text h3{
    font-size:20px;
    font-weight:700;
    margin:0 0 8px;
    color:var(--text-primary);
}
.iwk-page .user-info-text p{
    font-size:14px;
    margin:4px 0;
    color:var(--text-secondary);
}
.iwk-page .user-stats{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:16px;
}
.iwk-page .user-stat-item{
    padding:16px;
    background:var(--panel-bg);
    border-radius:6px;
    text-align:center;
}
.iwk-page .user-stat-value{
    font-size:24px;
    font-weight:700;
    color:var(--text-primary);
    margin-bottom:4px;
}
.iwk-page .user-stat-label{
    font-size:12px;
    color:var(--text-secondary);
}
.iwk-page .quick-actions{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    margin-top:16px;
}
.iwk-page .action-btn{
    padding:16px;
    background:var(--btn-bg,#e3f2fd);
    color:var(--btn-color,#1976d2);
    border:1px solid var(--btn-border,#90caf9);
    border-radius:6px;
    cursor:pointer;
    font-size:14px;
    font-weight:600;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    box-shadow:0 2px 4px rgba(0,0,0,.05);
}
.iwk-page .action-btn:hover{background:var(--btn-hover,#bbdefb);box-shadow:0 4px 8px rgba(0,0,0,.1)}
.iwk-page .action-btn:nth-child(4n+1){--btn-bg:#e3f2fd;--btn-color:#1976d2;--btn-border:#90caf9;--btn-hover:#bbdefb}
.iwk-page .action-btn:nth-child(4n+2){--btn-bg:#f3e5f5;--btn-color:#7b1fa2;--btn-border:#ce93d8;--btn-hover:#e1bee7}
.iwk-page .action-btn:nth-child(4n+3){--btn-bg:#e8f5e9;--btn-color:#388e3c;--btn-border:#81c784;--btn-hover:#c8e6c9}
.iwk-page .action-btn:nth-child(4n+4){--btn-bg:#fff3e0;--btn-color:#f57c00;--btn-border:#ffb74d;--btn-hover:#ffe0b2}
/* 夜间：上面四组是硬编码的 Material 50 淡色，在深色底上会变成四块亮斑
 * （实测占 home 底部约 8% 的亮像素）。这里只覆盖那四个 CSS 变量，不直接写
 * background/color/border —— 直接写会以更高的优先级盖掉下面那条 :hover 规则，
 * 把悬停反馈弄没。改完 :hover 仍读 --btn-hover，反馈保留。
 * 选择器比原规则多一个 html 类，优先级 (0,4,1) > (0,3,0)，无需 !important。 */
html.iwk-theme-dark .iwk-page .action-btn:nth-child(4n+1),
html[data-theme='dark'] .iwk-page .action-btn:nth-child(4n+1){
    --btn-bg:rgba(33,150,243,.16);--btn-color:#90caf9;--btn-border:rgba(144,202,249,.40);--btn-hover:rgba(33,150,243,.28)
}
html.iwk-theme-dark .iwk-page .action-btn:nth-child(4n+2),
html[data-theme='dark'] .iwk-page .action-btn:nth-child(4n+2){
    --btn-bg:rgba(156,39,176,.18);--btn-color:#ce93d8;--btn-border:rgba(206,147,216,.40);--btn-hover:rgba(156,39,176,.30)
}
html.iwk-theme-dark .iwk-page .action-btn:nth-child(4n+3),
html[data-theme='dark'] .iwk-page .action-btn:nth-child(4n+3){
    --btn-bg:rgba(56,142,60,.18);--btn-color:#81c784;--btn-border:rgba(129,199,132,.40);--btn-hover:rgba(56,142,60,.30)
}
html.iwk-theme-dark .iwk-page .action-btn:nth-child(4n+4),
html[data-theme='dark'] .iwk-page .action-btn:nth-child(4n+4){
    --btn-bg:rgba(245,124,0,.18);--btn-color:#ffb74d;--btn-border:rgba(255,183,77,.40);--btn-hover:rgba(245,124,0,.30)
}

.iwk-page .achievement-stats{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px;
    background:linear-gradient(135deg,var(--accent-soft) 0,var(--panel-bg) 100%);
    border-radius:8px;
    margin-bottom:14px;
}
.iwk-page .achievement-stat-item{text-align:center;flex:1}
.iwk-page .achievement-stat-value{
    font-size:24px;
    font-weight:700;
    color:var(--accent);
    margin-bottom:4px;
}
.iwk-page .achievement-stat-label{
    font-size:12px;
    color:var(--text-secondary);
}
.iwk-page .achievements-container{
    display:flex;
    flex-direction:column;
    gap:16px;
    max-height:500px;
    overflow-y:auto;
    padding-right:8px;
}
.iwk-page .achievement-item{
    background:var(--panel-bg);
    border-radius:8px;
    padding:14px 16px;
}
.iwk-page .achievement-item:hover{box-shadow:var(--shadow-sm)}
.iwk-page .achievement-item.completed{
    background:linear-gradient(135deg,rgba(103,194,58,.18) 0,rgba(103,194,58,.06) 100%);
}
.iwk-page .achievement-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:10px;
}
.iwk-page .achievement-left{
    display:flex;
    align-items:center;
    gap:12px;
    flex:1;
}
.iwk-page .achievement-icon{
    width:42px;
    height:42px;
    border-radius:6px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    color:#fff;
    background:var(--achievement-color,#409eff);
    box-shadow:0 2px 8px rgba(0,0,0,.15);
    flex:0 0 auto;
}
.iwk-page .achievement-item.completed .achievement-icon{background:#67c23a}
.iwk-page .achievement-info{flex:1;min-width:0}
.iwk-page .achievement-name{
    font-size:15px;
    font-weight:600;
    color:var(--text-primary);
    margin-bottom:3px;
    display:flex;
    align-items:center;
    gap:6px;
}
.iwk-page .achievement-desc{
    font-size:12px;
    color:var(--text-secondary);
}
.iwk-page .achievement-status{text-align:right;flex:0 0 auto}
.iwk-page .achievement-badge{
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:4px 12px;
    border-radius:12px;
    font-size:12px;
    font-weight:600;
    margin-bottom:4px;
}
.iwk-page .achievement-badge.completed{background:#67c23a;color:#fff}
.iwk-page .achievement-badge.in-progress{background:#409eff;color:#fff}
.iwk-page .achievement-progress-text{
    font-size:14px;
    font-weight:600;
    color:var(--text-primary);
}
.iwk-page .achievement-progress-bar{
    width:100%;
    height:6px;
    background:rgba(128,128,128,.22);
    border-radius:3px;
    overflow:hidden;
}
.iwk-page .achievement-progress-fill{
    height:100%;
    background:var(--achievement-color,#409eff);
    border-radius:3px;
}
.iwk-page .achievement-item.completed .achievement-progress-fill{
    background:linear-gradient(90deg,#67c23a 0,#85ce61 100%);
}

/* 骨架屏（对齐 index/home.php:583-606） */
.iwk-page .skeleton-wrapper{display:block}
.iwk-page .skeleton-item{
    background:var(--bg-secondary);
    border:1px solid var(--border-color);
    border-radius:6px;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
}
.iwk-page .skeleton-wave{
    position:relative;
    overflow:hidden;
    background:rgba(128,128,128,.14);
}
.iwk-page .skeleton-wave::after{
    content:'';
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent);
    animation:iwk-skeleton-loading 1.5s infinite;
}
@keyframes iwk-skeleton-loading{
    0%{left:-100%}
    100%{left:100%}
}
.iwk-page .skeleton-header{height:80px;border-radius:6px;background:var(--accent-soft)}
.iwk-page .skeleton-card{height:130px;padding:16px 20px}
.iwk-page .skeleton-avatar{width:80px;height:80px;border-radius:6px;display:inline-block}
.iwk-page .skeleton-text{height:16px;border-radius:4px;margin-bottom:8px;background:rgba(128,128,128,.14)}
.iwk-page .skeleton-text-lg{height:24px;width:60%}
.iwk-page .skeleton-text-md{height:18px;width:40%}
.iwk-page .skeleton-text-sm{height:14px;width:30%}
.iwk-page .skeleton-button{height:44px;border-radius:6px;width:100%}
.iwk-page .skeleton-grid-item{height:80px;border-radius:6px;background:var(--panel-bg)}
.iwk-page .skeleton-chart{height:280px;padding:20px}
.iwk-page .skeleton-chart-canvas{height:200px;margin-top:20px;border-radius:4px}


/* ==========================================================================
   4. 表单 / 输入 / 按钮 / 提示块
   ========================================================================== */

.iwk-page .site-form{
    display:flex;
    flex-direction:column;
    gap:18px;
}
.iwk-page .form-group{
    display:flex;
    flex-direction:column;
}
.iwk-page .form-group label,
.iwk-page .field-label{
    color:var(--text-secondary);
    font-size:14px;
    margin-bottom:8px;
    font-weight:600;
}
.iwk-page .terminal-input{
    width:100%;
    padding:12px 16px;
    border:1px solid var(--border-color);
    border-radius:var(--radius-global);
    font-size:15px;
    background:var(--panel-bg);
    color:var(--text-primary);
    transition:border .2s;
}
.iwk-page .terminal-input:focus{
    outline:none;
    border-color:var(--accent-border);
}
.iwk-page .terminal-input[disabled],
.iwk-page .terminal-input[readonly]{
    cursor:not-allowed;
    opacity:.92;
}
.iwk-page .terminal-input.pastel{background:rgba(99,102,241,.12);border-color:rgba(99,102,241,.22)}
.iwk-page .terminal-input.pastel.green{background:rgba(16,185,129,.12);border-color:rgba(16,185,129,.25)}
.iwk-page .terminal-input.pastel.blue{background:rgba(59,130,246,.12);border-color:rgba(59,130,246,.25)}
.iwk-page .terminal-input.pastel.purple{background:rgba(168,85,247,.12);border-color:rgba(168,85,247,.25)}
.iwk-page .terminal-input.pastel.orange{background:rgba(249,115,22,.12);border-color:rgba(249,115,22,.25)}
.iwk-page .terminal-input.pastel.teal{background:rgba(45,212,191,.12);border-color:rgba(45,212,191,.25)}
.iwk-page .terminal-input.pastel.gray{background:rgba(107,114,128,.12);border-color:rgba(107,114,128,.25)}

.iwk-page .primary-btn{
    padding:12px 22px;
    border-radius:var(--radius-global);
    background:var(--accent-soft);
    border:1px solid var(--accent-border);
    color:var(--accent-strong);
    font-weight:600;
    cursor:pointer;
    transition:background .2s;
}
.iwk-page .primary-btn:hover{background:var(--accent-border)}
.iwk-page .primary-btn:disabled{opacity:.5;cursor:not-allowed}

.iwk-page .notice{
    font-size:13px;
    line-height:1.8;
    color:var(--text-secondary);
    background:rgba(59,130,246,.08);
    border:1px solid rgba(59,130,246,.2);
    border-radius:var(--radius-global);
    padding:16px;
    word-break:break-word;
}
.iwk-page .notice.warning{
    background:rgba(230,162,60,.10);
    border-color:rgba(230,162,60,.28);
}
.iwk-page .notice.danger{
    background:rgba(245,108,108,.10);
    border-color:rgba(245,108,108,.28);
}
.iwk-page .fee-warning{
    background:rgba(245,108,108,.10);
    border:1px solid rgba(245,108,108,.28);
    padding:12px;
    border-radius:4px;
    color:var(--tint-danger);
    font-size:13px;
}
.iwk-page .invite-tips{
    font-size:12px;
    color:var(--tint-info);
    margin-top:6px;
    line-height:1.5;
}

/* 空状态 */
.iwk-page .empty-state{
    text-align:center;
    padding:40px 20px;
    color:var(--text-secondary);
}
.iwk-page .empty-state i{
    font-size:48px;
    margin-bottom:16px;
    opacity:.5;
    display:block;
}

/* 分类色块（其他工具/榜单类页面用） */
.iwk-page .zhiya-list{display:flex;flex-direction:column;gap:12px}


/* ==========================================================================
   5. 原生表格（给不用 Element 表格的页面用）
   ========================================================================== */

.iwk-page .table-responsive{
    width:100%;
    overflow-x:auto;
    border:1px solid var(--border-color);
    border-radius:var(--radius-global);
}
.iwk-page table.data-table{
    width:100%;
    border-collapse:collapse;
    font-size:13px;
    color:var(--text-primary);
    background:var(--bg-secondary);
}
.iwk-page table.data-table thead th{
    background:var(--thead-bg);
    color:var(--text-primary);
    font-weight:700;
    text-align:left;
    padding:10px 12px;
    border-bottom:1px solid var(--border-color);
    white-space:nowrap;
}
.iwk-page table.data-table tbody td{
    padding:10px 12px;
    border-bottom:1px solid var(--border-color);
    line-height:1.45;
    word-break:break-word;
}
.iwk-page table.data-table tbody tr:nth-child(2n) td{background:rgba(128,128,128,.05)}
.iwk-page table.data-table tbody tr:hover td{background:var(--row-hover)}


/* ==========================================================================
   6. Element 组件兜底（亮色；.iwk-page 作用域）
   ========================================================================== */

.iwk-page .el-button{
    border-radius:var(--radius-global);
    box-shadow:none;
    font-weight:500;
}
.iwk-page .el-button--default,
.iwk-page .el-button--default.is-plain{
    background:rgba(144,147,153,.10);
    border-color:rgba(144,147,153,.35);
    color:var(--text-primary);
}
.iwk-page .el-button--default:hover,
.iwk-page .el-button--default.is-plain:hover{
    background:rgba(144,147,153,.18);
    border-color:rgba(144,147,153,.5);
    color:var(--text-primary);
}
.iwk-page .el-button--primary,
.iwk-page .el-button--primary.is-plain{
    background:rgba(64,158,255,.12);
    border-color:rgba(64,158,255,.40);
    color:#1976d2;
}
.iwk-page .el-button--primary:hover,
.iwk-page .el-button--primary.is-plain:hover{
    background:rgba(64,158,255,.20);
    border-color:rgba(64,158,255,.60);
    color:#1565c0;
}
.iwk-page .el-button--success,
.iwk-page .el-button--success.is-plain{
    background:rgba(103,194,58,.12);
    border-color:rgba(103,194,58,.40);
    color:#529b2e;
}
.iwk-page .el-button--success:hover,
.iwk-page .el-button--success.is-plain:hover{
    background:rgba(103,194,58,.20);
    border-color:rgba(103,194,58,.60);
}
.iwk-page .el-button--warning,
.iwk-page .el-button--warning.is-plain{
    background:rgba(230,162,60,.12);
    border-color:rgba(230,162,60,.42);
    color:#b88230;
}
.iwk-page .el-button--warning:hover,
.iwk-page .el-button--warning.is-plain:hover{
    background:rgba(230,162,60,.20);
    border-color:rgba(230,162,60,.62);
}
.iwk-page .el-button--danger,
.iwk-page .el-button--danger.is-plain{
    background:rgba(245,108,108,.12);
    border-color:rgba(245,108,108,.42);
    color:#c45656;
}
.iwk-page .el-button--danger:hover,
.iwk-page .el-button--danger.is-plain:hover{
    background:rgba(245,108,108,.20);
    border-color:rgba(245,108,108,.62);
}
.iwk-page .el-button--info,
.iwk-page .el-button--info.is-plain{
    background:rgba(144,147,153,.12);
    border-color:rgba(144,147,153,.40);
    color:#73767a;
}
.iwk-page .el-button.is-disabled,
.iwk-page .el-button.is-disabled:hover{
    opacity:.5;
    box-shadow:none;
}

.iwk-page .el-input__inner,
.iwk-page .el-textarea__inner{
    border-radius:var(--radius-global);
    background:var(--panel-bg);
    border-color:var(--border-color);
    color:var(--text-primary);
}
.iwk-page .el-input__inner::placeholder,
.iwk-page .el-textarea__inner::placeholder{color:var(--tint-info)}
.iwk-page .el-input-group__prepend,
.iwk-page .el-input-group__append{
    background:var(--thead-bg);
    border-color:var(--border-color);
    color:var(--text-secondary);
    border-radius:var(--radius-global);
}
.iwk-page .el-form-item__label{color:var(--text-secondary)}
.iwk-page .el-radio__label,
.iwk-page .el-checkbox__label{color:var(--text-primary)}

.iwk-page .el-card,
.iwk-page .el-card__header,
.iwk-page .el-card__body{
    border-color:var(--border-color);
    background:var(--bg-secondary);
    color:var(--text-primary);
}
.iwk-page .el-table{
    background:var(--bg-secondary);
    color:var(--text-primary);
    border-radius:var(--radius-global);
}
.iwk-page .el-table th,
.iwk-page .el-table tr,
.iwk-page .el-table td{
    background:var(--bg-secondary);
    color:var(--text-primary);
    border-color:var(--border-color);
}
.iwk-page .el-table th{
    background:var(--thead-bg);
    font-weight:700;
}
.iwk-page .el-table td,
.iwk-page .el-table th{padding:10px 0}
.iwk-page .el-table td .cell,
.iwk-page .el-table th .cell{
    padding-left:12px;
    padding-right:12px;
    line-height:1.35;
}
.iwk-page .el-table--border,
.iwk-page .el-table--group{border-color:var(--border-color)}
.iwk-page .el-table--border td,
.iwk-page .el-table--border th{border-right-color:var(--border-color)}
.iwk-page .el-table::before,
.iwk-page .el-table--border::after,
.iwk-page .el-table--group::after{background-color:var(--border-color)}
.iwk-page .el-table__body tbody tr:nth-child(2n) td{background:rgba(128,128,128,.05)}
.iwk-page .el-table__body tbody tr:hover>td{background:var(--row-hover)!important}
.iwk-page .el-table__empty-block{background:var(--bg-secondary)}
.iwk-page .el-table__empty-text{color:var(--text-secondary)}

.iwk-page .el-pagination{
    color:var(--text-primary);
    padding:12px 0 0;
}
.iwk-page .el-pagination__total,
.iwk-page .el-pagination__jump{color:var(--text-secondary)}
.iwk-page .el-pager li,
.iwk-page .el-pagination button{
    background:var(--bg-secondary);
    color:var(--text-primary);
    border-radius:var(--radius-global);
}
.iwk-page .el-pager li.active{background:var(--tint-primary);color:#fff}
.iwk-page .el-pagination button:disabled{background:var(--panel-bg);color:var(--tint-info)}

.iwk-page .el-tabs__item{color:var(--text-secondary)}
.iwk-page .el-tabs__item.is-active{color:var(--accent)}
.iwk-page .el-tabs__nav-wrap::after{background-color:var(--border-color)}
.iwk-page .el-alert{border-radius:var(--radius-global)}

.iwk-page .el-dialog{border-radius:var(--radius-global)}
.iwk-page .el-dialog__title{color:var(--text-primary);font-weight:600}
.iwk-page .el-dialog__body{color:var(--text-primary)}


/* ==========================================================================
   7. 暗色模式：Element 弹层全局兜底
   —— 这一组刻意不加 .iwk-page：el-dialog / el-message-box / el-select 下拉等
      弹层常被挂到 <body> 下或用 append-to-body，只作用于暗色模式。
      与参考项目 assets/css/pgkeep-page.css:460-544 的做法一致。

   纪律：全局规则里**只改颜色**，不加 padding / border 这类影响布局的属性。
   否则会连带挪动尚未改造的页面（例如 menu.php 自己的弹窗）的排版，
   而那边的人根本不知道自己被改了。
   ========================================================================== */

html.iwk-theme-dark .el-dialog,
html[data-theme='dark'] .el-dialog{
    background:#343a43;
}
html.iwk-theme-dark .el-dialog__header,
html[data-theme='dark'] .el-dialog__header{
    background:#3a404a;
    border-bottom-color:rgba(255,255,255,.10);
}
html.iwk-theme-dark .el-dialog__body,
html[data-theme='dark'] .el-dialog__body{
    background:#343a43;
    color:#e5e7eb;
}
html.iwk-theme-dark .el-dialog__footer,
html[data-theme='dark'] .el-dialog__footer{
    background:#343a43;
    border-top-color:rgba(255,255,255,.10);
}
html.iwk-theme-dark .el-dialog__title,
html[data-theme='dark'] .el-dialog__title{color:#ffffff}
html.iwk-theme-dark .el-dialog__headerbtn .el-dialog__close,
html[data-theme='dark'] .el-dialog__headerbtn .el-dialog__close{color:rgba(255,255,255,.72)}
html.iwk-theme-dark .el-dialog__headerbtn:hover .el-dialog__close,
html[data-theme='dark'] .el-dialog__headerbtn:hover .el-dialog__close{color:#ffffff}
html.iwk-theme-dark .el-form-item__label,
html[data-theme='dark'] .el-form-item__label{color:#e5e7eb}
html.iwk-theme-dark .el-form-item__error,
html[data-theme='dark'] .el-form-item__error{color:#fca5a5}

html.iwk-theme-dark .el-message-box,
html[data-theme='dark'] .el-message-box{
    background:#343a43;
    border-color:rgba(255,255,255,.10);
}
html.iwk-theme-dark .el-message-box__title,
html[data-theme='dark'] .el-message-box__title{color:#ffffff}
html.iwk-theme-dark .el-message-box__message,
html[data-theme='dark'] .el-message-box__message{color:rgba(255,255,255,.80)}
html.iwk-theme-dark .el-message-box__headerbtn .el-message-box__close,
html[data-theme='dark'] .el-message-box__headerbtn .el-message-box__close{color:rgba(255,255,255,.72)}

html.iwk-theme-dark .el-message,
html[data-theme='dark'] .el-message{
    background:#343a43;
    border-color:rgba(255,255,255,.10);
}
html.iwk-theme-dark .el-message .el-message__content,
html[data-theme='dark'] .el-message .el-message__content{color:#e5e7eb}

html.iwk-theme-dark .el-notification,
html[data-theme='dark'] .el-notification{
    background:#343a43;
    border-color:rgba(255,255,255,.10);
}
html.iwk-theme-dark .el-notification__title,
html[data-theme='dark'] .el-notification__title{color:#ffffff}
html.iwk-theme-dark .el-notification__content,
html[data-theme='dark'] .el-notification__content{color:rgba(255,255,255,.80)}

html.iwk-theme-dark .el-select-dropdown,
html.iwk-theme-dark .el-dropdown-menu,
html.iwk-theme-dark .el-picker-panel,
html.iwk-theme-dark .el-popper,
html[data-theme='dark'] .el-select-dropdown,
html[data-theme='dark'] .el-dropdown-menu,
html[data-theme='dark'] .el-picker-panel,
html[data-theme='dark'] .el-popper{
    background:#343a43;
    border-color:rgba(255,255,255,.12);
    color:#e5e7eb;
}
html.iwk-theme-dark .el-select-dropdown__item,
html.iwk-theme-dark .el-dropdown-menu__item,
html[data-theme='dark'] .el-select-dropdown__item,
html[data-theme='dark'] .el-dropdown-menu__item{color:#e5e7eb}
html.iwk-theme-dark .el-select-dropdown__item.hover,
html.iwk-theme-dark .el-select-dropdown__item:hover,
html.iwk-theme-dark .el-dropdown-menu__item:hover,
html[data-theme='dark'] .el-select-dropdown__item.hover,
html[data-theme='dark'] .el-select-dropdown__item:hover,
html[data-theme='dark'] .el-dropdown-menu__item:hover{
    background:rgba(255,255,255,.08);
    color:#ffffff;
}
html.iwk-theme-dark .popper__arrow,
html.iwk-theme-dark .popper__arrow::after,
html[data-theme='dark'] .popper__arrow,
html[data-theme='dark'] .popper__arrow::after{border-color:#343a43 transparent transparent transparent}


/* ==========================================================================
   8. 响应式（对齐 index/home.php:505-576）
   ========================================================================== */

@media (max-width:1200px){
    .iwk-page .content-grid{grid-template-columns:1.6fr 1fr}
    .iwk-page .stats-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
    .iwk-page .charts-grid{gap:18px}
}
@media (max-width:992px){
    .iwk-page{padding:10px}
    .iwk-page.main-container{padding:16px}
    .iwk-page .content-grid{grid-template-columns:1fr}
    .iwk-page .charts-grid{grid-template-columns:1fr}
    .iwk-page .welcome-content{flex-wrap:wrap}
    .iwk-page .card-header{padding:16px 18px}
    .iwk-page .card-content{padding:16px 18px}
}
@media (max-width:768px){
    .iwk-page{padding:8px}
    .iwk-page.main-container{padding:12px}
    .iwk-page .help-card{min-height:calc(100vh - 16px)}
    .iwk-page .real-content-wrapper{padding:16px;gap:16px}
    .iwk-page .welcome-header{padding:12px 16px}
    .iwk-page .welcome-content{flex-direction:row;align-items:center;gap:12px;flex-wrap:nowrap}
    .iwk-page .welcome-text h2{font-size:18px}
    .iwk-page .welcome-text p{font-size:13px}
    .iwk-page .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .iwk-page .stat-card{padding:10px 56px 10px 14px}
    .iwk-page .user-avatar{width:60px;height:60px}
    .iwk-page .user-info-text h3{font-size:16px}
    .iwk-page .quick-actions{grid-template-columns:1fr}
    .iwk-page .achievements-container{max-height:none;padding-right:0}
    .iwk-page .achievement-stats{padding:10px;flex-wrap:wrap}
    .iwk-page .achievement-stat-value{font-size:18px}
    .iwk-page .site-form{gap:14px}
}
@media (max-width:480px){
    .iwk-page.main-container{padding:10px}
    .iwk-page .stats-grid{grid-template-columns:1fr;gap:10px}
    .iwk-page .stat-card{padding:10px 52px 10px 12px}
    .iwk-page .chart-container{padding:14px 10px}
    .iwk-page .chart-canvas{height:150px}
    .iwk-page .user-stats{grid-template-columns:1fr}
}


/* ==========================================================================
   9. 安全中心（index/security.php）
   ----------------------------------------------------------------------------
   版式来源：站长提供的新版「安全中心」截图 —— 顶部提示条 + 三组卡片
   （修改密码 / 账号绑定 / 数据清理），每行 = 圆角图标 + 标题 + 说明 + 右侧按钮。

   与其它页面的关系：
     · 卡片外壳仍然复用 .section-card，只把内边距改成 0，好让分区标题栏的下边框
       能横贯整张卡；分区标题栏用自己的 .sec-head，不复用 .section-head
       （后者带 margin-bottom:14px，会把标题和第一行撑开）。
     · 颜色一律走第 1 节的 token，所以日夜两套自动成立；截图里那三种按钮色
       （蓝/红/琥珀）映射到 --tint-primary / --tint-danger / --tint-warning。
     · 全部规则限定在 .iwk-page 之下，没挂 .iwk-page 的页面完全不受影响。

   动效（站长第十六轮选定"克制但有分量"）：
     卡片与列表行错峰淡入上移、按钮悬停微浮起、图标在行悬停时染色、
     数字滚动归零用 JS 逐帧改文本、清空后的"已删除 N 条"胶囊会自己收起来。
     全部动效都尊重系统的"减少动态效果"（见本节末尾的 media query）。
   ========================================================================== */

/* —— 顶部提示条（截图里那条琥珀色说明） —— */
.iwk-page .sec-banner{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:12px 16px;
    border-radius:var(--radius-global);
    background:#fdf6ec;
    border:1px solid #f5dab1;
    color:#b47b23;
    font-size:13px;
    line-height:1.65;
}
.iwk-page .sec-banner .mdi{
    flex:0 0 auto;
    font-size:16px;
    line-height:1.45;
}
html.iwk-theme-dark .iwk-page .sec-banner{
    background:rgba(230,162,60,.14);
    border-color:rgba(230,162,60,.36);
    color:#f0c078;
}

/* —— 卡片：整卡无内边距，标题栏自带内边距与下边框 —— */
.iwk-page .section-card.sec-card{
    padding:0;
    overflow:hidden;
}
.iwk-page .sec-head{
    display:flex;
    align-items:center;
    gap:8px;
    padding:15px 20px;
    border-bottom:1px solid var(--border-color);
}
.iwk-page .sec-head .mdi{
    font-size:17px;
    color:var(--text-primary);
}
.iwk-page .sec-head h3{
    margin:0;
    font-size:15px;
    font-weight:600;
    color:var(--text-primary);
}
/* 顶部那张只有标题的卡（截图的「安全中心」）——不要下边框 */
.iwk-page .sec-card.sec-card--title .sec-head{
    border-bottom:0;
    padding:16px 20px;
}

/* —— 行 —— */
.iwk-page .sec-item{
    display:flex;
    align-items:center;
    gap:14px;
    padding:16px 20px;
    transition:background .22s ease;
}
.iwk-page .sec-item + .sec-item{
    border-top:1px solid var(--border-color);
}
.iwk-page .sec-item:hover{
    background:var(--row-hover);
}
.iwk-page .sec-icon{
    flex:0 0 auto;
    width:38px;
    height:38px;
    border-radius:6px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--panel-bg);
    color:var(--text-secondary);
    font-size:19px;
    transition:background .25s ease,color .25s ease,transform .25s ease;
}
.iwk-page .sec-item:hover .sec-icon{
    background:var(--accent-soft);
    color:var(--accent);
    transform:translateY(-1px);
}
.iwk-page .sec-body{
    flex:1 1 auto;
    min-width:0;
}
.iwk-page .sec-title{
    font-size:14px;
    font-weight:600;
    color:var(--text-primary);
    line-height:1.5;
}
.iwk-page .sec-desc{
    margin-top:3px;
    font-size:12px;
    line-height:1.6;
    color:var(--text-secondary);
    word-break:break-all;
}
.iwk-page .sec-right{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:10px;
}

/* —— 条数胶囊（截图里没有，本轮新增：点"清空"之前先让你看清楚有多少） —— */
.iwk-page .sec-count{
    display:inline-flex;
    align-items:center;
    height:22px;
    padding:0 9px;
    border-radius:999px;
    font-size:12px;
    white-space:nowrap;
    background:var(--panel-bg);
    color:var(--text-secondary);
    font-variant-numeric:tabular-nums;
    overflow:hidden;
    max-width:200px;
    transition:max-width .34s ease,opacity .34s ease,padding .34s ease,
               background .34s ease,color .34s ease,transform .34s ease;
}
.iwk-page .sec-count.is-zero{
    opacity:.55;
}
/* 清空成功后挂上这个类：胶囊自己收起来（"塌陷"），2.6 秒后由 JS 移回 */
.iwk-page .sec-count.is-collapsed{
    max-width:0;
    opacity:0;
    padding:0;
    transform:scale(.86);
}
.iwk-page .sec-count.is-flash{
    background:var(--accent-soft);
    color:var(--accent);
}

/* —— 按钮：截图里的蓝/红/琥珀三种 —— */
.iwk-page .sec-btn{
    flex:0 0 auto;
    min-width:88px;
    height:32px;
    padding:0 14px;
    border:0;
    border-radius:var(--radius-global);
    font-size:13px;
    line-height:1;
    font-family:inherit;
    color:#fff;
    cursor:pointer;
    white-space:nowrap;
    background:var(--tint-primary);
    box-shadow:0 0 0 rgba(64,158,255,0);
    transition:transform .18s ease,box-shadow .18s ease,filter .18s ease,opacity .18s ease;
}
.iwk-page .sec-btn:hover{
    transform:translateY(-1px);
    filter:brightness(1.06);
    box-shadow:0 5px 13px rgba(64,158,255,.32);
}
.iwk-page .sec-btn:active{
    transform:translateY(0) scale(.985);
    box-shadow:none;
}
.iwk-page .sec-btn:focus-visible{
    outline:2px solid var(--tint-primary);
    outline-offset:2px;
}
.iwk-page .sec-btn--danger{
    background:var(--tint-danger);
}
.iwk-page .sec-btn--danger:hover{
    box-shadow:0 5px 13px rgba(245,108,108,.32);
}
.iwk-page .sec-btn--danger:focus-visible{
    outline-color:var(--tint-danger);
}
.iwk-page .sec-btn--warning{
    background:var(--tint-warning);
}
.iwk-page .sec-btn--warning:hover{
    box-shadow:0 5px 13px rgba(230,162,60,.32);
}
.iwk-page .sec-btn--warning:focus-visible{
    outline-color:var(--tint-warning);
}
.iwk-page .sec-btn:disabled{
    opacity:.55;
    cursor:not-allowed;
    transform:none;
    filter:none;
    box-shadow:none;
}

/* —— 动效 —— */
@keyframes iwk-sec-rise{
    from{opacity:0;transform:translateY(14px)}
    to{opacity:1;transform:translateY(0)}
}
@keyframes iwk-sec-flash{
    0%{background:var(--accent-soft)}
    100%{background:transparent}
}
/* 错峰：元素上写 style="--sec-i:N"，第 N 个延迟 N*55ms。
   用 calc + 自定义属性，避免为每一行写一条 nth-child 规则。 */
.iwk-page .sec-anim{
    animation:iwk-sec-rise .44s cubic-bezier(.22,.61,.36,1) both;
    animation-delay:calc(var(--sec-i,0) * 55ms);
}
/* 刚被清空的那一行：底色闪一下，给一个"确实动了"的反馈 */
.iwk-page .sec-item.is-justcleared{
    animation:iwk-sec-flash .9s ease-out;
}
/* 加载骨架之外的整页入场，避免首屏元素"啪"地出现 */
.iwk-page .sec-fadein{
    animation:iwk-sec-rise .5s cubic-bezier(.22,.61,.36,1) both;
}

/* —— 窄屏：说明文字换行、按钮不再被挤扁 —— */
@media (max-width:768px){
    .iwk-page .sec-item{
        align-items:flex-start;
        padding:14px 16px;
        gap:12px;
    }
    .iwk-page .sec-head{padding:13px 16px}
    .iwk-page .sec-card.sec-card--title .sec-head{padding:14px 16px}
    .iwk-page .sec-right{
        flex-direction:column;
        align-items:flex-end;
        gap:8px;
    }
    .iwk-page .sec-btn{min-width:78px;padding:0 12px}
}
@media (max-width:480px){
    .iwk-page .sec-icon{
        width:32px;
        height:32px;
        font-size:16px;
    }
    .iwk-page .sec-desc{font-size:12px}
}

/* —— 尊重"减少动态效果"：直接关掉本节全部动画与过渡 —— */
@media (prefers-reduced-motion:reduce){
    .iwk-page .sec-anim,
    .iwk-page .sec-fadein,
    .iwk-page .sec-item.is-justcleared{
        animation:none!important;
        opacity:1!important;
        transform:none!important;
    }
    .iwk-page .sec-item,
    .iwk-page .sec-icon,
    .iwk-page .sec-btn,
    .iwk-page .sec-count{
        transition:none!important;
    }
    .iwk-page .sec-btn:hover,
    .iwk-page .sec-item:hover .sec-icon{
        transform:none;
    }
}

/* ==========================================================================
   [第四十九轮] 文档页的「代码卡片」（站长帮助 / 对接文档 这类纯文档页）
   来源：参考项目 index/zzbz.php、index/docking.php 页内自带的 .doc-card 系列；
   本项目把它抽成共享规则，作用域仍限定在 .iwk-page 之下（没加 .iwk-page 的页面零影响）。
   配套 JS：assets/js/doc-cards.js —— 把 <pre class="layui-code" lay-title="…">
   就地改造成「标题 + 复制/折叠 + 代码块」的卡片，顺便不再依赖 CDN 上的 layui。
   ========================================================================== */
.iwk-page .doc-card{
    border:1px solid var(--border-color);
    border-radius:var(--radius-global);
    background:var(--bg-secondary);
    box-shadow:var(--shadow-sm);
    margin:14px 0;
    overflow:hidden;
}
.iwk-page .doc-card-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 14px;
    background:var(--panel-bg);
    border-bottom:1px solid var(--border-color);
}
.iwk-page .doc-card-title{
    font-size:13px;
    font-weight:600;
    color:var(--text-primary);
    word-break:break-all;
}
.iwk-page .doc-card-tools{display:flex;gap:8px;flex:0 0 auto}
.iwk-page .doc-card-btn{
    font-size:12px;
    line-height:1;
    padding:6px 10px;
    border:1px solid var(--border-color);
    border-radius:var(--radius-global);
    background:var(--bg-primary);
    color:var(--text-secondary);
    cursor:pointer;
}
.iwk-page .doc-card-btn:hover{color:var(--accent);border-color:var(--accent-border);background:var(--accent-soft)}
.iwk-page .doc-card-body{padding:0}
.iwk-page .doc-card.is-folded .doc-card-body{display:none}
.iwk-page pre.doc-code{
    margin:0;
    padding:14px 16px;
    border:0;
    border-radius:0;
    background:var(--panel-bg);
    color:var(--text-primary);
    font-size:12.5px;
    line-height:1.7;
    overflow:auto;
    white-space:pre;
    font-family:Consolas,Monaco,'Courier New',monospace;
}

