/* ════════════ 智虾助手 共用样式 ════════════ */

:root {
    --c-primary: #1a6fd4;
    --c-primary-light: #e8f0fe;
    --c-accent: #2a5caa;
    --c-text: #202124;
    --c-text-secondary: #5f6368;
    --c-border: #dadce0;
    --c-bg: #ffffff;
    --c-bg-gray: #f8f9fa;
    --c-bg-tip: #e8f0fe;
    --c-tip-border: #4a90d9;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, .1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--c-text);
    background: var(--c-bg-gray);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ── Hero Banner ── */
.hero {
    background: linear-gradient(135deg, #1a6fd4 0%, #0d47a1 100%);
    color: #fff;
    text-align: center;
    padding: 56px 24px 40px;
}

.hero h1 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.hero .subtitle {
    font-size: 1.1em;
    opacity: .88;
    margin-bottom: 20px;
}

/* ── Container ── */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Article ── */
.article {
    background: var(--c-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: -28px auto 40px;
    padding: 48px 40px 56px;
    position: relative;
    z-index: 1;
}

@media (max-width: 640px) {
    .article {
        padding: 28px 18px 32px;
        margin: -24px 8px 24px;
    }

    .hero h1 {
        font-size: 1.5em;
    }
}

/* ── Headings ── */
h2 {
    font-size: 1.45em;
    font-weight: 700;
    margin: 48px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--c-primary);
    color: var(--c-primary);
}

h2:first-child {
    margin-top: 0;
}

h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin: 28px 0 10px;
    color: var(--c-text);
}

/* ── Paragraph ── */
p {
    margin: 12px 0;
}

strong {
    font-weight: 600;
}

/* ── Links ── */
a {
    color: var(--c-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── Tables ── */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: .95em;
}

th,
td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}

th {
    background: var(--c-bg-gray);
    font-weight: 600;
    white-space: nowrap;
}

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

/* ── Code ── */
code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "SFMono-Regular", "Consolas", "Liberation Mono", "Menlo", monospace;
    font-size: .88em;
    color: #c7254e;
}

pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 20px 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
    font-size: .88em;
    line-height: 1.7;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* ── Tip Box ── */
.tip {
    background: var(--c-bg-tip);
    border-left: 4px solid var(--c-tip-border);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: .95em;
}

.tip::before {
    content: "💡";
    margin-right: 6px;
}

/* ── List ── */
ul,
ol {
    margin: 12px 0;
    padding-left: 1.8em;
}

li {
    margin: 6px 0;
}

/* ── MCP Card Grid ── */
.mcp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.mcp-card {
    background: var(--c-primary-light);
    border-radius: 10px;
    padding: 18px 20px;
    border-left: 4px solid var(--c-primary);
}

.mcp-card h4 {
    font-size: 1em;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 6px;
}

.mcp-card p {
    font-size: .88em;
    color: var(--c-text-secondary);
    margin: 0;
}

/* ── Section label ── */
.section-label {
    display: inline-block;
    background: var(--c-primary);
    color: #fff;
    font-size: .8em;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    letter-spacing: .5px;
}

/* ── Footer CTA ── */
.cta-footer {
    text-align: center;
    background: linear-gradient(135deg, #1a6fd4 0%, #0d47a1 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 40px 24px;
    margin: 48px 0 0;
}

.cta-footer h3 {
    color: #fff;
    font-size: 1.4em;
    margin: 0 0 8px;
}

.cta-footer p {
    opacity: .9;
    margin-bottom: 20px;
}

.cta-footer a {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: .95em;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    color: #333;
    margin: 6px;
    transition: transform .15s, box-shadow .15s;
}

.cta-footer a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
    text-decoration: none;
}

/* ── Page Footer ── */
.page-footer {
    text-align: center;
    padding: 24px;
    font-size: .85em;
    color: var(--c-text-secondary);
}

@media only screen and (max-width: 720px) {
    .article {
        background: transparent;
        box-shadow: none;
        margin: 10px;
        padding: 0;
    }
}
