:root {
    --primary-gold: #ffcf4d;
    --deep-gold: #b38a1d;
    --text-gold: #ffebad;
    --bg-black: #050505;
    --glass-white: rgba(255, 255, 255, 0.05);
    --neon-blue: #00f2ff;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }
body, html {
    margin: 0; padding: 0; height: 100%;
    background-color: var(--bg-black);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #fff; overflow-x: hidden;
}

.cyber-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, #1a1510 0%, #050505 70%);
    z-index: -1;
}
.cyber-bg::before {
    content: ''; position: absolute; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255,207,77,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,207,77,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.main-shell {
    width: 100%; max-width: 450px; min-height: 100vh;
    margin: 0 auto; position: relative;
    background: rgba(10, 10, 10, 0.8);
    display: flex; flex-direction: column;
    box-shadow: 0 0 100px rgba(0,0,0,1);
}

@media (min-width: 501px) {
    body { display: flex; align-items: center; justify-content: center; background: #000; }
    .main-shell {
        height: 850px; border-radius: 50px; border: 12px solid #222;
        overflow-y: auto; scrollbar-width: none;
    }
}

.hero-banner {
    padding: 40px 20px; text-align: center;
    background: linear-gradient(180deg, rgba(255,207,77,0.1) 0%, transparent 100%);
}
.hero-banner h1 {
    font-size: 32px; font-weight: 900; margin: 0;
    background: linear-gradient(180deg, #fff 30%, var(--primary-gold) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 15px rgba(255,207,77,0.4));
}
.hero-banner .sub-title {
    font-size: 14px; color: var(--neon-blue); letter-spacing: 3px;
    margin-top: 10px; font-weight: bold; opacity: 0.8;
}

.progress-section {
    margin: 20px; padding: 25px;
    background: var(--glass-white); border-radius: 24px;
    border: 1px solid rgba(255,207,77,0.15);
    text-align: center;
    content-visibility: auto;
    contain-intrinsic-size: 220px;
}
.progress-box {
    display: flex; justify-content: space-around; margin: 20px 0;
}
.step { position: relative; }
.step-circle {
    width: 45px; height: 45px; border-radius: 50%;
    background: #222; border: 2px solid #444;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: #666; transition: 0.4s;
}
.step.active .step-circle {
    background: var(--primary-gold); border-color: var(--primary-gold);
    color: #4a3200; box-shadow: 0 0 15px var(--primary-gold);
}
.step-label { font-size: 11px; margin-top: 8px; color: #888; }
.step.active .step-label { color: var(--primary-gold); }

.rule-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 0 20px;
}
.rule-item {
    background: rgba(255,255,255,0.03); padding: 15px; border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}
.rule-item i { color: var(--primary-gold); font-size: 18px; margin-bottom: 8px; }
.rule-item div { font-size: 13px; font-weight: bold; margin-bottom: 4px; }
.rule-item p { font-size: 11px; color: #777; margin: 0; }

.action-footer {
    padding: 30px 20px; text-align: center;
}
.id-input-wrap {
    background: #000; border: 1px solid #333; border-radius: 18px;
    padding: 5px; margin-bottom: 20px; display: flex;
}
.id-input-wrap input {
    flex: 1; background: transparent; border: none; color: #fff;
    padding: 15px; font-size: 16px; text-align: center;
}
.btn-main {
    width: 100%; padding: 20px; border: none; border-radius: 20px;
    background: linear-gradient(135deg, #ffcf4d 0%, #b38a1d 100%);
    color: #4a3200; font-size: 18px; font-weight: 900;
    box-shadow: 0 15px 40px rgba(179,138,29,0.4);
    cursor: pointer; transition: 0.3s;
}
.btn-main:active { transform: scale(0.96); }

.modal-overlay {
    display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.98); z-index: 1000;
    align-items: center; justify-content: center;
    flex-direction: column;
}
.poster-container {
    width: 85%; max-width: 340px;
    position: relative;
    animation: modalShow 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes modalShow { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.poster-container img {
    width: 100%; border-radius: 5px; border: 1px solid #444;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

#poster-tpl {
    position: fixed; left: -9999px; width: 375px; height: 600px;
    background: #000; overflow: hidden;
}
.tpl-inner {
    width: 100%; height: 100%; padding: 40px;
    background: radial-gradient(circle at 50% 0%, #2a2010 0%, #000 70%);
    display: flex; flex-direction: column; align-items: center;
    border: 2px solid var(--primary-gold);
}

.service-card {
    cursor: pointer;
    margin-top: 30px;
    position: relative;
    padding: 2px;
    background: linear-gradient(90deg, transparent, #00f2ff, #ffcf4d, transparent);
    background-size: 200% 100%;
    animation: border-flow 3s linear infinite;
    border-radius: 16px;
}
.service-panel-box {
    margin-top: 30px;
    padding: 2px;
    background: linear-gradient(90deg, transparent, #00f2ff, #ffcf4d, transparent);
    background-size: 200% 100%;
    animation: border-flow 3s linear infinite;
    border-radius: 16px;
}
.service-panel-head,
.service-actions {
    background: #111;
}
.service-panel-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px 10px;
    border-radius: 15px 15px 0 0;
    color: #00f2ff;
    font-size: 16px;
    font-weight: 900;
}
.service-panel-head .fa-clipboard {
    font-size: 18px;
}
.service-online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: blink 1s infinite;
    box-shadow: 0 0 5px #00ff00;
}
.service-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 14px 14px;
    border-radius: 0 0 15px 15px;
}
.btn-service-action {
    padding: 12px 8px;
    border: 1px solid rgba(0, 242, 255, 0.35);
    border-radius: 12px;
    background: rgba(0, 242, 255, 0.08);
    color: #00f2ff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.btn-service-action.gold {
    border-color: rgba(255, 207, 77, 0.35);
    background: rgba(255, 207, 77, 0.08);
    color: #ffcf4d;
}
.btn-service-action:active {
    transform: scale(0.98);
}
.service-card-inner {
    background: #111;
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.btn-customer-service {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid rgba(0, 242, 255, 0.35);
    background: rgba(0, 242, 255, 0.08);
    color: #00f2ff;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-customer-service .fa-headphones {
    font-size: 22px;
    flex-shrink: 0;
}
.btn-customer-service-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.btn-customer-service-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}
.btn-customer-service-sub {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.75;
    line-height: 1.2;
}
.btn-customer-service:hover,
.btn-customer-service:focus {
    color: #001a1d;
    background: linear-gradient(135deg, #00f2ff 0%, #0099aa 100%);
    text-decoration: none;
}
.btn-customer-service:hover .btn-customer-service-sub,
.btn-customer-service:focus .btn-customer-service-sub {
    opacity: 0.85;
}
.service-modal {
    display: none;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.96);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.service-panel {
    width: 100%;
    max-width: 360px;
    background: #111;
    border: 1px solid rgba(0,242,255,0.25);
    border-radius: 20px;
    overflow: hidden;
    animation: modalShow 0.35s ease;
}
.service-tabs {
    display: flex;
    border-bottom: 1px solid #222;
}
.service-tab {
    flex: 1;
    padding: 14px 10px;
    text-align: center;
    font-size: 14px;
    color: #888;
    cursor: pointer;
    background: transparent;
    border: none;
}
.service-tab.active {
    color: #00f2ff;
    background: rgba(0,242,255,0.08);
    font-weight: bold;
}
.service-body { padding: 20px; }
.service-field {
    margin-bottom: 14px;
    text-align: left;
}
.service-field label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}
.service-field input {
    width: 100%;
    background: #000;
    border: 1px solid #333;
    border-radius: 12px;
    color: #fff;
    padding: 12px 14px;
    font-size: 15px;
}
.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.captcha-row input { flex: 1; }
.captcha-row img {
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #333;
}
.btn-service {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #00f2ff 0%, #0099aa 100%);
    color: #001a1d;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    margin-top: 8px;
}
.btn-service.gold {
    background: linear-gradient(135deg, #ffcf4d 0%, #b38a1d 100%);
    color: #4a3200;
}
.progress-result {
    display: none;
    margin-top: 16px;
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    border: 1px solid rgba(255,207,77,0.15);
    text-align: left;
}
.progress-result .count-line {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-gold);
    margin-bottom: 8px;
}
.progress-result .invite-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
    padding: 6px 0;
    border-bottom: 1px solid #222;
}
.progress-result .invite-item:last-child { border-bottom: none; }
.service-close {
    text-align: center;
    color: #666;
    font-size: 13px;
    padding: 14px;
    cursor: pointer;
    border-top: 1px solid #222;
}

@keyframes border-flow {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
    .service-card { animation: none; }
    .poster-container, .service-panel { animation: none; }
}
