/* ========== 全局基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: #ffffff;
    font-family: "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ========== 初始验证页（全黑遮挡） ========== */
#initial-verify {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.verify-title {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}
.verify-btn {
    padding: 12px 40px;
    background: #800080;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(128, 0, 128, 0.5);
}
.verify-btn:hover {
    background: #9932CC;
    box-shadow: 0 0 25px rgba(153, 50, 204, 0.8);
    transform: scale(1.05);
}

/* ========== 文字点选验证层 ========== */
#captcha-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000 !important;
    z-index: 9998;
    display: none;
    justify-content: center;
    align-items: center;
}
.img-captcha-box {
    width: 480px;
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    text-align: center;
    position: relative;
}
.captcha-img-tip {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333333;
    text-align: left;
    font-weight: bold;
}
/* 格子融合背景 */
.captcha-img-container {
    width: 100%;
    height: 380px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-image: 
        linear-gradient(45deg, #ff80b3 25%, transparent 25%),
        linear-gradient(-45deg, #ff80b3 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ff80b3 75%),
        linear-gradient(-45deg, transparent 75%, #ff80b3 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
    background-color: #ff99cc;
    background-blend-mode: soft-light;
    box-shadow: inset 0 0 100px rgba(255, 153, 204, 0.5);
}
/* 文字与背景高度融合 */
.captcha-img-word {
    position: absolute;
    font-size: 42px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff6699, #ff80b3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 1px 1px 2px rgba(255, 102, 153, 0.2);
    user-select: none;
    transition: all 0.3s;
    transform: rotate(calc(var(--rotate) * 1deg)) scale(var(--scale));
    opacity: 0.75;
    z-index: var(--z-index);
}
.captcha-img-word:hover {
    transform: rotate(calc(var(--rotate) * 1deg)) scale(calc(var(--scale) + 0.1));
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 102, 153, 0.5);
}
.captcha-img-word.selected::before {
    content: attr(data-seq);
    position: absolute;
    left: -18px;
    top: -18px;
    width: 32px;
    height: 32px;
    background: #1677ff;
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    line-height: 32px;
    text-align: center;
    font-weight: bold;
    z-index: 99;
}
.captcha-img-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
.captcha-img-refresh {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
}
.captcha-img-confirm {
    padding: 10px 30px;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}
.captcha-result {
    margin-top: 12px;
    font-size: 16px;
    height: 22px;
    font-weight: 500;
}
.captcha-result.error {
    color: #ff0000 !important;
    font-weight: bold;
}
.captcha-result.success {
    color: #00b42a;
}

/* ========== 进入动画 ========== */
#entry-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0A043C, #5C0099, #9900CC, #6A0DAD);
    background-size: 400% 400%;
    animation: gradientFlow 3s ease-in-out, fadeOut 0.5s ease-in-out 3s forwards;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9997;
}
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.loader {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 18px;
}
#entry-animation p {
    font-size: 20px;
    color: #ffffff;
    font-weight: 500;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* ========== 公告弹窗 ========== */
.announcement-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #165DFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    z-index: 99;
}
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9996;
}
.announcement-content {
    width: 90%;
    max-width: 600px;
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    animation: fadeInFromCenter 0.5s ease-in-out;
}
@keyframes fadeInFromCenter {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}
.announcement-title {
    font-size: 24px;
    color: #165DFF;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    text-align: center;
}
.announcement-main {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}
.announcement-close {
    margin-top: 20px;
    padding: 8px 20px;
    background: #165DFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ========== 网站主体 ========== */
.top-section {
    width: 100%;
    background: #f0f0f0;
    padding: 25px 0;
    margin: 60px 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.main-title {
    color: #165DFF;
    font-size: 48px;
    font-weight: bold;
    text-align: center;
}
.card-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}
.card {
    width: 260px;
    height: 280px;
    background: linear-gradient(135deg, #0A043C, #5C0099, #9900CC, #6A0DAD);
    background-size: 400% 400%;
    animation: gradientFlow 8s linear infinite;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #ffffff;
    font-size: 16px;
}
.card-btn {
    margin-top: 15px;
    padding: 8px 20px;
    background: #ffffff;
    color: #6A0DAD;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* ========== 底部版权 ========== */
.footer {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 30px 0;
    margin-top: auto;
    position: relative;
    line-height: 1.8;
}
.footer-left {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
}
.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .footer-left {
        position: static;
        text-align: center;
        margin-bottom: 15px;
    }
    .img-captcha-box {
        width: 95%;
    }
    .captcha-img-container {
        height: 300px;
        background-size: 30px 30px;
    }
}