/* 首页样式 */

/* ================== 欢迎区域 ================== */
.hero-section {
    text-align: center;
    padding: 50px 20px 40px;
    background: linear-gradient(135deg, 
        rgba(91, 163, 197, 0.06), 
        rgba(244, 196, 103, 0.06));
    border-radius: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

@media (prefers-color-scheme: dark) {
    .hero-section {
        background: linear-gradient(135deg, 
            rgba(107, 175, 209, 0.1), 
            rgba(244, 196, 103, 0.1));
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, 
        rgba(91, 163, 197, 0.08) 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.08) 0%, 
        transparent 70%);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out reverse;
}

.hero-title {
    font-size: 32px;
    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: 12px;
    position: relative;
    z-index: 1;
    animation: titleFadeIn 0.8s ease;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
    animation: subtitleFadeIn 1s ease 0.2s both;
}

/* 统计容器 */
.stats-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
    animation: statsFadeIn 1.2s ease 0.4s both;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-hover);
}

/* 统计图标样式 - 去掉动画 */
.stat-icon {
    width: 24px;
    height: 24px;
    fill: var(--secondary-color);
    flex-shrink: 0;
}

.stat-text {
    margin: 0;
    font-size: 15px;
    color: var(--text-color);
    font-weight: 500;
}

/* 更新信息 */
.update-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, 
        rgba(91, 163, 197, 0.08), 
        rgba(244, 196, 103, 0.08));
    border-radius: 16px;
    transition: all 0.3s ease;
}

.update-info:hover {
    background: linear-gradient(135deg, 
        rgba(91, 163, 197, 0.12), 
        rgba(244, 196, 103, 0.12));
}

.update-icon {
    width: 16px;
    height: 16px;
    fill: var(--primary-color);
    flex-shrink: 0;
}

.update-text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 横幅图片区 */
.promo-banner {
    margin-top: 28px;
    position: relative;
    z-index: 1;
}

.promo-banner-link {
    display: block;
    max-width: 560px;
    margin: 0 auto;
}

.promo-banner-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(91, 163, 197, 0.15);
    transition: all 0.3s ease;
}

.promo-banner-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(91, 163, 197, 0.25);
}

/* ================== 每日签到区域 ================== */
.check-in-section {
    margin-bottom: 24px;
    position: relative;
}

.check-in-container {
    background: linear-gradient(135deg, 
        rgba(91, 163, 197, 0.06), 
        rgba(244, 196, 103, 0.06));
    border: 1px solid rgba(91, 163, 197, 0.15);
    border-radius: 16px;
    padding: 20px 24px;
    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.1), 
            rgba(244, 196, 103, 0.1));
        border-color: rgba(91, 163, 197, 0.25);
    }
}

.check-in-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-hover);
}

.check-in-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-in-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-color);
}

.check-in-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

.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: 15px;
    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 4px 16px rgba(91, 163, 197, 0.35);
}

.check-in-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.check-in-btn.checked {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* 按钮内SVG图标 */
.check-in-btn .btn-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.reward-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

/* 签到成功动画 */
@keyframes checkInSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
    100% {
        transform: scale(1);
    }
}

/* 奖励粒子效果 */
.reward-particle {
    position: absolute;
    animation: floatUp 1.5s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-80px) rotate(180deg);
        opacity: 0;
    }
}

/* ================== B站活动区域 ================== */
.bilibili-promotion {
    background: linear-gradient(135deg, 
        rgba(0, 174, 236, 0.06), 
        rgba(251, 114, 153, 0.06));
    border: 1px solid rgba(0, 174, 236, 0.15);
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .bilibili-promotion {
        background: linear-gradient(135deg, 
            rgba(0, 174, 236, 0.1), 
            rgba(251, 114, 153, 0.1));
        border-color: rgba(0, 174, 236, 0.25);
    }
}

.bilibili-promotion:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 174, 236, 0.12);
}

.bilibili-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.bilibili-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* B站图标 - 去掉动画 */
.bilibili-icon {
    width: 26px;
    height: 26px;
    fill: #00AEEC;
    flex-shrink: 0;
}

.bilibili-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

/* B站文字中的爱心图标 */
.bilibili-heart {
    width: 16px;
    height: 16px;
    fill: var(--heart-color);
    display: inline-block;
    vertical-align: middle;
    margin: 0 1px;
}

.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;
    flex-shrink: 0;
}

.bilibili-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 174, 236, 0.35);
}

