/* 一键部署平台 - 样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: #f0f4f8;
    color: #2d3748;
    min-height: 100vh;
}
.wrap { max-width: 560px; margin: 60px auto 40px; padding: 0 16px; }
.wrap-wide { max-width: 1120px; }
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 32px;
}
.card h1 { font-size: 22px; margin-bottom: 8px; color: #1a202c; }
.muted { color: #718096; font-size: 13px; line-height: 1.7; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 6px; color: #4a5568; }
.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus { border-color: #3182ce; }
.btn {
    display: inline-block;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    background: #e2e8f0;
    color: #2d3748;
    transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: #3182ce; color: #fff; width: 100%; }
.btn-danger { background: #e53e3e; color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
}
.alert-success { background: #f0fff4; border: 1px solid #9ae6b4; color: #276749; }
.alert-error   { background: #fff5f5; border: 1px solid #feb2b2; color: #9b2c2c; }
.alert-info    { background: #ebf8ff; border: 1px solid #90cdf4; color: #2b6cb0; }
.alert-warn    { background: #fffaf0; border: 1px solid #fbd38d; color: #975a16; }
.panel { margin-top: 22px; }
.panel h2 { font-size: 17px; margin-bottom: 10px; color: #1a202c; }
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 14px;
}
.topbar h1 { margin: 0; font-size: 20px; }
.club-list { list-style: none; }
.club-list li {
    padding: 8px 12px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 14px;
}
hr { border: none; border-top: 1px solid #e2e8f0; margin: 20px 0; }
.alert a { color: inherit; font-weight: bold; }
.table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.table th, .table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}
.table th { color: #4a5568; background: #f7fafc; }
.table td.ops { white-space: nowrap; }
.table a { color: #3182ce; text-decoration: none; }
.table a:hover { text-decoration: underline; }
.panel-danger {
    border: 1px solid #feb2b2;
    border-radius: 10px;
    padding: 16px 18px;
    background: #fff5f5;
}
.panel-danger h2 { color: #9b2c2c; }
.panel-danger .btn-danger { width: auto; }

/* ==================== 总后台管理端样式 ==================== */
body { background: #eef2f7; }
.admin-shell { margin-top: 22px; }
.admin-topbar {
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(135deg, #1e3a8a, #0ea5e9);
    border-radius: 14px; padding: 16px 22px; color: #fff;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.25);
}
.admin-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.admin-user { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.admin-user .btn-ghost { background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.admin-user .btn-ghost:hover { background: rgba(255,255,255,0.3); }
.admin-tabs { display: flex; gap: 8px; margin: 16px 0 8px; flex-wrap: wrap; }
.admin-tabs .tab {
    padding: 9px 20px; border-radius: 999px; text-decoration: none; font-size: 14px;
    background: #fff; color: #475569; border: 1px solid #e2e8f0; transition: all .2s;
}
.admin-tabs .tab:hover { border-color: #93c5fd; color: #2563eb; }
.admin-tabs .tab.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.card h2 { font-size: 17px; margin-bottom: 12px; color: #1a202c; }
.card textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #cbd5e0; border-radius: 8px;
    font-size: 15px; font-family: inherit; outline: none; resize: vertical;
}
.card textarea:focus { border-color: #3182ce; }
.card select {
    width: 100%; padding: 10px 12px; border: 1px solid #cbd5e0; border-radius: 8px;
    font-size: 15px; background: #fff; outline: none;
}
.card select:focus { border-color: #3182ce; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-ok { background: #f0fff4; color: #276749; border: 1px solid #9ae6b4; }
.badge-off { background: #fff5f5; color: #9b2c2c; border: 1px solid #feb2b2; }
.inline-form { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; }
.inline-form input { width: 70px; padding: 5px 8px; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 13px; }
.btn-warn { background: #ed8936; color: #fff; }

/* ==================== 登录页：高档现代风格 ==================== */
.login-body {
    min-height: 100vh;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #0b1026 0%, #1e1b4b 45%, #0e7490 100%);
    background-size: 200% 200%;
    animation: px-bg-flow 14s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}
.login-body::before, .login-body::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0;
}
.login-body::before { width: 340px; height: 340px; background: rgba(99,102,241,.45); top: -120px; left: -80px; }
.login-body::after { width: 380px; height: 380px; background: rgba(34,211,238,.30); bottom: -140px; right: -90px; }
@keyframes px-bg-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.auth-wrap { position: relative; z-index: 1; width: 100%; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; }
.auth-card {
    width: 100%; max-width: 408px;
    background: rgba(255,255,255,.085);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    padding: 34px 30px 26px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 26px 70px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12);
    color: #eef2ff;
    text-align: center;
    animation: px-card-in .55s ease-out;
}
@keyframes px-card-in {
    from { opacity: 0; transform: translateY(22px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-logo {
    width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 20px;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    box-shadow: 0 12px 30px rgba(99,102,241,.45);
}
.auth-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: .5px; }
.auth-sub { margin: 6px 0 0; font-size: 13px; color: #a5b4fc; }
.auth-alert {
    margin-top: 18px; padding: 10px 13px; border-radius: 12px; text-align: left;
    background: rgba(248,113,113,.14); border: 1px solid rgba(248,113,113,.38); color: #fecaca; font-size: 13.5px;
}
.auth-form { margin-top: 24px; text-align: left; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 13px; font-weight: 600; color: #c7d2fe; margin-bottom: 7px; }
.auth-input {
    display: flex; align-items: center; gap: 10px;
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 13px;
    padding: 0 14px;
    transition: border-color .2s, box-shadow .2s;
}
.auth-input:focus-within { border-color: #818cf8; box-shadow: 0 0 0 4px rgba(99,102,241,.22); }
.auth-input svg { width: 19px; height: 19px; color: #818cf8; flex: 0 0 auto; }
.auth-input input {
    flex: 1; min-width: 0; background: transparent; border: none; outline: none;
    color: #eef2ff; font-size: 15px; padding: 13px 0; font-family: inherit;
}
.auth-input input::placeholder { color: #7b86a8; }
.auth-btn {
    width: 100%; margin-top: 6px; border: none; border-radius: 13px; padding: 14px;
    font-size: 16px; font-weight: 700; letter-spacing: 4px; color: #fff; cursor: pointer;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    box-shadow: 0 12px 28px rgba(99,102,241,.4);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(99,102,241,.52); filter: brightness(1.06); }
.auth-btn:active { transform: translateY(0); box-shadow: 0 8px 18px rgba(99,102,241,.4); }
.auth-tip { margin-top: 20px; font-size: 12px; color: #8b93a8; line-height: 1.7; text-align: left; }
.auth-foot { margin-top: 18px; font-size: 12px; color: rgba(226,232,255,.5); }

/* 登录页手机适配 */
@media (max-width: 480px) {
    .auth-card { padding: 28px 20px 22px; border-radius: 18px; }
    .auth-title { font-size: 21px; }
    .auth-logo { width: 64px; height: 64px; }
}

/* ==================== 后台/通用移动端适配 ==================== */
@media (max-width: 720px) {
    .wrap { padding: 14px 12px 24px; }
    .topbar { flex-wrap: wrap; gap: 8px; }
    .topbar .right { margin-left: auto; }
    .grid { grid-template-columns: 1fr; gap: 12px; }
    .card { padding: 14px; }
    .table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table { min-width: 560px; }
    .btn { padding: 10px 14px; font-size: 14px; }
}
.inline-form input[type="number"] { width: 84px; }
