/* 文件: styles.css (第 1 部分) - 基础重置与布局 */ 

/* 文件: styles.css (IP 规避免责声明样式) */ 

.ip-disclaimer { 
    max-width: 800px; 
    margin: 15px auto 0; 
    padding: 10px; 
    font-size: 0.8rem; 
    color: #999; 
    line-height: 1.5; 
    text-align: center; 
    border-top: 1px solid #F0F0F0; 
    padding-top: 15px; 
} 

.ip-disclaimer strong { 
    color: #6A0DAD; /* 突出强调无关联 */ 
    font-weight: 700; 
}
/* 🚀 性能优化：使用 font-display: swap */ 
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap'); 

:root { 
    --primary-color: #7B47FF; 
    --secondary-color: #EDE7FF; 
    --text-color: #333; 
    --bg-color: #FAFAFC; 
    --card-bg: #FFF; 
    --shadow-light: 0 6px 18px rgba(123, 71, 255, 0.12); 
} 

/* 首页配色覆盖（降低亮度并加入搭配色） */
#HomepageWrapper {
    --primary-color: #6A3FE8; /* 略深主紫，降低亮度与眩光 */
    --secondary-color: #E3DDFD; /* 更柔和的浅紫边框 */
    --accent-blue: #5A8CFF;    /* 搭配色：柔和蓝 */
    --accent-pink: #FF8FB3;    /* 搭配色：柔和粉 */
    --bg-color: #F7F6FB;       /* 略深背景，降低整体明度 */
}

/* 主题工具类（柔和卡通风） */
.rounded-3xl { border-radius: 24px; }
.rounded-2xl { border-radius: 16px; }
.shadow-md { box-shadow: 0 4px 10px rgba(123, 71, 255, 0.18); }
.font-bold { font-weight: 700; }

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
} 

body { 
    font-family: 'Noto Sans SC', sans-serif; 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
} 

main { 
    flex-grow: 1; 
    max-width: 1200px; 
    width: 100%; 
    margin: 0 auto; 
    padding: 20px; 
} 

/* 头部样式 (Header) */ 
#SiteHeader { 
    padding: 20px; 
    display: flex; 
    justify-content: flex-start; 
    align-items: center; 
    background-color: var(--card-bg); 
    box-shadow: 0 2px 6px rgba(123, 71, 255, 0.08); 
    border-radius: 24px; 
    gap: 24px; 
} 

#SiteHeader.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--primary-color); 
} 

nav a { 
    text-decoration: none; 
    color: var(--text-color); 
    margin-left: 25px; 
    font-weight: 500; 
    transition: color 0.2s; 
    display: inline-flex;
    align-items: center;
} 

nav a:hover { 
    color: var(--primary-color); 
} 

/* 顶部导航扁平化箭头 */
#SiteHeader nav a::before {
    content: '→';
    margin-right: 6px;
    font-size: 0.9em;
    opacity: 0.7;
    color: currentColor;
    transform: translateX(0);
    transition: transform 0.15s ease, opacity 0.2s ease;
}
#SiteHeader nav a:hover::before {
    transform: translateX(2px);
    opacity: 1;
}

/* 顶部下拉菜单 */
.nav-item { position: relative; display: inline-block; }
.nav-item > a { margin-left: 25px; }
.nav-item.has-submenu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #EEE;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 8px;
    display: none;
    z-index: 1001;
}
.nav-item.has-submenu:hover .submenu { display: block; }
.nav-item.has-submenu .submenu a {
    display: block;
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-color);
}
.nav-item.has-submenu .submenu a:hover { background: #f7f7f7; color: var(--primary-color); }

/* 底部样式 (Footer) */ 
#SiteFooter.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 24px 10%;
    color: #666;
    margin-top: 50px;
    background-color: var(--card-bg);
}
.footer-left { font-size: 0.9rem; }
.footer-right { display: flex; gap: 16px; align-items: center; font-size: 0.8rem; flex-wrap: wrap; }
.footer-right a { color: var(--primary-color); text-decoration: none; }
.footer-right a:hover { text-decoration: underline; }
.footer-note { color: #888; }
@media (max-width: 600px) {
    #SiteFooter.footer { justify-content: center; padding: 20px 24px; }
    .footer-left { width: 100%; text-align: center; }
    .footer-right { justify-content: center; text-align: center; }
}

/* 文件: styles.css (第 2 部分) - 测试页样式 */ 

#PersonalityTestWrapper { 
    width: min(900px, 80%);
    margin: 40px auto; 
    padding: 0 12px; 
    opacity: 0; /* 初始隐藏，等待 JS 加载 */ 
    transition: opacity 0.5s; 
} 

