:root {
    --detail-ink: #173f4b;
    --detail-copy: #55737d;
    --detail-mint: #238f8e;
    --detail-surface: #f6fcfb;
    --detail-border: rgba(35, 143, 142, .16);
}

html.community-detail-html { scroll-behavior: smooth; }

body.community-detail-page {
    min-width: 0;
    margin: 0;
    background: #edf8f7;
    color: var(--detail-ink);
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body.community-detail-page *,
body.community-detail-page *::before,
body.community-detail-page *::after { box-sizing: border-box; }

body.community-detail-page img { max-width: 100%; }

.detail-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px max(24px, calc((100vw - 1240px) / 2));
    border-bottom: 1px solid rgba(35, 143, 142, .12);
    background: rgba(247, 253, 252, .92);
    backdrop-filter: blur(16px);
}

.detail-brand,
.detail-back {
    color: var(--detail-ink);
    font-size: .92rem;
    font-weight: 800;
    text-decoration: none;
}

.detail-brand { min-width: 0; }
.detail-brand small { display: block; margin-top: 2px; color: #6c8a91; font-size: .66rem; font-weight: 700; letter-spacing: .08em; }
.detail-back { flex: 0 0 auto; color: var(--detail-mint); white-space: nowrap; }
.detail-back:hover { color: #176f70; }
.detail-back:focus-visible { outline: 3px solid rgba(35, 143, 142, .45); outline-offset: 4px; }

.detail-main { width: min(100% - 48px, 1240px); margin: 0 auto; padding: 32px 0 80px; }

.detail-hero {
    position: relative;
    isolation: isolate;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 22px;
    background: #e1f0ed;
    box-shadow: 0 20px 44px rgba(36, 93, 105, .13);
}

.detail-hero picture,
.detail-hero img { display: block; width: 100%; height: 100%; }
.detail-hero picture { position: absolute; z-index: 0; inset: 0; }
.detail-hero img { position: absolute; inset: 0; object-fit: cover; object-position: center; }
.detail-hero::after { position: absolute; z-index: 1; inset: 0; content: ''; background: linear-gradient(90deg, rgba(244, 252, 250, .97) 0%, rgba(244, 252, 250, .78) 36%, rgba(244, 252, 250, .08) 68%); }

.detail-hero-copy { position: relative; z-index: 2; display: flex; min-height: 330px; width: min(31rem, 48%); flex-direction: column; justify-content: center; padding: 42px; }
.detail-eyebrow { margin: 0 0 10px; color: var(--detail-mint); font-size: .84rem; font-weight: 800; letter-spacing: .04em; }
.detail-hero h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1; letter-spacing: .02em; }
.detail-hero-copy > p:not(.detail-eyebrow) { margin: 16px 0 0; color: var(--detail-copy); line-height: 1.75; }

.detail-section { margin-top: clamp(2.5rem, 5vw, 5rem); }
.detail-section-header { max-width: 42rem; margin-bottom: 22px; }
.detail-section-header h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.14; }
.detail-section-header p { margin: 12px 0 0; color: var(--detail-copy); line-height: 1.75; }

.detail-link-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-link-card { position: relative; display: flex; min-height: 138px; flex-direction: column; justify-content: flex-end; padding: 24px; overflow: hidden; border: 1px solid var(--detail-border); border-radius: 16px; background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(235, 248, 245, .9)); color: var(--detail-ink); text-decoration: none; box-shadow: 0 12px 28px rgba(36, 93, 105, .07); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.detail-link-card::before { position: absolute; z-index: 0; inset: 0; content: ''; background: radial-gradient(circle at 95% 10%, rgba(119, 214, 191, .32), transparent 45%); }
.detail-link-card > * { position: relative; z-index: 1; }
.detail-link-card strong { font-size: 1.16rem; }
.detail-link-card span { margin-top: 8px; color: var(--detail-copy); line-height: 1.6; }
.detail-link-card em { margin-top: 12px; color: var(--detail-mint); font-size: .88rem; font-style: normal; font-weight: 800; }
.detail-link-card:hover { border-color: rgba(35, 143, 142, .42); box-shadow: 0 18px 34px rgba(36, 93, 105, .13); transform: translateY(-3px); }
.detail-link-card:active { transform: translateY(0) scale(.99); }
.detail-link-card:focus-visible { outline: 3px solid rgba(35, 143, 142, .45); outline-offset: 3px; }

