/* ╔══════════════════════════════════════════════════════════════╗
   ║  ZERO-JS 极光神域 GUI内置CSS引擎 (全面适配神堕之渊世界观)       ║
   ║  绝对可读性优先 / 强光高对比度 / 纯CSS动画 / 150+伪元素渲染       ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ==========================================================================
   一、 平台级 UI 强制劫持与净化 (Global overrides)
   ========================================================================== */
.bg-gray-100\/90.relative.inline-block {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 50%, #F1F5F9 100%) !important;
    border: 3px solid #D4AF37 !important; /* 神圣金边框 */
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.8) !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative !important;
    z-index: 10 !important;
}

/* 顶部装饰条隐匿 */
[class*="bg-[#F1CBCB]"], [class*="bg-[#c9e1e9]"] { display: none !important; }

/* 聊天框背景特效 - 浮动圣光齿轮 */
.bg-gray-100\/90.relative.inline-block::before {
    content: ""; position: absolute; top: -15px; right: -15px; width: 45px; height: 45px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-dasharray='5 5'/%3E%3Ccircle cx='50' cy='50' r='35' fill='none' stroke='%23D4AF37' stroke-width='4' stroke-dasharray='15 10'/%3E%3Cpath d='M50 10 L50 90 M10 50 L90 50 M22 22 L78 78 M22 78 L78 22' stroke='%23D4AF37' stroke-width='1' opacity='0.5'/%3E%3Ccircle cx='50' cy='50' r='8' fill='%238B0000'/%3E%3C/svg%3E") no-repeat center/contain;
    z-index: 11; animation: sys-spin 20s linear infinite; pointer-events: none; filter: drop-shadow(0 0 5px rgba(212,175,55,0.5));
}

/* 底部流光能量槽 (代表法则运转) */
.bg-gray-100\/90.relative.inline-block::after {
    content: ""; position: absolute; bottom: -3px; left: 5%; right: 5%; height: 3px;
    background: linear-gradient(90deg, transparent, #D4AF37, #8B0000, #1E3A8A, #D4AF37, transparent);
    background-size: 200% 100%; animation: sys-flow 4s linear infinite; border-radius: 2px;
}

/* 独立输入框覆写 */
.bg-gray-100\/90.relative.inline-block:not(.chat-answer-container .bg-gray-100\/90) {
    border-color: #1E3A8A !important; /* 玩家输入框用深渊蓝以区分 */
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.1) !important;
}

/* 绝对可读性正文区 */
.markdown-body {
    color: #111827 !important; /* 极深灰确保最高对比度 */
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif !important;
    font-size: 17px !important;
    line-height: 2 !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    padding: 10px !important;
}

