:root {
    --bg-dark: #050505;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gold: #D4AF37;
    --gold-bright: #FFF0C5; /* 更亮的金色 */
    --gold-gradient: linear-gradient(135deg, #EFD889 0%, #CFAA32 100%);
    --text-primary: #ffffff;
    --text-secondary: #888888;
    
    --color-stage: #ff4757;
    --color-music: #1e90ff;
    --color-film: #2ed573;
    --color-travel: #a55eea;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- 动态背景 --- */
.bg-animation {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% -20%, #1a1a2e, #000000);
    z-index: -2;
}
.bg-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    opacity: 0.5;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- 头部设计 (重点修改) --- */
header {
    text-align: center;
    margin: 30px 0 40px;
    position: relative;
}

.logo-box {
    display: inline-block;
    border: 1px solid var(--gold);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    background: rgba(212, 175, 55, 0.1);
}

.logo-text {
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 3px;
    font-weight: 700;
}

/* 核心标题高亮流光效果 */
.main-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 2px;
    
    /* 定义一个超宽的、高亮的渐变背景 */
    background: linear-gradient(
        110deg, 
        #FFFFFF 10%,   /* 纯白 */
        var(--gold-bright) 30%, /* 亮金 */
        #FFFFFF 50%,   /* 纯白 */
        var(--gold) 70%, /* 标准金 */
        #FFFFFF 90%    /* 纯白 */
    );
    background-size: 200% auto; /* 背景比文字宽一倍，用于动画 */
    
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* 添加流光动画 */
    animation: textShine 4s linear infinite;
    
    /* 添加整体高亮光晕 */
    filter: drop-shadow(0 0 8px rgba(255, 248, 220, 0.4));
}

/* 流光动画关键帧 */
@keyframes textShine {
    to {
        background-position: -200% center;
    }
}

.dot { 
    color: var(--gold-bright); 
    -webkit-text-fill-color: var(--gold-bright);
    filter: drop-shadow(0 0 5px var(--gold));
}

.subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: 600;
}

/* --- 控制面板 --- */
.control-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}
@media (min-width: 600px) {
    .control-panel { flex-direction: row; }
}

.input-wrapper {
    position: relative;
    flex: 1;
}

input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

input:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

#generateBtn {
    padding: 16px 30px;
    border: none;
    border-radius: 12px;
    background: var(--gold-gradient);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

#generateBtn:active { transform: scale(0.98); }

.btn-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* --- 状态栏 --- */
.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.indicator {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #444;
    margin-right: 6px;
    vertical-align: middle;
}
.indicator.active {
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88;
}

.count-number {
    color: var(--gold);
    font-weight: bold;
    font-family: monospace;
    font-size: 1rem;
}

/* --- 卡片区域 --- */
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 600px) {
    .grid-container { grid-template-columns: 1fr 1fr; }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 30, 30, 0.7);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 卡片彩色顶部条 */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    opacity: 0.8;
}

.type-stage::before { background: var(--color-stage); box-shadow: 0 0 15px var(--color-stage); }
.type-music::before { background: var(--color-music); box-shadow: 0 0 15px var(--color-music); }
.type-film::before { background: var(--color-film); box-shadow: 0 0 15px var(--color-film); }
.type-travel::before { background: var(--color-travel); box-shadow: 0 0 15px var(--color-travel); }

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.icon-box {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.header-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.header-text .category {
    font-size: 0.6rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-body {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #ddd;
    min-height: 110px;
}

.placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.hidden { display: none !important; }

/* --- 底部 --- */
footer {
    text-align: center;
    margin-top: auto;
    padding-top: 40px;
    font-size: 0.7rem;
    color: #444;
}

/* --- 尊贵支付弹窗 --- */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-backdrop {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
}

.modal-card {
    position: relative;
    background: #111;
    width: 340px;
    padding: 30px 20px;
    border-radius: 20px;
    border: 1px solid #333;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* 金色流光边框 */
.modal-card::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #111, var(--gold), #111);
    z-index: -1;
    border-radius: 22px;
    animation: borderRotate 4s linear infinite; 
}

.vip-badge {
    position: absolute;
    top: 15px; right: 15px;
    background: var(--gold-gradient);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
}

.modal-card h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
}

.promo-text {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.qr-frame {
    background: white;
    padding: 10px;
    border-radius: 12px;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

.qr-code { width: 100%; height: 100%; object-fit: contain; }

.price-tag {
    margin-bottom: 20px;
    color: var(--gold);
}

.currency { font-size: 1rem; vertical-align: top; }
.amount { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.period { font-size: 0.8rem; color: #666; }

.instruction { font-size: 0.8rem; color: #666; margin-bottom: 10px; }

.code-input-group {
    display: flex;
    gap: 8px;
}

.code-input-group input {
    background: #222;
    border: 1px solid #444;
    padding: 10px;
    font-size: 0.9rem;
}

.code-input-group button {
    background: var(--gold-gradient);
    border: none;
    border-radius: 10px;
    color: #000;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 0 15px;
    cursor: pointer;
    white-space: nowrap;
}

.error { color: #ff4757; font-size: 0.8rem; margin-top: 10px; }
