/* ================= 投票系统前台样式 (完全照搬 vnidi.eu.cc) ================= */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; min-height: 100%; }
body.vote-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: #1f2937;
    background: #f4f6f8;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ===================== 投票主页 (VoteCampaign) ===================== */
.vote-home { min-height: 100vh; background: #f0f2f5; }
.vote-home .vote-header {
    height: 44px; line-height: 44px; text-align: center;
    font-size: 17px; font-weight: 600; color: #fff;
    background: linear-gradient(90deg, #ff7a00, #ff9500);
    position: sticky; top: 0; z-index: 10;
}
.vote-home .vote-body {
    background: linear-gradient(180deg, #fff 80px, #f0f2f5 130px);
    padding-bottom: 20px;
}

/* Banner 轮播 */
.banner-wrap { position: relative; height: 160px; overflow: hidden; }
.banner-track { display: flex; height: 100%; transition: transform .3s ease; }
.banner-slide { flex: 0 0 100%; height: 100%; }
.banner-image { width: 100%; height: 160px; object-fit: cover; display: block; }
.banner-dots {
    position: absolute; left: 0; right: 0; bottom: 8px;
    display: flex; justify-content: center; gap: 6px;
}
.banner-dot { width: 8px; height: 8px; border-radius: 50%; background: #ddd; }
.banner-dot.active { background: #3264ff; }

/* Nav box (活动规则按钮) */
.nav-box { display: flex; justify-content: space-around; align-items: center; padding-top: 30px; }
.btn {
    width: 35%; height: 32px; line-height: 32px; font-size: 13px;
    border: 0; border-radius: 3px;
    background: linear-gradient(90deg, #ff4500, orange);
    color: #fff; text-align: center; cursor: pointer;
}

/* 区块标题(背景图) */
.section-title-wrap { display: flex; justify-content: center; align-items: center; margin-top: 30px; }
.section-title {
    width: 240px; height: 70px; line-height: 75px;
    color: #fff; text-align: center;
    padding-top: 13px; padding-right: 20px;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    box-sizing: border-box; font-weight: 600;
}

/* 选手网格 */
.pro-box {
    padding: 12px; margin-top: 30px;
    display: flex; justify-content: space-between; flex-wrap: wrap;
    min-height: 300px;
}
.pro-item {
    background: #fff; border-radius: 8px;
    box-sizing: border-box; display: flex; flex-direction: column;
    margin-bottom: 20px; width: calc(50% - 6px);
    padding: 10px; box-shadow: 0 2px 8px #0f294d33;
}
.pro-image-btn, .pro-vote-link {
    border: 0; padding: 0; background: transparent;
    text-align: inherit; cursor: pointer;
}
.pro-image { width: 100%; height: 130px; object-fit: cover; display: block; border-radius: 4px; }
.pro-title { font-weight: 600; color: #555; margin-top: 10px; text-align: center; }
.vote-btn { width: 100%; margin-top: 10px; }

/* 底部 banner */
.footer-banner { width: 100%; height: 100px; margin-top: 20px; display: block; object-fit: cover; }

/* 模态 */
.mask {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, .5);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; padding: 16px; box-sizing: border-box;
}
.modal {
    background: #fffbf0; border: 1px solid #ffe8b1;
    padding: 20px; border-radius: 8px;
    width: 100%; max-width: 375px;
    overflow: hidden;
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.modal-title { font-weight: 600; font-size: 15px; }
.modal-thumb { width: 56px; height: 45px; object-fit: contain; }
.modal-content { max-height: 300px; overflow-y: auto; line-height: 26px; font-size: 13px; color: #333; }
.modal-intro { text-indent: 2rem; margin: 0 0 8px; }
.modal-content h3 { margin: 10px 0 4px; font-size: 15px; }
.modal-content p { margin: 0 0 6px; }
.modal-close-btn { width: 100%; height: 40px; line-height: 40px; margin-top: 20px; }
.image-modal { max-width: 420px; }
.preview-image { width: 100%; display: block; border-radius: 4px; }

/* ===================== 验证页 (AuthVerify) ===================== */
.auth-page { min-height: 100vh; background: #fff; }
.auth-header {
    height: 44px; display: grid; grid-template-columns: 44px 1fr 44px;
    align-items: center;
    background: linear-gradient(90deg, #ff7a00, #ff9500);
    color: #fff;
}
.back-btn {
    border: 0; background: transparent; color: #fff;
    font-size: 28px; line-height: 1; cursor: pointer; padding: 0;
}
.header-title { text-align: center; font-size: 17px; font-weight: 600; }
.header-spacer { width: 44px; }
.auth-body { padding-bottom: 20px; }
.logo-wrap { display: flex; justify-content: center; align-items: center; padding: 30px 0 20px; }
.line-logo { width: 100px; height: 100px; display: block; }
.welcome-title { margin: 0; text-align: center; font-size: 18px; font-weight: 600; color: #111; }
.welcome-desc {
    margin: 10px 0 0; padding: 0 50px;
    text-align: center; font-size: 13px; line-height: 1.6; color: #333;
}
.form-card {
    margin: 30px 20px 0; padding: 15px; border-radius: 5px;
    box-shadow: 0 2px 8px #0f294d33; background: #fff;
}
.step-title { font-weight: 600; font-size: 14px; color: #333; }
.field-cell { position: relative; margin-bottom: 10px; }
.field-label { display: block; margin-bottom: 4px; font-size: 13px; color: #646566; }
.required { color: #dd524d; margin-right: 2px; }
.field-input {
    width: 100%; height: 35px; line-height: 35px;
    border: 0; border-bottom: 1px solid #eee;
    background: transparent; color: #646566;
    font-size: 13px; padding: 0 0 0 10px;
    outline: none; box-sizing: border-box;
}
.field-input::placeholder { color: #d9d9d9; font-size: 11px; }
.sms-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sms-row .field-input { flex: 1; min-width: 0; }
.send-btn {
    flex-shrink: 0; border: 0; background: #eee; color: #333;
    font-size: 11px; padding: 5px 15px; border-radius: 3px; cursor: pointer;
}
.send-btn:disabled { opacity: .7; cursor: not-allowed; }
.not-received-btn {
    display: block; margin: 10px 0 0 auto; width: fit-content;
    border: 0; background: transparent; color: #ff9700;
    font-size: 13px; cursor: pointer; padding: 0;
}
.not-received-btn:disabled { opacity: .7; cursor: not-allowed; }
.submit-btn {
    width: 100%; height: 40px; line-height: 40px; margin-top: 15px;
    border: 0; border-radius: 3px;
    background: linear-gradient(90deg, #ff4500, orange);
    color: #fff; font-size: 13px;
    text-align: center; cursor: pointer;
}
.bottom-banner { display: block; width: 100%; height: 100px; margin-top: 50px; object-fit: cover; }

.tip-modal, .checking-modal, .tutorial-modal {
    background: #fffbf0; border: 1px solid #ffe8b1;
    border-radius: 8px; padding: 20px;
    width: 100%; max-width: 375px; overflow: hidden;
}
.tutorial-modal { max-height: calc(100vh - 32px); overflow-y: auto; }
.tip-title { text-align: center; font-weight: 600; font-size: 15px; }
.tip-text { margin: 0; padding: 30px 10px 20px; text-align: center; font-weight: 600; font-size: 14px; line-height: 1.6; color: #333; }
.tip-close-btn, .tutorial-close-btn { margin-top: 20px; }
.tutorial-step + .tutorial-step { margin-top: 20px; }
.tutorial-image { display: block; width: 100%; height: auto; }
.checking-modal { text-align: center; background: #fff; border-color: #eee; }
.loading-spinner {
    width: 46px; height: 46px; margin: 0 auto 10px;
    border-radius: 50%; border: 4px solid #d6d6d6;
    border-top-color: #00c854;
    animation: vt-spin 1s linear infinite;
}
.checking-title { margin: 0; font-size: 18px; font-weight: 600; }
.checking-text { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: #333; }
@keyframes vt-spin { 0% { transform: rotate(0) } to { transform: rotate(360deg) } }

@media (max-width: 640px) {
    .welcome-desc { padding: 0 24px; }
    .form-card { margin: 24px 16px 0; }
}

/* ===================== Toast ===================== */
.vote-toast {
    position: fixed; left: 50%; bottom: 15%;
    transform: translate(-50%, 20px);
    max-width: 84%;
    background: rgba(20, 24, 40, .88); color: #fff;
    font-size: 14px; line-height: 1.6; border-radius: 8px;
    padding: 10px 16px; opacity: 0;
    transition: all .3s ease; z-index: 9999; text-align: center;
}
.vote-toast.show { opacity: 1; transform: translate(-50%, 0); }