/* 顶部栏与分页区净化 */
.sticky.w-full.top-0.flex.items-center { background: rgba(255, 255, 255, 0.95) !important; backdrop-filter: blur(10px) !important; border-bottom: 2px solid #D4AF37 !important; }
#ai-model-selector .group.flex.items-center { background: #FFFFFF !important; border: 1px solid #D4AF37 !important; border-radius: 8px !important; }
#ai-model-selector .truncate.text-\[13px\] { color: #111827 !important; font-weight: 900 !important; }
#ai-chat-bottom-input { background: #FFFFFF !important; border: 2px solid #1E3A8A !important; border-radius: 12px !important; }
#ai-chat-input { color: #111827 !important; font-weight: 800 !important; }
#ai-chat-input::placeholder { color: #64748B !important; }
.MuiButtonBase-root.MuiButton-root.MuiButton-text { color: #D4AF37 !important; font-weight: 900 !important; text-shadow: 0 1px 1px rgba(0,0,0,0.1) !important; }
.MuiTypography-root.MuiTypography-body2.css-6c0gf2 { color: #475569 !important; font-weight: 800 !important; }
.text-orange-500 { color: #8B0000 !important; font-weight: 900 !important; }
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] { background: linear-gradient(180deg, #FFFFFF, #F8FAFC) !important; }

/* 自定义加载动画 (替换原版) */
.style_dot-flashing__8L91Q, .style_text__zGhNq { display: none !important; }
.flex.items-center.justify-center.w-6.h-5 { position: relative !important; width: 40px !important; height: 40px !important; }
.flex.items-center.justify-center.w-6.h-5::before {
    content: ""; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath d='M25 5 L30 20 L45 25 L30 30 L25 45 L20 30 L5 25 L20 20 Z' fill='%23D4AF37'/%3E%3C/svg%3E") no-repeat center/contain;
    animation: sys-breathe 1.5s ease-in-out infinite, sys-spin 4s linear infinite;
}

/* ==========================================================================
   二、 GUI 结构与布局引擎 (Structure & Layout)
   ========================================================================== */
.s-ctn { display: flex; position: relative; width: 100%; min-height: 65vh; font-family: inherit; }
.m-col { flex: 1; max-width: 100%; transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding: 0 !important; margin: 0 !important; }
.s-ctn:hover .m-col { max-width: calc(100% - 360px); }

/* 侧边悬浮矩阵面板 (Sidebar Matrix) */
.shio-sidebar {
    position: fixed !important; right: 0 !important; top: 65px !important; bottom: 65px !important; width: 360px !important;
    background: rgba(255, 255, 255, 0.98) !important; backdrop-filter: blur(20px) !important;
    border-left: 4px solid #D4AF37 !important; border-radius: 20px 0 0 20px !important;
    box-shadow: -10px 0 30px rgba(212, 175, 55, 0.1), inset 5px 0 15px rgba(255,255,255,0.5) !important;
    z-index: 9999 !important; transform: translateX(calc(100% - 46px)) !important;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    overflow-y: auto !important; padding: 20px 15px 20px 55px !important; scrollbar-width: none !important;
}
.shio-sidebar::-webkit-scrollbar { display: none; }
.shio-sidebar:hover, .shio-sidebar:active, .shio-sidebar:focus-within { transform: translateX(0) !important; }

/* 侧边栏把手 GUI */
.shio-sidebar::before {
    content: "法\n则\n展\n开" !important; position: fixed !important; left: 0 !important; top: 0 !important;
    width: 46px !important; height: 100% !important;
    background: linear-gradient(180deg, #D4AF37, #8B0000, #1E3A8A) !important;
    color: #FFFFFF !important; font-weight: 900 !important; font-size: 18px !important;
    text-align: center !important; padding-top: calc(50vh - 80px) !important; box-sizing: border-box !important;
    letter-spacing: 5px !important; pointer-events: none !important; white-space: pre-wrap !important;
    border-radius: 16px 0 0 16px !important; box-shadow: 2px 0 10px rgba(0,0,0,0.2) !important;
}

/* ==========================================================================
   三、 模块 GUI 封装与皮肤 (Modules & Skin)
   ========================================================================== */
.u-m {
    background: #FFFFFF; border: 2px solid #E2E8F0; border-radius: 12px; margin-bottom: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); overflow: hidden; position: relative;
    animation: sys-fade-up 0.6s ease-out both; transition: all 0.3s ease;
}
.u-m:hover { border-color: #D4AF37; box-shadow: 0 6px 12px rgba(212, 175, 55, 0.2); transform: translateY(-2px); }
.u-m::after {
    content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent); pointer-events: none;
}
.u-m:hover::after { left: 200%; transition: left 0.8s ease; }

/* Summary 标题栏 */
.m-s {
    padding: 12px 15px; font-weight: 900; font-size: 15px; cursor: pointer; list-style: none;
    background: linear-gradient(90deg, #F8FAFC, #FFFFFF); color: #111827; display: flex; align-items: center;
    user-select: none; border-bottom: 2px solid transparent; position: relative;
}
.m-s::-webkit-details-marker { display: none; }
.u-m[open] .m-s { border-bottom-color: #D4AF37; background: #FFFBF0; }

/* 图标基础约束 */
.s-i { width: 24px; height: 24px; margin-right: 10px; flex-shrink: 0; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.u-m[open] .s-i { transform: rotate(180deg) scale(1.1); filter: drop-shadow(0 0 2px currentColor); }

/* 正文与数据行基础 */
.u-m > div:not(.s-hdr), .u-m > text { padding: 12px; font-size: 14px; line-height: 1.8; color: #1F2937; font-weight: 700; }
.r { display: flex; flex-direction: column; background: #F8FAFC; border: 1px solid #E2E8F0; padding: 8px 12px; border-radius: 8px; margin-bottom: 8px; transition: all 0.2s; }
.r:hover { background: #FFFFFF; border-color: #D4AF37; box-shadow: 2px 2px 8px rgba(212,175,55,0.1); }
.r::before { content: attr(k); font-size: 11px; color: #64748B; font-weight: 900; text-transform: uppercase; margin-bottom: 4px; letter-spacing: 0.5px; }
.g-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.f-c { display: flex; flex-direction: column; gap: 6px; }

/* ==========================================================================
   四、 定制化UI组件 (Specific Components)
   ========================================================================== */

/* 1. 动态进度/变量条 (Data Bars) */
.b-g { margin: 8px 0; background: #F1F5F9; padding: 8px; border-radius: 8px; border: 1px solid #E2E8F0; }
.b-l { font-size: 12px; font-weight: 900; color: #111827; margin-bottom: 6px; display: flex; justify-content: space-between; }
.b-b { width: 100%; height: 12px; background: #E2E8F0; border-radius: 6px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); }
.b-f { height: 100%; border-radius: 6px; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
.b-f::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.5), rgba(255,255,255,0.1)); animation: sys-flow 2s linear infinite; background-size: 200% 100%; }

.f-hp { background: linear-gradient(90deg, #D4AF37, #FFD700); } /* 圣躯 */
.f-san { background: linear-gradient(90deg, #8B0000, #FF0000); } /* 混沌 */
.f-mp { background: linear-gradient(90deg, #1E3A8A, #3B82F6); } /* 魔源 */

/* 2. 思维链模块 (CoT) */
.s-cog { border-color: #94A3B8; }
.s-cog .m-s { background: #F1F5F9; color: #475569; }
.s-cog think { display: block; padding: 15px; font-family: 'SF Mono', Consolas, monospace; font-size: 13px; color: #334155; background: #F8FAFC; border-left: 4px solid #94A3B8; white-space: pre-wrap; font-weight: 600; line-height: 1.6; }
.i-cog { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23475569'%3E%3Cpath d='M12 3a9 9 0 100 18 9 9 0 000-18zm0 16a7 7 0 110-14 7 7 0 010 14z'/%3E%3Ccircle cx='12' cy='12' r='3' fill='%23475569'/%3E%3C/svg%3E"); }

/* 3. 头部状态与新闻 (Header & News) */
.s-hdr { background: linear-gradient(90deg, #FFFBF0, #FFFFFF) !important; padding: 12px 20px !important; border-bottom: 2px solid #D4AF37 !important; display: flex !important; justify-content: space-between !important; font-weight: 900 !important; color: #111827 !important; border-radius: 12px 12px 0 0; }
.i-time, .i-loc { display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: text-bottom; }
.i-time { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D4AF37'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7v5l3 3' stroke='%23FFF' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat center/contain; }
.i-loc { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E3A8A'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") no-repeat center/contain; }

.s-news { background: #FEF2F2; border-left: 4px solid #8B0000; padding: 10px 15px; margin-top: 10px; border-radius: 0 8px 8px 0; }
.s-news .m-s { padding: 0; background: transparent; color: #8B0000; margin-bottom: 5px; }
.n-txt { font-size: 14px; font-weight: 800; color: #7F1D1D; }
.i-news { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238B0000'%3E%3Cpath d='M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z'/%3E%3C/svg%3E"); animation: sys-bell 2s infinite; }

/* 4. 正文视窗 (Main Text Scrollbox) */
.s-scl { max-height: 70vh !important; overflow-y: auto !important; padding: 25px !important; background: #FFFFFF !important; border-radius: 0 0 12px 12px; scrollbar-width: thin; scrollbar-color: #D4AF37 transparent; }
.s-scl text { display: block; white-space: pre-wrap; word-break: break-word; text-indent: 2em; font-size: 17.5px !important; line-height: 2.2 !important; color: #111827 !important; font-weight: 700; text-align: justify; }

/* 5. 涩涩标签与分割 (Tags & Dividers) */
.t-in { display: block; background: linear-gradient(90deg, #FEF2F2, transparent); color: #8B0000; font-weight: 900; padding: 6px 10px; border-left: 4px solid #8B0000; margin: 10px 0 5px 0; font-size: 13px; }
.tg-b { display: flex; flex-wrap: wrap; gap: 6px; }
.t-p { background: #FFFBF0; color: #D4AF37; border: 1px solid #D4AF37; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 900; }
.t-r { background: #FEF2F2; color: #8B0000; border: 1px solid #8B0000; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 900; animation: sys-pulse 2s infinite; }

/* 6. 行动抉择面板 (Options) */
.s-opt .m-s { background: #FFFBF0; color: #D4AF37; }
.o-l { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.o-b { background: #FFFFFF; border: 2px solid #E2E8F0; padding: 12px; border-radius: 8px; font-weight: 800; color: #111827; cursor: pointer; font-size: 14px; transition: all 0.3s; position: relative; overflow: hidden; }
.o-b:hover { border-color: #D4AF37; transform: translateX(5px); box-shadow: 0 4px 10px rgba(212,175,55,0.15); }
.o-b b { color: #D4AF37; margin-right: 6px; }
.o-b::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #D4AF37; }

/* 7. 表格与网格矩阵 (Tables & Grids) */
.tb-w { overflow-x: auto; border-radius: 8px; border: 1px solid #E2E8F0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: normal; }
th { background: #F8FAFC; color: #64748B; padding: 10px; text-align: left; border-bottom: 2px solid #D4AF37; font-weight: 900; }
td { padding: 10px; border-bottom: 1px solid #E2E8F0; color: #111827; font-weight: 700; }
tr:hover td { background: #FFFBF0; }
.sc-b { max-height: 250px; overflow-y: auto; padding-right: 5px; scrollbar-width: thin; scrollbar-color: #D4AF37 transparent; }
.c-i { background: #FFFFFF; border: 1px dashed #94A3B8; padding: 8px; border-radius: 6px; margin-bottom: 8px; }

/* ==========================================================================
   五、 纯色极简 SVG 图标库 (Data-URI Icons)
   ========================================================================== */
.i-host { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D4AF37'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E"); }
.i-dna { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E3A8A'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E"); }
.i-lust { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238B0000'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); }
.i-bag { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D4AF37'%3E%3Cpath d='M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z'/%3E%3C/svg%3E"); }
.i-tar { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238B0000'%3E%3Cpath d='M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z'/%3E%3C/svg%3E"); }
.i-ang { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D4AF37'%3E%3Cpath d='M12 3L1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09V17h2V9L12 3zm6.82 6L12 12.72 5.18 9 12 5.28 18.82 9z'/%3E%3C/svg%3E"); }
.i-mag { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E3A8A'%3E%3Cpath d='M12 3l9 4.5-9 4.5-9-4.5L12 3zm0 18l-9-4.5v-3.5l9 4.5 9-4.5v3.5L12 21z'/%3E%3C/svg%3E"); }
.i-eye { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238B0000'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E"); }
.i-grp { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23111827'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E"); }
.i-wld { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D4AF37'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E"); }
.i-qst { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E3A8A'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E"); }
.i-mem { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748B'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z'/%3E%3C/svg%3E"); }
.i-opt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D4AF37'%3E%3Cpath d='M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.36 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z'/%3E%3C/svg%3E"); }

/* ==========================================================================
   六、 纯CSS高级动画库 (Advanced Animations)
   ========================================================================== */
@keyframes sys-fade-up { 0% { opacity: 0; transform: translateY(15px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes sys-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes sys-flow { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes sys-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.8; transform: scale(0.98); } }
@keyframes sys-breathe { 0%, 100% { filter: brightness(1) drop-shadow(0 0 2px #D4AF37); } 50% { filter: brightness(1.3) drop-shadow(0 0 8px #D4AF37); } }
@keyframes sys-bell { 0%, 100% { transform: rotate(0deg); } 10%, 30%, 50% { transform: rotate(-10deg); } 20%, 40% { transform: rotate(10deg); } 60% { transform: rotate(0deg); } }

/* ==========================================================================
   七、 移动端响应式重构 (Mobile Adaptive & Drawer Mode)
   ========================================================================== */
@media(max-width:768px) {
    .s-ctn { flex-direction: column; }
    .m-col { max-width: 100% !important; }
    
    /* 侧边栏变身底部上拉抽屉 */
    .shio-sidebar {
        top: auto !important; bottom: 0 !important; left: 0 !important; width: 100% !important;
        height: 85vh !important; transform: translateY(calc(100% - 40px)) !important;
        border-left: none !important; border-top: 4px solid #D4AF37 !important; border-radius: 20px 20px 0 0 !important;
        padding: 45px 12px 15px 12px !important; box-shadow: 0 -5px 25px rgba(212,175,55,0.2) !important;
    }
    .shio-sidebar:hover, .shio-sidebar:active, .shio-sidebar:focus-within { transform: translateY(0) !important; }
    
    /* 顶部横向把手 */
    .shio-sidebar::before {
        content: "上 滑 展 开 法 则 矩 阵" !important; top: 0 !important; left: 0 !important;
        width: 100% !important; height: 40px !important; padding-top: 8px !important;
        writing-mode: horizontal-tb !important; border-radius: 16px 16px 0 0 !important;
        letter-spacing: 4px !important; font-size: 14px !important; box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    }
    
    /* 组件适配紧凑化 */
    .g-2 { grid-template-columns: 1fr; }
    .s-scl { max-height: 60vh !important; padding: 15px 10px !important; }
    .s-scl text { font-size: 16.5px !important; line-height: 2 !important; }
    
    /* 净化主框体边距 */
    .bg-gray-100\/90.relative.inline-block { border-width: 2px !important; border-radius: 12px !important; margin: 0 !important; }
    .bg-gray-100\/90.relative.inline-block::before { display: none; /* 移动端隐藏大浮动齿轮以防遮挡 */ }
}