.detail-reading-list { display: grid; gap: 12px; }
.detail-reading-item { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--detail-border); color: inherit; text-decoration: none; transition: background-color .2s ease, padding-left .2s ease; }
.detail-reading-item:first-child { border-top: 1px solid var(--detail-border); }
.detail-reading-item:hover { padding-left: 26px; background: rgba(255, 255, 255, .58); }
.detail-reading-date { color: var(--detail-mint); font-size: .85rem; font-weight: 800; }
.detail-reading-item strong { display: block; font-size: 1.08rem; }
.detail-reading-item p { margin: 6px 0 0; color: var(--detail-copy); line-height: 1.6; }
.detail-reading-arrow { color: var(--detail-mint); font-size: 1.3rem; }

.detail-prose { max-width: 50rem; color: var(--detail-copy); line-height: 1.9; }
.detail-prose h3 { margin: 2.2rem 0 .65rem; color: var(--detail-ink); font-size: 1.28rem; }
.detail-prose h3:first-child { margin-top: 0; }
.detail-prose p { margin: 0; }

.detail-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-contact-card { padding: 24px; border: 1px solid var(--detail-border); border-radius: 16px; background: rgba(255, 255, 255, .74); }
.detail-contact-card h3 { margin: 0; font-size: 1.08rem; }
.detail-contact-card p { margin: 9px 0 0; color: var(--detail-copy); line-height: 1.65; }
.detail-contact-card a { display: inline-flex; margin-top: 16px; color: var(--detail-mint); font-weight: 800; text-decoration: none; }
.detail-contact-card a:hover { color: #176f70; }

.detail-footer { width: min(100% - 48px, 1240px); margin: 0 auto; padding: 26px 0 48px; color: #6b878e; font-size: .85rem; }

@media (max-width: 768px) {
    .detail-topbar { min-height: 60px; padding: 10px 16px; }
    .detail-brand { font-size: .86rem; }
    .detail-back { font-size: .8rem; }
    .detail-main { width: min(100% - 32px, 42rem); padding: 16px 0 64px; }
    .detail-hero { min-height: 0; aspect-ratio: 9 / 14.5; border-radius: 18px; }
    .detail-hero img { object-position: center top; }
    .detail-hero::after { background: linear-gradient(180deg, transparent 0%, rgba(244, 252, 250, .04) 38%, rgba(244, 252, 250, .84) 61%, #f4fcfa 84%); }
    .detail-hero-copy { position: absolute; right: 0; bottom: 0; left: 0; display: block; min-height: 0; width: auto; padding: 0 20px 24px; }
    .detail-hero h1 { font-size: clamp(2.25rem, 10vw, 3.45rem); }
    .detail-hero-copy > p:not(.detail-eyebrow) { margin-top: 10px; font-size: .9rem; line-height: 1.6; }
    .detail-section { margin-top: 44px; }
    .detail-section-header p { font-size: .92rem; }
    .detail-link-list, .detail-contact-grid { grid-template-columns: 1fr; }
    .detail-link-card { min-height: 122px; padding: 20px; }
    .detail-reading-item { grid-template-columns: 1fr auto; gap: 7px 12px; padding: 16px 4px; }
    .detail-reading-date { grid-column: 1; }
    .detail-reading-item > div { grid-column: 1; }
    .detail-reading-arrow { grid-column: 2; grid-row: 1 / span 2; }
    .detail-reading-item:hover { padding-left: 8px; }
    .detail-footer { width: min(100% - 32px, 42rem); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    .detail-link-card, .detail-reading-item { transition: none; }
    .detail-link-card:hover, .detail-link-card:active { transform: none; }
}
