/* ================================================================
   IP 查询系统 - 苹果风格 (Apple Design Language)
   风格特点：大量留白、毛玻璃效果、柔和圆角、系统字体、渐变背景
   作者：System
   版本：1.0.0
   ================================================================ */

/* ---------- 全局重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
                 "Helvetica Neue", Helvetica, "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    color: #1d1d1f;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

/* ---------- 渐变背景 ---------- */
body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(120, 119, 198, 0.25), transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 10%, rgba(255, 119, 198, 0.18), transparent 60%),
        radial-gradient(ellipse 50% 60% at 50% 100%, rgba(120, 219, 255, 0.22), transparent 60%),
        linear-gradient(180deg, #f5f5f7 0%, #fafafa 100%);
    background-attachment: fixed;
}

/* ---------- 链接/按钮基础 ---------- */
a { color: #0066cc; text-decoration: none; transition: color .2s; }
a:hover { color: #0077ed; }

/* ---------- 头部导航 ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 48px;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: rgba(245, 245, 247, 0.72);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    padding: 0 24px;
}
.navbar-inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #1d1d1f;
    font-size: 15px;
    letter-spacing: -0.2px;
}
.navbar .brand svg { width: 22px; height: 22px; }
.navbar .nav-links { display: flex; align-items: center; gap: 20px; }
.navbar .nav-links a {
    color: #1d1d1f;
    opacity: 0.85;
    font-size: 13px;
    font-weight: 500;
}
.navbar .nav-links a:hover { opacity: 1; color: #0066cc; }

/* ---------- 主容器 ---------- */
.container {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.container-wide {
    max-width: 1100px;
}

/* ---------- 首页大标题 ---------- */
.hero {
    text-align: center;
    padding: 40px 0 50px;
}
.hero h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #1d1d1f 0%, #4d4d4f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero h2 {
    font-size: 22px;
    font-weight: 500;
    color: #6e6e73;
    letter-spacing: -0.2px;
    margin-bottom: 8px;
}
.hero p.lead {
    font-size: 16px;
    color: #6e6e73;
    margin-top: 14px;
}
.hero .badge {
    display: inline-block;
    background: #0071e3;
    color: #fff;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

/* ---------- 卡片（毛玻璃） ---------- */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 40px;
    transition: box-shadow .3s ease, transform .3s ease;
}
.glass-card:hover {
    box-shadow:
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 12px 40px rgba(0, 0, 0, 0.10),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ---------- 搜索框 ---------- */
.search-box {
    position: relative;
    margin-bottom: 8px;
}
.search-box .input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 0;
    padding: 6px 6px 6px 18px;
    transition: all .25s ease;
}
.search-box .input-wrap:focus-within {
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12), 0 1px 3px rgba(0,0,0,0.04);
}
.search-box .search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #86868b;
    margin-right: 10px;
    flex-shrink: 0;
}
.search-box input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 17px;
    color: #1d1d1f;
    padding: 14px 4px;
    min-width: 0;
    font-family: inherit;
}
.search-box input[type="text"]::placeholder {
    color: #a1a1a6;
}
.search-box .btn {
    flex-shrink: 0; margin-right: 10px;
}

/* ---------- 按钮（苹果风格：蓝色圆角带毛玻璃） ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 26px;
    min-height: 44px;
    border-radius: 0;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    transition: all .2s ease;
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
    background: linear-gradient(180deg, #0071e3 0%, #0077ed 100%);
    color: #fff;
}
.btn-primary:hover {
    background: linear-gradient(180deg, #0077ed 0%, #0a84ff 100%);
    color: #fff;
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(0);
    background: #006edb;
}
.btn-primary:disabled {
    background: #a1c4f0;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}
.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.09);
    color: #1d1d1f;
}
.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(0,0,0,0.12);
    color: #1d1d1f;
}
.btn-outline:hover {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.2);
}
.btn-danger {
    background: #ff3b30;
    color: #fff;
}
.btn-danger:hover { background: #ff453a; color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 13px; min-height: 34px; border-radius: 0; }
.btn-lg { padding: 16px 32px; font-size: 17px; min-height: 52px; }

/* ---------- 查询结果卡 ---------- */
.result-card {
    margin-top: 30px;
    overflow: hidden;
    animation: fadeUp .4s ease;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.result-card .result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}
