/* ============================================================
 * 离线PHP在线加密 - 加密工作台 深色科技风（jiami-home.css）
 * 设计语言对齐 PHP加密服务端首页：#0a0e1a 深色底
 * 主色：#5E44FF（霓虹紫）#00E5FF（霓虹青）
 * 仅重塑外观，所有类名与 index.js / method.js 的钩子完全保留
 * ============================================================ */

* { box-sizing: border-box; }

html, body.jm-page {
    background: #0a0e1a !important;
    color: #e4e6ef;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
body.jm-page { min-height: 100vh; overflow-x: hidden; }
body.jm-page ul { list-style: none; padding: 0; margin: 0; }
body.jm-page a { transition: color .2s; }

/* ---------- 背景层：网格 + 光晕 ---------- */
.jm-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse 80% 55% at 50% -8%, #1a1440 0%, #0a0e1a 62%);
}
.jm-bg::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(94, 68, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 68, 255, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.jm-bg::after {
    content: ''; position: absolute; top: -260px; left: 50%;
    width: 760px; height: 760px; margin-left: -380px;
    background: radial-gradient(circle, rgba(94,68,255,.22) 0%, transparent 60%);
}
.jm-glow-cyan {
    position: fixed; top: 36%; right: -240px; width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(0,229,255,.12) 0%, transparent 60%);
    z-index: 0; pointer-events: none;
}

.jm-root { position: relative; z-index: 2; }

/* ============================================================
 * 顶部导航
 * ============================================================ */
