/* 上号器 - 霓虹渐变主题 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #1a0a2e 0%, #16213e 30%, #0f3460 60%, #1a0a2e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #fff;
}

.container {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 30px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 60px rgba(255, 107, 157, 0.08);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,157,0.03) 0%, transparent 70%);
    animation: pulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* 头部 */
.header {
    text-align: center;
    padding: 20px 0 10px;
    position: relative;
    z-index: 1;
}

.header .star {
    font-size: 32px;
    color: #ff6b9d;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.6);
    display: inline-block;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.header h1 {
    font-size: 30px;
    font-weight: 800;
    margin-top: 8px;
    background: linear-gradient(90deg, #ff6b9d, #c44569, #f8b500, #ff6b9d);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
    letter-spacing: 2px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 提示卡片 */
.tip-card {
    background: linear-gradient(135deg, rgba(255,107,157,0.08) 0%, rgba(142,68,173,0.08) 100%);
    border: 1.5px dashed rgba(255,107,157,0.35);
    border-radius: 18px;
    padding: 18px;
    margin: 20px 0;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
    text-align: center;
    position: relative;
    z-index: 1;
}

.tip-card .highlight {
    color: #ff6b9d;
    font-weight: 600;
}

/* 表单元素 */
.form-group {
    margin: 16px 0;
    position: relative;
    z-index: 1;
}

.form-label {
    display: block;
    color: #ff6b9d;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255,107,157,0.3);
}

.form-input,
.form-select {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
}

.form-input:focus,
.form-select:focus {
    border-color: rgba(255,107,157,0.6);
    box-shadow: 0 0 20px rgba(255,107,157,0.15), 0 0 0 3px rgba(255,107,157,0.1);
    background: rgba(255,255,255,0.08);
}

.form-input::placeholder {
    color: rgba(255,255,255,0.35);
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ff6b9d' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-select option {
    background: #1a0a2e;
    color: #fff;
}

/* 按钮 */
.btn {
    width: 100%;
    padding: 16px;
    margin: 10px 0;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(90deg, #ff6b9d, #c44569, #8e44ad, #ff6b9d);
    background-size: 300% 100%;
    box-shadow: 0 4px 25px rgba(255,107,157,0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
    animation: gradientShift 4s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(255,107,157,0.5), 0 0 0 1px rgba(255,255,255,0.15) inset;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 300% 100%;
    box-shadow: 0 4px 25px rgba(102,126,234,0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
    animation: gradientShift 4s ease infinite;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(102,126,234,0.5), 0 0 0 1px rgba(255,255,255,0.15) inset;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::after {
    left: 100%;
}

/* 底部链接 */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0 10px;
    position: relative;
    z-index: 1;
}

.footer-links a {
    color: #ff6b9d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,107,157,0.1);
    border: 1px solid rgba(255,107,157,0.2);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: rgba(255,107,157,0.2);
    box-shadow: 0 0 20px rgba(255,107,157,0.2);
    transform: translateY(-2px);
}

/* 版权 */
.copyright {
    text-align: center;
    padding: 15px 0 5px;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    position: relative;
    z-index: 1;
}

/* 消息提示 */
.message {
    padding: 14px 18px;
    border-radius: 14px;
    margin: 12px 0;
    font-size: 14px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.message.error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* 注册/登录切换 */
.auth-switch {
    text-align: center;
    margin: 16px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    position: relative;
    z-index: 1;
}

.auth-switch a {
    color: #ff6b9d;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

/* 粒子背景装饰 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,107,157,0.4);
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ff6b9d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 480px) {
    .container {
        padding: 24px 18px;
        border-radius: 22px;
    }
    .header h1 {
        font-size: 26px;
    }
}

/* 购买页面样式 */
.price-tag {
    display: inline-block;
    background: linear-gradient(90deg, #f8b500, #ff6b9d);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-left: 8px;
}

.account-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 18px;
    margin: 12px 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.account-card:hover {
    border-color: rgba(255,107,157,0.3);
    box-shadow: 0 4px 20px rgba(255,107,157,0.1);
    transform: translateY(-2px);
}

.account-card .game-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.account-card .game-info {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}

.account-card .game-info span {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    padding: 3px 10px;
    border-radius: 8px;
    margin-right: 6px;
    font-size: 12px;
}

.account-card .buy-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    font-size: 15px;
}

/* 客服页面 */
.contact-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
    margin: 12px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-card .contact-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.contact-card .contact-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 8px 0;
}

.contact-card .contact-label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* 导航栏 */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.nav-bar .nav-brand {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(90deg, #ff6b9d, #f8b500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-bar .nav-user {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.nav-bar .nav-user a {
    color: #ff6b9d;
    text-decoration: none;
    margin-left: 10px;
}

/* 退出按钮 */
.logout-btn {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(231, 76, 60, 0.25);
}
