/* 全局样式 */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to bottom, #dc2626 0%, #991b1b 100%);
    min-height: 100vh;
    color: #fff;
    line-height: 1.5;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 英雄区块样式 */
.hero-section {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(251, 191, 36, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* 标题样式 - 增强字体清晰度 */
.hero-section h1 {
    font-weight: 900;
    text-shadow: 
        0 0 10px rgba(251, 191, 36, 0.8),
        2px 2px 8px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(251, 191, 36, 0.4);
    letter-spacing: 0.08em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    filter: contrast(1.1) brightness(1.05);
    font-size: 2.5rem;
    line-height: 1.3;
}

/* 按钮样式 */
.register-btn {
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.register-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    z-index: -1;
    transition: all 0.6s ease;
}

.register-btn:hover:before {
    left: 100%;
}

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

/* 下载按钮样式 */
.download-btn {
    transition: all 0.2s ease;
    background: linear-gradient(to right, #ef4444, #dc2626);
}

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

/* 卡片悬停效果 */
.hover\:shadow-2xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover\:-translate-y-2:hover {
    transform: translateY(-8px);
}

/* 响应式调整 */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 通知提示样式 */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #10b981;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification.show {
    opacity: 1;
}

/* 渐变边框效果 */
.gradient-border {
    position: relative;
    background: linear-gradient(45deg, #dc2626, #f59e0b, #dc2626);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

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

/* 返回顶部按钮动画 */
#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

/* 滚动指示器动画 */
@keyframes scrollIndicator {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .animate-bounce > div:last-child {
    animation: scrollIndicator 2s ease-in-out infinite;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-section .text-4xl {
        font-size: 2rem;
    }
    
    .hero-section .text-6xl {
        font-size: 3rem;
    }
    
    /* 移动端五角星位置调整 */
    .hero-section .absolute.top-10.left-10 {
        top: 1rem;
        left: 1rem;
        font-size: 2rem;
    }
    
    .hero-section .absolute.top-20.right-20 {
        top: 1.5rem;
        right: 1rem;
        font-size: 1.5rem;
    }
    
    .hero-section .absolute.bottom-20.left-20 {
        bottom: 2rem;
        left: 1rem;
        font-size: 1.25rem;
    }
    
    .hero-section .absolute.bottom-10.right-10 {
        bottom: 1rem;
        right: 1rem;
        font-size: 2.5rem;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* 数字计数动画 */
@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.count-animation {
    animation: countUp 1s ease-out;
}

/* 脉冲效果增强 */
.pulse-enhanced {
    animation: pulseEnhanced 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseEnhanced {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #dc2626, #f59e0b);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #b91c1c, #d97706);
}

/* 选中文本样式 */
::selection {
    background-color: rgba(251, 191, 36, 0.3);
    color: #dc2626;
}

::-moz-selection {
    background-color: rgba(251, 191, 36, 0.3);
    color: #dc2626;
}

/* 焦点样式 */
button:focus,
a:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* 发光文字效果 */
.glow-text {
    animation: textGlow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
}

@keyframes textGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.8));
    }
    to {
        filter: drop-shadow(0 0 15px rgba(251, 191, 36, 1));
    }
}

/* 页脚样式 - 增加更多间距 */
footer {
    position: relative;
    margin-top: 5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

footer p {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
}

/* 打印样式 */
@media print {
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .hero-section * {
        color: black !important;
    }
    
    #back-to-top {
        display: none !important;
    }
}