/*! 由 ./zh/WeChat/ruler/index.html 内联 <style> 原样提取，勿手改（保持视觉一致） */

        .page-wrapper {
            margin-top: 50px !important;
        }

        .refresh-qr-btn {
            margin-top: 12px;
            padding: 8px 16px;
            background: #87CEEB;
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            transition: background 0.2s;
        }
        .refresh-qr-btn:hover {
            background: #4682B4;
        
        }
       /* === 全局样式重置 === */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #87CEEB; 
    --primary-dark: #4682B4; 
    --bg: #E6F7FF;
    --card: #FFFFFF; 
    --text: #333; 
    --gray: #666; 
    --alert-bg: #003366;
    --gap-sm: 8px;
    --gap-md: 16px;
    --gap-lg: 24px;
    --padding-sm: 12px;
    --padding-md: 20px;
    --padding-lg: 30px;
    --device-shadow: 0 0 20px rgba(0,0,0,0.15);
}
/* 系统字体自适应 */
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif; 
    background: #f0f4f8; 
    color: var(--text); 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
    font-size: 16px;
    transition: all 0.3s ease;
}
/* 设备比例切换容器 */
.device-switch-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.switch-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-dark);
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--device-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}
.device-options {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: var(--device-shadow);
}
.device-options.show {
    display: flex;
}
.device-btn {
    padding: 8px 12px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: white;
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.device-btn.active, .device-btn:hover {
    background: var(--primary);
    color: white;
}
/* 页面主体容器（用于比例切换） */
.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 var(--padding-sm);
    transition: all 0.3s ease;
}
.container { 
    flex: 1; 
    max-width: 1200px; 
    width: 100%; 
    margin: 0 auto; 
    padding: clamp(var(--padding-md), 5vw, var(--padding-lg)) var(--padding-sm);
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: var(--gap-lg);
    transition: all 0.3s ease;
}
/* 设备比例样式 */
.device-pc {
    max-width: 1000px;
    width: 100%;
    aspect-ratio: 16/9;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: var(--device-shadow);
    background: var(--bg);
}
.device-tablet {
    max-width: 768px;
    width: 100%;
    aspect-ratio: 4/3;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: var(--device-shadow);
    background: var(--bg);
}
.device-mobile {
    max-width: 420px;
    width: 100%;
    aspect-ratio: 9/16;
    overflow-y: auto;
    border-radius: 20px;
    box-shadow: var(--device-shadow);
    background: var(--bg);
}

/* === 导航栏样式 === */
.navbar { 
    background: var(--primary); 
    padding: 12px 0; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    width: 100%;
}
.nav-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 var(--padding-sm);
}
.logo { 
    font-size: clamp(1.2rem, 4vw, 1.5rem); 
    font-weight: bold; 
    color: var(--primary-dark); 
    text-decoration: none; 
}
.nav-links {
    display: flex;
    gap: clamp(12px, 3vw, 20px);
}
.nav-links a {
    color: var(--primary-dark);
    font-weight: 500;
    text-decoration: none;
    font-size: clamp(0.9rem, 3vw, 1rem);
}
.nav-links a:hover, .nav-links a.active {
    text-decoration: underline;
    font-weight: 600;
}

/* === 卡片通用样式 === */
.card { 
    background: var(--card); 
    width: 100%; 
    max-width: 700px; 
    border-radius: 16px; 
    box-shadow: 0 8px 24px rgba(135, 206, 235, 0.4); 
    padding: clamp(var(--padding-md), 4vw, var(--padding-lg)); 
    transition: transform 0.2s; 
}
.card:hover { 
    transform: translateY(-5px); 
}

/* === 介绍卡片样式 === */
.intro-card h1 { 
    color: var(--primary-dark); 
    margin-bottom: var(--gap-md); 
    font-size: clamp(1.5rem, 6vw, 2.2rem); 
    text-align: center; 
    line-height: 1.3;
}
.intro-card p { 
    font-size: clamp(0.95rem, 3vw, 1.1rem); 
    color: var(--gray); 
    text-align: left; 
    margin-bottom: var(--gap-md); 
    text-indent: 2em; 
    line-height: 1.6;
}

/* === 二维码卡片样式 === */
.qrcode-card { 
    text-align: center; 
}
.qrcode-card h2 { 
    color: var(--primary-dark); 
    margin-bottom: var(--gap-md); 
    font-size: clamp(1.2rem, 4vw, 1.5rem); 
}
.qrcode-wrapper { 
    display: inline-block; 
    background: white; 
    padding: 10px; 
    border-radius: 12px; 
    border: 4px solid var(--primary); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    position: relative; 
    width: clamp(200px, 60vw, 280px);
}
#qrcode-display { 
    width: 100%; 
    aspect-ratio: 1/1; 
    background-color: #f9f9f9; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #ccc; 
    font-size: clamp(0.8rem, 2vw, 0.9rem); 
}
#qrcode-display img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
}
.caption { 
    margin-top: var(--gap-sm); 
    color: var(--gray); 
    font-size: clamp(0.85rem, 2.5vw, 0.95rem); 
    line-height: 1.5;
}

