/* ============================================
   活动报名H5页面样式
   风格：喜庆感 + 科技感
   ============================================ */

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* CSS 变量定义 */
:root {
    /* 喜庆色系 - 中国红、金色 */
    --primary-red: #C8102E;
    --primary-red-light: #E6394E;
    --primary-red-dark: #8B0A1E;
    --gold: #D4AF37;
    --gold-light: #F4D03F;
    --gold-dark: #B8962E;

    /* 科技色系 */
    --tech-blue: #2E86DE;
    --tech-cyan: #00D2D3;
    --tech-purple: #6C5CE7;
    --tech-gradient: linear-gradient(135deg, #C8102E 0%, #D4AF37 50%, #2E86DE 100%);

    /* 中性色 */
    --bg-dark: #1A1A2E;
    --bg-darker: #0F0F1A;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* 功能色 */
    --success: #00B894;
    --error: #FF6B6B;
    --warning: #FDCB6E;

    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* ============================================
   背景动效
   ============================================ */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite ease-in-out;
    box-shadow: 0 0 20px var(--gold);
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; top: 60%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; top: 30%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; top: 70%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; top: 50%; animation-delay: 6s; }
.particle:nth-child(8) { left: 80%; top: 25%; animation-delay: 7s; }
.particle:nth-child(9) { left: 90%; top: 75%; animation-delay: 8s; }
.particle:nth-child(10) { left: 15%; top: 55%; animation-delay: 9s; }
.particle:nth-child(11) { left: 85%; top: 45%; animation-delay: 10s; }
.particle:nth-child(12) { left: 45%; top: 85%; animation-delay: 11s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-100px) translateX(50px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-50px) translateX(-30px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-150px) translateX(20px) scale(1.1);
        opacity: 0.7;
    }
}

/* 背景渐变 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(200, 16, 46, 0.3) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(212, 175, 55, 0.2) 0%, transparent 40%),
                radial-gradient(ellipse at bottom left, rgba(46, 134, 222, 0.15) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   主容器
   ============================================ */
.container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: 100vh;
}

.page {
    animation: fadeIn 0.5s ease-out;
}

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

/* ============================================
   头部样式
   ============================================ */
.header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.header-decoration {
    width: 80px;
    height: 4px;
    background: var(--tech-gradient);
    margin: 0 auto var(--spacing-md);
    border-radius: 2px;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    background: var(--tech-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 0 var(--spacing-md);
}

.theme-badge {
    display: inline-block;
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.2), rgba(212, 175, 55, 0.2));
    border: 1px solid var(--gold);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 4px;
}

/* ============================================
   活动信息卡片
   ============================================ */
.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
}

.info-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.info-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================
   内容区块样式
   ============================================ */
.section-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--gold);
}

.section-icon {
    font-size: 1.3rem;
}

.section-text {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
}

/* ============================================
   时间轴样式
   ============================================ */
.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.timeline-item {
    display: flex;
    gap: var(--spacing-md);
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 52px;
    top: 40px;
    bottom: -16px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-time {
    flex-shrink: 0;
    width: 100px;
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.3), rgba(212, 175, 55, 0.2));
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gold);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-content {
    flex: 1;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.timeline-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   表单样式
   ============================================ */
.signup-form {
    margin-bottom: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.required {
    color: var(--primary-red-light);
    margin-right: 4px;
}

.form-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-input.error {
    border-color: var(--error);
}

.form-error {
    display: block;
    font-size: 0.8rem;
    color: var(--error);
    margin-top: var(--spacing-xs);
    min-height: 1.2em;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: var(--spacing-md);
}

.radio-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.radio-item:has(input:checked) {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.2), rgba(212, 175, 55, 0.2));
    border-color: var(--gold);
}

.radio-item input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-item:has(input:checked) .radio-mark {
    border-color: var(--gold);
    background: var(--gold);
}

.radio-item:has(input:checked) .radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--bg-dark);
    border-radius: 50%;
}

.radio-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.radio-item:has(input:checked) .radio-label {
    color: var(--text-primary);
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: var(--spacing-lg);
    background: var(--tech-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.4);
}

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

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

