/* ============================================================
   蜘蛛抓取工具 - 深色金色主题
   ============================================================ */
:root {
    --bg-deep: #0A0A0E;
    --bg-card: #15151B;
    --bg-card2: #1C1C24;
    --bg-input: rgba(14, 14, 19, 0.5);
    --gold: #D4AF37;
    --gold-light: #F5D06F;
    --gold-pale: #F9DF8F;
    --gold-dark: #B8860B;
    --gold-grad: linear-gradient(135deg, #F9DF8F 0%, #E3B93D 45%, #C9A227 100%);
    --text-main: #E8E6E0;
    --text-sub: #9A978F;
    --border-gold: rgba(212, 175, 55, 0.32);
    --shadow-gold: rgba(212, 175, 55, 0.35);
    --green: #5ACD8A;
    --red: #E5484D;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        linear-gradient(rgba(11,11,16,0.55), rgba(11,11,16,0.75)),
        url('bg-hacker.jpg') center center / cover no-repeat fixed,
        linear-gradient(180deg, #0B0B10 0%, var(--bg-deep) 100%);
    min-height: 100vh;
    color: var(--text-main);
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 40px;
}

/* ---- 标题 ---- */
.page-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 3px;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.3));
    margin-bottom: 4px;
}
.page-subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--gold);
    opacity: 0.7;
    margin-bottom: 24px;
}

/* ---- 卡片 ---- */
.card {
    background: rgba(15, 15, 22, 0.45);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}
.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--gold-grad);
    border-radius: 2px;
}

/* ---- 输入区 ---- */
.input-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    color: var(--text-sub);
    font-size: 14px;
    white-space: nowrap;
}
input[type="text"], input[type="number"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
input[type="text"]:hover, input[type="number"]:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
}
input[type="text"]:focus, input[type="number"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.3);
}

/* ---- 按钮 ---- */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.btn-gold {
    background: var(--gold-grad);
    color: #1a1a1a;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    filter: brightness(1.1);
}
.btn-gold:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 1px 8px rgba(212, 175, 55, 0.3);
}
.btn-gold:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--gold);
}
.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
    transform: translateY(-1px);
}
.btn-outline:active {
    transform: translateY(0) scale(0.97);
    background: rgba(212, 175, 55, 0.15);
}

/* ---- 结果区 ---- */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.stat-item {
    background: rgba(14, 14, 19, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    transition: all 0.3s;
}
.stat-item:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}
.stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--gold);
}
.stat-label {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 4px;
}

/* ---- 表格 ---- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
/* 多列表格横向滚动容器 */
.table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
}
.table-scroll .data-table {
    min-width: 600px;
}
.table-scroll::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}
.table-scroll::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}
.table-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #F9DF8F, #C9A227);
    border-radius: 10px;
}
.table-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #FFE8A0, #D4AF37);
}
.data-table th {
    background: #2A2A35;
    color: #D4AF37;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid rgba(212,175,55,0.3);
    position: sticky;
    top: 0;
    z-index: 10;
    min-width: 80px;
}
.data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    word-break: break-all;
}
.data-table tr:hover td {
    background: rgba(212, 175, 55, 0.05);
}
.table-wrap {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
}
.table-wrap::-webkit-scrollbar {
    width: 6px;
}
.table-wrap::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}
.table-wrap::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}
.table-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

/* ---- 状态标签 ---- */
.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
.tag-200 { background: rgba(90, 205, 138, 0.15); color: var(--green); }
.tag-301, .tag-302 { background: rgba(212, 175, 55, 0.15); color: var(--gold); }
.tag-404, .tag-500 { background: rgba(229, 72, 77, 0.15); color: var(--red); }

/* ---- 进度 ---- */
.progress-bar-wrap {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
    margin-top: 10px;
}
.progress-bar-fill {
    height: 100%;
    background: var(--gold-grad);
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s;
}

/* ---- 提示 ---- */
.tip {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 10px;
}
.empty-hint {
    text-align: center;
    color: var(--text-sub);
    padding: 40px 20px;
    font-size: 14px;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .input-row { flex-direction: column; }
    .input-prefix { justify-content: center; padding: 12px; }
    .btn { width: 100%; }
    .result-grid { grid-template-columns: repeat(2, 1fr); }
    .page { padding: 16px 12px 30px; }
    .page-title { font-size: 22px; }
}

/* ===== 金色细圆角滚动条 ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #F9DF8F, #C9A227);
    border-radius: 10px;
    border: none;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFE8A0, #D4AF37);
}
::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #E3B93D, #B8941F);
}
::-webkit-scrollbar-corner {
    background: transparent;
}
* {
    scrollbar-width: thin;
    scrollbar-color: #C9A227 rgba(0,0,0,0.2);
}

/* ===== 进度标签四态 ===== */
.progress-step {
    display: inline-block;
    margin: 3px 6px;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(212,175,55,0.25);
    transition: all 0.25s ease;
    user-select: none;
}
.progress-step:hover {
    background: rgba(212,175,55,0.15);
    border-color: rgba(212,175,55,0.6);
    box-shadow: 0 0 12px rgba(212,175,55,0.3);
    transform: translateY(-1px);
}
.progress-step:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 0 6px rgba(212,175,55,0.2);
}
.progress-step.done {
    color: #5ACD8A;
    border-color: rgba(90,205,138,0.3);
}
.progress-step.done:hover {
    background: rgba(90,205,138,0.12);
    box-shadow: 0 0 12px rgba(90,205,138,0.25);
}
.progress-step.active {
    color: #F9DF8F;
    border-color: rgba(249,223,143,0.6);
    animation: pulse-gold 1.2s ease-in-out infinite;
}
@keyframes pulse-gold {
    0%,100% { box-shadow: 0 0 6px rgba(212,175,55,0.2); }
    50% { box-shadow: 0 0 16px rgba(212,175,55,0.5); }
}

/* ===== Banner ===== */
.banner {
    position: relative;
    text-align: center;
    padding: 40px 20px 30px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(0,0,0,0.3) 50%, rgba(212,175,55,0.08) 100%);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 16px;
    overflow: hidden;
}
.banner-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(212,175,55,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.banner-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, #F9DF8F 0%, #E3B93D 45%, #C9A227 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}
.banner-title span {
    font-size: 24px;
    font-weight: 400;
    opacity: 1;
    -webkit-text-fill-color: #F9DF8F;
    background: none;
}
.banner-subtitle {
    color: #9A978F;
    font-size: 14px;
    margin: 10px 0 20px;
    letter-spacing: 1px;
}
.banner-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.banner-badges .badge {
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 12px;
    color: #F9DF8F;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.25);
    transition: all 0.25s ease;
    cursor: default;
}
.banner-badges .badge:hover {
    background: rgba(212,175,55,0.2);
    box-shadow: 0 0 10px rgba(212,175,55,0.3);
    transform: translateY(-1px);
}
.banner-badges .badge:active {
    transform: translateY(0);
}
@media (max-width: 600px) {
    .banner-title { font-size: 30px; }
    .banner-title span { font-size: 16px; }
    .banner { padding: 24px 16px 20px; }
}