#QuestionCard { 
    background-color: var(--card-bg); 
    border-radius: 24px; 
    padding: 28px 24px; 
    box-shadow: var(--shadow-light); 
    margin-bottom: 24px; 
    transition: transform 0.3s, opacity 0.3s; 
} 

/* 问题卡片动画 */ 
.card-exit { 
    transform: translateX(-100%) scale(0.9); 
    opacity: 0; 
} 

.card-enter { 
    transform: translateX(100%) scale(0.9); 
    opacity: 0; 
} 

/* 动画重置 */ 
#QuestionCard { 
    animation-name: none; 
    transform: translateX(0) scale(1); 
    opacity: 1; 
} 

.question-text { 
    font-size: 20px; 
    font-weight: 700; 
    margin-bottom: 30px; 
    color: var(--primary-color); 
    text-align: center; 
    line-height: 1.8; 
    border: none; 
} 

/* 回答刻度区 */ 
#AnswerScale {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.question-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.question-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.question-options {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: stretch;
}

.question-options .scale-option {
    flex: 1 1 0;
}

.scale-option { 
    padding: 14px 22px; 
    min-height: 48px; 
    border: 1px solid rgba(0,0,0,0.08); 
    border-radius: 16px; 
    cursor: pointer; 
    text-align: center; 
    transition: all 0.2s; 
    font-weight: 500; 
    font-size: 0.95rem; 
    background-color: #FAFAFA; 
    position: relative;
} 

