/* 流量福利活动 - 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    overflow-x: hidden;
}

body {
    background: radial-gradient(ellipse at top, #1a0b3d 0%, #2d1b69 30%, #1a0b3d 60%, #0d0524 100%);
    position: relative;
    color: #fff;
}

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

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration, 3s) ease-in-out infinite;
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: var(--max-opacity, 0.8); transform: scale(1); }
}

/* 主容器 */
.container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 30px 20px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 标题区域 */
.header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.welcome-text {
    font-size: 20px;
    font-weight: bold;
    color: #ffd700;
    letter-spacing: 4px;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.main-title {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b9d 0%, #ffd700 50%, #ff8c42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.3);
    line-height: 1.2;
    margin-bottom: 10px;
    word-break: break-word;
}

.sub-title {
    font-size: 18px;
    color: #e0d4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
}

.sub-title::before,
.sub-title::after {
    content: '';
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

/* 倒计时模块 */
.quota-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 24px;
}

.quota-label {
    font-size: 14px;
    color: #c4b5fd;
    margin-bottom: 8px;
}

.quota-number {
    font-size: 42px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    line-height: 1;
}

.quota-unit {
    font-size: 16px;
    color: #ffd700;
    margin-left: 4px;
}

/* 表单卡片 */
.form-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.phone-input {
    width: 100%;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0 16px;
    font-size: 16px;
    color: #fff;
    outline: none;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.phone-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.phone-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.claim-btn,
.download-btn {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c42 100%);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #5a2d00;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255, 140, 66, 0.4);
}

.claim-btn:hover,
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 140, 66, 0.5);
}

.claim-btn:active,
.download-btn:active {
    transform: translateY(0);
}

.claim-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 活动规则 */
.rules-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
}

.rules-title {
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 16px;
    text-align: center;
}

.rules-list {
    list-style: none;
}

.rules-list li {
    font-size: 14px;
    color: #d4c5ff;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
    word-break: break-word;
}

.rules-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #ffd700;
    border-radius: 50%;
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: linear-gradient(135deg, #2d1b69 0%, #1a0b3d 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 32px 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ff8c42);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 30px;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 12px;
}

.modal-content {
    font-size: 15px;
    color: #e0d4ff;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c42 100%);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #5a2d00;
    cursor: pointer;
}

/* 响应式 */
@media (max-width: 380px) {
    .main-title { font-size: 38px; }
    .container { padding: 20px 16px 30px; }
    .quota-number { font-size: 36px; }
}

@media (min-width: 768px) {
    .container { padding-top: 50px; }
}

/* 横屏适配 */
@media (max-height: 500px) and (orientation: landscape) {
    .container { padding: 20px; }
    .header { margin-bottom: 16px; }
    .main-title { font-size: 36px; }
    .quota-card, .form-card, .rules-card { padding: 16px; margin-bottom: 16px; }
}
