/* 每日精选套件 - 公共布局与主题变量 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.daily-suite {
    --daily-accent: #667eea;
    --daily-accent-end: #764ba2;
    --daily-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --daily-card-bg: #fff;
    --daily-text: #1e293b;
    --daily-muted: #64748b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--daily-bg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    padding-top: 100px;
    position: relative;
}

.daily-theme-hub {
    --daily-accent: #0ea5e9;
    --daily-accent-end: #6366f1;
    --daily-bg: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #312e81 100%);
}

.daily-theme-quote {
    --daily-accent: #667eea;
    --daily-accent-end: #764ba2;
    --daily-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.daily-theme-tea {
    --daily-accent: #2d6a4f;
    --daily-accent-end: #40916c;
    --daily-bg: linear-gradient(135deg, #1b4332 0%, #52b788 100%);
}

.daily-theme-fortune {
    --daily-accent: #b45309;
    --daily-accent-end: #dc2626;
    --daily-bg: linear-gradient(135deg, #78350f 0%, #b91c1c 100%);
}

.daily-theme-history {
    --daily-accent: #92400e;
    --daily-accent-end: #b45309;
    --daily-bg: linear-gradient(135deg, #451a03 0%, #a16207 100%);
}

.daily-theme-trivia {
    --daily-accent: #0891b2;
    --daily-accent-end: #2563eb;
    --daily-bg: linear-gradient(135deg, #164e63 0%, #1d4ed8 100%);
}

.daily-theme-english {
    --daily-accent: #7c3aed;
    --daily-accent-end: #db2777;
    --daily-bg: linear-gradient(135deg, #4c1d95 0%, #be185d 100%);
}

.daily-theme-mindful {
    --daily-accent: #5b21b6;
    --daily-accent-end: #7c3aed;
    --daily-bg: linear-gradient(135deg, #312e81 0%, #6d28d9 55%, #a78bfa 100%);
}

.daily-theme-lucky {
    --daily-accent: #ea580c;
    --daily-accent-end: #eab308;
    --daily-bg: linear-gradient(135deg, #9a3412 0%, #ca8a04 100%);
}

.daily-theme-hanzi {
    --daily-accent: #1c1917;
    --daily-accent-end: #57534e;
    --daily-bg: linear-gradient(135deg, #292524 0%, #78716c 100%);
}

.daily-theme-riddle {
    --daily-accent: #059669;
    --daily-accent-end: #0d9488;
    --daily-bg: linear-gradient(135deg, #064e3b 0%, #0f766e 100%);
}

.daily-container {
    width: 100%;
    max-width: 560px;
}

.daily-container-wide {
    max-width: 720px;
}

.daily-card {
    background: var(--daily-card-bg);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 36px 30px 32px;
    animation: dailyFadeIn 0.5s ease-in;
}

@keyframes dailyFadeIn {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.daily-card h1 {
    text-align: center;
    color: #333;
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

.daily-subtitle {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.daily-date-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.daily-date-badge span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: #555;
    background: #f3f4f6;
}

.daily-date-badge .daily-today-tag {
    background: linear-gradient(135deg, var(--daily-accent) 0%, var(--daily-accent-end) 100%);
    color: #fff;
    font-weight: 600;
}

.daily-action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.daily-btn {
    flex: 1;
    min-width: 120px;
    padding: 14px 16px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.daily-btn-primary {
    background: linear-gradient(135deg, var(--daily-accent) 0%, var(--daily-accent-end) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.daily-btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.daily-btn-secondary {
    background: #fff;
    color: var(--daily-accent);
    border: 2px solid var(--daily-accent);
}

.daily-btn-secondary:hover {
    background: #f8fafc;
}

.daily-seo-intro {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #888;
    line-height: 1.7;
}

.daily-seo-intro h2 {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 600;
}

/* 固定顶栏：打赏 / 主页 / 统计 */
.daily-reward-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.6);
    z-index: 1001;
    border: none;
    animation: dailyHeartBeat 1.5s ease-in-out infinite;
}

.daily-reward-btn:hover {
    transform: scale(1.08);
}

.daily-reward-btn i {
    font-size: 28px;
    color: #fff;
}

@keyframes dailyHeartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.08); }
    50% { transform: scale(1); }
    75% { transform: scale(1.04); }
}

.daily-home-btn {
    position: fixed;
    top: 20px;
    left: 100px;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border: none;
    text-decoration: none;
}

.daily-home-btn:hover {
    transform: scale(1.08) rotate(8deg);
}

.daily-home-btn img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.daily-home-btn i {
    font-size: 28px;
    color: var(--daily-accent);
}

.daily-stats-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 15px;
    background: rgba(30, 41, 59, 0.92);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.daily-stat-item {
    color: #f1f5f9;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.daily-stat-item i {
    color: #ffd700;
}

.daily-stat-item strong {
    color: #fff;
    font-weight: bold;
}

.daily-stat-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #fff;
    padding: 6px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    gap: 4px;
}

.daily-stat-btn:hover {
    transform: translateY(-2px);
}

.daily-reward-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.daily-reward-modal.is-active {
    display: flex;
}

.daily-reward-content {
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    position: relative;
}

.daily-reward-content h2 {
    color: #333;
    margin-bottom: 16px;
    font-size: 26px;
}

.daily-reward-content > p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.daily-qrcode-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.daily-qrcode-item img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.daily-qrcode-item p {
    margin-top: 8px;
    color: #666;
    font-size: 14px;
}

.daily-close-modal {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f0f0f0;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #666;
}

.daily-reward-tip {
    color: #999;
    font-size: 14px;
    margin-top: 12px;
}

/* 套件首页网格 */
.daily-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    margin-top: 8px;
}

.daily-hub-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fafafa;
    text-decoration: none;
    color: #334155;
    transition: all 0.25s ease;
    min-height: 120px;
}

.daily-hub-card:hover {
    border-color: var(--daily-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.daily-hub-card.is-soon {
    opacity: 0.65;
    cursor: default;
    pointer-events: none;
}

.daily-hub-card i.hub-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--daily-accent);
}

.daily-hub-card .hub-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.daily-hub-card .hub-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

.daily-hub-badge {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #64748b;
}

.daily-back-hub {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--daily-accent);
    text-decoration: none;
}

.daily-back-hub:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .daily-suite {
        padding-top: 90px;
    }

    .daily-card {
        padding: 28px 18px 24px;
    }

    .daily-reward-btn {
        top: 15px;
        left: 15px;
        width: 50px;
        height: 50px;
    }

    .daily-reward-btn i {
        font-size: 24px;
    }

    .daily-home-btn {
        top: 15px;
        left: 75px;
        width: 50px;
        height: 50px;
    }

    .daily-home-btn img {
        width: 35px;
        height: 35px;
    }

    .daily-stats-bar {
        top: 15px;
        right: 15px;
        padding: 5px 10px;
        gap: 8px;
    }

    .daily-stat-item {
        font-size: 11px;
    }

    .daily-stat-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .daily-action-row {
        flex-direction: column;
    }

    .daily-btn {
        width: 100%;
        min-width: 0;
    }
}
