/**
 * 作家向导页（web/guide/index.tpl）
 *
 * 共享设计令牌与组件皮肤由先加载的 style.css 提供；本文件仅保留向导页布局与 --font-sans。
 */
:root {
    --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body.guide-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--line-faint);
    -webkit-font-smoothing: antialiased;
}

.guide-shell {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.guide-inner {
    width: 100%;
    max-width: var(--site-max-w);
    margin: 0 auto;
    padding-left: clamp(16px, 3vw, 24px);
    padding-right: clamp(16px, 3vw, 24px);
}

/* 顶区：与主站 Header 同色系 */
.guide-hero {
    padding: clamp(24px, 5vw, 40px) 0 clamp(20px, 4vw, 32px);
    background: var(--header-bg);
    color: #f9f9f9;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.guide-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .52);
    font-weight: 600;
}
.guide-title {
    margin: 0 0 10px;
    font-size: clamp(1.45rem, 4vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}
.guide-lead {
    margin: 0;
    font-size: clamp(0.94rem, 2.2vw, 1.02rem);
    color: rgba(255, 255, 255, .78);
    max-width: 36em;
    line-height: 1.65;
}

/* 说明带：白底、与主栏 section 一致的浅分割 */
.guide-intro-band {
    background: #fff;
    border-bottom: 1px solid var(--line-default);
}
.guide-intro-band .guide-inner {
    padding-top: clamp(20px, 3.5vw, 28px);
    padding-bottom: clamp(20px, 3.5vw, 28px);
}
.guide-intro-band p {
    margin: 0 0 14px;
    max-width: 48em;
    color: #444;
    font-size: 0.98rem;
    line-height: 1.75;
}
.guide-intro-band p:last-child {
    margin-bottom: 0;
}

/* 双栏内容 */
.guide-body {
    flex: 1 0 auto;
    padding: clamp(20px, 3.5vw, 32px) 0 clamp(24px, 4vw, 40px);
}
.guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 2.5vw, 20px);
}
@media (min-width: 900px) {
    .guide-grid {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}

/* 卡片：双栏时拉满行高，视觉等高 */
.guide-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-default);
    padding: clamp(18px, 3vw, 24px);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
.guide-card .guide-list,
.guide-card .guide-steps {
    flex: 1 1 auto;
}

/* 与 module-title 同构：左侧 4px 金条（::before 见 style.css 公共规则） */
.guide-card-title {
    position: relative;
    margin: 0 0 clamp(14px, 2vw, 18px);
    padding: 0 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.35;
}

/* 标准列表 */
.guide-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.guide-list--std li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
}
.guide-list--std li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.guide-li-icon,
.guide-list-ico {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 4px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.guide-list-ico {
    background: var(--accent-bar);
}
.guide-list--std span {
    color: #444;
    font-size: 0.96rem;
    line-height: 1.65;
}

/* 步骤 */
.guide-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}
.guide-steps > li {
    display: flex;
    gap: 12px;
    margin-bottom: clamp(16px, 2vw, 20px);
    padding-bottom: clamp(16px, 2vw, 20px);
    border-bottom: 1px solid var(--line-soft);
}
.guide-steps > li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.guide-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bar);
    color: var(--header-bg);
    font-weight: 700;
    font-size: 13px;
    border-radius: 50%;
    margin-top: 2px;
}
.guide-step-body {
    flex: 1;
    min-width: 0;
}
.guide-step-text {
    margin: 0 0 8px;
    color: #444;
    font-size: 0.96rem;
    line-height: 1.65;
}
.guide-step-body > .guide-step-text:last-child {
    margin-bottom: 0;
}
.guide-portal {
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 12px 14px;
    background: var(--line-faint);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
}
.guide-url {
    flex: 1 1 10rem;
    min-width: 0;
    font-size: 13px;
    word-break: break-all;
    color: var(--accent-2);
    text-decoration: none;
}
.guide-url:hover {
    color: var(--accent-pressed);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.guide-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 7px 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--header-bg);
    background: var(--accent-bar);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background .2s ease;
}
.guide-copy:hover {
    background: var(--accent-pressed);
}
.guide-copy:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}
.guide-copy img {
    width: 16px;
    height: 16px;
    display: block;
    object-fit: contain;
}
.guide-copy-ico {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, .1);
}

/* —— 页脚 —— */
.guide-footer {
    padding: clamp(20px, 3.5vw, 28px) 0 clamp(24px, 4vw, 36px);
    background: #fff;
    border-top: 1px solid var(--line-default);
    margin-top: auto;
}
.guide-footer p {
    margin: 0;
    max-width: 48em;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
}

@media (prefers-reduced-motion: reduce) {
    .guide-copy {
        transition: none;
    }
    .guide-toast {
        transition: none;
    }
}

/* 复制结果：本页自绘 toast，不依赖 Layui */
.guide-toast-host {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 0 16px max(16px, env(safe-area-inset-bottom, 0));
    box-sizing: border-box;
}
.guide-toast {
    pointer-events: auto;
    max-width: min(92vw, 380px);
    margin: 0;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid var(--line-default);
    background: var(--accent-tint);
    color: var(--color-text-strong);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    box-shadow:
        0 10px 36px rgba(33, 33, 33, .14),
        0 0 0 1px rgba(252, 200, 0, .35) inset;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .28s ease, transform .28s ease;
}
.guide-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.guide-toast--err {
    background: #fff;
    border-color: rgba(255, 87, 34, .45);
    box-shadow: 0 10px 36px rgba(33, 33, 33, .12);
    color: var(--color-text);
}

.guide-copy-ta {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
