@charset "UTF-8";
/* ==========================================================================
   心悦搜索 · 安装向导样式（Ver 1.6.2 全新美化 · 1.6.7 补提示页样式）
   设计要点：
     · 现代渐变主色 + 玻璃拟态卡片 + 柔和投影，配色统一走 CSS 变量
     · 不引入任何外部字体/CDN（内网、断网均可正常显示）
     · 保留全部原有 class 名（.wrap/.header/.step/.server/.btn/.pact/.install/
       .success_tip/.correct_span/.error_span/.tips_*/.loading…），
       模板与 JS 无需改动即可套用新样式
   ========================================================================== */

/* ---------------- 变量 ---------------- */
:root {
    --pri: #4f46e5;
    --pri-2: #6366f1;
    --pri-3: #818cf8;
    --pri-soft: #eef2ff;
    --ink: #1e293b;
    --ink-2: #475569;
    --ink-3: #64748b;
    --ink-4: #94a3b8;
    --line: #e6eaf2;
    --bg: #eef1f8;
    --ok: #16a34a;
    --ok-soft: #ecfdf5;
    --err: #dc2626;
    --err-soft: #fef2f2;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 48px -24px rgba(30, 41, 59, .28);
}

/* ---------------- 初始化 ---------------- */
html { -webkit-text-size-adjust: none; overflow-y: scroll; }
body, input, button, select, textarea {
    font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", Tahoma, Helvetica, Arial, sans-serif;
    color: var(--ink-2);
}
html, body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li,
pre, form, fieldset, legend, button, th, td { margin: 0; padding: 0; border: none; }
body {
    background: var(--bg);
    background-image:
        radial-gradient(circle at 12% 8%, rgba(99, 102, 241, .13), rgba(99, 102, 241, 0) 42%),
        radial-gradient(circle at 88% 92%, rgba(56, 189, 248, .12), rgba(56, 189, 248, 0) 45%);
    background-attachment: fixed;
    min-height: 100vh;
}
td, th, div { word-break: break-all; word-wrap: break-word; }
address, cite, dfn, em, var { font-style: normal; font-weight: normal; }
table { empty-cells: show; border-spacing: 0; width: 100%; }
ul, ol, li { list-style: none; }
img { border: none; }
label { cursor: pointer; }
a { text-decoration: none; color: var(--pri); transition: color .18s ease; }
a:hover { text-decoration: none; color: var(--pri-2); }
button, input, select, textarea { font-size: 100%; }
code, kbd, pre { font-family: Consolas, Monaco, "Courier New", monospace; }

/* ---------------- 背景装饰光斑 ---------------- */
.bg-deco { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-deco .blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .5; }
.bg-deco .blob-1 { width: 420px; height: 420px; left: -120px; top: -140px; background: rgba(99, 102, 241, .35); }
.bg-deco .blob-2 { width: 360px; height: 360px; right: -100px; top: 22%; background: rgba(56, 189, 248, .28); }
.bg-deco .blob-3 { width: 460px; height: 460px; right: 12%; bottom: -220px; background: rgba(168, 85, 247, .2); }

/* ---------------- 卡片容器 ---------------- */
.wrap {
    position: relative;
    z-index: 1;
    width: 1000px;
    max-width: calc(100% - 40px);
    margin: 56px auto 40px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: qfRise .5s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes qfRise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- 头部 ---------------- */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 30px;
    color: #fff;
    background: linear-gradient(120deg, #4f46e5 0%, #6366f1 45%, #7c8cf8 100%);
    position: relative;
    overflow: hidden;
}
.header::after {
    content: "";
    position: absolute;
    right: -60px; top: -80px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}
.brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .35);
    font-size: 22px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: .3px; }
.brand-sub { font-size: 12px; opacity: .85; letter-spacing: .6px; }
.header-version {
    position: relative; z-index: 1;
    font-size: 12.5px;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .3);
    letter-spacing: .4px;
}

/* ---------------- 步骤条 ---------------- */
.step {
    position: relative;
    padding: 22px 26px 20px;
    background: #fbfcff;
    border-bottom: 1px solid var(--line);
}
.step ul { display: flex; }
.step li {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 14px;
    color: var(--ink-4);
    font-weight: 600;
    transition: color .25s ease;
}
/* 连接线 */
.step li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -18%;
    top: 50%;
    width: 36%;
    height: 2px;
    background: var(--line);
    border-radius: 2px;
    transform: translateY(-50%);
    z-index: 0;
}
.step li em {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--line);
    color: var(--ink-4);
    font-size: 14px;
    font-weight: 700;
    transition: all .25s ease;
}
.step li.current { color: var(--pri); }
.step li.current em {
    background: linear-gradient(135deg, var(--pri), var(--pri-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(99, 102, 241, .16);
}
.step li.on { color: var(--ok); }
.step li.on em { background: var(--ok); border-color: transparent; color: #fff; }
.step li.on:not(:last-child)::after { background: rgba(22, 163, 74, .35); }

/* ---------------- 主体区 ---------------- */
.section { padding: 4px 0; }
.main { padding: 26px 30px; }

/* 区块小标题（各步通用） */
.panel-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}
.panel-title-bar {
    width: 4px; height: 16px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--pri), var(--pri-3));
    flex: none;
}
.panel-title-hint {
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 400;
    color: var(--ink-4);
}