.result-card .result-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
}
.status-success { background: rgba(34, 183, 87, 0.12); color: #22b757; }
.status-info    { background: rgba(0, 113, 227, 0.12); color: #0071e3; }
.status-warn    { background: rgba(255, 149, 0, 0.12); color: #ff9500; }
.status-error   { background: rgba(255, 59, 48, 0.12);  color: #ff3b30; }
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- 信息网格 ---------- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.info-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 18px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}
.info-item .item-label {
    font-size: 12px;
    color: #86868b;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 600;
}
.info-item .item-value {
    font-size: 16px;
    color: #1d1d1f;
    font-weight: 500;
    word-break: break-all;
    line-height: 1.45;
}
.info-item .item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: rgba(0, 113, 227, 0.10);
    color: #0071e3;
}
.info-item .item-icon svg { width: 20px; height: 20px; }

/* 图标背景着色（小类） */
.icon-green  { background: rgba(34, 183, 87, 0.12);  color: #22b757; }
.icon-orange { background: rgba(255, 149, 0, 0.12); color: #ff9500; }
.icon-purple { background: rgba(175, 82, 222, 0.12); color: #af52de; }
.icon-red    { background: rgba(255, 59, 48, 0.12);  color: #ff3b30; }
.icon-teal   { background: rgba(0, 199, 190, 0.12); color: #00c7be; }
.icon-yellow { background: rgba(255, 204, 0, 0.16); color: #ca9c00; }

/* ---------- 功能卡片网格 ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 50px;
}
.feature-card {
    padding: 26px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    transition: all .25s ease;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 14px 0 6px;
}
.feature-card p {
    font-size: 13.5px;
    color: #6e6e73;
    line-height: 1.6;
}

/* ---------- 页脚 ---------- */
.footer {
    margin-top: 80px;
    padding: 24px;
    text-align: center;
    color: #86868b;
    font-size: 12px;
}

/* ---------- 表单（通用） ---------- */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.10);
    border-radius: 12px;
    color: #1d1d1f;
    font-family: inherit;
    transition: all .2s ease;
    outline: none;
}
.form-control:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}
textarea.form-control { min-height: 110px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M6 8L2 4h8z' fill='%2386868b'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.form-row { display: flex; gap: 16px; }
.form-row > * { flex: 1; }
.form-row > .flex-none { flex: 0 0 auto; }

.form-help {
    font-size: 12px;
    color: #86868b;
    margin-top: 6px;
}

/* ---------- 提示框 ---------- */
.alert {
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid transparent;
}
.alert svg { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; }
.alert-error   { background: rgba(255,59,48,0.10);  border-color: rgba(255,59,48,0.20); color: #d70015; }
.alert-success { background: rgba(34,183,87,0.10);  border-color: rgba(34,183,87,0.22); color: #1c9145; }
.alert-info    { background: rgba(0,113,227,0.10);  border-color: rgba(0,113,227,0.20); color: #0055cc; }
.alert-warn    { background: rgba(255,149,0,0.10);  border-color: rgba(255,149,0,0.22); color: #a05e00; }

/* ---------- 表格 ---------- */
.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
    text-align: left;
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 600;
    color: #6e6e73;
    background: rgba(0,0,0,0.02);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    color: #1d1d1f;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(0, 113, 227, 0.035); }
.mono { font-family: "SF Mono", "Menlo", "Consolas", monospace; font-size: 13px; }

/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #1d1d1f;
    background: rgba(0,0,0,0.04);
    transition: all .15s ease;
}
.pagination a:hover { background: rgba(0,0,0,0.08); color: #1d1d1f; }
.pagination .current {
    background: #0071e3;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,113,227,0.28);
}
.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}
/* 管理员管理模块新增：分页按钮（与 managers.php 对齐） */
.pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #1d1d1f;
    background: rgba(0,0,0,0.04);
    text-decoration: none;
    transition: all .15s ease;
}
.pagination .page-btn:hover { background: rgba(0,0,0,0.08); }
.pagination .page-btn.active {
    background: #0071e3; color: #fff;
    box-shadow: 0 4px 12px rgba(0,113,227,0.28);
}
.pagination .page-dot {
    padding: 0 6px; color: #86868b; font-size: 14px;
}

/* ---------- 管理后台布局 ---------- */
.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr;
}
.admin-sidebar {
    background: rgba(245, 245, 247, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-right: 1px solid rgba(0,0,0,0.07);
    padding: 20px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar .side-head {
    padding: 10px 12px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
}
.admin-sidebar .menu { display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar .menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 500;
    transition: all .15s ease;
    opacity: 0.85;
}
.admin-sidebar .menu a:hover { background: rgba(0,0,0,0.05); opacity: 1; }
.admin-sidebar .menu a.active {
    background: #0071e3;
    color: #fff;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0,113,227,0.28);
}
.admin-sidebar .menu a svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-sidebar .side-footer {
    position: absolute;
    left: 14px; right: 14px; bottom: 16px;
    padding: 12px;
    font-size: 12px;
    color: #86868b;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.admin-content {
    padding: 30px 36px;
    min-width: 0;
}
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}
.admin-topbar h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.6px;
}
.admin-topbar .user-area {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13.5px;
    color: #6e6e73;
}
.admin-topbar .avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0071e3, #af52de);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

/* ---------- 统计卡片 ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}
.stat-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}
.stat-card .stat-label {
    font-size: 12px;
    color: #86868b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}
.stat-card .stat-value {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #1d1d1f;
}
.stat-card .stat-sub {
    font-size: 12px;
    color: #6e6e73;
    margin-top: 4px;
}

/* ---------- 后台面板卡片（苹果风） ---------- */
.panel {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.04);
    padding: 24px 28px;
    margin-bottom: 18px;
}
.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.panel-title > div:first-child {
    display: flex; align-items: center; gap: 10px;
}
.panel-title .btn { margin-left: 12px; }

/* ---------- 通用输入框（苹果风：毛玻璃 + 聚焦发光） ---------- */
.input,
input[type="text"].input,
input[type="password"].input,
input[type="email"].input,
input[type="number"].input,
select.input,
textarea.input {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-family: inherit;
    color: #1d1d1f;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease,
        transform .05s ease;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
textarea.input {
    height: auto;
    padding: 12px 16px;
    min-height: 90px;
    resize: vertical;
}
select.input {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 14px;
    padding-right: 42px;
    cursor: pointer;
}
.input:hover,
select.input:hover {
    border-color: rgba(0, 0, 0, 0.15);
    background: #fff;
}
.input:focus,
select.input:focus {
    border-color: #0071e3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}
.input::placeholder { color: #a1a1a6; }

/* ---------- 大尺寸按钮（表单底部用） ---------- */
.btn-large {
    height: 44px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 980px;
}

/* ---------- 美化表单结构（苹果设置页风格） ---------- */
.form-block {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 4px 0;
    margin-bottom: 22px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.form-block-title {
    padding: 14px 20px 6px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #86868b;
    text-transform: uppercase;
}
form .form-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px;
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    gap: 8px;
}
form .form-row:last-child { border-bottom: none; }
form .form-row:hover { background: rgba(0, 0, 0, 0.015); }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: 0.01em;
    margin-bottom: 2px;
}
.form-label .red { color: #d70015; margin-left: 3px; font-weight: 700; }
.form-hint {
    margin-top: 6px;
    font-size: 12.5px;
    color: #86868b;
    line-height: 1.6;
}

/* 带图标的输入框（输入框左侧图标） */
.input-icon-wrap {
    position: relative;
    display: block;
}
.input-icon-wrap > .input,
.input-icon-wrap > input.input,
.input-icon-wrap > select.input,
.input-icon-wrap > textarea.input {
    padding-left: 46px !important;
    padding-right: 16px !important;
}
.input-icon-wrap.pwd > input.input,
.input-icon-wrap.pwd > .input {
    padding-right: 76px !important;
}
.input-icon-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #86868b;
    pointer-events: none;
    z-index: 2;
}
.input-icon-wrap input:focus ~ .input-icon,
.input-icon-wrap select:focus ~ .input-icon { color: #0071e3; }

/* 密码显隐切换小按钮 */
.pwd-toggle {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #86868b;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 12.5px;
    cursor: pointer;
    transition: all .15s;
}
.pwd-toggle:hover { background: rgba(0,0,0,0.06); color: #0071e3; }
.input-icon-wrap.pwd .input { padding-right: 72px; }

/* -------- 首页前台查询的验证码输入框图标定位 -------- */
.captcha-input-wrap { position: relative; display: block; }
.captcha-input-wrap .captcha-icon {
    position: absolute;
    left: 13px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; z-index: 2;
    pointer-events: none;
    display: inline-flex; align-items: center; justify-content: center;
}

/* -------- 搜索框：IP 输入 + 验证码 合并成同一行 -------- */
.search-box-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: transparent !important;   /* 去掉 search-box 原有的白色大容器背景，让里面的胶囊独立 */
    box-shadow: none !important;          /* 去掉整行外阴影 */
    padding: 0 !important;
    border: 2px solid #dfdfdf;
    border-radius: 0;
    overflow: hidden;
}
.search-box-row .input-wrap {
    min-width: 210px;
    margin: 0;
}
.captcha-row-inline {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 320px;
}
.captcha-row-inline .captcha-input-wrap { flex: 1 1 170px; min-width: 140px; }
.captcha-row-inline .captcha-inline-img { flex: 0 0 160px; }
.captcha-row-inline .captcha-refresh-link {
    flex: 0 0 auto;
    width: 42px; height: 48px;
    border-radius: 0;
    background: #fff;
    border: 1.5px solid #e5e5ea;
    color: #0071e3;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .18s;
    text-decoration: none;
}
.captcha-row-inline .captcha-refresh-link:hover {
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0,113,227,.10);
    transform: rotate(180deg);
}

/* ≤900px：自动变成两行（IP在上，验证码在下），避免挤成一团 */
@media (max-width: 900px) {
    .search-box-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .search-box-row .input-wrap { flex: 1 1 auto; min-width: 0; }
    .captcha-row-inline { flex: 1 1 auto; min-width: 0; }
    .captcha-row-inline .captcha-input-wrap { flex: 1; }
}
/* ≤520px：刷新按钮也换图标+文字，保持对齐 */
@media (max-width: 520px) {
    .captcha-row-inline {
        flex-wrap: wrap;
    }
}

/* 表单底部按钮栏 */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 18px 6px 2px 6px;
    gap: 10px;
    border-top: none;
}

/* alert 增强（自带图标） */
.alert {
    position: relative;
    padding: 14px 18px 14px 48px;
    gap: 10px;
    line-height: 1.6;
    font-size: 13.5px;
}
.alert::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}
.alert-error::before {
    content: '!';
    background: linear-gradient(180deg, #ff5a4f 0%, #ff3b30 100%);
    box-shadow: 0 2px 8px rgba(255,59,48,0.35);
}
.alert-success::before {
    content: '✓';
    line-height: 22px;
    text-align: center;
    background: linear-gradient(180deg, #32d74b 0%, #30b350 100%);
    box-shadow: 0 2px 8px rgba(52,199,89,0.35);
}
.alert-warn::before {
    content: '!';
    background: linear-gradient(180deg, #ffcc00 0%, #ff9500 100%);
    box-shadow: 0 2px 8px rgba(255,149,0,0.35);
}
.alert-info::before {
    content: 'i';
    font-family: Georgia, serif;
    font-style: italic;
    background: linear-gradient(180deg, #0a84ff 0%, #0071e3 100%);
    box-shadow: 0 2px 8px rgba(0,113,227,0.35);
}
.alert > div { flex: 1; }
.alert > div > div { margin-top: 4px; }

/* ---------- 登录页 ---------- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-box {
    width: 100%;
    max-width: 420px;
    padding: 40px;
}
.login-box h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.6px;
}
.login-box p.sub {
    text-align: center;
    color: #6e6e73;
    font-size: 14px;
    margin-bottom: 28px;
}

/* ---------- 代码块 ---------- */
pre.code {
    background: #1d1d1f;
    color: #f5f5f7;
    padding: 20px;
    border-radius: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    font-size: 13px;
    line-height: 1.7;
    margin: 14px 0 22px;
    white-space: pre;
    word-break: normal;
    word-wrap: normal;
    max-width: 100%;
    box-sizing: border-box;
}

/* 内联 code：文档页 hero 里、表格里、段落里的短代码，窄屏允许折行 */
code {
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    font-size: 12.5px;
    padding: 2px 6px;
    background: rgba(0, 113, 227, 0.07);
    color: #0057c4;
    border-radius: 6px;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}
table code {
    background: rgba(0,0,0,0.04);
    color: #1d1d1f;
    padding: 1px 5px;
    font-size: 12px;
}
pre.code code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    white-space: inherit;
    word-break: inherit;
    overflow-wrap: normal;
}
pre.code .c-k { color: #ff7ab2; }
pre.code .c-s { color: #3ddc84; }
pre.code .c-n { color: #78c8ff; }
pre.code .c-c { color: #6e6e73; font-style: italic; }

/* ---------- 响应式：手机 / 平板自适应 ---------- */
/* —— 平板（960px 及以下）：输入框圆角改为直角（0px），避免胶囊形状在窄屏变形 —— */
@media (max-width: 960px) {
    .container-wide { max-width: 100%; padding-left: 18px; padding-right: 18px; }
    .navbar-inner { max-width: 100%; padding-left: 18px; padding-right: 18px; }
    .hero h1 { font-size: 36px; letter-spacing: -1px; }
    .hero p.lead, .hero .lead { font-size: 15px !important; }
    .step-list > div { padding: 10px 14px; font-size: 13.5px; }
    /* ===== 全部改成纯直角 0px ===== */
    .search-box .input-wrap { border-radius: 0 !important; padding: 6px 6px 6px 14px !important; }
    .search-box .input-wrap input,
    .search-box .input-wrap input[type="text"] { border-radius: 0; }
    .search-box .btn,
    .search-box .btn-primary { border-radius: 0 !important; }
    .captcha-row-inline .captcha-input-wrap input { border-radius: 0 !important; }
    .captcha-row-inline .captcha-inline-img { border-radius: 0 !important; }
    .captcha-row-inline .captcha-refresh-link { border-radius: 0 !important; }
    #captchaInput { border-radius: 0 !important; }
    /* 其他 .btn-large 也统一直角 */
    .btn-large { border-radius: 0 !important; }
}

/* —— 小平板 / 大屏手机（768px 及以下）—— */
@media (max-width: 768px) {
    html, body { font-size: 14.5px; }
    .hero { padding: 22px 0 32px; }
    .hero h1 { font-size: 30px; letter-spacing: -0.8px; }
    .hero h2 { font-size: 18px; }
    .hero .badge { font-size: 10.5px; }
    .container { padding: 26px 16px 50px; }
    .container-wide { padding: 26px 14px 50px; }
    .glass-card { padding: 20px 18px; border-radius: 18px; }
    .glass-card h2 { font-size: 19px; }
    .glass-card h3 { font-size: 14.5px; }
    /* 前台 NavBar：一行挤不下则允许换行 */
    .navbar { height: auto; }
    .navbar-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 16px;
    }
    .navbar .brand { font-size: 14px; }
    .navbar .nav-links { gap: 14px; }
    .navbar .nav-links a { font-size: 12.5px; }
    /* 信息网格 4→2 列 */
    .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .info-item { padding: 12px 14px; border-radius: 14px; }
    .info-item .item-label { font-size: 12px; }
    .info-item .item-value { font-size: 14.5px; }
    /* 查询结果卡片 */
    .result-card { margin-top: 22px; border-radius: 18px; }
    .result-header { flex-direction: column; align-items: flex-start !important; gap: 10px; padding: 16px 18px !important; }
    .result-footer { flex-direction: column; align-items: flex-start !important; gap: 8px; padding: 14px 18px !important; }
    /* 代码块：窄屏更小的字号和边距 */
    pre.code { padding: 14px; font-size: 12px; line-height: 1.6; border-radius: 12px; }
    /* 表格：最小字宽，防止中文列名换行撑破 */
    .table-wrap { -webkit-overflow-scrolling: touch; border-radius: 12px; }
    table { font-size: 13px; }
    th, td { padding: 10px 12px !important; }
    /* 按钮 */
    .btn-large { height: 42px; padding: 0 20px; font-size: 14px; }
    /* 提示条 */
    .alert { padding: 12px 14px 12px 44px; font-size: 13px; border-radius: 12px; }
    .alert::before { width: 20px; height: 20px; left: 14px; top: 13px; font-size: 12.5px; line-height: 20px; }
    /* 管理后台在这个断点已经由 1022 行的 @media 768 处理过，此处不再重复 */
}

/* —— 手机（560px 及以下）—— */
@media (max-width: 560px) {
    .hero h1 { font-size: 25px; letter-spacing: -0.5px; }
    .hero p.lead, .hero .lead { font-size: 14px; }
    .container { padding: 20px 14px 40px; }
    .container-wide { padding: 20px 12px 40px; }
    .glass-card { padding: 16px 14px; border-radius: 12px; }
    .glass-card h2 { font-size: 17px; margin-bottom: 4px; }
    .info-grid { grid-template-columns: 1fr; gap: 10px; }
    .navbar-inner { padding: 10px 14px; }
    .navbar .nav-links { gap: 12px; }
    .navbar .nav-links a { font-size: 12px; }
    pre.code { padding: 12px; font-size: 11.5px; border-radius: 8px; }
    code { font-size: 11.5px; }
    table { font-size: 12.5px; }
    th, td { padding: 8px 10px !important; word-break: break-word; }
    .mono { font-size: 12px; word-break: break-all; }
    /* 前台查询搜索框（全部纯直角 0px） */
    .search-box input[type="text"] { font-size: 15px; padding: 10px 4px; }
    .search-box .btn { padding: 0 14px; height: 40px; font-size: 13.5px; min-width: 0; border-radius: 0 !important; }
    .search-box .btn span { display: none; }
    .search-box .btn svg { display: inline-block; width: 18px; height: 18px; }
    .search-box .input-wrap { padding: 4px 4px 4px 10px !important; border-radius: 0 !important; }
    .search-box .input-wrap input,
    .search-box .input-wrap input[type="text"] { border-radius: 0 !important; }
    /* 验证码行在手机上允许 wrap（全部纯直角 0px） */
    .captcha-row-inline {
        flex-wrap: wrap;
    }
    .captcha-row-inline .captcha-inline-img { flex: 1 1 130px; min-width: 130px; width: auto !important; border-radius: 0 !important; }
    .captcha-row-inline .captcha-refresh-link {
        width: 40px; height: 40px; border-radius: 0 !important;
    }
    .captcha-row-inline .captcha-input-wrap input,
    #captchaInput { height: 42px !important; border-radius: 0 !important; }
    .captcha-input-wrap .captcha-icon { left: 11px; }
    .result-header .result-title span { font-size: 15px !important; }
    .alert { padding: 11px 12px 11px 40px; font-size: 12.5px; border-radius: 0 !important; }
    .alert::before { width: 18px; height: 18px; left: 12px; top: 12px; font-size: 11.5px; line-height: 18px; }
    .btn-large { border-radius: 0 !important; }
}

/* —— 超小屏（380px 及以下，如 iPhone SE）—— */
@media (max-width: 380px) {
    .hero h1 { font-size: 22px; }
    .glass-card { padding: 14px 12px; border-radius: 10px; }
    pre.code { padding: 10px; font-size: 10.5px; overflow-x: auto; border-radius: 6px; }
    .btn-primary { height: 40px; padding: 0 14px; border-radius: 0 !important; }
    .navbar-inner { padding: 8px 12px; }
    .navbar .brand { font-size: 13px; }
    .navbar .nav-links a { font-size: 11.5px; }
    .search-box .search-icon { display: none; }
    .search-box .input-wrap { padding: 4px 4px 4px 8px !important; border-radius: 0 !important; }
    .captcha-row-inline .captcha-input-wrap { min-width: 110px; flex-basis: 100% !important; }
    .captcha-row-inline { gap: 8px; }
}

/* ========== 管理员管理模块新增样式 ========== */

/* 徽章 */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.6;
}
.badge-info   { background: #e8f1ff; color: #0071e3; }
.badge-danger { background: #ffe4e6; color: #d70015; }
.badge-warn   { background: #fff3d6; color: #a88100; }

/* 列表链接按钮 */
.link-btn {
    display: inline-block;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 8px;
    color: #0071e3;
    text-decoration: none;
    background: rgba(0,113,227,0.08);
    margin-right: 6px;
    transition: all .15s;
    cursor: pointer;
    border: none;
}
.link-btn:hover    { background: rgba(0,113,227,0.18); }
.link-btn.link-danger { color: #d70015; background: rgba(215,0,21,0.08); }
.link-btn.link-danger:hover { background: rgba(215,0,21,0.18); }
.link-btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; background: #e8e8ed; color: #86868b; }

/* 空行样式 */
.data-table td.empty {
    text-align: center;
    padding: 40px 0 !important;
    color: #86868b;
    font-size: 13px;
}

/* 搜索工具栏 */
.search-bar .input, .search-bar select.input {
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    background: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
}
.search-bar .input:focus { border-color: #0071e3; }

/* 成功提示框 */
.alert-success {
    background: #e6f7ef;
    color: #0f7b3f;
    border-left: 3px solid #34c759;
}

/* 表单-编辑页 */
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}
.form-label .red { color: #d70015; margin-left: 2px; }
.form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #86868b;
    line-height: 1.6;
}
form .form-row {
    display: block;
    margin-bottom: 18px;
    flex-direction: column;
}
form .form-row > * { flex: initial; width: 100%; box-sizing: border-box; }
form .form-row > select.input { width: 100%; }
form .form-actions {
    display: flex;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.07);
}

/* checkbox */
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #1d1d1f;
}
.checkbox-label input { width: 16px; height: 16px; cursor: pointer; }

/* 步骤列表（管理员列表底部安全说明 / 索引优化页执行结果用） */
.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.step-list .step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 6px;
    background: rgba(0,0,0,0.02);
    font-size: 13px;
    line-height: 1.7;
}
.step-list .step-time {
    flex-shrink: 0;
    font-family: "SF Mono", "Menlo", Consolas, monospace;
    font-size: 12px;
    color: #86868b;
    min-width: 72px;
}
.step-list .step-success .step-text { color: #0f7b3f; }
.step-list .step-error   .step-text { color: #d70015; }
.step-list .step-warn    .step-text { color: #a88100; }
.step-list .step-info    .step-text { color: #0071e3; }

/* 状态药丸（前台已有，补充 warn） */
.status-pill.status-warn {
    background: #fff3d6;
    color: #a88100;
}
.status-pill.status-warn .dot { background: #a88100; }

