* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(135deg, #101828 0%, #1d2939 45%, #0b1220 100%);
    color: #101828;
    min-height: 100vh;
}
a { color: #2563eb; }
.page-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 14px 60px;
}
.poster-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    padding: 10px;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    margin-bottom: 18px;
}
.poster-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(0,0,0,.18);
}
.poster-slide {
    display: none;
}
.poster-slide.active {
    display: block;
}
.poster-img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 16px;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(16,24,40,.62);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}
.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }
.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    cursor: pointer;
}
.carousel-dot.active { background: #fff; transform: scale(1.25); }
.notice-card {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 18px;
    padding: 18px 22px;
    margin-bottom: 18px;
    box-shadow: 0 14px 42px rgba(0,0,0,.18);
}
.notice-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #101828;
}
.notice-content {
    color: #475467;
    line-height: 1.8;
    font-size: 16px;
}
.signup-card, .install-card {
    background: #fff;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 20px 60px rgba(0,0,0,.22);
}
.signup-card h1, .install-card h1 {
    margin: 0 0 22px;
    text-align: center;
    font-size: 30px;
    letter-spacing: .04em;
}
.signup-form { display: grid; gap: 16px; }
.form-row label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #344054;
}
.required { color: #e11d48; margin-left: 4px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], input[type="password"], select, textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 16px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
}
textarea { min-height: 118px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.choice {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #f9fafb;
    font-weight: 500 !important;
}
.btn-primary, .btn {
    display: inline-block;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 10px 24px rgba(37,99,235,.25);
}
.btn-full { width: 100%; font-size: 18px; padding: 15px; }
.alert {
    border-radius: 14px;
    padding: 13px 15px;
    margin-bottom: 16px;
    line-height: 1.7;
}
.alert.success { background: #ecfdf3; color: #027a48; border: 1px solid #abefc6; }
.alert.error { background: #fff1f3; color: #c01048; border: 1px solid #fecdd6; }
.install-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.install-card { max-width: 560px; width: 100%; }
@media (max-width: 640px) {
    .page-wrap { padding: 12px 10px 40px; }
    .signup-card { padding: 20px 16px; border-radius: 18px; }
    .signup-card h1 { font-size: 24px; }
    .poster-card { border-radius: 18px; }
    .poster-img { border-radius: 12px; max-height: 420px; }
    .carousel-arrow { width: 34px; height: 34px; font-size: 28px; }
    .notice-card { padding: 16px; border-radius: 16px; }
    .notice-card h2 { font-size: 19px; }
}

.captcha-box {
    display: grid;
    grid-template-columns: 1fr 150px auto;
    gap: 10px;
    align-items: center;
}
.captcha-img {
    width: 150px;
    height: 48px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #d0d5dd;
}
.captcha-refresh {
    border: 0;
    border-radius: 12px;
    padding: 13px 14px;
    font-weight: 700;
    color: #1e3a8a;
    background: #eef2ff;
    cursor: pointer;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .captcha-box { grid-template-columns: 1fr; }
    .captcha-img { width: 150px; }
    .captcha-refresh { width: 100%; }
}

.registration-closed {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}


.hero-button-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 18px;
}
.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 13px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(239,68,68,.28);
    letter-spacing: .04em;
}
.hero-button:hover { transform: translateY(-1px); }
.hero-page-wrap {
    max-width: 900px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-page-card {
    width: 100%;
    background: rgba(255,255,255,.97);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,.24);
}
.hero-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eaecf0;
}
.hero-page-head h1 {
    margin: 0;
    font-size: 32px;
    color: #101828;
}
.hero-back {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 10px 16px;
    background: #eef2ff;
    color: #1e3a8a;
    font-weight: 700;
    text-decoration: none;
}
.hero-page-content {
    white-space: normal;
    color: #344054;
    line-height: 1.95;
    font-size: 18px;
    word-break: break-word;
}
@media (max-width: 640px) {
    .hero-button-wrap { margin-bottom: 14px; }
    .hero-button { width: 100%; min-width: 0; font-size: 17px; padding: 13px 18px; }
    .hero-page-wrap { align-items: flex-start; }
    .hero-page-card { padding: 20px 16px; border-radius: 18px; }
    .hero-page-head { display: block; }
    .hero-page-head h1 { font-size: 26px; margin-bottom: 12px; text-align: center; }
    .hero-back { display: block; text-align: center; }
    .hero-page-content { font-size: 16px; line-height: 1.85; }
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.site-popup-mask {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(2, 6, 23, .72);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}
.site-popup-mask[hidden] {
    display: none !important;
    pointer-events: none !important;
}
.site-popup-mask.show {
    opacity: 1;
    pointer-events: auto;
}
.site-popup-card {
    position: relative;
    width: min(92vw, 620px);
    max-height: 88vh;
    overflow: auto;
    background: rgba(255,255,255,.98);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0,0,0,.36);
    padding: 20px;
    transform: translateY(12px) scale(.98);
    transition: transform .18s ease;
}
.site-popup-mask.show .site-popup-card {
    transform: translateY(0) scale(1);
}
.site-popup-x {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(16,24,40,.68);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.site-popup-image {
    display: block;
    width: 100%;
    max-height: 58vh;
    object-fit: contain;
    border-radius: 18px;
    background: #f2f4f7;
}
.site-popup-text {
    padding: 12px 4px 4px;
}
.site-popup-text h2 {
    margin: 0 0 10px;
    font-size: 25px;
    color: #101828;
    text-align: center;
}
.site-popup-content {
    color: #344054;
    line-height: 1.9;
    font-size: 17px;
    word-break: break-word;
}
.site-popup-close {
    display: block;
    width: 100%;
    margin-top: 14px;
    border: 0;
    border-radius: 14px;
    padding: 13px 16px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}
@media (max-width: 640px) {
    .site-popup-mask {
        align-items: center;
        padding: 12px;
    }
    .site-popup-card {
        width: 96vw;
        max-height: 86vh;
        padding: 14px;
        border-radius: 18px;
    }
    .site-popup-image {
        max-height: 52vh;
        border-radius: 14px;
    }
    .site-popup-text h2 {
        font-size: 21px;
    }
    .site-popup-content {
        font-size: 15px;
        line-height: 1.75;
    }
}
