/* ==========================================================
   节日/节气 API 服务页专用样式
   设计规范见项目根目录 .design-spec.md
   ========================================================== */

.fest-body {
    background: #f8fafc !important;
}

.fest-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 48px;
}

/* ---------- 面板 ---------- */
.fest-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.fest-panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.fest-panel-title i {
    color: #64748b;
}

.fest-panel-sub {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 18px;
}

.fest-panel h3 {
    font-size: 0.98rem;
    font-weight: 650;
    color: #0f172a;
    margin: 20px 0 10px;
}

.fest-panel p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* 仅行内 code 应用此样式，代码块内 code 完全由 Prism 控制 */
.fest-panel :not(pre) > code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.8rem;
    color: #0f766e;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace;
}

/* ---------- 终端风格代码块（签名元素） ---------- */
.fest-terminal {
    background: #141414;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #545454;
    margin: 12px 0;
}

.fest-terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #202020;
}

.fest-terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.fest-terminal-dot:nth-child(1) { background: #f87171; }
.fest-terminal-dot:nth-child(2) { background: #fbbf24; }
.fest-terminal-dot:nth-child(3) { background: #34d399; }

.fest-terminal-title {
    margin-left: 8px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace;
    font-size: 0.75rem;
    color: #64748b;
}

.fest-terminal-body {
    padding: 14px 0;
    overflow-x: auto;
}

/* 代码块样式完全由 Prism okaidia 主题控制，不做任何覆盖 */

/* ---------- 表格 ---------- */
.fest-table-wrap {
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.fest-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.fest-table th {
    background: #f8fafc;
    padding: 11px 16px;
    text-align: left;
    font-weight: 600;
    color: #334155;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.fest-table td {
    padding: 11px 16px;
    color: #475569;
    border-bottom: 1px solid #eef2f7;
    line-height: 1.6;
}

.fest-table tr:last-child td {
    border-bottom: none;
}

.fest-table tbody tr {
    transition: background 0.15s ease;
}

.fest-table tbody tr:hover {
    background: #fafefd;
}

.fest-table :not(pre) > code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.78rem;
    color: #0f766e;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace;
}

/* ---------- 提示条 ---------- */
.fest-callout {
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 16px 0;
    border: 1px solid;
}

.fest-callout ul {
    margin: 8px 0 0 20px;
}

.fest-callout li {
    margin-bottom: 4px;
}

.fest-callout--info {
    background: #f0f9ff;
    border-color: #e0f2fe;
    border-left: 4px solid #0ea5e9;
    color: #0369a1;
}

.fest-callout--warn {
    background: #fffbeb;
    border-color: #fde68a;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.fest-callout--credit {
    background: #f0f9ff;
    border-color: #e0f2fe;
    border-left: 4px solid #0ea5e9;
    color: #0369a1;
}

.fest-callout a {
    color: #0ea5e9;
}

/* ---------- 示例图片展示 ---------- */
.fest-demo-img {
    text-align: center;
    margin: 20px 0;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 14px;
}

.fest-demo-img img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

.fest-demo-img p {
    margin-top: 14px;
    color: #94a3b8;
    font-size: 0.82rem;
}

/* ---------- 支持节日卡片 ---------- */
.fest-festivals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.fest-festival-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
}

.fest-festival-card h4 {
    font-size: 1rem;
    font-weight: 650;
    color: #0f172a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fest-festival-card h4 i {
    color: #64748b;
}

.fest-festival-card p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .fest-festivals {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .fest-container {
        padding: 16px 14px 40px;
    }

    .fest-head {
        align-items: flex-start;
    }

    .fest-panel {
        padding: 18px 16px;
    }
}
