/* datecalc 日期/天数计算工具页样式(dt- 前缀)
   布局与 widget 参数对齐 zhconvert 正式工具页(jf- 体系): 1200px / minmax(0,1fr)+300px@996 / 面包屑 / 小 H1 */
.dt-page { min-height: 100vh; background: #f6f7f9; }
.dt-layout {
    max-width: 1200px; margin: 0 auto; padding: 16px 20px 56px;
    display: grid; grid-template-columns: 1fr; gap: 22px;
}
.dt-col-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.dt-col-side { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 996px) {
    .dt-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

.dt-crumb { font-size: .8rem; color: var(--ifm-color-content-secondary, #525860); }
.dt-crumb a { color: var(--ifm-color-content-secondary, #525860); text-decoration: none; }
.dt-crumb a:hover { color: var(--ifm-color-primary, #3578e5); }
.dt-crumb-sep { margin: 0 7px; color: var(--ifm-color-emphasis-300, #d1d5db); }
.dt-titlebox h1 { font-size: 1.2rem; line-height: 1.25; color: var(--ifm-color-content, #1c1e21); margin: 0 0 6px; font-weight: 700; }
.dt-titlebox p { font-size: 1rem; color: var(--ifm-color-content-secondary, #525860); line-height: 1.65; margin: 0; max-width: 720px; }

.dt-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }

/* 今天卡: 深色(活时钟 + 年度进度) */
.dt-today { background: #0f172a; border-color: #0f172a; color: #fff; padding: 22px 20px; }
.dt-now { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.dt-now-cap { font-size: 13px; color: #94a3b8; margin-bottom: 6px; }
.dt-now-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dt-now-big b { font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -.5px; }
.dt-now-big span { font-size: 15px; color: #93c5fd; font-weight: 600; }
.dt-clock { font-size: 28px; font-weight: 700; color: #e2e8f0; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.dt-yearbar { margin-top: 18px; }
.dt-yearbar-info { font-size: 13px; color: #cbd5e1; margin-bottom: 8px; }
.dt-yearbar-info span { color: #fbbf24; font-weight: 700; font-size: 15px; }
.dt-track { height: 8px; border-radius: 999px; background: rgba(148,163,184,.25); overflow: hidden; }
.dt-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #38bdf8, #fbbf24); transition: width .4s; }
.dt-yearbar-sub { font-size: 12.5px; color: #64748b; margin-top: 7px; }

.dt-block { display: flex; flex-direction: column; }
.dt-block-head { margin-bottom: 12px; }
.dt-block-head h2 { font-size: 1.05rem; font-weight: 700; color: var(--ifm-color-content, #1c1e21); margin: 0 0 3px; }
.dt-block-head p { font-size: .8rem; color: #9ca3af; margin: 0; }

.dt-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.dt-field { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1; }
.dt-field-n { max-width: 120px; flex: 0 1 120px; }
.dt-field-grow { max-width: 360px; }
.dt-field > span { font-size: 12.5px; color: #6b7280; font-weight: 600; }
.dt-field input, .dt-field select {
    padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 8px;
    font-size: 15px; color: #1f2937; background: #fff; outline: none; font-family: inherit;
}
.dt-field input:focus, .dt-field select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.dt-dash { align-self: center; padding-bottom: 10px; font-size: 14px; color: #6b7280; }
.dt-inc { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #4b5563; padding-bottom: 10px; white-space: nowrap; cursor: pointer; }
.dt-seg { display: inline-flex; background: #f3f4f6; border-radius: 8px; padding: 3px; align-self: center; }
.dt-seg-btn {
    width: 42px; padding: 8px 0; border: 0; border-radius: 6px; background: transparent;
    color: #4b5563; font-size: 16px; font-weight: 700; cursor: pointer; transition: all .15s;
}
.dt-seg-btn.dt-on { background: #2563eb; color: #fff; }

.dt-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.dt-stat { border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; background: #f8fafc; }
.dt-stat b { display: block; font-size: 22px; color: #111827; font-variant-numeric: tabular-nums; }
.dt-stat span { font-size: 12px; color: #9ca3af; }
.dt-stat-main { text-align: center; background: #eff6ff; border-color: #bfdbfe; padding: 14px; }
.dt-stat-main b { font-size: 34px; color: #1d4ed8; font-weight: 800; }
.dt-stat-hl b { color: #1d4ed8; }
.dt-line { margin: 12px 2px 0; font-size: 13.5px; color: #4b5563; line-height: 1.7; }

.dt-out { margin-top: 16px; border: 1px solid #bfdbfe; background: #eff6ff; border-radius: 10px; padding: 16px; text-align: center; }
.dt-out-date { font-size: 28px; font-weight: 800; color: #1d4ed8; line-height: 1.2; }
.dt-out-meta { font-size: 13.5px; color: #4b5563; margin-top: 6px; }

/* 节日倒计时卡 */
.dt-cd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dt-cd { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dt-cd-name { font-size: 15px; font-weight: 700; color: #1f2937; }
.dt-cd-date { font-size: 12.5px; color: #9ca3af; margin-top: 3px; }
.dt-cd-num { text-align: right; }
.dt-cd-num b { font-size: 26px; font-weight: 800; color: #111827; font-variant-numeric: tabular-nums; line-height: 1; }
.dt-cd-num span { font-size: 11.5px; color: #9ca3af; }
.dt-cd.dt-cd-soon { border-color: #fca5a5; background: #fef2f2; }
.dt-cd.dt-cd-soon .dt-cd-num b { color: #dc2626; }

/* 自定义倒计时: 大结果卡 */
.dt-cd-card { overflow: hidden; padding: 0; }
.dt-cd-card .dt-form { padding: 18px 18px 0; }
.dt-cd-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 18px 0; }
.dt-cd-chips-cap { font-size: 12.5px; color: #9ca3af; }
.dt-chip {
    padding: 6px 14px; border-radius: 999px; border: 1px solid #d1d5db; background: #fff;
    color: #374151; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.dt-chip:hover { border-color: #6d28d9; color: #6d28d9; background: #f5f3ff; }
.dt-cd-hero {
    margin-top: 16px; padding: 22px 18px 18px; text-align: center;
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 55%, #7c3aed 100%); color: #fff;
}
.dt-cd-hero-top { font-size: 14px; color: #ddd6fe; margin-bottom: 8px; }
.dt-cd-hero-num { font-size: 56px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.dt-cd-hero-num em { font-style: normal; font-size: 18px; font-weight: 600; color: #ddd6fe; margin-left: 8px; }
.dt-cd-hero-sub { font-size: 14px; color: #ede9fe; margin-top: 12px; line-height: 1.75; }
.dt-cd-sub-b { color: #fde68a; font-weight: 700; }
.dt-cd-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #f3f4f6; }
.dt-cd-st { padding: 14px 8px; text-align: center; border-right: 1px solid #f3f4f6; }
.dt-cd-st:last-child { border-right: 0; }
.dt-cd-st b { display: block; font-size: 18px; color: #6d28d9; font-variant-numeric: tabular-nums; }
.dt-cd-st span { font-size: 11.5px; color: #9ca3af; }

/* 正文与 FAQ */
.dt-doc h3 { font-size: 1rem; font-weight: 700; color: var(--ifm-color-content, #1c1e21); margin: 0 0 12px; }
.dt-doc .doc-content { font-size: .95rem; color: var(--ifm-color-content, #1c1e21); line-height: 1.8; }
.dt-doc .doc-content h2 { font-size: 1.02rem; font-weight: 700; margin: 26px 0 10px; padding-top: 18px; border-top: 1px solid var(--ifm-color-emphasis-200, #ebedf0); }
.dt-doc .doc-content h2:first-child { margin-top: 14px; padding-top: 0; border-top: 0; }
.dt-doc .doc-content p { margin: 0 0 12px; }
.dt-doc .doc-content ul, .dt-doc .doc-content ol { margin: 0 0 12px; padding-left: 22px; }
.dt-doc .doc-content li { margin: 5px 0; }
.dt-doc .doc-content table { width: 100%; border-collapse: collapse; margin: 14px 0 16px; font-size: .88rem; }
.dt-doc .doc-content th { background: #f3f4f6; text-align: left; font-weight: 600; }
.dt-doc .doc-content th, .dt-doc .doc-content td { border: 1px solid var(--ifm-color-emphasis-200, #ebedf0); padding: 7px 12px; }
.dt-doc .doc-content blockquote { margin: 14px 0; padding: 10px 14px; border-left: 3px solid #6d28d9; background: #f5f3ff; border-radius: 0 8px 8px 0; color: #4c1d95; font-size: .88rem; }
.dt-faqbox h3 { font-size: 1rem; font-weight: 700; color: var(--ifm-color-content, #1c1e21); margin: 0 0 12px; }
.dt-faq { border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; padding: 0 18px; margin-bottom: 10px; }
.dt-faq summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: #1f2937; padding: 13px 0; }
.dt-faq p { font-size: .85rem; color: #6b7280; line-height: 1.75; margin: 0; padding: 0 0 13px; }

/* 右栏 widget(参数对齐 zhconvert jf-widget) */
.dt-widget { background: #fff; border: 1px solid var(--ifm-color-emphasis-200, #ebedf0); border-radius: 12px; padding: 16px 18px; }
.dt-widget-title { font-size: 1rem; font-weight: 700; color: var(--ifm-color-content, #1c1e21); margin: 0 0 12px; }
.dt-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dt-table th { text-align: left; color: var(--ifm-color-content-secondary, #525860); font-weight: 500; font-size: .8rem; padding: 5px 4px; border-bottom: 1px solid var(--ifm-color-emphasis-200, #ebedf0); }
.dt-table td { padding: 6px 4px; border-bottom: 1px solid #f3f4f6; color: var(--ifm-color-content, #1c1e21); }
.dt-table tr:last-child td { border-bottom: 0; }
.dt-table td:first-child { color: var(--ifm-color-content, #1c1e21); font-weight: 500; }
.dt-table td b { color: #1d4ed8; font-variant-numeric: tabular-nums; }
.dt-table td:last-child { text-align: right; }

.dt-tool-link {
    display: flex; align-items: center; gap: 10px; padding: 8px 6px; margin: 0 -6px;
    border-radius: 9px; text-decoration: none; transition: background .15s;
}
.dt-tool-link:hover { background: var(--ifm-hover-overlay, rgba(0,0,0,.05)); }
.dt-tool-link b { display: block; font-size: .9rem; color: var(--ifm-color-content, #1c1e21); font-weight: 500; }
.dt-tool-link div > span { display: block; font-size: .8rem; color: var(--ifm-color-content-secondary, #525860); margin-top: 1px; }
.dt-tool-ico {
    flex: none; width: 28px; height: 28px; border-radius: 7px; margin-top: 1px;
    background: #eef2ff; color: #4338ca; font-weight: 700; font-size: .8rem;
    display: flex; align-items: center; justify-content: center;
}
.dt-tool-ico-2 { background: #fef3c7; color: #b45309; }
.dt-tool-ico-all { background: #e0f2fe; color: #0369a1; }

.dt-widget-priv { background: #ecfdf5; border-color: #a7f3d0; }
.dt-widget-priv b { font-size: .9rem; color: #065f46; }
.dt-widget-priv p { font-size: .8rem; color: #047857; line-height: 1.65; margin: 6px 0 0; }

@media (min-width: 760px) {
    .dt-stats { grid-template-columns: repeat(4, 1fr); }
    .dt-stat-main b { font-size: 30px; }
    .dt-now-big b { font-size: 40px; }
    .dt-clock { font-size: 34px; }
}
@media (min-width: 996px) {
    .dt-cd-grid { grid-template-columns: repeat(4, 1fr); }
}
