/* =========================================================
   Dr. Market 作者推荐卡片 — 样式
   ========================================================= */

.dm-author-card {
    margin: 40px auto 32px;
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #3a3a3a;
    line-height: 1.7;
    box-sizing: border-box;
}

.dm-author-card *,
.dm-author-card *::before,
.dm-author-card *::after {
    box-sizing: border-box;
}

.dm-author-card__inner {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 28px;
    background: #f5f5f5;
    border: 1px solid #0099B1;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

/* 左侧圆形 logo */
.dm-author-card__logo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #122A3D;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    line-height: 0;
}

a.dm-author-card__logo {
    cursor: pointer;
}

.dm-author-card__logo img {
    width: 65%;
    display: block;
}

a.dm-author-card__logo:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

/* 右侧内容 */
.dm-author-card__body {
    flex: 1;
    min-width: 0;
}

.dm-author-card__name {
    display: inline-block;
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    color: #0099B1;
    text-decoration: none;
    line-height: 1.3;
}

a.dm-author-card__name:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* 介绍段落 */
.dm-author-card__bio {
    margin: 0;
}

.dm-author-card__bio p {
    margin: 0 0 8px;
    font-size: 15px;
    color: #374151;
    word-break: break-word;
}

.dm-author-card__bio p:last-child {
    margin-bottom: 16px;
}

/* 底部两篇文章链接 */
.dm-author-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    padding-top: 4px;
    border-top: 1px dashed #e5e7eb;
    margin-top: 12px;
}

.dm-article-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    color: #1d4ed8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.dm-article-link:hover {
    color: #1e40af;
}

.dm-article-link__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
}

.dm-article-link__title {
    line-height: 1.4;
    word-break: break-word;
}

/* ===== 响应式 ===== */
@media (max-width: 640px) {
    .dm-author-card {
        margin: 28px auto 24px;
    }

    .dm-author-card__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 22px 18px;
        gap: 16px;
    }

    .dm-author-card__logo {
        width: 80px;
        height: 80px;
    }

    .dm-author-card__links {
        justify-content: center;
        flex-direction: column;
        gap: 4px;
    }

    .dm-article-link {
        justify-content: center;
    }
}

/* ===== 暗色模式 ===== */
@media (prefers-color-scheme: dark) {
    .dm-author-card__inner {
        background: #1f2937;
        border-color: #374151;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .dm-author-card__bio p {
        color: #d1d5db;
    }

    .dm-author-card__links {
        border-top-color: #374151;
    }
}
