/* dang-ai-du-tangshi 页面样式 —— 当 AI 读唐诗：中文域名是智能体时代的语义锚点 */
/* 遵循全站设计令牌：赭石棕 #8B4513 / 金粉 #DAA520 / 宣纸暖底 */

:root {
    --primary-color: #8B4513;
    --secondary-color: #DAA520;
    --text-dark: #333;
    --text-gray: #666;
    --bg-light: #f8f9fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Serif SC', 'KaiTi', 'STKaiti', serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.8;
}

header {
    background: linear-gradient(135deg, var(--primary-color), #5D4037);
    padding: 35px 20px;
    color: white;
    text-align: center;
}

.header-title {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 6px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.header-subtitle { font-size: 16px; opacity: 0.9; }

.cross-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cross-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), #A0522D);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cross-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.direct-answer {
    background: white;
    padding: 25px;
    margin: 20px auto;
    max-width: 1000px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
}

.direct-answer h3 { color: var(--primary-color); margin-bottom: 10px; font-size: 18px; }
.direct-answer p { font-size: 16px; color: #444; line-height: 2.0; }

.container { max-width: 1000px; margin: 0 auto; padding: 20px; }

.hero-figure { margin-bottom: 25px; }
.hero-figure img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12); display: block; }
.hero-figure figcaption, .inline-figure figcaption {
    text-align: center;
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 8px;
}

.inline-figure { margin: 10px 0 22px; }
.inline-figure img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1); display: block; }

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    font-size: 14px;
    color: var(--text-gray);
    background: white;
    border-radius: 10px;
    padding: 12px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 28px;
}

.article-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.section-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.article-section p { font-size: 16px; color: #444; line-height: 2.0; margin-bottom: 14px; }
.article-section p:last-child { margin-bottom: 0; }
.article-section h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin: 24px 0 12px;
}

.article-section a { color: var(--primary-color); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.article-section a:hover { color: #A0522D; }

.feature-list { list-style: none; padding-left: 0; margin: 0 0 14px; }
.feature-list li {
    padding: 9px 0 9px 26px;
    position: relative;
    border-bottom: 1px dashed #eee;
    color: #444;
    line-height: 1.9;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '❖'; position: absolute; left: 2px; color: var(--secondary-color); }

.quote-card {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.12), rgba(218, 165, 32, 0.05));
    border-left: 4px solid var(--secondary-color);
    padding: 20px 22px;
    border-radius: 0 10px 10px 0;
    margin: 16px 0;
}
.quote-card p { font-style: italic; font-size: 17px !important; color: #5a4632 !important; margin-bottom: 0 !important; }

.table-wrap { overflow-x: auto; margin: 18px 0; border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); }
.api-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: white; min-width: 640px; }
.api-table th {
    background: var(--primary-color);
    color: white;
    padding: 12px 14px;
    text-align: left;
    font-size: 15px;
    letter-spacing: 1px;
    white-space: nowrap;
}
.api-table td { padding: 11px 14px; border-bottom: 1px solid #eee; color: #444; line-height: 1.7; vertical-align: top; }
.api-table tbody tr:last-child td { border-bottom: none; }
.api-table tbody tr:nth-child(even) { background: rgba(139, 69, 19, 0.03); }
.api-table code {
    background: rgba(139, 69, 19, 0.08);
    color: var(--primary-color);
    padding: 2px 7px;
    border-radius: 4px;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.92em;
    white-space: nowrap;
}

.article-section code {
    background: rgba(139, 69, 19, 0.08);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.92em;
}

.action-list { counter-reset: act; list-style: none; padding-left: 0; }
.action-list li {
    counter-increment: act;
    position: relative;
    padding: 14px 16px 14px 58px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.05), rgba(139, 69, 19, 0.02));
    border-radius: 10px;
    color: #444;
    line-height: 1.9;
}
.action-list li::before {
    content: counter(act);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #A0522D);
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.credibility-footer {
    background: #f5f1e8;
    padding: 30px;
    margin-top: 40px;
    border-top: 1px solid #ddd;
    border-radius: 12px;
}
.credibility-footer h3 { color: var(--primary-color); margin-bottom: 15px; font-size: 18px; }
.credibility-footer p { font-size: 14px; color: #666; margin-bottom: 10px; line-height: 1.9; }
.ref-list { list-style: none; padding-left: 0; margin-top: 14px; }
.ref-list li {
    font-size: 13px;
    color: #666;
    padding: 9px 0;
    border-bottom: 1px dashed #ddd;
    line-height: 1.8;
}
.ref-list li:last-child { border-bottom: none; }
.ref-list a { color: var(--primary-color); word-break: break-all; text-decoration: none; }
.ref-list a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .header-title { font-size: 24px; letter-spacing: 3px; }
    .header-subtitle { font-size: 14px; }
    .article-section { padding: 20px 16px; }
    .article-section p { font-size: 15px; }
    .section-title { font-size: 19px; }
    .article-meta { gap: 10px; font-size: 13px; }
    .api-table { font-size: 13.5px; }
    .cross-links { gap: 8px; padding: 14px; }
    .cross-link-btn { padding: 8px 14px; font-size: 13px; }
}