/* 许可协议 */
.pact {
    display: block;
    height: 352px;
    padding: 20px 22px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.85;
    color: var(--ink-2);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
}
.pact::-webkit-scrollbar { width: 8px; }
.pact::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.pact::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 服务器检测 / 表单 ---------------- */
.server { padding: 10px 30px 4px; }
.server table {
    margin-bottom: 22px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.server td { padding: 11px 14px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.server tr:last-child td { border-bottom: none; }
.server tr:hover td { background: #fafbff; }
/* 表头行（td1 所在的首行） */
.server tr:first-child td.td1 {
    background: #f5f7ff;
    color: var(--pri);
    font-weight: 700;
    letter-spacing: .3px;
}
.server .td1 { color: var(--pri); font-weight: 700; }
.server .tar { color: var(--ink-2); text-align: right; padding-right: 16px; }
.server tr.current td { background: #f5f7ff; }
.gray { color: var(--ink-4); font-size: 12.5px; }
.server tr:hover .gray { color: var(--ink-3); }

/* 表单控件 */
input[type="text"], input[type="password"], input[type="email"], textarea {
    padding: 9px 13px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ink);
    background: #fff;
    border: 1px solid #dbe1ec;
    border-radius: 9px;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-shadow: none;
    margin-right: 3px;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, textarea:focus {
    border-color: var(--pri-2);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
    outline: 0;
}
input::placeholder, textarea::placeholder { color: #b6c0d0; }
textarea { resize: vertical; min-height: 70px; }
select {
    height: 38px;
    padding: 7px 12px;
    font-size: 14px;
    color: var(--ink-2);
    background-color: #fff;
    border: 1px solid #dbe1ec;
    border-radius: 9px;
    vertical-align: middle;
    transition: border-color .2s ease, box-shadow .2s ease;
}
select:focus { border-color: var(--pri-2); box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); outline: 0; }
.server .input { width: 240px; }
input[type="checkbox"] { vertical-align: middle; margin-top: 0; accent-color: var(--pri); }

/* ---------------- 正确 / 错误标记 ---------------- */
.correct_span, .error_span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px; height: 17px;
    margin-right: 6px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--ok);
    text-indent: 0;
    vertical-align: -3px;
    overflow: hidden;
}
.error_span { background: var(--err); }
/* 覆盖原图精灵：新版用纯色圆点 + 字符，不依赖 images/icon.png */
.correct_span::before { content: "✓"; }
.error_span::before { content: "✕"; }

/* ---------------- 安装进度 ---------------- */
.install {
    display: block;
    width: 100%;
    max-width: 900px;
    height: 352px;
    margin: 4px auto 20px;
    padding: 20px 24px;
    overflow-y: auto;
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--ink-2);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.install::-webkit-scrollbar { width: 8px; }
.install::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.install ul { line-height: 1.95; }
.install li { padding: 3px 0; }

/* ---------------- 完成提示 ---------------- */
.success_tip {
    position: relative;
    padding: 40px 56px 40px 232px;
    font-size: 15px;
    line-height: 2.1;
    color: var(--ink-2);
    background: linear-gradient(120deg, var(--ok-soft), #fff 62%);
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    min-height: 150px;
    box-sizing: border-box;
}
.success_tip::before {
    content: "✓";
    position: absolute;
    left: 74px; top: 50%;
    transform: translateY(-50%);
    width: 100px; height: 100px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 12px 28px -10px rgba(22, 163, 74, .5);
    animation: qfPop .5s cubic-bezier(.34, 1.56, .64, 1) both .1s;
}
@keyframes qfPop {
    from { opacity: 0; transform: translateY(-50%) scale(.6); }
    to   { opacity: 1; transform: translateY(-50%) scale(1); }
}
.success_tip a {
    display: inline-block;
    color: var(--pri);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 6px;
}
.success_tip a:hover { color: var(--pri-2); }
.success_tip p { font-size: 12.5px; color: var(--ink-3); line-height: 1.85; margin-top: 8px; }

/* ---------------- 提示语 ---------------- */
.tips, .tips_block span { line-height: 25px; padding: 0 6px; }
.tips { border: 1px solid #fde68a; background: #fffbeb; color: #92400e; border-radius: 8px; }
.tips_error, .tips_success {
    display: inline-block;
    padding-left: 19px;
    line-height: 18px;
    color: var(--err);
    background: url(../images/tips_system.png) -20px 2px no-repeat;
}
.tips_success { color: var(--ok); background-position: 0 -19px; }
.tips_loading { display: inline-block; line-height: 20px; color: var(--ink-2); }

/* ---------------- loading 遮罩 ---------------- */
.loading {
    width: 128px; height: 38px;
    line-height: 38px;
    text-align: center;
    color: #fff;
    background: rgba(15, 23, 42, .82);
    border-radius: 999px;
    position: fixed;
    left: 50%; top: 50%;
    margin: -19px 0 0 -64px;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    backdrop-filter: blur(3px);
}
.loading span { background: url(../images/pop_loading.gif) 0 center no-repeat; padding-left: 24px; }

/* ---------------- 按钮 ---------------- */
.btn-box {
    padding: 18px 30px 22px;
    text-align: center;
    background: #fbfcff;
    border-top: 1px solid var(--line);
}
.btn, .btn_old {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    height: 42px;
    padding: 0 22px;
    margin: 0 7px;
    font: 600 15px/1 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #fff;
    background: linear-gradient(135deg, var(--pri), var(--pri-2));
    border: 0 none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 20px -10px rgba(79, 70, 229, .8);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -12px rgba(79, 70, 229, .9);
}
.btn:active { transform: translateY(0); }
.btn_old, .btn_old:hover {
    color: #cbd5e1;
    background: #e2e8f0;
    box-shadow: none;
    cursor: default;
    transform: none;
}
.btn.error, .btn.error:hover {
    color: #94a3b8;
    background: #eef1f6;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}
.btn img { vertical-align: middle; margin-right: 6px; }
/* 次要按钮（上一步/重新检测：文案里带「上一步」时由 JS 无关，这里用相邻选择器难以区分，
   故统一保持主色；如需弱化可在模板加 class） */

/* ---------------- 底部 ---------------- */
.footer {
    padding: 16px 30px 26px;
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-4);
    line-height: 1.9;
}
.footer-brand { display: block; color: var(--ink-3); }
.footer-tip { display: block; margin-top: 2px; }
.footer a { color: var(--ink-3); }

/* ---------------- 提示 / 错误页（Ver 1.6.7 新增） ----------------
   用于 get_tip_html()：配置缺失、已安装（install.lock 存在）、目录不可写等
   「提前退出」场景。旧版这些页面只输出一个裸 <div>，完全没有任何样式，
   站长看到的就是「美化没生效」——本区块补上统一的告示卡样式。 */
.tipbox {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 24px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff7ed, #fffdf9);
    border: 1px solid #fed7aa;
    border-left: 4px solid #f59e0b;
}
.tipbox-icon {
    flex: 0 0 36px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font: 700 20px/36px -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    text-align: center;
    box-shadow: 0 8px 18px -8px rgba(245, 158, 11, .9);
}
.tipbox-text {
    flex: 1;
    font-size: 14.5px;
    line-height: 1.95;
    color: #7c2d12;
    word-break: break-word;
}
.tipbox-text b, .tipbox-text strong { color: #9a3412; }
/* 成功/完成态（可选） */
.tipbox.is-ok {
    background: linear-gradient(180deg, #f0fdf4, #f7fffa);
    border-color: #bbf7d0;
    border-left-color: var(--ok);
}
.tipbox.is-ok .tipbox-icon { background: linear-gradient(135deg, #16a34a, #22c55e); box-shadow: 0 8px 18px -8px rgba(22, 163, 74, .9); }
.tipbox.is-ok .tipbox-text { color: #166534; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1040px) {
    .wrap { width: 100%; max-width: calc(100% - 32px); margin-top: 32px; }
}
@media (max-width: 720px) {
    .header { padding: 18px 20px; }
    .brand-name { font-size: 17px; }
    .brand-sub { display: none; }
    .step { padding: 16px 12px; }
    .step li { font-size: 12px; gap: 6px; }
    .step li em { width: 26px; height: 26px; font-size: 12px; }
    .step li:not(:last-child)::after { width: 24%; right: -12%; }
    .server, .main { padding: 16px 18px; }
    .server .input { width: 100%; }
    .success_tip { padding: 150px 24px 30px; }
    .success_tip::before { left: 50%; top: 40px; transform: translateX(-50%); width: 84px; height: 84px; font-size: 44px; }
    .btn { min-width: 110px; padding: 0 16px; }
}
