* { margin: 0; padding: 0; box-sizing: border-box }

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f8f9fa;
}

/* 延迟跳转 */
.delay-wrap {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px 32px;
    max-width: 360px;
    width: 90%;
    text-align: center;
}
.delay-label {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.delay-title {
    font-size: 16px;
    margin-bottom: 24px;
}
.delay-count {
    font-size: 56px;
    font-weight: bold;
}
.delay-hint {
    opacity: .7;
    margin-top: 8px;
    font-size: 14px;
}

/* 密码验证 */
.pwd-card {
    width: 400px;
    max-width: 92%;
    padding: 40px 32px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,.08), 0 3px 6px -4px rgba(0,0,0,.12), 0 9px 28px 8px rgba(0,0,0,.05);
}
.pwd-header {
    text-align: center;
    margin-bottom: 32px;
}
.pwd-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: #e6f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.pwd-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: -0.5px;
}
.pwd-hint {
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
}
.pwd-hint strong { color: #1677ff }
.pwd-label {
    display: block;
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
    margin-bottom: 6px;
}
.pwd-input {
    width: 100%;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    transition: border .2s;
    box-sizing: border-box;
}
.pwd-input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22,119,255,.1);
}
.pwd-error {
    color: #ff4d4f;
    font-size: 13px;
    margin: 12px 0;
    min-height: 18px;
}
.pwd-btn {
    width: 100%;
    height: 40px;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}
.pwd-btn:hover { background: #4096ff }

/* 图片跳转 */
.img-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: #f0f2f5;
}
.img-main {
    max-width: 400px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    display: block;
}
.img-gate {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.6);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.img-gate-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 320px;
    width: 90%;
    text-align: center;
}
.img-gate-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.img-gate-hint {
    color: #888;
    font-size: 13px;
    margin-bottom: 12px;
}
.img-gate-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    font-size: 15px;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.img-gate-error {
    color: #f44;
    font-size: 13px;
    margin-bottom: 8px;
    min-height: 16px;
}
.img-gate-btn {
    width: 100%;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    cursor: pointer;
}

/* 年龄验证 */
.age-card {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 48px 32px;
    max-width: 380px;
    width: 90%;
    text-align: center;
}
.age-emoji {
    font-size: 56px;
    margin-bottom: 16px;
}
.age-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.age-desc {
    color: rgba(255,255,255,.7);
    margin-bottom: 32px;
    font-size: 15px;
}
.age-desc strong { color: #ff6b6b }
.age-yes {
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
}
.age-no {
    width: 100%;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    cursor: pointer;
}

/* 防红 */
@keyframes pointUp {
    0%, 100% { transform: translateY(0) }
    50% { transform: translateY(-8px) }
}
.antired-arrow {
    position: fixed;
    top: 0;
    right: 10px;
    z-index: 1000;
    animation: pointUp 1.2s ease-in-out infinite;
}
.antired-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 70px 16px 40px;
}
.antired-card {
    width: 400px;
    max-width: 92%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,.08), 0 3px 6px -4px rgba(0,0,0,.12), 0 9px 28px 8px rgba(0,0,0,.05);
    overflow: hidden;
}
.antired-head {
    background: linear-gradient(135deg, #1677ff, #4096ff);
    padding: 28px 24px;
    text-align: center;
}
.antired-head-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}
.antired-head-sub {
    color: rgba(255,255,255,.8);
    font-size: 13px;
    margin-top: 6px;
}
.antired-body {
    padding: 28px 24px 32px;
    text-align: center;
}
.antired-step {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}
.antired-step-sub {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 28px;
}
.antired-icons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto 28px;
    max-width: 240px;
}
.antired-icon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    padding: 12px 16px;
}
.antired-icon-android {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
}
.antired-icon-ios {
    background: #e6f4ff;
    border: 1px solid #91caff;
}
.antired-icon-label {
    font-size: 15px;
    color: #1f2937;
    font-weight: 500;
}
.antired-footer {
    border-top: 1px solid #f0f0f0;
    margin: 0 -24px;
    padding: 20px 24px 0;
}
.antired-footer-text {
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 4px;
}
.antired-copy-btn {
    background: #fff;
    color: #1677ff;
    border: 1px solid #1677ff;
    border-radius: 6px;
    padding: 10px 40px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    margin-top: 12px;
}
.antired-copy-btn:hover {
    background: #1677ff;
    color: #fff;
}
.antired-copy-tip {
    color: #52c41a;
    font-size: 13px;
    margin-top: 8px;
    min-height: 20px;
}

/* 错误提示 */
.error-msg {
    text-align: center;
    color: #999;
    font-size: 16px;
    padding: 40px;
}

/* 强开 iframe */
.iframe-full {
    width: 100%;
    height: 100%;
    border: none;
}

/* 背景图案 */
.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d1d5db' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
