.nav-login { margin-left: auto; }
.nav-login a {
background: #5DA552;
color: #fff;
padding: 6px 18px;
border-radius: 20px;
font-size: 13px;
font-weight: 500;
transition: all 0.3s ease;
letter-spacing: 1px;
}
.nav-login a:hover {
background: #4a8a41;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(93,165,82,0.4);
}
.nav-login a.active { background: #4a8a41; }
.nav-login a.active::after { display: none !important; }
.login-container {
max-width: 420px;
margin: 80px auto;
background: #fff;
border-radius: var(--radius);
padding: 40px;
box-shadow: var(--shadow);
}
.login-container h2 {
text-align: center;
margin-bottom: 30px;
color: var(--deep-gray);
}
.login-form .form-group {
margin-bottom: 20px;
}
.login-form label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: var(--deep-gray);
}
.login-hint {
text-align: center;
color: var(--text-light-gray);
font-size: 13px;
margin-top: 15px;
}
.login-hint a {
color: var(--primary-color);
}
.error-msg {
background: #f8d7da;
color: #721c24;
padding: 12px 15px;
border-radius: var(--radius-small);
margin-bottom: 20px;
border-left: 4px solid var(--danger);
font-size: 14px;
}
.info-card {
background: #fff;
border-radius: var(--radius);
box-shadow: var(--shadow);
overflow: hidden;
margin-top: 30px;
}
.info-header {
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
color: #fff;
padding: 30px;
text-align: center;
}
.info-header h2 {
margin: 0;
font-size: 24px;
}
.info-header .player-avatar {
width: 80px;
height: 80px;
border-radius: 6px;
border: 3px solid rgba(255,255,255,0.4);
object-fit: cover;
margin: 0 auto 15px;
display: block;
}
.player-avatar-fallback {
width: 80px;
height: 80px;
border-radius: 6px;
background: rgba(255,255,255,0.2);
display: none;
align-items: center;
justify-content: center;
margin: 0 auto 15px;
font-size: 36px;
}
.info-body {
padding: 30px;
}
.info-table {
width: 100%;
}
.info-table tr {
border-bottom: 1px solid var(--border-color);
}
.info-table tr:last-child {
border-bottom: none;
}
.info-table td {
padding: 16px 10px;
vertical-align: middle;
}
.info-table .label {
font-weight: 600;
color: var(--text-gray);
width: 120px;
font-size: 14px;
}
.info-table .value {
color: var(--text-dark);
font-size: 16px;
}
.badge-active {
display: inline-block;
padding: 4px 12px;
border-radius: 20px;
font-size: 13px;
font-weight: 600;
}
.badge-banned {
background: #f8d7da;
color: #c62828;
}
.badge-clean {
background: #d4edda;
color: #2e7d32;
}
.balance-amount {
font-size: 20px;
font-weight: 700;
color: #f5a623;
}
.exchange-btn {
margin-left: 10px;
padding: 3px 12px;
font-size: 12px;
font-weight: 600;
color: var(--primary-color, #2d8cf0);
background: #fff;
border: 1px solid var(--primary-color, #2d8cf0);
border-radius: 12px;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
}
.exchange-btn:hover {
background: var(--primary-color, #2d8cf0);
color: #fff;
}
.logout-bar {
text-align: right;
margin-top: 10px;
}
.logout-bar a {
font-size: 14px;
color: var(--text-light-gray);
}
.logout-bar a:hover {
color: var(--danger);
}
.player-info-container {
max-width: 600px;
margin: 40px auto;
}
/* 封禁历史 */
.ban-history-card {
margin-top: 20px;
}
.ban-history-card .ban-history-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 25px;
border-bottom: 1px solid var(--border-color);
}
.ban-history-card .ban-history-header h3 {
margin: 0;
font-size: 16px;
color: var(--deep-gray);
}
.ban-count {
font-size: 13px;
color: var(--text-light-gray);
}
.ban-history-body {
padding: 15px 25px;
}
.ban-record {
border: 1px solid var(--border-color);
border-radius: var(--radius-small);
margin-bottom: 12px;
overflow: hidden;
}
.ban-record:last-child {
margin-bottom: 0;
}
.ban-active {
border-left: 4px solid var(--danger);
}
.ban-expired {
border-left: 4px solid var(--success);
opacity: 0.85;
}
.ban-record-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 15px;
background: #f8f9fa;
border-bottom: 1px solid var(--border-color);
}
.ban-status-tag {
font-size: 13px;
font-weight: 600;
}
.tag-banned { color: var(--danger); }
.tag-unbanned { color: var(--success); }
.ban-date {
font-size: 12px;
color: var(--text-light-gray);
}
.ban-record-body {
padding: 12px 15px;
}
.ban-reason {
font-size: 14px;
color: var(--text-dark);
margin-bottom: 8px;
line-height: 1.5;
}
.ban-label {
font-weight: 600;
color: var(--text-gray);
}
.ban-meta {
display: flex;
gap: 20px;
font-size: 12px;
color: var(--text-light-gray);
margin-bottom: 6px;
flex-wrap: wrap;
}
.ban-unban-info {
font-size: 13px;
color: var(--success);
margin-top: 6px;
padding-top: 6px;
border-top: 1px dashed var(--border-color);
}
.ban-history-link {
font-size: 13px;
color: var(--info);
cursor: pointer;
text-decoration: none;
white-space: nowrap;
}
.ban-history-link:hover {
color: #1976d2;
text-decoration: underline;
}
.last-update {
text-align: center;
color: var(--text-light-gray);
font-size: 12px;
margin-top: 20px;
}

/* 每日抽奖 */
.lottery-card {
    margin-top: 20px;
    text-align: center;
}
.lottery-header {
    padding: 15px 25px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}
.lottery-header:hover {
    background: #f8f9fa;
}
.lottery-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--deep-gray);
}
.lottery-header.active #lotteryArrow {
    transform: rotate(90deg);
}
.lottery-subtitle {
    display: block;
    font-size: 13px;
    color: var(--text-light-gray);
    margin-top: 6px;
}
.lottery-body {
    padding: 25px;
}
.lottery-done-icon {
    font-size: 48px;
    margin-bottom: 10px;
}
.lottery-done-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}
.lottery-done-hint {
    font-size: 14px;
    color: var(--text-light-gray);
    margin: 8px 0 0;
}
.lottery-ready-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}
.lottery-ready-hint {
    font-size: 14px;
    color: var(--text-light-gray);
    margin: 8px 0 0;
}
.lottery-ready-hint strong {
    color: #f5a623;
    font-size: 16px;
}
.btn-lottery {
    background: linear-gradient(135deg, #f5a623, #f39c12);
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}
.btn-lottery:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.5);
    background: linear-gradient(135deg, #f7b731, #e67e22);
}
.btn-lottery:active {
    transform: translateY(0) scale(0.98);
}
.lottery-result {
    margin-top: 18px;
    padding: 12px 18px;
    border-radius: var(--radius-small);
    font-size: 16px;
    font-weight: 600;
    animation: fadeInUp 0.5s ease;
}
.lottery-result-success {
    background: #d4edda;
    color: #2e7d32;
    border-left: 4px solid #28a745;
}
.lottery-result-info {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 滑块验证按钮 */
.captcha-placeholder {
    min-height: 0;
    max-height: 0;
    overflow: hidden;
}
.btn-captcha {
    display: inline-block;
    background: #f0f0f0;
    color: var(--text-dark);
    border: 2px dashed #ccc;
    padding: 10px 30px;
    font-size: 15px;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}
.btn-captcha:hover {
    background: #e8e8e8;
    border-color: #999;
}
.btn-captcha:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
.captcha-status {
    padding: 10px 15px;
    background: #d4edda;
    color: #2e7d32;
    border-radius: var(--radius-small);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
}

/* ===== AI 助手入口卡片（2026-11-20 重做）===== */
.ai-card {
    margin-top: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f5faf3 100%);
    border: 1px solid #e4efe1;
}
.ai-card:hover {
    box-shadow: 0 8px 24px rgba(74, 138, 65, 0.14);
}
.ai-card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}
.ai-card-icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #7bc56f, #4a8a41);
    box-shadow: 0 6px 14px rgba(93, 165, 82, 0.32);
}
.ai-card-icon svg {
    width: 26px;
    height: 26px;
    display: block;
}
.ai-card-text {
    flex: 1 1 auto;
    min-width: 0;
}
.ai-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 5px;
    font-size: 17px;
    font-weight: 700;
    color: var(--deep-gray);
    line-height: 1.3;
}
.ai-card-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    /* 原 #999 在浅底上只有 3:1 左右，正文级别不达标，压深一档 */
    color: #667085;
}
.ai-card-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(93, 165, 82, 0.30);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.ai-card-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(93, 165, 82, 0.42);
    filter: brightness(1.05);
}
.ai-card-btn:active {
    transform: translateY(0) scale(.98);
}
.ai-card-btn:focus-visible {
    outline: 2px solid #2f6b28;
    outline-offset: 2px;
}
.ai-card-btn .ai-arrow {
    transition: transform .2s ease;
}
.ai-card-btn:hover .ai-arrow {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .ai-card { margin-top: 16px; }
    .ai-card-body {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 15px 15px;
    }
    .ai-card-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }
    .ai-card-icon svg { width: 22px; height: 22px; }
    .ai-card-text { flex: 1 1 calc(100% - 56px); }
    .ai-card-title { font-size: 16px; margin-bottom: 4px; }
    .ai-card-desc { font-size: 12px; line-height: 1.55; }
    .ai-card-btn {
        order: 3;
        width: 100%;
        padding: 13px 16px;
        font-size: 14.5px;
        border-radius: 11px;
        /* 拇指区足够大，且避开 iOS 底部安全区 */
        min-height: 46px;
    }
}