/* === 服务器状态样式 === */
.status-box { 
    background-color: #f8f9fa; 
    border: 2px solid var(--primary); 
    border-radius: 10px; 
    padding: var(--padding-md); 
    width: 100%; 
    max-width: 700px; 
    text-align: center; 
}
.status-title { 
    font-weight: bold; 
    color: var(--primary-dark); 
    margin-bottom: var(--gap-sm); 
    font-size: clamp(1rem, 3vw, 1.1rem);
}
.status-indicator { 
    font-size: clamp(1rem, 3.5vw, 1.2rem); 
    font-weight: bold; 
    padding: 8px 15px; 
    border-radius: 5px; 
    display: inline-block; 
    margin-bottom: var(--gap-sm);
}
.online { 
    background-color: #d4edda; 
    color: #155724; 
    border: 1px solid #c3e6cb; 
}
.offline { 
    background-color: #f8d7da; 
    color: #721c24; 
    border: 1px solid #f5c6cb; 
}
#status-note-display {
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    line-height: 1.5;
}

/* === 防诈骗栏样式 === */
.anti-scam-bar { 
    background-color: var(--alert-bg); 
    color: #FFFFFF; 
    text-align: center; 
    padding: clamp(12px, 3vw, 15px) var(--padding-sm); 
    font-weight: bold; 
    font-size: clamp(0.85rem, 2.5vw, 0.95rem); 
    border-top: 3px solid var(--primary); 
    line-height: 1.6;
    width: 100%;
}

/* === 底部样式 === */
footer { 
    text-align: center; 
    padding: var(--padding-md); 
    background-color: var(--primary); 
    color: var(--primary-dark); 
    font-size: clamp(0.8rem, 2.5vw, 0.85rem); 
    line-height: 1.5;
    width: 100%;
}

/* === 管理员登录区域样式（含新增按钮样式） === */
.login-area { 
    position: fixed; 
    bottom: clamp(12px, 3vw, 20px); 
    right: clamp(12px, 3vw, 20px); 
    z-index: 50; 
    text-align: center; 
}
/* 新增：登录按钮容器 */
.login-btns {
    display: none;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 8px;
    justify-content: flex-end;
}
/* 新增：确认/取消按钮 */
.login-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
}
.confirm-btn {
    background-color: #28a745;
    color: white;
}
.cancel-btn {
    background-color: #dc3545;
    color: white;
}
.admin-input { 
    padding: 10px 12px; 
    border-radius: 6px; 
    border: 1px solid #ccc; 
    width: clamp(160px, 40vw, 200px); 
    font-size: clamp(0.8rem, 2.5vw, 0.9rem); 
    opacity: 0.3; 
    transition: opacity 0.3s; 
    min-height: 40px;
}
/* 新增：输入框聚焦样式 */
.admin-input:focus {
    outline: 2px solid var(--primary-dark);
    border-color: var(--primary);
    opacity: 1 !important;
}
.login-area:hover .admin-input { 
    opacity: 1; 
}
.forgot-links { 
    margin-top: 5px; 
    font-size: clamp(0.75rem, 2vw, 0.8rem); 
    color: #666; 
    display: none; 
}
.login-area:hover .forgot-links { 
    display: block; 
}
.forgot-link { 
    cursor: pointer; 
    text-decoration: underline; 
    margin: 0 5px; 
}

