/* ========== VIP 会员站视觉（仿 vip.qilinzyz.com，登录前后统一） ========== */
:root {
    --vip-primary: #1a7a8c;
    --vip-primary-dark: #145f6d;
    --vip-primary-soft: #e6f4f7;
    --vip-accent: #d97706;
    --vip-bg: #eef3f6;
    --vip-card: #ffffff;
    --vip-text: #1e293b;
    --vip-muted: #64748b;
    --vip-border: #e2e8f0;
    --vip-radius: 12px;
    --vip-shadow: 0 8px 24px rgba(26, 122, 140, 0.08);
    --vip-font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--vip-font);
    background: var(--vip-bg);
    color: var(--vip-text);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}
a { color: var(--vip-primary); text-decoration: none; }
a:hover { color: var(--vip-primary-dark); }
.container { max-width: 1080px; margin: 0 auto; padding: 20px; }
.member-main { padding-top: 24px; padding-bottom: 40px; }

/* ----- 顶栏（登录后） ----- */
.page-member { background:
    radial-gradient(1200px 400px at 10% -10%, rgba(26,122,140,.12), transparent 60%),
    radial-gradient(900px 300px at 100% 0%, rgba(217,119,6,.08), transparent 50%),
    var(--vip-bg);
}
.vip-header {
    background: linear-gradient(120deg, #145f6d 0%, #1a7a8c 55%, #208698 100%);
    color: #fff;
    padding: 0;
    box-shadow: 0 4px 20px rgba(20, 95, 109, 0.25);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
}
.vip-header .logo {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.logo-mark {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.vip-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 2px;
}
.vip-nav a {
    color: rgba(255,255,255,.88);
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.vip-nav a:hover,
.vip-nav a.active {
    background: rgba(255,255,255,.16);
    color: #fff;
}
.vip-header .user-info {
    color: #fde68a;
    font-weight: 600;
    margin-left: 8px;
    font-size: 13px;
}
.nav-logout { opacity: .9; }
.nav-toggle {
    display: none;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.12);
    color: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
}
.vip-footer {
    text-align: center;
    padding: 28px 16px 36px;
    color: var(--vip-muted);
    font-size: 12px;
}

/* ----- 卡片 / 表单通用 ----- */
.panel {
    background: var(--vip-card);
    border-radius: var(--vip-radius);
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: var(--vip-shadow);
    border: 1px solid rgba(226,232,240,.9);
}
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.panel-head h3 { margin: 0; font-size: 16px; color: var(--vip-primary-dark); }
.panel h2, .panel > h3 { color: var(--vip-primary-dark); margin-bottom: 12px; }
label { display: block; margin-bottom: 6px; color: var(--vip-muted); font-size: 13px; }
input, select, textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--vip-border);
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--vip-primary);
    box-shadow: 0 0 0 3px rgba(26,122,140,.15);
}
.btn {
    display: inline-block;
    padding: 9px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    background: #e8eef1;
    color: var(--vip-text);
    transition: transform .06s, box-shadow .15s, background .15s;
}
.btn:hover { filter: brightness(0.98); }
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--vip-primary) 0%, var(--vip-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(26,122,140,.28);
}
.btn-accent {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; text-align: center; padding: 12px; font-weight: 600; letter-spacing: 2px; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { border: 1px solid var(--vip-border); padding: 11px 12px; text-align: left; vertical-align: top; }
.table th {
    background: linear-gradient(120deg, #145f6d, #1a7a8c);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}
.table tr:nth-child(even) td { background: #f8fafb; }
.cell-domain { max-width: 220px; font-size: 12px; }
.cell-ellipsis {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    vertical-align: middle;
}
.text-ellipsis {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    cursor: default;
}
.table-wrap { overflow-x: auto; max-width: 100%; }
.admin-main .table { table-layout: fixed; width: 100%; }
.admin-main .table th:nth-child(5),
.admin-main .table td.cell-ellipsis { width: 28%; }
.badge {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 11px;
    background: var(--vip-primary-soft);
    color: var(--vip-primary-dark);
    font-weight: normal;
}
.alert { padding: 12px 15px; border-radius: 8px; margin-bottom: 15px; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.text-primary { color: var(--vip-primary); }
.text-danger { color: #dc2626; }
.text-success { color: #16a34a; }
.text-muted { color: var(--vip-muted); font-size: 13px; }
.action-links a { margin-right: 10px; }
.notice-item { padding: 14px 0; border-bottom: 1px solid var(--vip-border); }
.notice-item:last-child { border-bottom: none; }
.notice-item h4 { margin-bottom: 6px; color: var(--vip-text); }
.rich-content { line-height: 1.8; font-size: 14px; color: #334155; word-break: break-word; }
.rich-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0; }
.rich-content a { color: var(--vip-primary); text-decoration: underline; }
.rich-content blockquote { border-left: 4px solid var(--vip-primary); padding-left: 12px; color: #64748b; margin: 10px 0; }
.pagination { margin-top: 15px; text-align: center; }
.pagination a, .pagination strong { margin: 0 5px; }
.empty-state { text-align: center; padding: 28px 12px; color: var(--vip-muted); }
.empty-state .btn { margin-top: 12px; }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 12px; color: #0f766e; }

/* ----- 登录 / 注册（仿老VIP首页） ----- */
.page-auth {
    margin: 0;
    min-height: 100vh;
    background: #0b3d47;
}
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}
.auth-brand {
    position: relative;
    padding: 48px 40px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(11,61,71,.55), rgba(20,95,109,.75)),
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.12), transparent 45%),
        linear-gradient(160deg, #0f4c57 0%, #1a7a8c 48%, #0d5c6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.auth-brand-inner {
    position: relative;
    z-index: 2;
    max-width: 460px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.auth-brand-mark {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 22px;
    animation: auth-mark-pulse 3.5s ease-in-out infinite;
}
.auth-brand-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 18px;
    line-height: 1.35;
    animation: auth-title-in .7s ease-out both;
}
.auth-brand-line {
    font-size: 14px;
    color: rgba(255,255,255,.88);
    margin-bottom: 8px;
    padding-left: 0;
    border-left: none;
    display: inline-block;
    position: relative;
    animation: auth-title-in .7s ease-out .12s both;
}
.auth-brand-line::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 1em;
    background: rgba(253,230,138,.85);
    vertical-align: -0.1em;
    margin-right: 10px;
    border-radius: 2px;
}
.auth-fx {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: .55;
    animation: auth-float 12s ease-in-out infinite;
}
.auth-orb-1 {
    width: 260px; height: 260px;
    left: -80px; top: 8%;
    background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%);
    animation-duration: 14s;
}
.auth-orb-2 {
    width: 200px; height: 200px;
    right: -50px; bottom: 12%;
    background: radial-gradient(circle, rgba(253,230,138,.22), transparent 70%);
    animation-duration: 11s;
    animation-delay: -3s;
}
.auth-orb-3 {
    width: 160px; height: 160px;
    left: 35%; top: -40px;
    background: radial-gradient(circle, rgba(125,211,230,.25), transparent 70%);
    animation-duration: 16s;
    animation-delay: -6s;
}
.auth-ring {
    position: absolute;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    animation: auth-ring 10s linear infinite;
}
.auth-ring-1 {
    width: 320px; height: 320px;
    right: -80px; top: 20%;
    animation-duration: 18s;
}
.auth-ring-2 {
    width: 180px; height: 180px;
    left: 8%; bottom: 10%;
    animation-duration: 12s;
    animation-delay: -4s;
    border-color: rgba(253,230,138,.2);
}
.auth-dot {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    animation: auth-rise 9s linear infinite;
}
.auth-dot:nth-child(4) { left: 12%; bottom: -10px; animation-delay: 0s; animation-duration: 8s; }
.auth-dot:nth-child(5) { left: 28%; bottom: -10px; animation-delay: -2s; width: 4px; height: 4px; animation-duration: 10s; }
.auth-dot:nth-child(6) { left: 48%; bottom: -10px; animation-delay: -4s; animation-duration: 7.5s; }
.auth-dot:nth-child(7) { left: 66%; bottom: -10px; animation-delay: -1s; width: 5px; height: 5px; animation-duration: 11s; }
.auth-dot:nth-child(8) { left: 78%; bottom: -10px; animation-delay: -5s; animation-duration: 9s; }
.auth-dot:nth-child(9) { left: 90%; bottom: -10px; animation-delay: -3s; width: 4px; height: 4px; animation-duration: 12s; }

@keyframes auth-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(18px, -22px) scale(1.05); }
    66% { transform: translate(-14px, 12px) scale(.96); }
}
@keyframes auth-rise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    15% { opacity: .75; }
    100% { transform: translateY(-110vh) scale(.6); opacity: 0; }
}
@keyframes auth-ring {
    from { transform: rotate(0deg) scale(1); opacity: .5; }
    50% { opacity: .25; }
    to { transform: rotate(360deg) scale(1.05); opacity: .5; }
}
@keyframes auth-mark-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.2); transform: scale(1); }
    50% { box-shadow: 0 0 0 12px rgba(255,255,255,0); transform: scale(1.04); }
}
@keyframes auth-title-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #f4f8fa;
}
.auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 16px 40px rgba(15, 76, 87, 0.12);
    border: 1px solid rgba(226,232,240,.9);
}
.auth-card h2 {
    font-size: 24px;
    color: var(--vip-text);
    margin-bottom: 6px;
}
.auth-sub {
    color: var(--vip-muted);
    margin-bottom: 22px;
    font-size: 14px;
}
.auth-form label { margin-bottom: 6px; }
.auth-check {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 4px 0 16px;
    color: var(--vip-muted);
    cursor: pointer;
}
.auth-check input {
    width: auto;
    margin: 0;
}
.auth-switch {
    margin-top: 18px;
    text-align: center;
    color: var(--vip-muted);
    font-size: 13px;
}
.auth-switch a { font-weight: 600; }

