/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f8fafc;
}

/* 主页背景文字 */
.home-background {
    position: relative;
}

.bg-words {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-words p {
    position: absolute;
    margin: 0;
    white-space: nowrap;
    letter-spacing: 1px;
    line-height: 1.2;
    color: #0f172a;
    opacity: 0.04;
    font-size: 16px;
}

/* 首页布局 */
.home-background main,
.home-background .bottom-row {
    position: relative;
    z-index: 1;
}

.home-background main {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 28px;
    text-align: left;
}

.profile {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
    padding: 72px 0 80px;
    border-bottom: 1px solid #e2e8f0;
}

.profile-photo {
    width: 176px;
    height: 176px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #ffffff;
    object-fit: cover;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.profile-bio {
    max-width: 650px;
}

.profile-bio > p:not(.profile-kicker) {
    color: #475569;
    font-size: 17px;
    line-height: 1.8;
}

.profile-kicker,
.eyebrow,
.archive-hero .eyebrow {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.profile-name {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: clamp(34px, 4vw, 44px);
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.footer-inline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    margin-top: 24px;
}

.footer-inline a {
    display: inline-flex;
}

.footer-inline svg {
    width: 22px;
    height: 22px;
    fill: #64748b;
    stroke: #64748b;
    stroke-width: 1.5;
}

.footer-inline a:hover svg {
    fill: #2563eb;
    stroke: #2563eb;
}

.practice-section {
    padding-top: 80px;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: end;
}

.section-heading h2,
.section-title h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 3.4vw, 34px);
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.section-heading > p {
    color: #475569;
    font-size: 16px;
    line-height: 1.8;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.practice-card {
    display: flex;
    flex-direction: column;
    min-height: 216px;
    padding: 26px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.practice-card:hover {
    transform: translateY(-3px);
    border-color: #93c5fd;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.practice-label {
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
}

.practice-card strong {
    margin-top: 8px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.4;
}

.practice-card p {
    margin-top: 10px;
    color: #64748b;
    line-height: 1.7;
}

.practice-link {
    margin-top: auto;
    padding-top: 18px;
    color: #2563eb;
    font-weight: 650;
}

.consultation-entry {
    margin-top: 88px;
    padding: 40px;
    border: 1px solid #dbe5f0;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.72));
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

.consultation-intro {
    display: grid;
    grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.15fr);
    gap: 54px;
    align-items: start;
}

.consultation-entry h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 3.4vw, 34px);
    line-height: 1.28;
    letter-spacing: -0.025em;
}

.consultation-description p,
.consultation-notes p {
    color: #475569;
    line-height: 1.75;
}

.consultation-description p + p,
.consultation-notes p + p {
    margin-top: 10px;
}

.consultation-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.consultation-options > div {
    padding: 18px;
    border: 1px solid #dbe5f0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}

.consultation-options strong,
.consultation-options span {
    display: block;
}

.consultation-options strong {
    color: #0f172a;
    font-size: 16px;
}

.consultation-options span {
    margin-top: 5px;
    color: #2563eb;
    font-weight: 750;
}

.consultation-options p {
    margin-top: 10px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.consultation-summary-note {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(219, 234, 254, 0.72);
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 650;
}

.consultation-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 36px;
    align-items: end;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #dbe5f0;
}

.consultation-notes {
    max-width: 570px;
    font-size: 14px;
}

.consultation-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    max-width: 420px;
}

.consultation-hint {
    width: 100%;
    color: #64748b;
    font-size: 13px;
    text-align: right;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 17px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #334155;
    background: rgba(255, 255, 255, 0.88);
    font-weight: 650;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.button-link:hover {
    border-color: #2563eb;
    color: #2563eb;
    text-decoration: none;
}

.button-link--primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.button-link--primary:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #ffffff;
}

@media (max-width: 768px) {
    .home-background main {
        padding: 0 20px;
    }

    .profile {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 46px 0 58px;
        text-align: center;
    }

    .profile-photo {
        width: 148px;
        height: 148px;
        margin: 0 auto;
    }

    .profile-bio {
        max-width: none;
    }

    .profile-bio > p:not(.profile-kicker) {
        font-size: 16px;
    }

    .profile-actions,
    .footer-inline {
        justify-content: center;
    }

    .practice-section {
        padding-top: 58px;
    }

    .section-heading,
    .consultation-intro {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .practice-grid {
        grid-template-columns: 1fr;
        margin-top: 26px;
    }

    .practice-card {
        min-height: auto;
        padding: 22px;
    }

    .consultation-entry {
        margin-top: 64px;
        padding: 24px;
        border-radius: 18px;
    }

    .consultation-options {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .consultation-footer {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .consultation-actions {
        justify-content: flex-start;
        max-width: none;
    }

    .consultation-hint {
        text-align: left;
    }
}

/* 工作坊记录页 */
.archive-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 32px 20px 80px;
    text-align: left;
}

.archive-nav {
    margin-bottom: 46px;
}

.archive-nav a {
    color: #4b5563;
    font-weight: 600;
    text-decoration: none;
}

.archive-nav a:hover {
    color: #2563eb;
}

.archive-hero {
    max-width: 760px;
}

.archive-hero h1 {
    margin: 0 0 18px;
    color: #0f172a;
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.archive-hero>p:last-child {
    color: #475569;
    font-size: 18px;
    line-height: 1.8;
}

.workshop-list {
    display: grid;
    gap: 20px;
    margin-top: 42px;
}

.workshop-card {
    padding: 26px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.workshop-card--featured {
    border-color: #bfdbfe;
    background: linear-gradient(145deg, #ffffff, #eff6ff);
}

.workshop-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.workshop-meta span {
    color: #2563eb;
}

.workshop-card h2 {
    margin: 12px 0 8px;
    color: #0f172a;
    font-size: 26px;
}

.workshop-card p {
    max-width: 720px;
    color: #475569;
    line-height: 1.75;
}

.workshop-card .workshop-tagline {
    color: #1e3a8a;
    font-weight: 700;
}

.workshop-card>.button-link,
.workshop-actions {
    margin-top: 18px;
}

.workshop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 公众号悬浮入口 */
.wechat-follow {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.wechat-follow-trigger {
    min-height: 46px;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    background: #07c160;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(7, 193, 96, 0.28);
}

.wechat-follow-trigger:hover,
.wechat-follow-trigger:focus-visible {
    background: #06ad56;
}

.wechat-follow-panel {
    position: relative;
    width: min(300px, calc(100vw - 32px));
    padding: 22px;
    border: 1px solid #d1fae5;
    border-radius: 16px;
    background: #ffffff;
    color: #1f2937;
    text-align: center;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.wechat-follow-panel strong {
    display: block;
    padding-right: 20px;
    color: #111827;
    font-size: 18px;
}

.wechat-follow-panel p {
    margin: 8px 0 14px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.wechat-follow-panel img {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
}

.wechat-follow-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.wechat-follow-close:hover,
.wechat-follow-close:focus-visible {
    background: #f3f4f6;
    color: #111827;
}

@media (max-width: 640px) {
    .wechat-follow {
        right: 16px;
        bottom: 16px;
    }

    .wechat-follow-trigger {
        min-height: 42px;
        padding: 9px 15px;
        font-size: 14px;
    }
}



/* 三类通用样式 */
.title {
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

.link {
    color: #2563eb;
    text-decoration: none;
}

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

/* 媒体元素（无类选择器） */
figure iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 26px;
    }
}

/* 视频嵌入 */
.video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 首页下半部分 */
.bottom-row {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 88px;
    max-width: 980px;
    margin: 88px auto 0;
    padding: 0 28px 104px;
}

.recent-writing,
.featured-section {
    margin: 0;
    padding: 0;
}

.section-title {
    margin-bottom: 28px;
}

.writing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.writing-card {
    display: flex;
    flex-direction: column;
    min-height: 214px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.writing-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.075);
}

.writing-card .title {
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.45;
}

.writing-card .summary {
    display: -webkit-box;
    overflow: hidden;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.writing-card .more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 18px;
    color: #2563eb;
    font-weight: 650;
}

.featured-talk {
    max-width: 760px;
    margin: 0 auto;
}

.featured-caption {
    margin-top: 14px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 768px) {
    .bottom-row {
        gap: 64px;
        margin-top: 64px;
        padding: 0 20px 84px;
    }

    .section-title {
        margin-bottom: 22px;
    }

    .writing-grid {
        grid-template-columns: 1fr;
    }

    .writing-card {
        min-height: auto;
    }
}
