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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #ff4d4f 0%, #fa8c16 100%);
    min-height: 100vh;
    padding-bottom: 70px;
    color: #333;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 15px;
}

.header-banner {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-banner img {
    width: 100%;
    display: block;
}

.section {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #d4380d;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #ff4d4f, #faad14);
    border-radius: 2px;
    margin-right: 10px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e8e8e8;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d9d9d9;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #d9d9d9;
}

.timeline-item.active .timeline-dot {
    background: #ff4d4f;
    box-shadow: 0 0 0 2px #ff4d4f;
    animation: pulse 2s infinite;
}

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

.timeline-content h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 13px;
    color: #8c8c8c;
}

.timeline-item.active .timeline-content h4 {
    color: #d4380d;
    font-weight: bold;
}

.enter-buttons {
    display: flex;
    gap: 12px;
}

.enter-btn {
    flex: 1;
    padding: 15px 10px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #ff4d4f, #fa8c16);
    box-shadow: 0 4px 15px rgba(255, 77, 79, 0.4);
    transition: all 0.3s;
}

.enter-btn:active {
    transform: scale(0.98);
}

.prizes-scroll {
    overflow: hidden;
    width: 100%;
    cursor: grab;
    user-select: none;
    touch-action: pan-x;
}

.prizes-scroll:active {
    cursor: grabbing;
}

.prizes-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

.prizes-track.paused {
    animation-play-state: paused;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.prize-item {
    flex-shrink: 0;
    width: 150px;
    margin-right: 15px;
    padding: 15px 12px;
    text-align: center;
    background: linear-gradient(135deg, #fffbe6, #fff1b8);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    position: relative;
}

.prize-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6600, #ffd700, #ff6600);
    border-radius: 12px 12px 0 0;
}

.prize-item img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.prize-name {
    font-size: 15px;
    font-weight: bold;
    color: #d4380d;
    margin-bottom: 5px;
}

.prize-desc {
    font-size: 13px;
    color: #fa8c16;
    font-weight: 500;
}

.rules-content {
    font-size: 14px;
    line-height: 1.8;
    color: #595959;
    display: none;
}

.rules-content.show {
    display: block;
}

.toggle-rules {
    text-align: center;
    color: #1890ff;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
}

.tab-nav {
    display: flex;
    margin-bottom: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
}

.tab-item {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    color: #595959;
    transition: all 0.3s;
}

.tab-item.active {
    background: #fff;
    color: #d4380d;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.danmaku-container {
    height: 120px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #fff7e6, #ffe7ba);
    border-radius: 8px;
}

.danmaku-item {
    position: absolute;
    white-space: nowrap;
    font-size: 14px;
    color: #d4380d;
    padding: 6px 12px;
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: danmaku 15s linear infinite;
}

.danmaku-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes danmaku {
    from { transform: translateX(100vw); }
    to { transform: translateX(-100%); }
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: #ff4d4f;
    box-shadow: 0 0 0 3px rgba(255,77,79,0.1);
}

.form-textarea {
    resize: none;
    min-height: 100px;
}

.upload-area {
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #ff4d4f;
    background: #fff1f0;
}

.upload-icon {
    font-size: 32px;
    color: #d9d9d9;
    margin-bottom: 8px;
}

.upload-text {
    font-size: 14px;
    color: #8c8c8c;
}

.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.preview-item {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #ff4d4f, #fa8c16);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255,77,79,0.4);
    transition: all 0.3s;
}

.submit-btn:active {
    transform: scale(0.98);
}

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

.user-header {
    text-align: center;
    padding: 20px 0;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffd700;
    margin-bottom: 10px;
}

.user-nickname {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.lottery-counts {
    display: flex;
    gap: 15px;
}

.count-item {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #fff7e6, #ffe7ba);
    border-radius: 10px;
}

.count-num {
    font-size: 28px;
    font-weight: bold;
    color: #d4380d;
}

.count-label {
    font-size: 13px;
    color: #8c8c8c;
    margin-top: 4px;
}

.list-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.list-content {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

.list-meta {
    font-size: 12px;
    color: #8c8c8c;
}

.code-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.code-item {
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 16px;
    font-size: 13px;
    color: #595959;
    font-family: monospace;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 100;
}

.nav-item {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    color: #8c8c8c;
    font-size: 12px;
    text-decoration: none;
}

.nav-item.active {
    color: #ff4d4f;
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 4px;
    display: block;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    display: none;
}

.toast.show {
    display: block;
}

.winner-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ffd700, #ffc107);
    color: #d4380d;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.empty-state {
    text-align: center;
    padding: 30px 0;
    color: #8c8c8c;
    font-size: 14px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

.modal-close {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #ff4d4f;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}