.scale-option.opt-1 { background: linear-gradient(180deg, #EAF3FF 0%, #E3EEFF 100%); }
.scale-option.opt-2 { background: linear-gradient(180deg, #F0F5FF 0%, #E9F0FF 100%); }
.scale-option.opt-3 { background: linear-gradient(180deg, #F7F7F7 0%, #F2F2F2 100%); }
.scale-option.opt-4 { background: linear-gradient(180deg, #FFF3F1 0%, #FFEAE7 100%); }
.scale-option.opt-5 { background: linear-gradient(180deg, #FFE9E4 0%, #FFDCD4 100%); }

.scale-option:hover { 
    border-color: var(--primary-color); 
    filter: brightness(0.98);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(106, 13, 169, 0.15);
} 

.scale-option.selected { 
    border-color: var(--primary-color); 
    box-shadow: inset 0 0 0 2px rgba(106,63,232,0.35), 0 4px 10px rgba(106, 13, 169, 0.16); 
    filter: saturate(1.06) brightness(0.99);
}
.scale-option.selected::after {
    content: '✔';
    position: absolute;
    right: 10px;
    top: 8px;
    font-size: 1rem;
    color: var(--primary-color);
    pointer-events: none;
}

/* 文件: styles.css (第 3 部分) - 进度与按钮样式 */ 

#TestProgressContainer { 
    display: grid; 
    grid-template-columns: 1fr auto; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 20px; 
    padding: 0 10px; 
} 

#QuestionCounter { 
    font-weight: 700; 
    font-size: 18px; 
    color: var(--primary-color); 
} 

#ProgressDots { 
    display: flex; 
    gap: 6px; 
    margin: 0 15px 0 0; 
    overflow: hidden; 
    height: 14px; 
} 

.progress-dot { 
    height: 10px; 
    width: 10px; 
    background-color: #DDD; 
    border-radius: 50%; 
    transition: background-color 0.3s, width 0.25s ease, height 0.25s ease, transform 0.25s ease; 
} 

.progress-dot.completed { 
    background-color: var(--primary-color); 
    width: 14px; 
    height: 14px; 
} 

@keyframes dotPop {
    0% { transform: scale(0.85); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1.0); }
}

.progress-dot.just-completed {
    animation: dotPop 280ms ease;
}

#TestControls { 
    text-align: center; 
} 

#NextButton, .next-page-btn { 
    padding: 18px 48px; 
    margin-top: 24px; 
    font-size: 1.05rem; 
    font-weight: 700; 
    color: #FFF; 
    background-color: var(--primary-color); 
    border: none; 
    border-radius: 12px; 
    cursor: pointer; 
    transition: background-color 0.2s, opacity 0.2s, transform 0.12s; 
    box-shadow: 0 8px 18px rgba(106, 13, 169, 0.22); 
} 

#NextButton:hover:not(:disabled), .next-page-btn:hover:not(:disabled) { 
    background-color: #550099; 
    transform: translateY(-2px); 
} 

#NextButton:disabled, .next-page-btn:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
}
 
#NextButton:active:not(:disabled), .next-page-btn:active:not(:disabled) {
    transform: scale(0.98);
}
@media (max-width: 600px) {
    .question-options {
        flex-wrap: wrap;
        gap: 12px;
    }
    .question-options .scale-option {
        flex: 1 1 calc(50% - 6px);
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .question-text {
        font-size: 1.3rem;
        line-height: 1.8;
    }
}

/* 文件: styles.css (第 4 部分) - 结果页与首页样式 */ 

/* 首页 Hero Section */ 
.hero { 
    text-align: center; 
    padding: 80px 20px 100px; 
    background: radial-gradient(700px circle at 50% 50%, #FFFFFF 0%, rgba(106,63,232,0.08) 55%, rgba(106,63,232,0.02) 85%); 
    position: relative;
    overflow: hidden;
} 
.hero::before {
    content: '';
    position: absolute;
    inset: -30% -30%;
    background: conic-gradient(from 0deg at 50% 50%, rgba(106,63,232,0.08) 0 25%, transparent 25% 50%, rgba(106,63,232,0.06) 50% 75%, transparent 75% 100%);
    animation: heroRipple 60s linear infinite;
    opacity: 0.06;
    pointer-events: none;
}
@keyframes heroRipple { to { transform: rotate(360deg); } }
.hero > * { 
    max-width: 72rem; 
    margin-left: auto; 
    margin-right: auto; 
} 
.hero .hero-content {
    max-width: 64rem; 
    margin: 0 auto; 
}
.hero h1 {
    font-size: 2.25rem; 
    line-height: 1.25; 
    color: var(--primary-color); 
    font-weight: 700; 
    margin-bottom: 18px; 
    text-align: center; 
}
.hero .cta-subtitle {
    font-size: 1.35rem;
    line-height: 1.6;
    color: #555;
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 28px;
}
.hero .tagline { 
    font-size: 1.125rem; 
    color: #666; 
    margin-top: 16px; 
    margin-bottom: 40px; 
    text-align: center; 
} 
/* 首页文案整体垂直间距增强 */
.hero p { margin-bottom: 18px; }
.hero .cta-buttons { margin-top: 40px; }
.hero .cta-buttons { display: flex; gap: 24px; justify-content: center; }
.hero .hero-points { list-style: none; padding: 0; margin: 16px 0 0 0; display: flex; flex-direction: column; gap: 10px; }
.hero .hero-points li { margin: 0; color: #555; font-size: 1.05rem; line-height: 1.7; }
.hero .cta-buttons { display: flex; gap: 16px; }
@media (min-width: 768px) { 
    .hero h1 { 
        font-size: 3rem; 
    } 
}
.tagline { 
    font-size: 1.2rem; 
    color: #666; 
    margin-bottom: 40px; 
} 

/* 首页 CTA 按钮 */ 
.cta-buttons a { 
    text-decoration: none; 
    padding: 16px 32px; 
    margin: 0; 
    border-radius: 18px; 
    font-weight: 700; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    min-width: 200px; 
    will-change: transform, box-shadow, background-color, color; 
    transition: transform 0.12s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease; 
} 
.btn-primary { 
    background-color: var(--primary-color); 
    color: #FFF; 
    border-radius: 16px; 
    box-shadow: 0 4px 10px rgba(123, 71, 255, 0.18); 
} 
.btn-secondary { 
    background-color: var(--primary-color); 
    color: #FFF; 
    border-radius: 16px; 
    box-shadow: 0 4px 10px rgba(123, 71, 255, 0.18); 
    border: none; 
} 
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 18px rgba(123, 71, 255, 0.22); 
    filter: brightness(1.06); 
} 
.btn-secondary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 18px rgba(123, 71, 255, 0.22); 
    background-color: rgba(106,63,232,0.06);
} 
.btn-primary:active, .btn-secondary:active { 
    transform: translateY(0); 
    box-shadow: 0 4px 10px rgba(123, 71, 255, 0.18); 
}
.btn-secondary { 
    background-color: transparent; 
    border: 2px solid var(--primary-color); 
    color: var(--primary-color); 
    border-radius: 16px; 
} 

/* 结果页报告样式 */ 
.result-report { 
    background-color: var(--card-bg); 
    border-radius: 24px; 
    padding: 40px; 
    box-shadow: var(--shadow-light); 
} 

/* 详情页布局与右侧导航 */
#ResultWrapper { 
    --color-primary: var(--primary-color);
    --color-text: var(--text-color);
    --color-accent: #D4B66A;
}

.detail-content {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    align-items: flex-start;
}

.content-toc {
    position: sticky;
    top: 100px;
    width: 300px;
    margin-left: 8px;
    padding: 12px;
    border-left: 2px solid #EEEEEE;
}

.content-toc h4 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.toc-item.level-1 {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none;
}

.toc-item.level-2 {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #616161;
    margin-left: 15px;
    margin-top: 5px;
    cursor: pointer;
    text-decoration: none;
}

.toc-item:hover,
.toc-item.active {
    color: var(--color-accent);
    transition: color 0.2s ease;
}

.detail-content .result-report {
    margin: 0;
}

/* 首页文本链接（排除按钮、卡片） */
#HomepageWrapper a:not(.btn):not(.type-card) {
    color: #666;
    text-decoration: none;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}
