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

:root {
    --bg: #0f0f0f;
    --accent: #ff4757;
    --text: #fff;
    --text-muted: #999;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #000;
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body.verifying {
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* ========== 移动端背景骨架 ========== */
.site-wrap {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background: #000;
}

.site-wrap.locked {
    pointer-events: none;
    user-select: none;
}

#app {
    width: 100%;
    max-width: 430px;
}

.mobile {
    width: 100%;
    min-height: 100vh;
    background: #111;
    position: relative;
    overflow-x: hidden;
}

.downtop,
.downbottom {
    display: block;
    width: 100%;
    height: auto;
}

/* Tab 栏 */
.tab {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px 16px;
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
}

.tab-item {
    flex: 1;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 0;
    cursor: default;
    position: relative;
    transition: color 0.2s;
}

.tab-item.active {
    color: var(--accent);
    font-weight: 700;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* 内容区 */
.content1 {
    width: 100%;
}

.content1 picture,
.content1 img {
    display: block;
    width: 100%;
    height: auto;
}

/* 右侧悬浮按钮 */
.rightFixed {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.defaultRight {
    cursor: default;
}

.defaultRight picture,
.defaultRight img {
    display: block;
    width: 46px;
    height: auto;
}

.rightExpand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.collapseBtn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collapseBtn img {
    width: 100%;
    height: auto;
}

.rightBtn picture img {
    width: 80px;
}

.rightBtn .btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 8px;
}

.rightBtn .btns div {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

/* ========== 人机验证 ========== */
.verify-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.verify-modal {
    width: 100%;
    max-width: 400px;
    background: rgba(18, 18, 18, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 28px 24px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    position: relative;
}

.verify-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.verify-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.verify-modal.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.verify-header {
    text-align: center;
    margin-bottom: 20px;
}

.verify-shield {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: var(--accent);
}

.verify-shield svg {
    width: 100%;
    height: 100%;
}

.verify-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}

.verify-header p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.verify-prompt {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.verify-prompt strong {
    color: var(--accent);
    font-weight: 600;
}

.captcha-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.captcha-tile {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    background: rgba(30, 30, 30, 0.92);
    transition: border-color 0.2s, transform 0.15s;
    user-select: none;
}

.captcha-tile:hover {
    transform: scale(1.03);
    border-color: rgba(255, 71, 87, 0.4);
}

.captcha-tile.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.25);
}

.captcha-tile.selected::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-tile svg {
    width: 70%;
    height: 70%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.captcha-tile .tile-bg {
    position: absolute;
    inset: 0;
    opacity: 0.12;
}

.verify-footer {
    display: flex;
    gap: 10px;
}

.verify-refresh {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    cursor: pointer;
}

.verify-refresh svg {
    width: 16px;
    height: 16px;
}

.verify-refresh:hover {
    border-color: #666;
    color: var(--text);
}

.verify-submit {
    flex: 1;
    padding: 12px 20px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.verify-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.verify-submit:not(:disabled):hover {
    background: #ff6b7a;
}

.verify-hint {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
}

.verify-hint span {
    color: var(--accent);
    font-weight: 600;
}

.verify-error {
    text-align: center;
    font-size: 13px;
    color: #ff8a8a;
    margin-top: 8px;
}

/* 验证成功 */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-card {
    text-align: center;
    padding: 40px;
}

.success-check {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    color: #22c55e;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-check svg {
    width: 100%;
    height: 100%;
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.success-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.success-loader {
    width: 32px;
    height: 32px;
    margin: 0 auto;
    border: 3px solid #333;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (min-width: 431px) {
    .mobile {
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    }

    .rightFixed {
        right: calc(50% - 215px);
    }
}