/* === 悬浮面板通用样式 === */
.modal-panel {
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    background: white; 
    border: 3px solid var(--primary-dark); 
    border-radius: 12px;
    padding: clamp(var(--padding-md), 4vw, var(--padding-lg)); 
    width: clamp(280px, 90vw, 400px); 
    z-index: 1000; 
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    display: none;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-panel h3 { 
    color: var(--primary-dark); 
    margin-bottom: var(--gap-md); 
    text-align: center; 
    font-size: clamp(1.1rem, 3.5vw, 1.2rem);
}

/* === 管理员角色标签样式 === */
.role-tag { 
    text-align: center; 
    font-size: clamp(0.8rem, 2.5vw, 0.85rem); 
    font-weight: bold; 
    margin-bottom: var(--gap-md); 
    padding: 5px; 
    border-radius: 5px; 
}
.role-super { 
    background: #ffe6e6; 
    color: #cc0000; 
    border: 1px solid #ffcccc; 
}
.role-normal { 
    background: #e6f7ff; 
    color: #0066cc; 
    border: 1px solid #b3d9ff; 
}

/* === 选项卡样式 === */
.tabs { 
    display: flex; 
    flex-wrap: wrap; 
    margin-bottom: var(--gap-md); 
    border-bottom: 1px solid #eee; 
    gap: 5px;
}
.tab-btn { 
    flex: 1; 
    min-width: 80px; 
    background: transparent; 
    border: none; 
    padding: 8px 5px; 
    cursor: pointer; 
    font-size: clamp(0.8rem, 2.5vw, 0.9rem); 
    border-bottom: 2px solid transparent; 
    white-space: nowrap;
}
.tab-btn.active { 
    border-bottom: 2px solid var(--primary-dark); 
    color: var(--primary-dark); 
    font-weight: bold; 
}
.tab-btn.hidden { 
    display: none; 
}

/* === 内容区域样式 === */
.content-section { 
    display: none; 
}
.content-section.active { 
    display: block; 
}

/* === 表单通用样式 === */
.form-group { 
    margin-bottom: var(--gap-sm); 
    text-align: left; 
}
.form-group label { 
    display: block; 
    font-size: clamp(0.8rem, 2.5vw, 0.85rem); 
    color: #555; 
    margin-bottom: 4px; 
}
.form-control { 
    width: 100%; 
    padding: 10px 12px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    font-size: clamp(0.85rem, 2.8vw, 0.9rem); 
    min-height: 40px;
}

/* === 上传区域样式 === */
.upload-box { 
    text-align: center; 
}
.upload-btn { 
    width: 100%; 
    padding: 12px; 
    background: #007bff; 
    color: white; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    margin-bottom: var(--gap-sm); 
    font-size: clamp(0.9rem, 3vw, 1rem);
    min-height: 44px;
}
.preview-zone { 
    height: clamp(60px, 20vw, 80px); 
    border: 1px dashed #ccc; 
    margin-bottom: var(--gap-sm); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
}
.code-area { 
    width: 100%; 
    height: clamp(80px, 25vw, 100px); 
    padding: 8px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    font-size: clamp(0.75rem, 2vw, 0.8rem); 
    font-family: monospace; 
    resize: none; 
}

/* === 密码查看特殊样式 === */
.view-pass-wrapper { 
    position: relative; 
}
.view-pass-input { 
    width: 100%; 
    padding-right: 40px; 
}
.toggle-view-btn { 
    position: absolute; 
    right: 10px; 
    top: 50%; 
    transform: translateY(-50%); 
    background: none; 
    border: none; 
    color: #999; 
    cursor: pointer; 
    font-size: clamp(0.9rem, 3vw, 1rem);
}
.toggle-view-btn:hover { 
    color: #333; 
}

/* === 提示框样式 === */
.msg-box { 
    margin-top: var(--gap-sm); 
    height: 20px; 
    font-size: clamp(0.8rem, 2.5vw, 0.85rem); 
    text-align: center; 
    font-weight: bold; 
}
.text-danger { 
    color: #dc3545; 
}
.text-success { 
    color: #28a745; 
}
.text-warning { 
    color: #ffc107; 
}

/* === 全屏按钮样式 === */
.btn-full { 
    width: 100%; 
    border: none; 
    padding: 12px; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: clamp(0.9rem, 3vw, 0.95rem); 
    color: white; 
    margin-top: var(--gap-sm); 
    min-height: 44px;
}
.btn-save { 
    background: #28a745; 
}
.btn-copy { 
    background: #007bff; 
}
.btn-close { 
    background: #6c757d; 
}

/* === 媒体查询 === */
@media (max-width: 768px) {
    .device-switch-container {
        top: 70px;
        right: 10px;
    }
    .switch-toggle-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .container {
        gap: var(--gap-md);
    }
    .card, .status-box {
        max-width: 100%;
    }
    .tabs {
        gap: 3px;
    }
    .tab-btn {
        padding: 6px 3px;
    }
}
@media (max-width: 480px) {
    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--gap-sm);
    }
    .nav-links {
        margin-top: 8px;
        justify-content: center;
    }
    .status-indicator {
        padding: 6px 10px;
    }
    .device-options {
        right: 50px;
    }
}

    
/* 内联 style="" 提取（保持原有高优先级） */
[data-css="sc1"]{position: absolute !important;left: 20px !important;top: 90px !important;z-index: 60 !important}
[data-css="sc2"]{padding: 8px 16px !important;font-size: 0.95rem !important;border-radius: 8px !important;border: 2px solid var(--primary) !important;background:#fff !important;color:#333 !important;text-decoration:none !important;box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important}
[data-css="sc3"]{text-align:center !important;margin-top: 10px !important}
[data-css="sc4"]{max-width:100% !important;border-radius:8px !important}
[data-css="sc5"]{color:#e63946 !important}
[data-css="sc6"]{text-align:center !important;background:#fcf0f0 !important}
[data-css="sc7"]{color:#d83a3a !important}
[data-css="sc8"]{font-size:1.1rem !important;font-weight:bold !important;margin:10px 0 !important;color:#333 !important}
[data-css="sc9"]{color:#d83a3a !important;margin-top:20px !important}
[data-css="sc10"]{font-size:1.1rem !important;font-weight:bold !important;margin:10px 0 !important;color:#e63946 !important}
[data-css="sc11"]{font-size:0.9rem !important;color:#666 !important}
[data-css="sc12"]{background:#fff9e6 !important}
[data-css="sc13"]{color:#f57c00 !important}
[data-css="sc14"]{padding-left:20px !important;line-height:1.7 !important;margin-top:10px !important}
[data-css="sc15"]{display:none !important;margin-top:12px !important;padding:12px !important;background:rgba(0,0,0,0.85) !important;color:#fff !important;border:2px solid #ff4444 !important;border-radius:8px !important;text-align:center !important;font-size:14px !important}
