/* 首页样式 */

.hero-section {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, 
        rgba(91, 163, 197, 0.05), 
        rgba(244, 196, 103, 0.05));
    border-radius: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

@media (prefers-color-scheme: dark) {
    .hero-section {
        background: linear-gradient(135deg, 
            rgba(107, 175, 209, 0.08), 
            rgba(244, 196, 103, 0.08));
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, 
        rgba(91, 163, 197, 0.1) 0%, 
        transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, 
        rgba(244, 196, 103, 0.1) 0%, 
        transparent 70%);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out reverse;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    animation: titleFadeIn 0.8s ease;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    animation: subtitleFadeIn 1s ease 0.2s both;
}

.stats-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    animation: statsFadeIn 1.2s ease 0.4s both;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.stat-icon {
    font-size: 24px;
    animation: sparkle 2s infinite;
}

.stat-text {
    margin: 0;
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
}

.update-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, 
        rgba(91, 163, 197, 0.1), 
        rgba(244, 196, 103, 0.1));
    border-radius: 20px;
    transition: all 0.3s ease;
}

.update-info:hover {
    background: linear-gradient(135deg, 
        rgba(91, 163, 197, 0.15), 
        rgba(244, 196, 103, 0.15));
}

.update-icon {
    font-size: 18px;
}

.update-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 每日签到区域样式 */
.check-in-section {
    margin-bottom: 30px;
    position: relative;
}

.check-in-container {
    background: linear-gradient(135deg, 
        rgba(91, 163, 197, 0.08), 
        rgba(244, 196, 103, 0.08));
    border: 1px solid rgba(91, 163, 197, 0.2);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .check-in-container {
        background: linear-gradient(135deg, 
            rgba(91, 163, 197, 0.12), 
            rgba(244, 196, 103, 0.12));
        border-color: rgba(91, 163, 197, 0.3);
    }
}

.check-in-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.check-in-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-in-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.check-in-icon {
    font-size: 24px;
}

.check-in-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.check-in-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    font-weight: 600;
    color: var(--primary-color);
}

.stat-separator {
    color: var(--text-secondary);
    margin: 0 4px;
}

.check-in-hint {
    color: var(--text-secondary);
}

.check-in-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.check-in-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.check-in-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 163, 197, 0.4);
}

.check-in-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.check-in-btn.checked {
    background: linear-gradient(135deg, #10b981, #059669);
}

.btn-icon {
    font-size: 20px;
}

.reward-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

/* 签到成功动画 */
@keyframes checkInSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 奖励粒子效果 */
.reward-particle {
    position: absolute;
    font-size: 24px;
    animation: floatUp 2s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 功能卡片区域 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.feature-card {
    background: var(--card-background);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px var(--shadow-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--shadow-hover);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(-5deg) scale(1.1);
}

.feature-emoji {
    font-size: 32px;
    display: inline-block;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* B站活动区域样式 */
.bilibili-promotion {
    background: linear-gradient(135deg, 
        rgba(0, 174, 236, 0.08), 
        rgba(251, 114, 153, 0.08));
    border: 1px solid rgba(0, 174, 236, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .bilibili-promotion {
        background: linear-gradient(135deg, 
            rgba(0, 174, 236, 0.12), 
            rgba(251, 114, 153, 0.12));
        border-color: rgba(0, 174, 236, 0.3);
    }
}

.bilibili-promotion:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 174, 236, 0.15);
}

.bilibili-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.bilibili-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.bilibili-icon {
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
}

.bilibili-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

.bilibili-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #00AEEC, #FB7299);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.bilibili-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 174, 236, 0.4);
}

.btn-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.bilibili-btn:hover .btn-arrow {
    transform: translateX(4px);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 动画定义 */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(30px, -30px);
    }
    66% {
        transform: translate(-20px, 20px);
    }
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes statsFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-4px);
    }
    75% {
        transform: translateY(4px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 14px 20px;
    }
    
    .stat-text {
        font-size: 14px;
    }
    
    .check-in-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .check-in-left {
        width: 100%;
        align-items: center;
    }
    
    .check-in-right {
        width: 100%;
    }
    
    .bilibili-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .bilibili-left {
        justify-content: center;
    }
    
    .bilibili-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 16px 30px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    .check-in-container {
        padding: 16px;
    }
    
    .check-in-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .btn-icon {
        font-size: 18px;
    }
    
    .bilibili-promotion {
        padding: 16px;
    }
    
    .bilibili-text {
        font-size: 14px;
    }
}