/* 个人主页 - 宋加生 */
:root {
    --author-text-secondary: #9aa3af;
    --author-accent: #569cd6;
}

/* ===== Hero 首屏 ===== */
.author-hero {
    position: relative;
    /* 顶部留出固定导航的高度（约 80px），避免头像被遮挡 */
    padding: 104px 24px 44px;
    overflow: hidden;
    background:
        radial-gradient(1000px 480px at 50% -120px, rgba(86, 156, 214, 0.16), transparent 65%),
        radial-gradient(640px 360px at 85% -40px, rgba(197, 134, 192, 0.10), transparent 60%),
        radial-gradient(640px 360px at 12% -40px, rgba(106, 153, 85, 0.08), transparent 60%);
}

.author-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(720px 420px at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(720px 420px at 50% 0%, #000 30%, transparent 75%);
    pointer-events: none;
}

body.light-mode .author-hero {
    background:
        radial-gradient(1000px 480px at 50% -120px, rgba(86, 156, 214, 0.14), transparent 65%),
        radial-gradient(640px 360px at 85% -40px, rgba(197, 134, 192, 0.10), transparent 60%),
        radial-gradient(640px 360px at 12% -40px, rgba(106, 153, 85, 0.08), transparent 60%);
}

body.light-mode .author-hero::before {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
}

.author-hero-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.author-avatar-wrap {
    display: inline-block;
    margin-bottom: 22px;
}

.author-avatar {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 4px solid transparent;
    background:
        linear-gradient(#0d0d0d, #0d0d0d) padding-box,
        linear-gradient(135deg, #569cd6, #c586c0 55%, #6a9955) border-box;
    box-shadow:
        0 0 0 1px rgba(86, 156, 214, 0.25),
        0 12px 40px rgba(86, 156, 214, 0.28);
}

body.light-mode .author-avatar {
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, #2b6cb0, #805ad5 55%, #2f855a) border-box;
}

.author-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: #569cd6;
}

.author-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.author-name {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.3;
    background: linear-gradient(90deg, #569cd6, #c586c0 60%, #6a9955);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* 名字旁的留言小字入口 */
.author-hero-message {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 2px 12px;
    font-family: inherit;
    font-size: 0.78rem;
    color: var(--author-text-secondary);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.author-hero-message:hover {
    color: #569cd6;
    border-color: rgba(86, 156, 214, 0.55);
    background: rgba(86, 156, 214, 0.08);
}

body.light-mode .author-hero-message {
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .author-hero-message:hover {
    color: #2b6cb0;
    border-color: rgba(43, 108, 176, 0.45);
    background: rgba(43, 108, 176, 0.06);
}

body.light-mode .author-name {
    background: linear-gradient(90deg, #2b6cb0, #805ad5 60%, #2f855a);
    -webkit-background-clip: text;
    background-clip: text;
}

.author-title {
    margin-top: 10px;
    font-size: 1rem;
    color: var(--author-text-secondary);
}

.author-nickname {
    display: inline-block;
    margin-right: 10px;
    padding: 2px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    background: rgba(86, 156, 214, 0.15);
    color: #569cd6;
}

body.light-mode .author-nickname {
    background: rgba(86, 156, 214, 0.12);
    color: #2b6cb0;
}

/* Hero 平台按钮 */
.author-hero-social {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.author-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.author-social-btn:hover {
    border-color: var(--platform-color, #569cd6);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

body.light-mode .author-social-btn {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.75);
}

body.light-mode .author-social-btn:hover {
    box-shadow: 0 6px 20px rgba(43, 108, 176, 0.15);
}

.author-social-btn .author-brand-icon {
    width: 16px;
    height: 16px;
}

/* 统计数字 */
.author-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

body.light-mode .author-stats {
    border-top-color: rgba(0, 0, 0, 0.08);
}

.author-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: #569cd6;
}

body.light-mode .author-stat-num {
    color: #2b6cb0;
}

.author-stat-label {
    margin-top: 2px;
    font-size: 0.82rem;
    color: var(--author-text-secondary);
}

/* ===== 主体区块 ===== */
.author-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 72px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.author-card {
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

body.light-mode .author-card {
    border-color: rgba(0, 0, 0, 0.09);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 4px 20px rgba(43, 108, 176, 0.06);
}

.author-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.author-section-title i {
    width: 20px;
    height: 20px;
    color: #569cd6;
}

body.light-mode .author-section-title i {
    color: #2b6cb0;
}

.author-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.author-section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #569cd6;
    text-decoration: none;
    white-space: nowrap;
}

.author-section-more i {
    width: 15px;
    height: 15px;
}

.author-section-more:hover {
    text-decoration: underline;
}

/* 关于我 */
.author-intro-text {
    color: var(--author-text-secondary);
    line-height: 1.9;
    white-space: pre-line;
    font-size: 0.95rem;
}

/* 自媒体卡片 */
.author-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.author-platform-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.author-platform-card:hover {
    transform: translateY(-3px);
    border-color: var(--platform-color, #569cd6);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

body.light-mode .author-platform-card {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.8);
}

body.light-mode .author-platform-card:hover {
    box-shadow: 0 10px 28px rgba(43, 108, 176, 0.12);
}

.author-platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--platform-color, #569cd6);
    color: #fff;
    margin-bottom: 4px;
}

.author-platform-icon .author-brand-icon {
    width: 26px;
    height: 26px;
}

.author-platform-name {
    font-size: 1.02rem;
    font-weight: 600;
}

.author-platform-desc {
    flex: 1;
    font-size: 0.85rem;
    color: var(--author-text-secondary);
}

.author-platform-go {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--platform-color, #569cd6);
    margin-top: 4px;
}

.author-platform-go i {
    width: 15px;
    height: 15px;
}

/* 联系方式 */
.author-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.author-contact-qr img {
    width: 132px;
    height: 132px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    display: block;
}

body.light-mode .author-contact-qr img {
    border-color: rgba(0, 0, 0, 0.1);
}

.author-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.author-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: inherit;
}

.author-contact-item i {
    width: 18px;
    height: 18px;
    color: #569cd6;
    flex-shrink: 0;
}

body.light-mode .author-contact-item i {
    color: #2b6cb0;
}

.author-contact-label {
    width: 44px;
    flex-shrink: 0;
    color: var(--author-text-secondary);
    font-size: 0.88rem;
}

.author-contact-link {
    border: none;
    background: none;
    padding: 0;
    color: #569cd6;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
}

body.light-mode .author-contact-link {
    color: #2b6cb0;
}

.author-contact-link:hover {
    text-decoration: underline;
}

/* 最新文章列表 */
.author-latest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s, padding-left 0.2s;
}

.author-latest-item:last-child {
    border-bottom: none;
}

body.light-mode .author-latest-item {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.author-latest-item:hover {
    background: rgba(86, 156, 214, 0.08);
    padding-left: 18px;
}

.author-latest-title {
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-latest-date {
    font-size: 0.8rem;
    color: var(--author-text-secondary);
    flex-shrink: 0;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .author-hero {
        padding: 88px 20px 36px;
    }

    .author-avatar {
        width: 108px;
        height: 108px;
    }

    .author-name {
        font-size: 1.6rem;
    }

    .author-stats {
        gap: 28px;
    }

    .author-main {
        padding: 28px 16px 56px;
        gap: 20px;
    }

    .author-card {
        padding: 20px;
    }

    .author-platform-grid {
        grid-template-columns: 1fr;
    }

    .author-contact-row {
        flex-direction: column;
        gap: 18px;
    }

    .author-contact-qr img {
        width: 110px;
        height: 110px;
    }

    .author-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .author-latest-title {
        white-space: normal;
    }
}
