/* ========== 分站公共样式 ========== */
/* 三页面共享：index.php / meituan.php / jd.php */

/* ---- Reset & Typography ---- */
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    color: #1f2937;
    background-attachment: fixed;
    min-height: 100vh;
}

/* 页面级背景（各页覆盖） */
body.bg-pdd {
    background:
        radial-gradient(circle at 18% 18%, rgba(123, 47, 247, 0.05), transparent 42%),
        radial-gradient(circle at 82% 8%, rgba(0, 212, 255, 0.04), transparent 46%),
        linear-gradient(135deg, #ffffff 0%, #f7f8fc 50%, #eef2f8 100%);
}
body.bg-mt {
    background:
        radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.06), transparent 42%),
        radial-gradient(circle at 82% 8%, rgba(255, 211, 0, 0.05), transparent 46%),
        linear-gradient(135deg, #ffffff 0%, #fffdf5 50%, #fef6e0 100%);
}
body.bg-jd {
    background:
        radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.06), transparent 42%),
        radial-gradient(circle at 82% 8%, rgba(255, 211, 0, 0.05), transparent 46%),
        linear-gradient(135deg, #ffffff 0%, #fffdf5 50%, #fef6e0 100%);
}

/* ---- Glass Effect ---- */
.glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

/* ---- Color Themes ---- */
.pdd-red  { background: linear-gradient(135deg, #7b2ff7 0%, #00d4ff 100%); }
.mt-yellow { background: linear-gradient(135deg, #FFD000 0%, #FFB300 100%); }
.jd-red    { background: linear-gradient(135deg, #ff5a36 0%, #e1251b 100%); }

.pdd-red-text  { color: #0284c7; }
.mt-yellow-text { color: #b45309; }
.jd-red-text   { color: #c0392b; }

.pdd-red:hover  { box-shadow: 0 0 22px rgba(0, 212, 255, 0.45); }
.mt-yellow:hover { box-shadow: 0 0 22px rgba(255, 179, 0, 0.45); }
.jd-red:hover   { box-shadow: 0 0 22px rgba(225, 37, 27, 0.45); }

/* ---- Cards ---- */
.card-shadow { box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08); }

/* ---- Code Mask (Courier) ---- */
.code-mask {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* ---- Copy Button Active ---- */
.copy-btn:active { transform: scale(0.95); }

/* ---- Tab Active (各页覆盖 background) ---- */
.tab-active {
    color: white;
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.30);
}
.tab-active-pdd { background: linear-gradient(135deg, #7b2ff7 0%, #00d4ff 100%); }
.tab-active-mt  {
    background: linear-gradient(135deg, #FFD000 0%, #FFB300 100%);
    color: #1f2937;
    box-shadow: 0 0 16px rgba(255, 179, 0, 0.30);
}
.tab-active-jd  {
    background: linear-gradient(135deg, #ff5a36 0%, #e1251b 100%);
    color: #fff;
    box-shadow: 0 0 16px rgba(225, 37, 27, 0.30);
}

/* ---- Status Badges ---- */
.status-used {
    background-color: rgba(15, 23, 42, 0.06);
    color: #6b7280;
}
.status-available {
    background-color: rgba(16, 185, 129, 0.12);
    color: #059669;
}
.status-locked {
    background-color: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

/* ---- List Items ---- */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
}
.list-item .list-info  { flex: 1 1 auto; min-width: 0; }
.list-item .list-action { flex: 0 0 auto; }
.list-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.10);
}
.list-item.list-hover-pdd:hover { border-color: rgba(79, 209, 255, 0.45); }
.list-item.list-hover-mt:hover  { border-color: rgba(255, 179, 0, 0.45); }
.list-item.list-hover-jd:hover  { border-color: rgba(225, 37, 27, 0.45); }

/* ---- Animations ---- */
.fade-in { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.toast { animation: slideIn 0.3s ease-out; }
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.modal-fade { animation: modalIn 0.25s ease-out; }
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-top-color: #7b2ff7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

/* ---- Icon Placeholder ---- */
.icon { display: inline-flex; align-items: center; justify-content: center; color: #7b2ff7; }

/* ---- 举报异常 ---- */
.report-btn-primary {
    background-color: #f97316;
    color: #ffffff;
}
.report-btn-primary:hover {
    background-color: #ea580c;
}
.report-btn-outline {
    color: #ea580c;
    background-color: #fff7ed;
    border-color: #fed7aa;
}
.report-btn-outline:hover {
    background-color: #ffedd5;
}
.report-text { color: #ea580c; }
.report-border { border-color: #fb923c; }
.report-ring:focus {
    outline: none;
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.2);
}
.report-type-btn:hover {
    border-color: #fed7aa;
    color: #ea580c;
}
.report-item-hover:hover {
    border-color: #fed7aa;
}
#reportTypeList .report-type-btn.active-type {
    border-color: #fb923c !important;
    color: #ea580c !important;
    background-color: #fff7ed !important;
}