.jm-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(8, 12, 22, 0.88);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(94, 68, 255, 0.18);
}
.jm-nav-inner {
    max-width: 1080px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px;
}
.jm-brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.jm-brand img {
    width: 40px; height: 40px; border-radius: 10px;
    filter: drop-shadow(0 0 10px rgba(94,68,255,.45));
}
.jm-brand .jm-brand-name { font-size: 17px; font-weight: 700; color: #fff; line-height: 1.2; }
.jm-brand .jm-brand-sub { font-size: 11px; color: #6b7089; letter-spacing: 1.5px; margin-top: 2px; }
.jm-nav-links { display: flex; align-items: center; gap: 6px; }
.jm-nav-links a {
    color: #c8cad8 !important; font-size: 14px; font-weight: 500;
    padding: 8px 16px; border-radius: 8px; text-decoration: none !important;
}
.jm-nav-links a:hover { color: #fff !important; background: rgba(255,255,255,.06); }
.jm-nav-links .jm-nav-cta {
    background: linear-gradient(135deg, #5E44FF, #7C3AED);
    color: #fff !important; font-weight: 600;
    box-shadow: 0 4px 16px rgba(94,68,255,.4);
}
.jm-nav-links .jm-nav-cta:hover { background: linear-gradient(135deg, #6a52ff, #8b4cf5); }

/* ============================================================
 * HERO
 * ============================================================ */
.jm-hero { text-align: center; padding: 72px 24px 40px; }
.jm-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 999px;
    background: rgba(94,68,255,.12); border: 1px solid rgba(94,68,255,.35);
    font-size: 13px; color: #c4b8ff; margin-bottom: 22px;
}
.jm-badge i { width: 7px; height: 7px; border-radius: 50%; background: #00E5FF;
    box-shadow: 0 0 8px #00E5FF; }
.jm-hero h1 {
    font-size: 44px; font-weight: 800; line-height: 1.2; margin: 0 0 18px;
    letter-spacing: -.5px; color: #fff;
}
.jm-hero h1 .gradient-text {
    background: linear-gradient(135deg, #5E44FF 0%, #00E5FF 55%, #5E44FF 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: jmGradient 4s ease infinite;
}
@keyframes jmGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.jm-hero p.jm-subtitle {
    font-size: 16px; color: #a0a4b8; line-height: 1.8;
    max-width: 640px; margin: 0 auto 30px;
}
.jm-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.jm-chip {
    font-size: 13px; color: #c8cad8;
    padding: 7px 16px; border-radius: 999px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
}
.jm-chip b { color: #00E5FF; font-weight: 600; }

/* ============================================================
 * 工作台主卡片
 * ============================================================ */
.jm-wrap { max-width: 860px; margin: 0 auto; padding: 0 24px 40px; }
.jm-console {
    background: rgba(15, 19, 34, 0.72);
    border: 1px solid rgba(94, 68, 255, 0.2);
    border-radius: 20px;
    padding: 30px 34px 38px;
    box-shadow: 0 24px 70px rgba(0,0,0,.45), 0 0 50px rgba(94,68,255,.07);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* ---- 分段选项卡（保留 bootstrap nav-tabs 结构） ---- */
/* 注意：必须用 .jm-console ul.jm-tabs 提高优先级，压过上方的 ul 重置规则 */
.jm-console ul.jm-tabs {
    display: flex; gap: 4px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px; padding: 5px !important; margin: 0 0 30px !important;
}
.jm-tabs > li {
    float: none; flex: 1; width: auto; margin: 0; text-align: center;
}
.jm-tabs > li > a {
    display: block; padding: 11px 8px; margin: 0;
    border: none !important; border-radius: 9px;
    color: #a0a4b8 !important; background: transparent !important;
    font-size: 14.5px; font-weight: 600; text-decoration: none !important;
    transition: color .2s, background .2s, box-shadow .2s;
}
.jm-tabs > li > a:hover { color: #fff !important; background: rgba(255,255,255,.05) !important; }
.jm-tabs > li.active > a,
.jm-tabs > li.active > a:hover,
.jm-tabs > li.active > a:focus {
    color: #fff !important;
    background: linear-gradient(135deg, #5E44FF, #7C3AED) !important;
    box-shadow: 0 4px 16px rgba(94,68,255,.42);
}

/* ============================================================
 * 步骤条（.step / .xulie / active / finish 与 JS 联动）
 * ============================================================ */
.jm-wrap .step {
    display: flex; margin: 0 0 34px; padding: 0; position: relative;
}
.jm-wrap .step li {
    flex: 1; position: relative; margin: 0; padding: 0; overflow: visible;
    display: flex; align-items: center; gap: 10px;
}
.jm-wrap .step li .xulie {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    height: 36px; width: 36px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.14); color: #8891a8;
    background: rgba(255,255,255,.03); font-size: 15px; font-weight: 600;
    transition: all .25s; z-index: 1;
}
.jm-wrap .step li .text {
    background: transparent; color: #8891a8; font-size: 14px; padding: 0; white-space: nowrap;
}
.jm-wrap .step li .line::after {
    content: ''; position: absolute; left: 42px; right: -8px; top: 18px;
    height: 1px; background: rgba(255,255,255,.1);
}
.jm-wrap .step li:last-child .line::after { display: none; }
.jm-wrap .step li.active .xulie {
    background: linear-gradient(135deg, #5E44FF, #7C3AED);
    border-color: transparent; color: #fff;
    box-shadow: 0 0 0 4px rgba(94,68,255,.18), 0 4px 14px rgba(94,68,255,.45);
}
.jm-wrap .step li.active .text { color: #fff; font-weight: 600; }
.jm-wrap .step li.finish .xulie {
    background: rgba(0,229,255,.14); border-color: #00E5FF; color: #00E5FF;
}
.jm-wrap .step li.finish .text { color: #00E5FF; }
.jm-wrap .step li.finish .line::after { background: linear-gradient(90deg, #00E5FF, rgba(0,229,255,.15)); }

/* ============================================================
 * 加密方式选择（原生 radio + 卡片外观，JS 读 :checked）
 * ============================================================ */
.storage-group { display: flex; gap: 14px; margin-bottom: 26px; }
.storage-item { flex: 1; display: block; position: relative; margin: 0; cursor: pointer; }
.storage-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.storage-card {
    display: block; height: 100%;
    padding: 16px 18px; border-radius: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.1);
    transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.storage-item:hover .storage-card { border-color: rgba(94,68,255,.45); transform: translateY(-2px); }
.storage-item input:checked + .storage-card {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(94,68,255,.2), rgba(0,229,255,.08));
    box-shadow: inset 0 0 0 1px #5E44FF, 0 10px 28px rgba(94,68,255,.22);
}
.storage-card .st-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.storage-card .st-name { font-size: 15.5px; font-weight: 700; color: #fff; }
.storage-card .st-dot {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.25); position: relative; flex: none;
}
.storage-item input:checked + .storage-card .st-dot { border-color: #00E5FF; }
.storage-item input:checked + .storage-card .st-dot::after {
    content: ''; position: absolute; inset: 3px; border-radius: 50%;
    background: #00E5FF; box-shadow: 0 0 8px #00E5FF;
}
.storage-card .st-desc { font-size: 13px; color: #8891a8; line-height: 1.6; }
.storage-card .st-level {
    display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600;
    padding: 2px 10px; border-radius: 999px;
    background: rgba(0,229,255,.12); color: #00E5FF;
}
.storage-card .st-level.pro { background: rgba(94,68,255,.16); color: #c4b8ff; }

/* ============================================================
 * Dropify 上传区暗色化
 * 注意：dropify.min.css 由 require-css 在运行时晚于本文件注入，
 * 平级选择器会被它翻盘，所以这里一律用「双类名提权 + !important」，
 * 否则插件原生的 top:50% + translateY(-50%) 会把图标顶出框外裁切。
 * ============================================================ */
.jm-console .dropify-wrapper.dropify-wrapper {
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    min-height: 150px;
    padding: 0 !important;
    margin-bottom: 18px;
    background: rgba(255,255,255,.03) !important;
    border: 1.5px dashed rgba(94,68,255,.45) !important;
    border-radius: 14px;
    color: #a0a4b8;
    text-align: center;
    overflow: hidden;
    transition: border-color .2s, background .2s;
}
.jm-console .dropify-wrapper.dropify-wrapper:hover {
    background: rgba(94,68,255,.07) !important;
    border-color: #00E5FF !important;
    /* 去掉 dropify hover 的斜纹动画 */
    background-image: none !important;
    animation: none !important;
    -webkit-animation: none !important;
}
.jm-console .dropify-wrapper.dropify-wrapper.has-error { border-color: #e54d42 !important; }

/* 提示内容回到正常文档流，彻底废掉插件的 50% 位移 */
.jm-console .dropify-wrapper .dropify-message {
    position: static !important;
    top: auto !important;
    -webkit-transform: none !important;
    transform: none !important;
    width: 100%;
    padding: 26px 16px !important;
    text-align: center;
}
.jm-console .dropify-wrapper .dropify-message span.file-icon {
    display: block !important;
    font-size: 40px !important;
    line-height: 1.3;
    color: #5E44FF !important;
    margin: 0 0 10px !important;
}
.jm-console .dropify-wrapper .dropify-message p {
    margin: 0 !important;
    color: #a0a4b8 !important;
    font-size: 14px;
}
/* 触屏降级模式同样取消位移 */
.jm-console .dropify-wrapper.touch-fallback .dropify-message {
    -webkit-transform: none !important;
    transform: none !important;
    padding: 26px 16px !important;
}

/* 选中文件后的预览/文件名态 */
.jm-console .dropify-wrapper .dropify-preview {
    background: rgba(10,14,26,.92) !important;
    padding: 10px;
}
.jm-console .dropify-wrapper .dropify-clear {
    background: #e54d42 !important; color: #fff !important;
    border: none; border-radius: 6px; padding: 2px 10px;
}
.jm-console .dropify-wrapper .dropify-render img,
.jm-console .dropify-wrapper .dropify-render i { display: none; }
.jm-console .dropify-wrapper .dropify-filename { background: transparent !important; }
.jm-console .dropify-wrapper .dropify-filename .dropify-filename-inner { color: #00E5FF !important; }

/* ============================================================
 * 输入框 / 提示 / 按钮
 * ============================================================ */
.jm-console .form-control {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px; color: #e4e6ef !important;
    height: 48px; padding: 10px 16px; font-size: 14.5px;
    box-shadow: none !important;
}
.jm-console .form-control:focus {
    border-color: #5E44FF; background: rgba(94,68,255,.07);
    box-shadow: 0 0 0 3px rgba(94,68,255,.18) !important;
}
.jm-console .form-control::placeholder { color: #5d637a; }

.jm-tishi {
    display: none; margin: 0 0 16px; padding: 10px 14px;
    border: 1px solid rgba(229,77,66,.4); border-radius: 10px;
    background: rgba(229,77,66,.1); color: #ff8a80; font-size: 13.5px;
}

.jm-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.blue, .green, .warm, .warning,
.submit {
    display: inline-flex; align-items: center; justify-content: center;
    height: 46px; padding: 0 26px; border-radius: 11px;
    font-size: 15px; font-weight: 600; text-decoration: none !important;
    cursor: pointer; border: none; margin: 0;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
/* 主操作：紫青渐变 */
.blue, .submit {
    background: linear-gradient(135deg, #5E44FF 0%, #00b8d4 100%);
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(94,68,255,.42);
}
.blue:hover, .submit:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(94,68,255,.6); color: #fff !important; }
/* 购买密钥：绿色描边 */
.green {
    background: rgba(43,164,64,.12); border: 1px solid rgba(43,164,64,.5); color: #5fd97a !important;
}
.green:hover { background: rgba(43,164,64,.22); border-color: #2ba440; color: #7ce996 !important; transform: translateY(-2px); }
/* 微信领密钥：琥珀描边 */
.warning {
    background: rgba(247,183,51,.1); border: 1px solid rgba(247,183,51,.45); color: #ffc84d !important;
}
.warning:hover { background: rgba(247,183,51,.2); border-color: #f7b733; color: #ffd470 !important; transform: translateY(-2px); }

/* ============================================================
 * 加载中 / 结果页（.loading .finished 由 JS 控制显隐）
 * ============================================================ */
.jm-console .loading {
    display: none; text-align: center; padding: 50px 0 40px;
    background: rgba(255,255,255,.02); border: 1px solid rgba(94,68,255,.14);
    border-radius: 14px;
}
.jm-console #spinners { margin: 0; }
.jm-console #spinners li { margin: 20px auto 0 !important; }
.jm-console .loading-text {
    color: #00E5FF; font-size: 16px; font-weight: 600;
    margin-top: 26px; letter-spacing: 1px;
}
.jm-console .finished {
    display: none; text-align: center; padding: 46px 20px 36px;
    background: rgba(255,255,255,.02); border: 1px solid rgba(94,68,255,.14);
    border-radius: 14px; margin-top: 0;
}
.finished .micon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 84px; height: 84px; border-radius: 50%; margin-bottom: 18px;
}
.finished .micon.success {
    background: linear-gradient(135deg, #2ba440, #18c95c);
    box-shadow: 0 10px 30px rgba(43,164,64,.45), inset 0 0 0 6px rgba(255,255,255,.08);
}
.finished .micon.error {
    background: linear-gradient(135deg, #e54d42, #ff6b5e);
    box-shadow: 0 10px 30px rgba(229,77,66,.45), inset 0 0 0 6px rgba(255,255,255,.08);
}
.finished .micon::after { font-size: 42px; color: #fff; font-weight: 700; }
.finished .micon.success::after { content: '✓'; }
.finished .micon.error::after { content: '✕'; }
.finished .result-text { color: #fff; font-size: 21px; font-weight: 700; margin: 0 0 24px; }
.submit.download, .submit.download1 {
    width: 300px; max-width: 100%; line-height: 1.3; margin: 8px auto 0;
}
.submit.download1 {
    background: transparent; border: 1px solid rgba(94,68,255,.5);
    color: #c4b8ff !important; box-shadow: none;
}
.submit.download1:hover { background: rgba(94,68,255,.12); border-color: #5E44FF; color: #fff !important; }

/* ============================================================
 * 历史下载 Tab
 * ============================================================ */
.jm-query {
    max-width: 460px; margin: 30px auto 40px; text-align: center;
    padding: 40px 34px; border-radius: 16px;
    background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
}
.jm-query .jm-query-icon {
    width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(94,68,255,.25), rgba(0,229,255,.18));
    border: 1px solid rgba(94,68,255,.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #00E5FF;
}
.jm-query h3 { color: #fff; font-size: 19px; font-weight: 700; margin: 0 0 8px; }
.jm-query p { color: #8891a8; font-size: 13.5px; margin: 0 0 22px; line-height: 1.7; }
.jm-query .form-group { margin-bottom: 16px; text-align: left; }
.jm-query .submit { width: 100%; }

/* ============================================================
 * 加密说明 Tab
 * ============================================================ */
.jm-notice {
    padding: 28px 30px; border-radius: 14px;
    background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
}
.jm-notice p { color: #a0a4b8; font-size: 14.5px; line-height: 2; margin: 0 0 10px; }
.jm-notice p:first-child {
    color: #fff; font-size: 17px; font-weight: 700;
    padding-bottom: 12px; margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ============================================================
 * 特性条
 * ============================================================ */
.jm-features {
    max-width: 1080px; margin: 0 auto; padding: 10px 24px 70px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.jm-feature {
    background: rgba(15, 19, 34, 0.6);
    border: 1px solid rgba(94,68,255,.15);
    border-radius: 16px; padding: 28px 26px;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.jm-feature:hover {
    transform: translateY(-5px); border-color: rgba(94,68,255,.5);
    box-shadow: 0 14px 40px rgba(94,68,255,.16);
}
.jm-feature .jf-icon {
    width: 50px; height: 50px; border-radius: 13px; margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(94,68,255,.22), rgba(0,229,255,.14));
    border: 1px solid rgba(94,68,255,.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #00E5FF;
}
.jm-feature h4 { color: #fff; font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.jm-feature p { color: #8891a8; font-size: 13.5px; line-height: 1.8; margin: 0; }

/* ============================================================
 * 页脚
 * ============================================================ */
.jm-footer {
    border-top: 1px solid rgba(94,68,255,.14);
    background: #080c16; padding: 34px 24px; text-align: center;
    position: relative; z-index: 2;
}
.jm-footer .jm-footer-links { margin-bottom: 12px; color: #6b7089; font-size: 13.5px; }
.jm-footer .jm-footer-links a { color: #8891a8 !important; margin: 0 8px; }
.jm-footer .jm-footer-links a:hover { color: #00E5FF !important; }
.jm-footer .jm-footer-custom { margin-bottom: 8px; }
.jm-footer .jm-footer-custom p { color: #6b7089; font-size: 13px; margin: 0; }
.jm-footer .jm-footer-custom a { color: #8891a8; }
.jm-footer .jm-footer-custom a:hover { color: #00E5FF; }

/* ============================================================
 * 微信领密钥弹层（method.msg_layer 生成，覆盖 layer-animate.css）
 * ============================================================ */
.msg-layer {
    background: #0f1322 !important;
    border: 1px solid rgba(94,68,255,.4) !important;
    border-radius: 16px !important;
    color: #e4e6ef; padding: 0 14px 16px !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.65), 0 0 40px rgba(94,68,255,.12);
}
.msg-layer > h5 {
    color: #fff !important; border-bottom: 1px solid rgba(255,255,255,.08) !important;
    font-weight: 600;
}
.msg-layer .msg-con img { max-width: 260px; width: 100%; border-radius: 10px; margin: 6px auto; display: block; }
.msg-layer .msg-con h3 { color: #c8cad8; font-size: 15px; font-weight: 500; margin: 8px 0 0; }
.msg-layer .layer-close { color: #8891a8 !important; }
.msg-layer .layer-close:hover { color: #ff6b5e !important; }

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 767.98px) {
    .jm-hero { padding: 48px 18px 30px; }
    .jm-hero h1 { font-size: 30px; }
    .jm-hero p.jm-subtitle { font-size: 14.5px; }
    .jm-console { padding: 20px 16px 28px; border-radius: 16px; }
    .jm-wrap { padding: 0 14px 30px; }
    .storage-group { flex-direction: column; gap: 10px; }
    .jm-tabs { overflow-x: auto; }
    .jm-tabs > li > a { font-size: 13.5px; padding: 10px 6px; white-space: nowrap; }
    .jm-features { grid-template-columns: 1fr; padding: 0 18px 50px; }
    .jm-nav-links a:not(.jm-nav-cta) { display: none; }
    .blue, .green, .warning { width: 100%; }
    .jm-actions { flex-direction: column; align-items: stretch; }
    .jm-notice { padding: 20px 18px; }
}