#HomepageWrapper a:not(.btn):not(.type-card):hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* 首页卡片 hover 动效统一 */
#HomepageWrapper .types-grid .type-card {
    border-radius: 24px;
    border: 2px solid transparent;
    box-shadow: 0 2px 6px rgba(106,63,232,0.10);
    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
    background: 
        linear-gradient(135deg, #FFFFFF 0%, rgba(106,63,232,0.06) 100%) padding-box,
        linear-gradient(135deg, rgba(106,63,232,0.18), rgba(227,221,253,0.18)) border-box;
}
#HomepageWrapper .types-grid .type-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 24px rgba(106,63,232,0.24);
    background:
        linear-gradient(135deg, #FFFFFF 0%, rgba(106,63,232,0.10) 100%) padding-box,
        linear-gradient(135deg, rgba(106,63,232,0.30), rgba(227,221,253,0.30)) border-box;
}
#HomepageWrapper .types-grid .type-card:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 6px 16px rgba(106,63,232,0.18);
    background:
        linear-gradient(135deg, #FFFFFF 0%, rgba(106,63,232,0.12) 100%) padding-box,
        linear-gradient(135deg, rgba(106,63,232,0.36), rgba(227,221,253,0.36)) border-box;
}

#HomepageWrapper .types-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 28px; 
    margin: 36px 0; 
} 
@media (min-width: 1200px) {
    #HomepageWrapper .types-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 992px) and (max-width: 1199px) {
    #HomepageWrapper .types-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 600px) and (max-width: 991px) {
    #HomepageWrapper .types-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
    #HomepageWrapper .types-grid { grid-template-columns: 1fr; gap: 24px; }
}
#HomepageWrapper .type-card {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
    will-change: transform;
}
#HomepageWrapper .type-card-title .type-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}
#HomepageWrapper .type-card-meta {
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    color: #666;
}
#HomepageWrapper .type-card-meta .type-code { font-weight: 700; }
#HomepageWrapper .type-desc {
    margin-top: 10px;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}
#HomepageWrapper .type-desc .type-desc-highlight strong { color: var(--primary-color); font-weight: 700; }
@media (max-width: 600px) {
    #HomepageWrapper .type-card-title .type-name { font-size: 1.1rem; }
    #HomepageWrapper .type-card { padding: 16px; }
    #HomepageWrapper .type-desc { font-size: 0.9rem; }
}

.result-report h1 { 
    font-size: 2.5rem; 
    color: var(--primary-color); 
    border-bottom: 3px solid #EEE; 
    padding-bottom: 10px; 
    margin-bottom: 20px; 
} 

.result-report h2 { 
    font-size: 1.6rem; 
    color: #333; 
    margin-top: 30px; 
    margin-bottom: 15px; 
    border-left: 5px solid var(--secondary-color); 
    padding-left: 10px; 
} 

.result-report ul { 
    list-style-type: none; 
    padding-left: 20px; 
} 

.result-report li { 
    margin-bottom: 10px; 
    position: relative; 
    padding-left: 20px; 
} 

.result-report li:before { 
    content: '★'; 
    position: absolute; 
    left: 0; 
    color: var(--secondary-color); 
    font-weight: bold; 
} 

.result-actions { 
    display: flex; 
    gap: 12px; 
    margin: 30px 0; 
}

.action-button { 
    padding: 12px 20px; 
    border: none; 
    border-radius: 999px; 
    font-weight: 700; 
    cursor: pointer; 
    box-shadow: 0 6px 16px rgba(106,13,173,0.15); 
}

.feedback-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #E6E6E6;
    background-color: #FFFFFF;
    color: #333;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feedback-button:active { transform: scale(0.98); }
.feedback-button:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.06); }
.feedback-button.liked { border-color: var(--primary-color); color: var(--primary-color); }
.feedback-button .fb-icon { font-weight: 700; display: inline-block; }
.feedback-button.liked .fb-icon { color: var(--primary-color); }
.feedback-button .fb-count { min-width: 2ch; display: inline-block; }
.feedback-button .fb-label { font-weight: 600; font-size: 0.9rem; }

