/* 全局重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
}

/* 全局背景与基础布局 */
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 50%, #f72585 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
    position: relative;
}

/* 通用卡片样式 */
.card {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px 30px;
    margin-bottom: 30px;
}

.login-card {
    text-align: center;
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2d3748;
    letter-spacing: 1.2px;
}

/* 密码输入组 */
.input-group {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
}

.pwd-input {
    width: 100%;
    height: 56px;
    padding: 0 24px 0 56px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 18px;
    outline: none;
    background: #f8fafc;
    transition: all 0.3s ease;
}
.pwd-input:focus, .pwd-input:hover {
    border-color: #4361ee;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.12);
    background: #fff;
}

.lock-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #94a3b8;
    transition: color 0.3s ease;
}
.pwd-input:focus + .lock-icon {
    color: #4361ee;
}

/* 错误提示 */
.error-tip {
    color: #dc2626;
    font-size: 16px;
    margin-bottom: 20px;
    animation: shake 0.6s ease;
}
@keyframes shake {
    0%,100%{transform: translateX(0);}
    25%{transform: translateX(-6px);}
    75%{transform: translateX(6px);}
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}
.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(67, 97, 238, 0.3);
}
.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

/* 成功页面 */
.success-card {
    text-align: center;
}
.success-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 50%, #f72585 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* 5个美化按钮 */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 30px 0;
}
.custom-btn {
    flex: 1;
    min-width: 80px;
    height: 48px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}
.btn-1 { background: linear-gradient(135deg, #3a86ff, #0066ff); }
.btn-2 { background: linear-gradient(135deg, #8338ec, #6a0dad); }
.btn-3 { background: linear-gradient(135deg, #ff006e, #d62828); }
.btn-4 { background: linear-gradient(135deg, #fb5607, #ff9e00); }
.btn-5 { background: linear-gradient(135deg, #38b000, #007700); }
.custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.custom-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.15);
}

/* RSS展示区 */
.rss-content {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none;
}
.rss-title-main {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}
.rss-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.rss-item {
    padding-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
}
.rss-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.rss-title a {
    font-size: 16px;
    font-weight: 600;
    color: #4361ee;
    text-decoration: none;
    transition: color 0.3s ease;
}
.rss-title a:hover {
    color: #7209b7;
    text-decoration: underline;
}
.rss-desc {
    font-size: 14px;
    color: #4a5568;
    margin: 8px 0;
    line-height: 1.6;
}
.rss-date {
    font-size: 12px;
    color: #94a3b8;
}

/* 封禁页面 */
.ban-card {
    color: #dc2626;
}
.ban-title {
    color: #dc2626;
    font-size: 24px;
    margin-bottom: 20px;
}
.ban-countdown {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}
.ban-evidence {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}
.ban-evidence-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3748;
}
.evidence-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}
.evidence-item {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
}

/* 页脚 */
.footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0 20px;
    z-index: 999;
}
.footer-text {
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    line-height: 1.8;
    backdrop-filter: blur(5px);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}

/* 响应式适配 */
@media screen and (max-width: 767px) {
    .card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    .card-title {
        font-size: 24px;
    }
    .pwd-input, .submit-btn {
        height: 48px;
        font-size: 16px;
    }
    .success-title {
        font-size: 36px;
    }
    .custom-btn {
        height: 44px;
        font-size: 15px;
        min-width: 70px;
    }
    .btn-group {
        gap: 10px;
    }
    .ban-countdown {
        font-size: 18px;
    }
    .rss-content {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    .footer-text {
        font-size: 12px;
        padding: 10px 15px;
    }
}
@media screen and (max-width: 375px) {
    .card {
        padding: 25px 15px;
    }
    .evidence-item {
        font-size: 13px;
    }
    .custom-btn {
        min-width: 60px;
        height: 40px;
    }
    .btn-group {
        gap: 8px;
    }
}
/* 按钮5网址跳转弹窗 - 遮罩层 */
.url-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 9998;
}

/* 按钮5网址跳转弹窗 - 主体容器 */
.url-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* 弹窗标题 */
.url-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

/* 弹窗输入组 */
.url-modal-input-group {
    margin-bottom: 25px;
}

/* 弹窗输入框 */
.url-modal-input {
    width: 100%;
    height: 50px;
    padding: 0 18px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}
.url-modal-input:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.12);
}
.url-modal-input::placeholder {
    color: #94a3b8;
}

/* 弹窗按钮组 */
.url-modal-btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* 弹窗按钮通用样式 */
.url-modal-btn {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 取消按钮 */
.cancel-btn {
    background: #e2e8f0;
    color: #4a5568;
}
.cancel-btn:hover {
    background: #cbd5e1;
}

/* 确认跳转按钮 */
.confirm-btn {
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    color: #fff;
}
.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(67, 97, 238, 0.3);
}

/* 响应式适配小屏手机 */
@media screen and (max-width: 375px) {
    .url-modal {
        padding: 20px 15px;
    }
    .url-modal-title {
        font-size: 18px;
    }
    .url-modal-input {
        height: 44px;
        font-size: 15px;
    }
    .url-modal-btn {
        height: 44px;
        font-size: 15px;
    }
}
/* 新增：隐藏按钮样式（默认完全隐藏，不影响布局） */
.hidden-btn {
    display: none !important; /* 优先级最高，确保隐藏 */
    visibility: hidden;
    pointer-events: none; /* 禁止点击事件，防止误触 */
}
/* 新增：生日提醒框样式（与页面风格统一，中号标题） */
.birthday-remind-box {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
/* 中号生日标题 */
.birthday-title {
    font-size: 20px; /* 中号字体，与RSS主标题一致 */
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}
/* 生日内容样式 */
.birthday-content {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.8;
    text-align: center;
}

/* 响应式适配（与页面其他模块同步） */
@media screen and (max-width: 767px) {
    .birthday-remind-box {
        padding: 20px 15px;
        margin: 15px 0;
    }
    .birthday-title {
        font-size: 18px;
    }
    .birthday-content {
        font-size: 15px;
    }
}
@media screen and (max-width: 375px) {
    .birthday-remind-box {
        padding: 18px 12px;
    }
    .birthday-content {
        font-size: 14px;
    }
}