* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: radial-gradient(ellipse at 30% 10%, #0b1120, #020617);
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 主容器 — 奢阔大气 */
.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    background: rgba(6, 12, 28, 0.55);
    backdrop-filter: blur(16px);
    border-radius: 3rem;
    padding: 2.2rem 2.5rem 2.8rem;
    box-shadow: 0 40px 70px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.35);
    transition: all 0.3s;
}

/* 头部区域 更大更醒目 */
.hero {
    text-align: center;
    margin-bottom: 2rem;
}
.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF, #B6F0FF, #FFB8FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}
.hero .sub {
    font-size: 0.85rem;
    color: #9bbdff;
    letter-spacing: 3px;
    font-weight: 500;
    margin-top: 0.4rem;
    border-top: 1px dashed #4f7eff;
    display: inline-block;
    padding-top: 0.5rem;
}

/* 标签栏 (充值服务/卡密查询/API取件) 豪华质感 */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 1.8rem 0 2rem;
    border-bottom: 2px solid rgba(79, 126, 255, 0.4);
    padding-bottom: 0.75rem;
}
.tab-btn {
    background: transparent;
    border: none;
    padding: 0.7rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #b7cdff;
    cursor: pointer;
    border-radius: 60px;
    transition: 0.25s;
    backdrop-filter: blur(4px);
}
.tab-btn.active {
    background: linear-gradient(105deg, #ff51cf, #7c3eff);
    color: white;
    box-shadow: 0 6px 18px #ff44cc80;
    transform: scale(1.02);
}

/* 库存栏 精致高级 */
.stock-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0a1030cc;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    border: 1px solid #4f8effaa;
    backdrop-filter: blur(8px);
}
.stock-info {
    display: flex;
    gap: 2rem;
}
.stock-item {
    color: #e2f0ff;
    font-weight: 600;
    font-size: 0.95rem;
}
.stock-item span {
    color: #6effd3;
    font-weight: 800;
    margin-right: 8px;
    font-size: 1rem;
    text-shadow: 0 0 3px cyan;
}
.refresh-stock {
    background: rgba(255,255,255,0.05);
    border: 1px solid #71f0ff;
    border-radius: 40px;
    padding: 0.4rem 1.2rem;
    color: #b7feff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.refresh-stock:hover {
    background: #71f0ff22;
    box-shadow: 0 0 8px cyan;
}

/* 步骤条 — 置于顶部，大气硬朗 */
.steps {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.step {
    flex: 1;
    text-align: center;
    background: #0e183ce0;
    padding: 0.9rem 0.2rem;
    border-radius: 80px;
    font-weight: 800;
    font-size: 1rem;
    color: #b2ceff;
    cursor: pointer;
    border: 1px solid #3b6eff;
    transition: all 0.25s;
    backdrop-filter: blur(5px);
    letter-spacing: 1px;
}
.step.active {
    background: linear-gradient(100deg, #f43bff, #3c6eff);
    color: white;
    box-shadow: 0 0 22px #ff66f0;
    border-color: #fff0b5;
    transform: translateY(-2px);
}
.step.completed {
    background: #2a4fae;
    color: #d6ffec;
    border-color: #0effd0;
    box-shadow: 0 0 12px #0effc0;
}

/* 卡片 璀璨边框 + 大气内边距 */
.card {
    background: #0b102ed9;
    backdrop-filter: blur(16px);
    border-radius: 2.2rem;
    padding: 1.8rem;
    margin-bottom: 1.8rem;
    border: 1px solid rgba(0, 230, 255, 0.6);
    box-shadow: 0 20px 35px -12px black;
}
.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(120deg, #FFE6C7, #A6EEFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

textarea, input {
    width: 100%;
    background: #01071eff;
    border: 1.5px solid #698eff;
    padding: 1rem 1.2rem;
    border-radius: 1.5rem;
    color: #f0fcff;
    font-size: 0.95rem;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    transition: 0.2s;
}
textarea:focus, input:focus {
    border-color: #ff66cc;
    box-shadow: 0 0 16px #ff66ee;
}

.type-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 1rem;
}
.type-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-height: 86px;
    background: #01071eff;
    border: 1.5px solid #698eff;
    border-radius: 1.5rem;
    padding: 0.85rem 1rem;
    color: #e9f7ff;
    cursor: pointer;
    transition: 0.2s;
}
.type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.type-option.active {
    border-color: #ff66cc;
    background: linear-gradient(100deg, rgba(255, 68, 221, 0.28), rgba(153, 68, 255, 0.28));
    box-shadow: 0 0 16px #ff66ee66;
}
.type-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.type-name {
    font-weight: 800;
    color: #fff;
}
.type-desc {
    color: #b8e2ff;
    font-size: 0.82rem;
    line-height: 1.45;
}
.type-price {
    color: #6effd3;
    font-weight: 800;
    flex: 0 0 auto;
    padding-top: 2px;
}
.hint {
    font-size: 0.75rem;
    color: #b8e2ff;
    margin-top: 8px;
    margin-left: 6px;
}
.format-badge {
    background: #162352cc;
    border-radius: 24px;
    padding: 12px 16px;
    font-size: 0.8rem;
    border-left: 6px solid #ff55ee;
    color: #ffe6b3;
}

.info-grid {
    background: #01051caa;
    border-radius: 1.8rem;
    padding: 1rem;
}
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    border-bottom: 1px solid #4c7eff66;
    font-weight: 500;
}
.info-label {
    color: #cbe4ff;
}
.info-value {
    color: #fff3cf;
    font-weight: 700;
    word-break: break-all;
}

.btn-primary {
    background: linear-gradient(100deg, #ff44dd, #9944ff);
    border: none;
    padding: 1rem;
    border-radius: 2rem;
    font-weight: 800;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 1.2rem;
    width: 100%;
    box-shadow: 0 10px 20px -5px #ff44aa60;
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.55; filter: grayscale(0.1); }

.alert-mock {
    background: #231d55cc;
    border-left: 5px solid #ff77cc;
    padding: 0.9rem;
    border-radius: 1.2rem;
    margin-bottom: 1rem;
    color: #ffefcf;
    font-weight: 500;
}

.step-panel { display: none; }
.step-panel.active-panel { display: block; }
.hidden { display: none; }
.flex-btns {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}
.btn-secondary {
    background: linear-gradient(95deg, #2f5390, #162b66);
    box-shadow: none;
}

@media (max-width: 720px) {
    body { padding: 1rem; }
    .container { padding: 1.2rem; }
    .hero h1 { font-size: 2rem; }
    .step { font-size: 0.75rem; padding: 0.6rem; }
    .tab-btn { padding: 0.4rem 1rem; font-size: 0.85rem; }
    .type-picker { grid-template-columns: 1fr; }
}