.btn-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* ============================================
   底部
   ============================================ */
.footer {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ============================================
   凭证页面样式
   ============================================ */
.ticket-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ticket-header {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--tech-gradient);
    position: relative;
}

.ticket-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--bg-dark);
    border-radius: 50% 50% 0 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.ticket-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.ticket-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.ticket-content {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticket-row:last-child {
    border-bottom: none;
}

.ticket-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ticket-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

/* 报名编码框 */
.ticket-code-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(200, 16, 46, 0.1));
    border: 2px dashed var(--gold);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    margin: var(--spacing-lg) var(--spacing-xl);
}

.ticket-code-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
}

.ticket-code-value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.ticket-code-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ticket-info {
    padding: var(--spacing-lg);
    background: rgba(212, 175, 55, 0.1);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.ticket-info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ticket-info-icon {
    font-size: 1rem;
}

.ticket-actions {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
}

.action-btn {
    flex: 1;
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: var(--gold);
    color: var(--bg-dark);
}

.action-btn.primary:hover {
    background: var(--gold-light);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   管理面板样式
   ============================================ */
.admin-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.admin-header h2 {
    font-size: 1.3rem;
}

.close-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.admin-stats {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    min-width: 150px;
}

.stat-card-single {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.2), rgba(212, 175, 55, 0.15));
    border: 1px solid var(--gold);
    padding: var(--spacing-lg) var(--spacing-xl);
}

.stat-card-single .stat-value {
    font-size: 3rem;
}

.stat-card-single .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--tech-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

.admin-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

@media (max-width: 480px) {
    .admin-actions {
        grid-template-columns: 1fr;
    }
}

.admin-btn {
    padding: var(--spacing-md);
    background: rgba(46, 134, 222, 0.2);
    border: 1px solid var(--tech-blue);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: rgba(46, 134, 222, 0.3);
}

.admin-btn.danger {
    background: rgba(255, 107, 107, 0.2);
    border-color: var(--error);
}

.admin-btn.danger:hover {
    background: rgba(255, 107, 107, 0.3);
}

.admin-list h3 {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.list-container {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-info {
    flex: 1;
}

.list-item-name {
    font-weight: 500;
}

.list-item-company {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.list-item-code {
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.list-item-phone {
    font-size: 0.85rem;
    color: var(--tech-cyan);
    font-family: monospace;
}

/* ============================================
   Toast 提示
   ============================================ */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg) var(--spacing-xl);
    color: var(--text-primary);
    font-size: 0.95rem;
    text-align: center;
    z-index: 1000;
    max-width: 80%;
    animation: toastFadeIn 0.3s ease-out;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ============================================
   加载动画
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 480px) {
    .title {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
    }

    .ticket-actions {
        flex-direction: column;
    }
}

@media (min-width: 481px) {
    .container {
        padding: var(--spacing-xl);
    }

    .info-card,
    .ticket-container,
    .admin-container {
        padding: var(--spacing-xl);
    }
}

/* ============================================
   报名表单区域
   ============================================ */
.signup-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl) var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section-title-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: var(--tech-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-icon-large {
    font-size: 2rem;
}

.section-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
}

/* ============================================
   悬浮报名按钮（FAB）
   ============================================ */
.fab-signup {
    position: fixed;
    bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom, 0px));
    right: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--tech-gradient);
    border: none;
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.4);
    z-index: 100;
    transition: all 0.3s ease;
    animation: fabBounce 2s ease-in-out infinite;
}

.fab-signup:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 32px rgba(200, 16, 46, 0.5);
}

.fab-signup:active {
    transform: translateY(0) scale(0.98);
}

.fab-signup.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.fab-icon {
    font-size: 1.2rem;
}

.fab-text {
    letter-spacing: 1px;
}

@keyframes fabBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* 表单在视口内时隐藏悬浮按钮 */
.signup-section:in-view ~ .fab-signup,
.fab-signup.form-visible {
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
}

/* ============================================
   横幅轮播样式
   ============================================ */
.banner-section {
    position: relative;
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    background: var(--tech-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    position: relative;
}

.banner-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(15, 15, 26, 0.3) 100%);
}

