/* public/assets/css/life/holiday-countdown.css */

/* --- 主题变量 --- */
.hcd-workspace {
    --hcd-bg-start: #0f172a; --hcd-bg-end: #1e1b4b;
    --hcd-title: #facc15; --hcd-accent: #dc2626;
    --hcd-box-bg: rgba(255, 255, 255, 0.1); --hcd-box-border: rgba(255, 255, 255, 0.2);
}
.theme-christmas { --hcd-bg-start: #064e3b; --hcd-bg-end: #450a0a; --hcd-title: #facc15; --hcd-accent: #ef4444; }
.theme-halloween { --hcd-bg-start: #2e1065; --hcd-bg-end: #000000; --hcd-title: #f97316; --hcd-accent: #ea580c; --hcd-box-bg: rgba(249, 115, 22, 0.1); }
.theme-valentines { --hcd-bg-start: #be185d; --hcd-bg-end: #4c1d95; --hcd-title: #fbcfe8; --hcd-accent: #fb7185; }
.theme-newyear { --hcd-bg-start: #020617; --hcd-bg-end: #1e1b4b; --hcd-title: #fbbf24; --hcd-accent: #6366f1; }
.theme-thanksgiving { --hcd-bg-start: #451a03; --hcd-bg-end: #78350f; --hcd-title: #fbbf24; --hcd-accent: #d97706; }
.theme-independence { --hcd-bg-start: #1e3a8a; --hcd-bg-end: #7f1d1d; --hcd-title: #ffffff; --hcd-accent: #ef4444; }
.theme-blackfriday { --hcd-bg-start: #000000; --hcd-bg-end: #1f2937; --hcd-title: #ffffff; --hcd-accent: #22c55e; }

/* 英雄区大图标 */
.hcd-icon-hero { font-size: clamp(3.5rem, 8vw, 5rem); margin-bottom: 12px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); line-height: 1; }

/* --- 倒计时展示区 --- */
.hcd-workspace { 
    width: 100%; margin-bottom: 40px; border-radius: var(--radius-lg); 
    overflow: hidden; position: relative;
    background: linear-gradient(135deg, var(--hcd-bg-start) 0%, var(--hcd-bg-end) 100%);
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.2);
    min-height: 480px; display: flex; align-items: center; justify-content: center;
}

.hcd-particle-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.hcd-particle {
    position: absolute; top: -10%; color: #ffffff; user-select: none; pointer-events: none;
    animation: hcd-fall linear infinite; text-shadow: 0 0 5px rgba(255,255,255,0.6);
}
@keyframes hcd-fall { 0% { transform: translateY(-10vh) translateX(0) rotate(0deg); } 50% { transform: translateY(50vh) translateX(15px) rotate(180deg); } 100% { transform: translateY(110vh) translateX(-15px) rotate(360deg); } }

.hcd-display-panel { position: relative; z-index: 10; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; width: 100%; }
.hcd-target-year { font-family: 'Georgia', serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; color: var(--hcd-title); text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 2px; text-align: center; }
.hcd-target-date { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 35px; letter-spacing: 1px; font-weight: 500; }

.hcd-timer-grid { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: nowrap; }
.hcd-time-box {
    background: var(--hcd-box-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--hcd-box-border); border-radius: 16px; padding: 20px; width: clamp(70px, 14vw, 130px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.hcd-time-box:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.15); border-color: var(--hcd-accent); }
.hcd-number { font-family: 'Fira Code', 'Courier New', monospace; font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; color: #ffffff; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hcd-label { font-size: clamp(0.7rem, 2vw, 0.9rem); font-weight: 600; color: rgba(255,255,255,0.7); margin-top: 10px; text-transform: uppercase; letter-spacing: 1px; }
.hcd-time-separator { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; color: rgba(255,255,255,0.4); animation: hcdBlink 1s infinite; }
@keyframes hcdBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hcd-message-box { margin-top: 40px; padding: 12px 30px; border-radius: 50px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #cbd5e1; font-size: 1.1rem; font-weight: 600; letter-spacing: 0.5px; }
.hcd-message-box.is-arrived { background: var(--hcd-accent); color: #ffffff; box-shadow: 0 0 20px var(--hcd-accent); border-color: #ffffff; animation: hcdPop 0.5s ease-out forwards; }
@keyframes hcdPop { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1.1); opacity: 1; } }
@media (max-width: 600px) { .hcd-timer-grid { gap: 5px; } .hcd-time-box { padding: 12px 5px; border-radius: 12px; } .hcd-time-separator { font-size: 1.5rem; margin: 0 -2px; } }

/* --- 底部发现更多节日卡片 (响应式网格) --- */
.hcd-explore-section { margin-bottom: 40px; }
.hcd-explore-title { font-size: 1.25rem; font-weight: 700; color: var(--text-main); margin-bottom: 16px; }
.hcd-explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }

.hcd-explore-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 16px;
    padding: 20px 16px; text-decoration: none; color: var(--text-main);
    transition: all 0.2s ease; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.hcd-explore-card:hover {
    border-color: var(--primary-color); transform: translateY(-3px); box-shadow: 0 10px 20px -5px rgba(0,102,204,0.1);
}
.hcd-explore-icon { font-size: 2rem; line-height: 1; }
.hcd-explore-name { font-weight: 600; font-size: 0.95rem; text-align: center; }

/* 暗黑模式适配 */
[data-theme="dark"] .hcd-explore-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .hcd-explore-card:hover { border-color: var(--primary-color); }

/* --- SEO排版 --- */
.tool-seo-content { margin-top: 50px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 40px; }
.tool-seo-content h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; margin-bottom: 20px; color: var(--text-main); }
.seo-intro-section { margin-bottom: 40px; }
.seo-lead-text { font-size: 1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 15px;}
.seo-sub-heading { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; color: var(--text-main); border-left: 4px solid var(--primary-color); padding-left: 12px;}
.seo-feature-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.seo-feature-card { background: var(--bg-body); border: 1px solid var(--border-color); padding: 24px; border-radius: 12px; transition: all 0.3s ease; }
.seo-feature-card:hover { border-color: var(--primary-color); transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 102, 204, 0.08); }
.seo-feature-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.seo-icon { font-size: 24px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(var(--primary-rgb, 0, 102, 204), 0.1); border-radius: 10px; }
.seo-feature-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--text-main); line-height: 1.4;}
.seo-feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

@media (max-width: 900px) { .seo-feature-grid-3 { grid-template-columns: 1fr; gap: 16px; } .tool-seo-content { padding: 24px; } }
[data-theme="dark"] .tool-seo-content { background: var(--bg-surface); }
[data-theme="dark"] .seo-feature-card { background: #0f172a; border-color: #334155; }