/* ================== 首页样式 ================== */

/* ================== 欢迎区域 ================== */
.hero-section {
    text-align: center;
    padding: 44px 24px 40px;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(91, 163, 197, 0.07), transparent),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(244, 196, 103, 0.07), transparent),
        linear-gradient(180deg, var(--primary-pale), var(--background-color));
    border-radius: var(--radius-xl);
    margin-bottom: var(--section-gap);
    position: relative;
    overflow: hidden;
}

@media (prefers-color-scheme: dark) {
    .hero-section {
        background: 
            radial-gradient(ellipse 80% 60% at 20% 10%, rgba(107, 175, 209, 0.08), transparent),
            radial-gradient(ellipse 60% 50% at 80% 80%, rgba(244, 196, 103, 0.06), transparent),
            linear-gradient(180deg, var(--primary-pale), var(--background-color));
    }
}

/* 装饰性浮动光斑 */
.hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, 
        rgba(244, 196, 103, 0.1) 0%, 
        transparent 65%);
    border-radius: 50%;
    animation: heroFloat 18s infinite ease-in-out;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -8%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, 
        rgba(91, 163, 197, 0.1) 0%, 
        transparent 65%);
    border-radius: 50%;
    animation: heroFloat 14s infinite ease-in-out reverse;
}

/* Logo 展示 */
.hero-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
    border-radius: 22px;
    box-shadow: 
        0 6px 24px rgba(91, 163, 197, 0.15),
        0 2px 8px rgba(244, 196, 103, 0.1);
    position: relative;
    z-index: 1;
    animation: logoEntrance 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@media (prefers-color-scheme: dark) {
    .hero-logo {
        box-shadow: 
            0 6px 24px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.06);
    }
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 20%, var(--secondary-color) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    animation: heroContentIn 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.15s both;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    animation: heroContentIn 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.25s both;
    line-height: 1.6;
}

/* 统计容器 */
.stats-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    animation: heroContentIn 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.35s both;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--card-background);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 12px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--shadow-hover);
}

.stat-icon {
    width: 20px;
    height: 20px;
    fill: var(--secondary-color);
    flex-shrink: 0;
}

.stat-text {
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

/* 更新信息 */
.update-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.25s ease;
}

.update-info:hover {
    border-color: var(--primary-color);
}

.update-icon {
    width: 14px;
    height: 14px;
    fill: var(--text-tertiary);
    flex-shrink: 0;
}

.update-text {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* 横幅图片区 */
.promo-banner {
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.promo-banner-link {
    display: block;
    max-width: 520px;
    margin: 0 auto;
}

.promo-banner-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(91, 163, 197, 0.12);
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid var(--border-color);
}

.promo-banner-img:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(91, 163, 197, 0.2);
}

/* ================== 装饰性云朵分隔线 ================== */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 4px 0;
    opacity: 0.35;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color));
}

.section-divider::after {
    background: linear-gradient(90deg, var(--border-color), transparent);
}

.divider-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-color);
}

/* ================== 每日签到区域 ================== */
.check-in-section {
    margin-bottom: var(--section-gap);
    position: relative;
}

.check-in-container {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 签到卡片左侧装饰条 */
.check-in-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px 0 0 4px;
}

@media (prefers-color-scheme: dark) {
    .check-in-container {
        background: var(--card-background);
        border-color: var(--border-color);
    }
}

.check-in-container:hover {
    box-shadow: 0 4px 20px var(--shadow-medium);
}

.check-in-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 8px;
}

.check-in-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.check-in-icon {
    width: 22px;
    height: 22px;
    fill: var(--primary-color);
}

.check-in-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.check-in-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.stat-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 13px;
}

.stat-separator {
    color: var(--text-tertiary);
    margin: 0 2px;
}

.check-in-hint {
    color: var(--text-secondary);
    font-size: 13px;
}

.check-in-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* 签到按钮 */
.check-in-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(91, 163, 197, 0.25);
}

.check-in-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 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, #34d399);
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.25);
}

.check-in-btn .btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.reward-text {
    font-size: 12px;
    color: var(--text-tertiary);
    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: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    margin-bottom: var(--section-gap);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* B站卡片左侧装饰条 - 使用B站品牌色 */
.bilibili-promotion::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #00AEEC, #FB7299);
    border-radius: 4px 0 0 4px;
}

@media (prefers-color-scheme: dark) {
    .bilibili-promotion {
        background: var(--card-background);
        border-color: var(--border-color);
    }
}

.bilibili-promotion:hover {
    box-shadow: 0 4px 20px var(--shadow-medium);
}

.bilibili-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-left: 8px;
}