/* ----- 会员首页 ----- */
.hero-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background:
        linear-gradient(120deg, rgba(255,255,255,.95), rgba(230,244,247,.95)),
        #fff;
    border: 1px solid rgba(26,122,140,.12);
}
.hero-kicker {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--vip-primary);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.hero-welcome h2 { margin-bottom: 6px; font-size: 22px; }
.hero-balance {
    text-align: right;
    min-width: 200px;
}
.hero-balance-label { display: block; color: var(--vip-muted); font-size: 12px; }
.hero-balance-num {
    display: block;
    font-size: 28px;
    color: var(--vip-primary-dark);
    margin: 4px 0 12px;
}
.hero-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
.quick-card {
    display: block;
    padding: 18px 16px;
    margin: 0;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    border: 1px solid var(--vip-border);
    color: inherit;
}
.quick-card:hover {
    transform: translateY(-2px);
    border-color: rgba(26,122,140,.35);
    box-shadow: 0 12px 28px rgba(26,122,140,.12);
    color: inherit;
}
.quick-card strong { display: block; font-size: 15px; color: var(--vip-primary-dark); margin-bottom: 6px; }
.quick-card span { font-size: 12px; color: var(--vip-muted); }

/* ----- 支付 / 帮助 / 更新 ----- */
.search-form { margin-bottom: 15px; }
.search-form input, .search-form select { width: auto; display: inline-block; margin-right: 10px; }
.inline-form input, .inline-form select { width: auto; display: inline-block; margin-right: 8px; margin-bottom: 0; }
.balance-form input[type="number"], .balance-form input[type="text"] { height: 30px; padding: 4px 8px; font-size: 13px; }
.quick-amount a { margin-left: 10px; font-size: 13px; }
.pay-options { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
.pay-option { display: block; cursor: pointer; }
.pay-option input { display: none; }
.pay-option-box {
    display: block;
    min-width: 140px;
    padding: 12px 16px;
    border: 2px solid var(--vip-border);
    border-radius: 10px;
    background: #fff;
    transition: all .2s;
}
.pay-option-box strong { display: block; font-size: 15px; margin-bottom: 4px; }
.pay-option-box small { color: #999; font-size: 12px; }
.pay-option input:checked + .pay-option-box {
    border-color: var(--vip-primary);
    background: var(--vip-primary-soft);
}
.pay-option:hover .pay-option-box { border-color: #7eb7c3; }
.help-page h2 { margin-bottom: 20px; }
.help-section { margin-bottom: 25px; }
.help-section h3 {
    font-size: 16px;
    color: var(--vip-primary-dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--vip-border);
}
.help-box { background: #f8fafc; border-radius: 10px; padding: 15px; margin-bottom: 12px; }
.help-box.highlight { background: var(--vip-primary-soft); border-left: 4px solid var(--vip-primary); }
.help-box h4 { margin-bottom: 8px; font-size: 15px; }
.help-list { padding-left: 20px; line-height: 2; }
.help-list li { margin-bottom: 4px; }
.help-warn { background: #fff8e6; border-radius: 10px; padding: 15px; border: 1px solid #ffe0a3; }
.help-warn h3 { color: #c2410c; border-bottom-color: #ffe0a3; }
.api-url {
    background: #f0fdf4;
    padding: 12px 15px;
    border-radius: 8px;
    font-family: ui-monospace, monospace;
    color: #15803d;
    word-break: break-all;
    font-size: 14px;
    border: 1px solid #bbf7d0;
}
.update-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px; }
@media (min-width: 768px) {
    .update-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.update-card h3 {
    font-size: 16px;
    color: var(--vip-primary-dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.update-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
    background: var(--vip-primary-soft);
    color: var(--vip-primary-dark);
}
.update-form { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 0; }
.update-form input[type=text] { flex: 1; margin-bottom: 0; }
.update-form .btn { flex-shrink: 0; white-space: nowrap; }
.update-result {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px dashed var(--vip-border);
    font-size: 13px;
    word-break: break-all;
    min-height: 20px;
}
.update-result.is-ok { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
.update-result.is-error { background: #fee2e2; border-color: #fecaca; color: #991b1b; }

/* ----- 管理后台（保持可用） ----- */
.admin-body { background: #f0f2f5; margin: 0; height: 100vh; overflow: hidden; }
.admin-wrap { display: flex; height: 100vh; overflow: hidden; }
.admin-sidebar {
    width: 200px;
    background: #145f6d;
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
    align-self: flex-start;
}
.admin-sidebar h2 { padding: 0 20px 20px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.admin-sidebar nav a { display: block; padding: 10px 20px; color: rgba(255,255,255,.78); font-size: 14px; }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-main {
    flex: 1;
    padding: 25px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; margin-bottom: 25px; }
.stat-card { background: #fff; border-radius: 10px; padding: 20px; text-align: center; box-shadow: var(--vip-shadow); }
.stat-num { font-size: 28px; font-weight: bold; color: var(--vip-primary); }
.stat-label { color: #999; font-size: 13px; margin-top: 5px; }
.install-box { max-width: 500px; margin: 50px auto; background: #fff; padding: 30px; border-radius: 12px; }
.auth-box { max-width: 400px; margin: 80px auto; background: #fff; padding: 30px; border-radius: 12px; box-shadow: var(--vip-shadow); }
.auth-box h2 { margin-bottom: 20px; text-align: center; }

@media (max-width: 960px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { min-height: 240px; padding: 32px 24px; }
    .auth-brand-title { font-size: 22px; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .admin-body { height: auto; overflow: auto; }
    .admin-wrap { flex-direction: column; height: auto; overflow: visible; }
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        overflow-y: visible;
    }
    .admin-main { height: auto; overflow: visible; }
    .nav-toggle { display: inline-block; }
    .vip-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 8px;
    }
    .vip-nav.open { display: flex; }
    .vip-nav a, .vip-nav .user-info { margin: 0; }
    .hero-balance { text-align: left; width: 100%; }
    .hero-actions { justify-content: flex-start; }
    .update-form { flex-direction: column; }
    .update-form .btn { width: 100%; }
    .quick-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .quick-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 20px; }
}