.bilibili-btn .btn-arrow {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.bilibili-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* ================== 快捷导航区域 ================== */
.quick-nav-section {
    margin-bottom: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 12px 0 0 0;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

/* 导航卡片 */
.quick-nav-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--card-background);
    border-radius: 14px;
    box-shadow: 0 2px 12px var(--shadow-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.quick-nav-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);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.quick-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow-hover);
    border-color: rgba(91, 163, 197, 0.1);
}

.quick-nav-card:hover::before {
    transform: scaleX(1);
}

/* 导航卡片图标 */
.nav-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.nav-card-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.nav-card-icon-blue {
    background: linear-gradient(135deg, #5BA3C5, #7ABBD7);
    box-shadow: 0 3px 10px rgba(91, 163, 197, 0.25);
}

.nav-card-icon-gold {
    background: linear-gradient(135deg, #F4C467, #FFD489);
    box-shadow: 0 3px 10px rgba(244, 196, 103, 0.25);
}

.nav-card-icon-purple {
    background: linear-gradient(135deg, #A78BFA, #C4B5FD);
    box-shadow: 0 3px 10px rgba(167, 139, 250, 0.25);
}

.nav-card-icon-green {
    background: linear-gradient(135deg, #34D399, #6EE7B7);
    box-shadow: 0 3px 10px rgba(52, 211, 153, 0.25);
}

.quick-nav-card:hover .nav-card-icon {
    transform: scale(1.08);
}

/* 导航卡片内容 */
.nav-card-content {
    flex: 1;
    min-width: 0;
}

.nav-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.nav-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 导航卡片箭头 */
.nav-card-arrow {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
    flex-shrink: 0;
    transition: all 0.3s ease;
    opacity: 0.4;
}

.quick-nav-card:hover .nav-card-arrow {
    fill: var(--primary-color);
    transform: translateX(3px);
    opacity: 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);
    }
}

/* ================== 响应式设计 ================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 16px 32px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .stat-item {
        padding: 12px 18px;
    }
    
    .stat-text {
        font-size: 14px;
    }
    
    .check-in-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 18px 20px;
    }
    
    .check-in-left {
        width: 100%;
        align-items: center;
    }
    
    .check-in-right {
        width: 100%;
    }
    
    .bilibili-content {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
    
    .bilibili-left {
        justify-content: center;
    }
    
    .bilibili-text {
        justify-content: center;
    }
    
    .bilibili-btn {
        width: 100%;
        max-width: 180px;
        justify-content: center;
    }
    
    .quick-nav-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 32px 14px 28px;
        border-radius: 16px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .stat-item {
        padding: 10px 14px;
        gap: 10px;
    }
    
    .stat-icon {
        width: 20px;
        height: 20px;
    }
    
    .stat-text {
        font-size: 13px;
    }
    
    .check-in-container {
        padding: 16px;
    }
    
    .check-in-title {
        font-size: 16px;
    }
    
    .check-in-btn {
        padding: 9px 20px;
        font-size: 14px;
    }
    
    .check-in-btn .btn-icon {
        width: 16px;
        height: 16px;
    }
    
    .bilibili-promotion {
        padding: 14px 16px;
    }
    
    .bilibili-icon {
        width: 22px;
        height: 22px;
    }
    
    .bilibili-text {
        font-size: 14px;
    }
    
    .bilibili-heart {
        width: 14px;
        height: 14px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .quick-nav-card {
        padding: 14px;
        gap: 12px;
    }
    
    .nav-card-icon {
        width: 44px;
        height: 44px;
    }
    
    .nav-card-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .nav-card-title {
        font-size: 14px;
    }
    
    .nav-card-desc {
        font-size: 11px;
    }
}

/* ================== 深色模式额外优化 ================== */
@media (prefers-color-scheme: dark) {
    .quick-nav-card {
        background: var(--card-background);
        border: 1px solid var(--border-color);
    }
    
    .quick-nav-card:hover {
        border-color: rgba(107, 175, 209, 0.3);
    }
    
    .nav-card-icon-blue {
        background: linear-gradient(135deg, #6BAFD1, #8AC5E3);
    }
    
    .nav-card-icon-gold {
        background: linear-gradient(135deg, #F4C467, #FFD489);
    }
    
    .nav-card-icon-purple {
        background: linear-gradient(135deg, #B794F4, #D6BCFA);
    }
    
    .nav-card-icon-green {
        background: linear-gradient(135deg, #48D1A5, #81E6C4);
    }
    
    .stat-item {
        border: 1px solid var(--border-color);
    }
}