/* AutoShu SEO 静态页公共样式 (page-base.css)
   适用: features/ guides/ en/ lab/ 下的静态 SEO 页面
   主色与主站保持一致: #ff385c */

:root {
    --primary: #ff385c;
    --primary-dark: #e02548;
    --text: #1f2937;
    --text-muted: #64748b;
    --bg: #f8f9fb;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "HarmonyOS Sans", "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code {
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.1em 0.4em;
    font-size: 0.9em;
}

/* ---------- 顶部导航 ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.site-header .inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-header .logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}

.site-header .logo:hover {
    color: var(--primary);
    text-decoration: none;
}

.site-header .nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.site-header .nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.site-header .nav a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* ---------- 面包屑 ---------- */

.breadcrumb {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 1.25rem 0 0.5rem;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* ---------- 页面容器 ---------- */

.page-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

h1 {
    font-size: 1.9rem;
    line-height: 1.35;
    margin: 0.75rem 0 1rem;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
}

h3 {
    font-size: 1.05rem;
    margin: 0 0 0.6rem;
}

.lead {
    font-size: 1.08rem;
    color: var(--text-muted);
    margin: 0 0 1.75rem;
}

/* ---------- 卡片 ---------- */

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.6rem;
    margin: 0 0 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.card ul,
.card ol {
    margin: 0.5rem 0 0;
    padding-left: 1.3rem;
}

.card li {
    margin: 0.4rem 0;
}

/* ---------- 流程图 ---------- */

.flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 0.25rem;
}

.flow span {
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.3rem 0.75rem;
    font-size: 0.92rem;
    white-space: nowrap;
}

.flow em {
    font-style: normal;
    color: var(--text-muted);
}

/* ---------- 截图占位 ---------- */

.screenshot {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius);
    background: #f8fafc;
    text-align: center;
    padding: 2.25rem 1.25rem;
    margin: 0 0 1.25rem;
    color: var(--text-muted);
}

.screenshot strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.screenshot p {
    margin: 0;
    font-size: 0.92rem;
}

/* ---------- CTA 按钮组 ---------- */

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 12px rgba(255, 56, 92, 0.25);
    transition: background 0.2s ease, color 0.2s ease;
}

.cta:hover {
    background: var(--primary-dark);
    color: #ffffff;
    text-decoration: none;
}

.cta.secondary {
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.cta.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #ffffff;
}

/* ---------- 相关阅读 ---------- */

.related-links {
    border-top: 1px solid var(--border);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}

.related-links h3 {
    margin-bottom: 0.75rem;
}

.related-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-links li {
    margin: 0.45rem 0;
}

/* ---------- 表格 ---------- */

table {
    margin: 1rem 0;
}

th,
td {
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    text-align: left;
}

th {
    background: #f8fafc;
    font-weight: 600;
}

/* ---------- 页脚 ---------- */

.footer {
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    text-align: center;
    font-size: 0.88rem;
    padding: 1.5rem 1rem;
    background: #ffffff;
}

/* ---------- 响应式 ---------- */

@media (max-width: 640px) {
    h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.15rem 1.1rem;
    }

    .cta-row {
        flex-direction: column;
    }

    .cta,
    .cta.secondary {
        width: 100%;
    }

    .site-header .inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
