/* =========================
   SEO Author Box - Final Desktop+Mobile
   ========================= */

.sab-author-box {
    margin: 24px 0;
    border: 1px solid #e8edf5;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 20px;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.05),
        0 1px 2px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    position: relative;
}

.sab-author-box::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #0f172a 0%, #334155 45%, #94a3b8 100%);
    opacity: 0.9;
}

.sab-author-box__inner {
    display: flex;
    gap: 16px;
    padding: 22px;
    align-items: flex-start;
}

.sab-author-box__avatar {
    flex: 0 0 72px;
}

.sab-author-box__avatar a {
    display: block;
    line-height: 0;
}

.sab-author-box__avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid #ffffff;
    box-shadow:
        0 6px 16px rgba(15, 23, 42, 0.10),
        0 0 0 1px #e5e7eb;
    background: #f8fafc;
}

.sab-author-box__content {
    flex: 1;
    min-width: 0;
}

.sab-author-box__eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.sab-author-box__name {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sab-author-box__name a {
    color: #0f172a;
    text-decoration: none;
}

.sab-author-box__name a:hover {
    color: #111827;
}

.sab-author-box__meta {
    margin-top: 8px;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
}

.sab-meta-line {
    display: block;
}

.sab-author-box__bio {
    margin: 14px 0 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.75;
}

.sab-author-box__compact-extra {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.65;
    color: #475569;
}

.sab-author-box__compact-extra strong {
    color: #0f172a;
    margin-right: 4px;
}

.sab-author-box__mini-trust {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    line-height: 1.4;
}

.sab-author-box__section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

.sab-author-box__section strong {
    color: #0f172a;
    font-weight: 700;
    margin-right: 6px;
}

.sab-author-box__trust {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e6edf5;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
    border-radius: 16px;
}

.sab-author-box__trust-title {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
}

.sab-author-box__trust-list {
    margin: 0;
    padding-left: 18px;
    color: #475569;
}

.sab-author-box__trust-list li {
    margin-bottom: 7px;
    line-height: 1.7;
}

.sab-author-box__trust-list li:last-child {
    margin-bottom: 0;
}

.sab-author-box__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.sab-author-btn,
.sab-author-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sab-author-btn {
    color: #ffffff;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.sab-author-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.20);
}

.sab-author-link {
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.sab-author-link:hover {
    color: #0f172a;
    background: #f1f5f9;
    transform: translateY(-1px);
}

/* 侧边栏 */
.sab-author-box.is-compact {
    border-radius: 18px;
}

.sab-author-box.is-compact .sab-author-box__inner {
    padding: 18px;
    gap: 14px;
}

.sab-author-box.is-compact .sab-author-box__avatar {
    flex-basis: 64px;
}

.sab-author-box.is-compact .sab-author-box__avatar img {
    width: 64px;
    height: 64px;
}

.sab-author-box.is-compact .sab-author-box__name {
    font-size: 22px;
}

.sab-author-box.is-compact .sab-author-box__meta {
    font-size: 14px;
}

.sab-author-box.is-compact .sab-author-box__bio {
    font-size: 13px;
    line-height: 1.7;
}

/* 底部 */
.sab-author-box.is-simple {
    margin-top: 36px;
    background: linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
    border: 1px solid #dbe5f1;
    box-shadow:
        0 12px 32px rgba(15, 23, 42, 0.06),
        0 1px 2px rgba(15, 23, 42, 0.03);
}

.sab-author-box.is-simple .sab-author-box__inner {
    padding: 20px 22px;
}

.sab-author-box.is-simple .sab-author-box__bio {
    max-width: 760px;
}

/* 完整版 */
.sab-author-box.is-full .sab-author-box__avatar {
    flex-basis: 88px;
}

.sab-author-box.is-full .sab-author-box__avatar img {
    width: 88px;
    height: 88px;
}

/* 手机隐藏侧边栏作者卡，避免掉到底部重复 */
@media (max-width: 768px) {
    .sab-author-box.is-compact {
        display: none;
    }

    .sab-author-box {
        border-radius: 18px;
    }

    .sab-author-box__inner {
        padding: 18px;
        gap: 14px;
    }

    .sab-author-box__avatar {
        flex-basis: 56px;
    }

    .sab-author-box__avatar img {
        width: 56px;
        height: 56px;
    }

    .sab-author-box__name {
        font-size: 20px;
    }

    .sab-author-box__meta {
        font-size: 13px;
    }

    .sab-author-box__bio {
        font-size: 13px;
        line-height: 1.7;
    }

    .sab-author-btn,
    .sab-author-link {
        min-height: 36px;
        padding: 0 12px;
        font-size: 12px;
    }

    .sab-author-box.is-simple .sab-author-box__inner {
        padding: 18px;
    }
}