.banner-icon {
    font-size: 4rem;
    margin-right: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.banner-text {
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 1;
}

.banner-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.banner-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.banner-dots {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}

/* ============================================
   活动亮点样式
   ============================================ */
.highlight-section {
    padding: var(--spacing-xl) 0;
}

.highlight-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.highlight-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.highlight-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.highlight-icon-container {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.2), rgba(212, 175, 55, 0.15));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.highlight-card:hover .highlight-icon-container {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.3), rgba(212, 175, 55, 0.25));
    transform: scale(1.05);
}

.highlight-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.highlight-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: var(--spacing-sm);
}

.highlight-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: left;
}

/* ============================================
   赞助信息样式
   ============================================ */
.sponsors-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl) var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section-title-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--gold);
}

.sponsors-subtitle {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.sponsors-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.sponsor-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.sponsor-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateX(4px);
}

.sponsor-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.2), rgba(212, 175, 55, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sponsor-placeholder {
    font-size: 2rem;
}

.sponsor-info {
    flex: 1;
}

.sponsor-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.sponsor-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   响应式调整
   ============================================ */
@media (min-width: 481px) {
    .banner-slider {
        height: 220px;
    }

    .banner-icon {
        font-size: 5rem;
    }

    .banner-text h3 {
        font-size: 1.6rem;
    }

    .banner-text p {
        font-size: 1rem;
    }

    .sponsors-list {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }

    .sponsor-card:last-child {
        grid-column: span 2;
    }
}

/* ============================================
   签到输入页面样式
   ============================================ */
.checkin-input-container {
    max-width: 450px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.checkin-input-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.checkin-input-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.checkin-input-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: var(--tech-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.checkin-input-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* 签到加载动画 */
.checkin-loading {
    text-align: center;
    padding: var(--spacing-xl);
}

.checkin-loading .loading-spinner {
    margin: 0 auto var(--spacing-md);
}

.checkin-loading p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkin-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.checkin-input-hint {
    text-align: center;
    padding: var(--spacing-lg);
}

.checkin-input-hint p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================
   签到二维码展示页面样式（管理员用）
   ============================================ */
.checkin-qr-container {
    max-width: 500px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

.checkin-qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.checkin-qr-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--tech-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.checkin-qr-display {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.checkin-qr-code {
    display: inline-block;
    padding: var(--spacing-lg);
    background: #fff;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.checkin-qr-code canvas,
.checkin-qr-code img {
    display: block;
    width: 240px !important;
    height: 240px !important;
}

.checkin-qr-hint {
    font-size: 1rem;
    color: var(--text-secondary);
}

.checkin-qr-info {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.checkin-qr-stats {
    display: flex;
    justify-content: space-around;
}

.checkin-qr-stat {
    text-align: center;
}

.checkin-qr-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: var(--tech-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.checkin-qr-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

/* ============================================
   签到成功页面样式
   ============================================ */
.checkin-container {
    max-width: 400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
}

/* 签到动画 */
.checkin-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-xl);
}

.checkin-circle {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--success), #00a885);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 184, 148, 0.4);
    animation: checkinBounce 0.6s ease-out;
    z-index: 2;
}

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

.checkin-icon {
    font-size: 3rem;
    color: #fff;
    font-weight: 300;
}

.checkin-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.checkin-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--success);
    border-radius: 50%;
    opacity: 0;
}

.checkin-ring:nth-child(1) {
    animation: ringPulse 2s ease-out infinite;
}

.checkin-ring:nth-child(2) {
    animation: ringPulse 2s ease-out 0.4s infinite;
}

.checkin-ring:nth-child(3) {
    animation: ringPulse 2s ease-out 0.8s infinite;
}

@keyframes ringPulse {
    0% {
        width: 120px;
        height: 120px;
        opacity: 0.8;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

.checkin-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--success), #00a885);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.checkin-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.checkin-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.checkin-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.checkin-info-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkin-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkin-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.checkin-message {
    margin-bottom: var(--spacing-xl);
}

.checkin-message p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: var(--spacing-xs) 0;
}

.checkin-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkin-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