.bilibili-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.bilibili-icon {
    width: 24px;
    height: 24px;
    fill: #00AEEC;
    flex-shrink: 0;
}

.bilibili-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

/* B站文字中的爱心图标 */
.bilibili-heart {
    width: 15px;
    height: 15px;
    fill: var(--heart-color);
    display: inline-block;
    vertical-align: middle;
    margin: 0 1px;
}

.bilibili-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, #00AEEC, #0098D4);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.25s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 174, 236, 0.2);
}

.bilibili-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 174, 236, 0.3);
}

.bilibili-btn .btn-arrow {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.25s ease;
}

.bilibili-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* ================== 快捷导航区域 ================== */
.quick-nav-section {
    margin-bottom: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
    position: relative;
    display: inline-block;
    letter-spacing: 0.3px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 12px 0 0 0;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* ================== 导航卡片 ================== */
.quick-nav-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--card-background);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.quick-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px var(--shadow-hover);
    border-color: transparent;
}

/* 导航卡片图标 */
.nav-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-card-icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.nav-card-icon-blue {
    background: linear-gradient(145deg, #5BA3C5, #7ABBD7);
    box-shadow: 0 3px 12px rgba(91, 163, 197, 0.3);
}

.nav-card-icon-gold {
    background: linear-gradient(145deg, #F4C467, #FFCE70);
    box-shadow: 0 3px 12px rgba(244, 196, 103, 0.3);
}

.nav-card-icon-purple {
    background: linear-gradient(145deg, #A78BFA, #C4B5FD);
    box-shadow: 0 3px 12px rgba(167, 139, 250, 0.3);
}

.nav-card-icon-green {
    background: linear-gradient(145deg, #34D399, #6EE7B7);
    box-shadow: 0 3px 12px rgba(52, 211, 153, 0.3);
}

.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: 3px;
}

.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: 16px;
    height: 16px;
    fill: var(--text-tertiary);
    flex-shrink: 0;
    transition: all 0.3s ease;
    opacity: 0;
}

.quick-nav-card:hover .nav-card-arrow {
    fill: var(--primary-color);
    transform: translateX(3px);
    opacity: 1;
}

/* ================== 动画定义 ================== */
@keyframes heroFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(20px, -25px);
    }
    66% {
        transform: translate(-15px, 15px);
    }
}

@keyframes logoEntrance {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes heroContentIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================== 响应式设计 ================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 36px 18px 32px;
    }
    
    .hero-logo {
        width: 76px;
        height: 76px;
        border-radius: 18px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 22px;
    }
    
    .stat-item {
        padding: 10px 16px;
    }
    
    .stat-text {
        font-size: 13px;
    }
    
    .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: 10px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 28px 16px 24px;
        border-radius: var(--radius-lg);
    }
    
    .hero-logo {
        width: 68px;
        height: 68px;
        border-radius: 16px;
        margin-bottom: 16px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    .stat-item {
        padding: 10px 14px;
        gap: 8px;
    }
    
    .stat-icon {
        width: 18px;
        height: 18px;
    }
    
    .stat-text {
        font-size: 12px;
    }
    
    .check-in-container {
        padding: 16px;
    }
    
    .check-in-title {
        font-size: 15px;
    }
    
    .check-in-btn {
        padding: 9px 20px;
        font-size: 13px;
    }
    
    .check-in-btn .btn-icon {
        width: 15px;
        height: 15px;
    }
    
    .bilibili-promotion {
        padding: 14px 16px;
    }
    
    .bilibili-icon {
        width: 22px;
        height: 22px;
    }
    
    .bilibili-text {
        font-size: 13px;
    }
    
    .bilibili-heart {
        width: 13px;
        height: 13px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .quick-nav-card {
        padding: 14px;
        gap: 12px;
    }
    
    .nav-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }
    
    .nav-card-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .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-color: var(--border-color);
    }
    
    .quick-nav-card:hover {
        border-color: rgba(107, 175, 209, 0.25);
    }
    
    .nav-card-icon-blue {
        background: linear-gradient(145deg, #5A9ABD, #73B5D3);
    }
    
    .nav-card-icon-gold {
        background: linear-gradient(145deg, #E8B85A, #F4C467);
    }
    
    .nav-card-icon-purple {
        background: linear-gradient(145deg, #9B7EF0, #B89BFA);
    }
    
    .nav-card-icon-green {
        background: linear-gradient(145deg, #2CC28E, #50D9A8);
    }
    
    .stat-item {
        border-color: var(--border-color);
    }
    
    .check-in-container::before,
    .bilibili-promotion::before {
        opacity: 0.8;
    }
    
    .promo-banner-img {
        border-color: var(--border-color);
    }
}