@keyframes icon-pop {
    0% { transform: scale(1); filter: none; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.fb-icon.pop { animation: icon-pop 300ms ease-out; }

@keyframes count-bump {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-3px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}
.fb-count.bump { animation: count-bump 300ms ease-out; }

.action-share { 
    background-color: #FFFFFF; 
    color: var(--primary-color); 
    border: 2px solid var(--primary-color); 
}

/* 首页首屏视觉升级 */
.hero-section {
  padding: 120px 20px;
  text-align: center;
  background: radial-gradient(circle at 50% 10%, #f3e9ff 0%, #ffffff 60%);
  backdrop-filter: blur(20px);
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
  animation: fadeUp 0.8s ease-out;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(90deg, #7b4dff, #c44dff);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: #555;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.8;
  color: #666;
  opacity: 0.9;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 字体统一与布局稳定（可选但推荐） */
.hero-section, .hero-section * {
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.share-modal { 
    position: fixed; 
    inset: 0; 
    background-color: rgba(0,0,0,0.45); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 1001; 
}

.share-modal.show { 
    display: flex; 
}

.share-modal-content { 
    width: 90%; 
    max-width: 900px; 
    background: #FFF; 
    border-radius: 24px; 
    box-shadow: var(--shadow-light); 
    overflow: hidden; 
} 

.share-modal-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 16px 20px; 
    border-bottom: 1px solid #EEE; 
}

.share-modal-title { 
    font-size: 1.2rem; 
    font-weight: 700; 
}

.share-close { 
    border: none; 
    background: transparent; 
    font-size: 1.4rem; 
    cursor: pointer; 
}

.share-modal-body { 
    display: grid; 
    grid-template-columns: 1fr 260px; 
    gap: 20px; 
    padding: 20px; 
}

.poster-preview { 
    min-height: 300px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 1px dashed #DDD; 
    border-radius: 24px; 
    background-color: #FAFAFA; 
} 

#SharePosterPreview { 
    max-width: 100%; 
    height: auto; 
    border-radius: 24px; 
} 

.share-actions { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 12px; 
}

.share-actions button, .share-actions a { 
    padding: 12px 16px; 
    border-radius: 8px; 
    border: 1px solid #DDD; 
    text-align: center; 
    text-decoration: none; 
    color: var(--text-color); 
}
/* 首页模块容器统一 */
#HomepageWrapper section {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding: 48px 24px;
}
#HomepageWrapper section + section {
    margin-top: 64px;
}

/* 首页排版统一 */
#HomepageWrapper h1,
#HomepageWrapper h2,
#HomepageWrapper h3 {
    font-weight: 700;
    color: var(--primary-color);
}
#HomepageWrapper p {
    color: #666;
    line-height: 1.7;
}

/* 首页区块标题统一样式 */
#HomepageWrapper section > h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 32px;
    text-align: center;
}
@media (min-width: 768px) {
    #HomepageWrapper section > h2 {
        font-size: 1.875rem;
    }
}

/* 人格类型模块容器：轻量卡片化 */
.type-overview {
    background: #FFF;
    border-radius: 24px;
    box-shadow: 0 2px 6px rgba(123,71,255,0.10);
}
.type-overview h2 { text-align: center; }

/* 关于绘斓页面排版 */
.about-huilan-page-container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.about-huilan-page-container .page-title { font-size: 34px; font-weight: 700; color: var(--primary-color); text-align: center; margin-bottom: 30px; }
.about-huilan-page-container p { font-size: 17px; line-height: 1.7; color: #555; }
.about-huilan-page-container .intro-paragraph { font-size: 19px; color: #444; line-height: 1.6; margin-bottom: 40px; }
.about-huilan-page-container .section-title { font-size: 26px; font-weight: 700; color: #444; margin-top: 40px; margin-bottom: 20px; }
.about-huilan-page-container .advantage-list { list-style: disc; padding-left: 1.25rem; color: #555; }
.about-huilan-page-container .advantage-list li { margin-bottom: 10px; font-size: 17px; line-height: 1.7; }
#HomepageWrapper .type-card-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 6px;
}
#HomepageWrapper .type-card-header .type-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}
#HomepageWrapper .type-card-header .type-code {
    font-weight: 700;
    color: #4a4a4a;
    margin-left: 8px;
}
.perf-opt {
    /* 占位类，方便定位此段性能优化样式 */
}
#HomepageWrapper .types-grid { content-visibility: auto; contain-intrinsic-size: 600px; }
.result-report { content-visibility: auto; contain-intrinsic-size: 800px; }
