:root {
    --primary: #2563eb;
    --secondary: #8b5cf6;
    --accent: #10b981;
    --white: #ffffff;
    --light-gray: #f3f4f6;
    --dark-gray: #1f2937;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '🧠';
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 5px;
    transition: var(--transition);
}

/* 英雄区 */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4eaf1 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #4b5563;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin: 1rem 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
}

.badge::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
}

/* 价值主张 */
.value-props {
    padding: 4rem 0;
}

.value-props h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

.props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.prop-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.prop-card p {
    flex: 1;
    margin-bottom: 1.5rem;
}

.prop-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.prop-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.prop-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.prop-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.prop-card a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.prop-card a:hover {
    color: var(--secondary);
}

.prop-card a::after {
    content: '→';
    transition: var(--transition);
}

.prop-card a:hover::after {
    transform: translateX(5px);
}

/* 人格类型总览页面 */
.personality-overview {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.personality-overview h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--dark-gray);
    text-align: center;
}

.personality-overview p {
    margin-bottom: 3rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 人格分组 */
.personality-group {
    margin-bottom: 3rem;
}

.group-title {
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 不同人格组的颜色 */
.group-analyst .group-title {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.group-diplomat .group-title {
    background: linear-gradient(135deg, #fef2f2 0%, #fce7f3 100%);
    color: #db2777;
    border: 1px solid #fecdd3;
}

.group-sentinel .group-title {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.group-explorer .group-title {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    color: #d97706;
    border: 1px solid #fde68a;
}

/* 人格卡片颜色 */
.group-analyst .personality-card {
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.group-diplomat .personality-card {
    border: 1px solid rgba(219, 39, 119, 0.2);
}

.group-sentinel .personality-card {
    border: 1px solid rgba(21, 128, 61, 0.2);
}

.group-explorer .personality-card {
    border: 1px solid rgba(217, 119, 6, 0.2);
}

/* 人格卡片网格 */
.personality-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* 人格卡片 */
.personality-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.personality-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.personality-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.personality-card p {
    margin-bottom: 1.5rem;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 了解更多按钮 */
.personality-card .btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.personality-card .btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .personality-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .personality-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .personality-overview {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .personality-grid {
        grid-template-columns: 1fr;
    }
    
    .personality-overview {
        padding: 1.5rem;
    }
    
    .personality-overview h1 {
        font-size: 2rem;
    }
    
    .group-title {
        font-size: 1.1rem;
        padding: 0.75rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .personality-overview {
        padding: 1rem;
    }
    
    .personality-overview h1 {
        font-size: 1.8rem;
    }
    
    .personality-card {
        padding: 1.25rem;
    }
}

/* 戀愛配對页面 */
.love-section {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.love-section h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
    color: var(--dark-gray);
    text-align: center;
}

/* 戀愛卡片 */
.love-card {
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.love-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* 卡片背景色 */
.card-important {
    background: linear-gradient(135deg, #fef2f2 0%, #fce7f3 100%);
    border: 1px solid #fecdd3;
}

.card-principles {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
}

.card-analysis {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
}

.card-advice {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
}

.card-improvement {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
}

.love-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.love-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4b5563;
    margin-top: 2rem;
}

.love-card p {
    margin-bottom: 1.5rem;
    color: #6b7280;
    line-height: 1.6;
}

.love-card ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.love-card li {
    margin-bottom: 0.75rem;
    color: #6b7280;
    line-height: 1.5;
}

/* 人格類型組 */
.personality-type-group {
    margin-bottom: 2rem;
}

.personality-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.personality-item {
    background-color: rgba(37, 99, 235, 0.05);
    padding: 1rem;
    border-radius: 12px;
}

.personality-item p {
    margin-bottom: 0;
}

/* 建議列表 */
.advice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.advice-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.advice-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.advice-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
}

.advice-item span {
    line-height: 1.6;
    color: #6b7280;
}

.advice-item strong {
    color: var(--dark-gray);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* 改善步驟 */
.improvement-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 相處建議响应式设计 */
@media (max-width: 992px) {
    .advice-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .advice-list {
        grid-template-columns: 1fr;
    }
    
    .advice-item {
        padding: 1.25rem;
    }
    
    .advice-icon {
        font-size: 1.75rem;
        width: 50px;
        height: 50px;
    }
    
    .advice-item strong {
        font-size: 1rem;
    }
}

/* 職業页面样式 */
.career-section {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.career-card {
    background-color: var(--white);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.career-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* 卡片背景色 */
/* 職業页面标题样式 */
.career-section h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
    color: var(--dark-gray);
    text-align: center;
}

.career-section > p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.card-mbti-career {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
}

.card-career-analysis {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
}

.card-career-advice {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
}

/* 人格類型組 */
.personality-type-group {
    margin-bottom: 2rem;
}

.personality-type-group h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* 人格職業項目 */
.personality-career-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.personality-career-item {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.personality-career-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.personality-career-item h4 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.personality-description {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.career-traits {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.suitable-careers {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* 職業页面响应式设计 */
@media (max-width: 992px) {
    .personality-career-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .career-section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .personality-career-items {
        grid-template-columns: 1fr;
    }
    
    .career-card {
        padding: 20px;
    }
    
    .career-section {
        padding: 1.5rem;
    }
    
    .career-section h1 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .career-section > p {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .career-section {
        padding: 1rem;
    }
    
    .career-section h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .career-section > p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    line-height: 1.6;
    color: #6b7280;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .love-section {
        padding: 2rem;
    }
    
    .love-card {
        padding: 20px;
    }
    
    .personality-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .love-section {
        padding: 1.5rem;
    }
    
    .love-section h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .love-card {
        padding: 16px;
        margin-bottom: 1.5rem;
    }
    
    .love-card h2 {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }
    
    .love-card h3 {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }
    
    .step-item {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .love-section {
        padding: 1rem;
    }
    
    .love-section h1 {
        font-size: 1.8rem;
    }
    
    .love-card {
        padding: 12px;
    }
    
    .advice-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .advice-icon {
        margin-top: 0;
    }
}

/* 专题内容 */
.topics {
    padding: 4rem 0;
}

.topics h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

.topics-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
        }

        @media (max-width: 1200px) {
            .topics-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 992px) {
            .topics-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .topics-grid {
                grid-template-columns: 1fr;
            }
        }

.topic-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.topic-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topic-card p {
    margin-bottom: 1.5rem;
    color: #6b7280;
}

/* 专题内容查看详情按钮 */
.topic-card .btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.topic-card .btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
}

/* 信任背书 */
.testimonials {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.testimonials h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.testimonial-card p {
    flex: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card p {
    margin-bottom: 1.5rem;
    color: #6b7280;
    font-style: italic;
}

.testimonial-author {
    font-weight: 700;
    color: var(--dark-gray);
}

.stats {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 1;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 最终CTA */
.final-cta {
    padding: 4rem 0;
    text-align: center;
}

.final-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.final-cta p {
    margin-bottom: 2rem;
    color: #6b7280;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 通用内容样式 */
main {
    padding: 2rem 0;
}

section {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

section h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--dark-gray);
    text-align: center;
}

section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    margin-top: 2.5rem;
}

section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    margin-top: 2rem;
}

section p {
    margin-bottom: 1.5rem;
    color: #ffffff;
}

section ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

section li {
    margin-bottom: 0.5rem;
    color: #6b7280;
}

section strong {
    color: var(--dark-gray);
}

/* 返回按钮 */
.btn-back {
    display: inline-block;
    background-color: #e0e7ff;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--primary);
    margin-bottom: 1.5rem;
}

.btn-back:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* 表单样式 */
.test-container {
    margin-top: 2rem;
}

.question {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.question h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.option {
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.option:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.option.selected {
    border-color: var(--primary);
    background-color: #e0e7ff;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .options {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .options {
        grid-template-columns: 1fr;
    }
}

/* 页尾樣式優化 */
footer {
    background-color: #1E293B;
    color: #FFFFFF;
    padding: 30px 0;
    font-family: 'Noto Sans TC', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-info {
    font-size: 12px;
    color: #9CA3AF;
    margin-bottom: 10px;
}

.footer-info a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: #FFFFFF;
}

.footer-info span {
    margin: 0 8px;
    color: #64748B;
}

.disclaimer {
    font-size: 12px;
    color: #9CA3AF;
    margin-bottom: 10px;
}

.copyright {
    font-size: 12px;
    color: #64748B;
}

/* 分享按鈕樣式 */
.footer-section a:hover, .footer-section button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-section a:hover div, .footer-section button:hover div {
    transform: scale(1.1);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-section {
        min-width: 100%;
    }
    
    .footer-section:nth-child(3) {
        order: -1;
    }
    
    .footer-info {
        font-size: 11px;
    }
    
    .footer-info span {
        margin: 0 4px;
    }
}

/* 汉堡菜单动画 */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 分享区域样式 */
.share-section {
    min-width: 280px;
}

.share-section p {
    margin-bottom: 12px;
    color: #9CA3AF;
    font-size: 12px;
    line-height: 1.4;
}

.share-container {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.2);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.share-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #FFFFFF;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    cursor: pointer;
}

.share-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: white;
}

.share-button:hover .share-icon {
    transform: scale(1.1);
}

.share-label {
    font-size: 10px;
    font-weight: 500;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

/* 社交媒体品牌色 */
.share-icon.facebook {
    background-color: #1877F2;
}

.share-icon.instagram {
    background-color: #E4405F;
}

.share-icon.line {
    background-color: #00B900;
}

.share-icon.copy {
    background-color: #2563EB;
}

/* 骨架屏样式 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 结果页样式 */
.result-section {
    text-align: center;
    margin: 2rem 0;
}

/* 响应式分享按钮 */
@media (max-width: 768px) {
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 测试页面样式 */
.test-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-content {
    flex: 1;
    min-width: 300px;
}

.header-actions {
    display: flex;
    align-items: center;
}

.test-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.test-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
}

.progress-section {
    margin-bottom: 2rem;
    z-index: 100;
    position: relative;
}

.progress-container {
    background-color: var(--light-gray);
    border-radius: 20px;
    height: 10px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #2563eb, #8b5cf6);
    height: 100%;
    border-radius: 20px;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #4B5563;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#time-estimate {
    color: #4B5563;
    font-weight: 500;
}

.test-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.question {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.question:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.question h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.question-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
}

.question-number {
    font-weight: 600;
    color: var(--dark-gray);
}

.question-category {
    display: inline-block;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-left: 0.75rem;
    vertical-align: middle;
}

.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.option {
    background-color: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1.4;
    text-align: left;
    min-height: 100px;
    display: flex;
    align-items: center;
    word-wrap: break-word;
}

.option:hover {
    background-color: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.option.selected {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.option.selected:hover {
    background-color: #1d4ed8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .question {
        padding: 1.5rem;
    }
    
    .question h3 {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
    
    .options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .option {
        padding: 1.25rem;
        font-size: 0.95rem;
        min-height: 80px;
    }
}

.navigation-section {
    position: sticky;
    bottom: 0;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 50;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navigation-buttons.submit-only {
    justify-content: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navigation-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
}

.btn-disabled {
    color: #6b7280;
    border: 1px solid #d1d5db;
    opacity: 0.6;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.view-toggle {
    margin-bottom: 1rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.toggle-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.toggle-actions {
    display: flex;
    gap: 0.5rem;
}

.toggle-btn {
    background-color: var(--light-gray);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background-color: var(--primary);
    color: var(--white);
}

.btn-reset {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.toggle-btn.btn-reset {
    background-color: #ef4444;
    color: white;
}

.toggle-btn.btn-reset:hover {
    background-color: #dc2626;
}

.info-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.info-section p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.single-question {
    display: block;
}

.all-questions {
    display: none;
}

.all-questions.show {
    display: block;
}

.single-question.hide {
    display: none;
}

.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: #10b981;
    color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.question-number {
    font-weight: 700;
    color: var(--primary);
}

.question-category {
    display: inline-block;
    background-color: #e0e7ff;
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    font-weight: 500;
}

/* 响应式测试页面 */
@media (max-width: 768px) {
    .test-header h1 {
        font-size: 2rem;
    }

    .test-container {
        padding: 1.5rem;
    }

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

    .option {
        padding: 0.75rem;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .progress-info {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .test-header h1 {
        font-size: 1.8rem;
    }

    .test-container {
        padding: 1rem;
    }

    .question {
        padding: 1rem;
    }

    .question h3 {
        font-size: 1.1rem;
    }
}

/* 人格详情页样式 */
.personality-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.personality-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.personality-hero-content {
    position: relative;
    z-index: 1;
}

.personality-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: white;
}

.personality-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.personality-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.personality-dimensions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.dimension-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.dimension-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.dimension-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.dimension-fill {
    height: 100%;
    background-color: white;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.personality-content {
    padding: 4rem 0;
}

.content-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-section h2::before {
    font-size: 1.5rem;
}

.traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.trait-card {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.trait-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.trait-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.keyword-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.personality-hero .keyword-tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.personality-content .keyword-tag {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.pros-cons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pros, .cons {
    padding: 2rem;
    border-radius: var(--border-radius);
}

.pros {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
}

.cons {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
}

.pros h3, .cons h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pros h3 {
    color: #10b981;
}

.cons h3 {
    color: #ef4444;
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
}

.pros li, .cons li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.cons li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
}

.related-links {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.related-links h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.related-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.related-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.related-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.related-card a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.related-card a:hover {
    color: var(--secondary);
}

.related-card a::after {
    content: '→';
    transition: var(--transition);
}

.related-card a:hover::after {
    transform: translateX(5px);
}



/* 侧边栏目录 */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-nav {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.sidebar-nav h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 0.8rem;
}

.sidebar-nav a {
    text-decoration: none;
    color: #6b7280;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
}

.sidebar-nav a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

/* 网格布局 */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-6 {
    gap: 1.5rem;
}

/* 响应式设计 */
@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .lg\:col-span-3 {
        grid-column: span 3 / span 3;
    }
}

@media (max-width: 992px) {
    .personality-title {
        font-size: 2.5rem;
    }

    .personality-subtitle {
        font-size: 1.2rem;
    }

    .content-section {
        padding: 2rem;
    }

    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .personality-hero {
        padding: 3rem 0;
    }

    .personality-title {
        font-size: 2rem;
    }

    .personality-subtitle {
        font-size: 1rem;
    }

    .personality-dimensions {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 1.5rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

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

/* 人格配对模块样式 */
.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.compatibility-item {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.compatibility-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.compatibility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.compatibility-type {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.compatibility-score {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
}

.compatibility-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.compatibility-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.compatibility-desc {
    font-size: 0.9rem;
    color: #6b7280;
}

/* 可视化图表样式 */
.chart-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.chart-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

/* FAQ模块样式 */
.faq-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.faq-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 1.5rem;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
    margin-top: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .compatibility-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    .faq-section {
        padding: 1.5rem;
    }
}

/* 结果页专用样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #8b5cf6;
    --bg-light: #ffffff;
    --bg-gray: #f3f4f6;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --border-color: #e5e7eb;
}

/* 人格类型专属配色方案 */
.type-enfp {
    --primary-color: #06b6d4;
    --secondary-color: #3b82f6;
}

.type-entp {
    --primary-color: #8b5cf6;
    --secondary-color: #d946ef;
}

.type-enfj {
    --primary-color: #f59e0b;
    --secondary-color: #ef4444;
}

.type-entj {
    --primary-color: #ef4444;
    --secondary-color: #dc2626;
}

.type-esfp {
    --primary-color: #ec4899;
    --secondary-color: #db2777;
}

.type-estp {
    --primary-color: #10b981;
    --secondary-color: #059669;
}

.type-esfj {
    --primary-color: #f97316;
    --secondary-color: #ea580c;
}

.type-estj {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
}

.type-infp {
    --primary-color: #8b5cf6;
    --secondary-color: #7c3aed;
}

.type-intp {
    --primary-color: #14b8a6;
    --secondary-color: #0d9488;
}

.type-infj {
    --primary-color: #f43f5e;
    --secondary-color: #e11d48;
}

.type-intj {
    --primary-color: #3b82f6;
    --secondary-color: #2563eb;
}

.type-isfp {
    --primary-color: #10b981;
    --secondary-color: #059669;
}

.type-istp {
    --primary-color: #f59e0b;
    --secondary-color: #d97706;
}

.type-isfj {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
}

.type-istj {
    --primary-color: #06b6d4;
    --secondary-color: #0891b2;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-gray);
}

/* 广告位 */
.adsense-result-top {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 20px auto;
    background-color: #f9fafb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.adsense-result-middle {
    width: 100%;
    max-width: 300px;
    height: 250px;
    margin: 40px auto;
    background-color: #f9fafb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .adsense-result-top {
        max-width: 320px;
        height: 50px;
    }
}

/* 结果容器 */
.result-container {
    background-color: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 32px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .result-container {
        padding: 24px;
        margin: 20px 0;
    }
}

/* 结果头部 */
.result-header {
    text-align: center;
    margin-bottom: 40px;
}

.result-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.result-header p {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 32px;
}

/* 人格类型卡片 */
.personality-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-in-out;
}

.personality-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.personality-card p {
    font-size: 1.25rem;
    margin-bottom: 24px;
    opacity: 1;
    color: white;
}

/* 标签样式 */
.personality-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 14px 36px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px -3px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--bg-gray);
    color: var(--text-dark);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
    transform: translateY(-2px);
}

/* 维度分析区 */
.dimensions-section {
    margin-bottom: 40px;
}

.dimensions-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 1200px) {
    .dimensions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.dimension-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.dimension-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dimension-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.dimension-card p {
    color: var(--text-gray);
    margin-bottom: 24px;
    flex: 1;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--bg-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    width: 0;
    transition: width 1s ease;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* 后续建议区 */
.suggestions-section {
    margin-bottom: 40px;
}

.suggestions-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.suggestion-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.suggestion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.suggestion-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 24px;
}

.suggestion-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.suggestion-card p {
    color: var(--text-gray);
    margin-bottom: 16px;
    flex: 1;
}

.suggestion-card a {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.suggestion-card a:hover {
    color: var(--secondary-color);
}

/* 骨架屏 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

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

/* 人格相似度对比模块 */
.similarity-section {
    margin-bottom: 40px;
}

.similarity-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.similarity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.similarity-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.similarity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.similarity-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.similarity-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.similarity-card p {
    color: var(--text-gray);
    margin-bottom: 16px;
}

.similarity-card a {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.similarity-card a:hover {
    color: var(--secondary-color);
}

/* 名人案例模块 */
.celebrities-section {
    margin-bottom: 40px;
}

.celebrities-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.celebrities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.celebrity-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.celebrity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.celebrity-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.celebrity-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.celebrity-type {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.celebrity-desc {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* 分享图生成 */
.share-image-section {
    margin-bottom: 40px;
    text-align: center;
}

.share-image-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.share-image-container {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    display: inline-block;
}

/* 手机模型 */
.phone-mockup {
    width: 340px;
    height: 680px;
    background-color: #1f2937;
    border-radius: 32px;
    padding: 20px;
    margin: 0 auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background-color: #111827;
    border-radius: 0 0 10px 10px;
}

/* 分享图 */
.share-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: white;
    text-align: center;
    padding: 40px 30px;
    box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.share-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    transform: rotate(30deg);
}

/* 确保文字清晰 */
.share-image * {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.share-brand {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    z-index: 1;
    color: white;
}

.share-image h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
    z-index: 1;
    color: white;
}

.share-image .share-type {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    z-index: 1;
    color: white;
}

.share-image p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 1;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    max-width: 240px;
    z-index: 1;
    color: white;
}

.share-image p:last-of-type {
    margin-bottom: 30px;
}

/* 维度条 */
.share-dimensions {
    width: 100%;
    margin-bottom: 30px;
    z-index: 1;
}

.dimension-bar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    min-height: 32px;
}

.dimension-bar span {
    font-size: 1rem;
    font-weight: 700;
    width: 40px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.bar-container {
    flex: 1;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    margin: 0 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.bar {
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    transition: width 1s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.share-features {
    width: 100%;
    margin-bottom: 20px;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 1rem;
}

.feature-text {
    color: white;
}

.share-domain {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
    z-index: 1;
}


/* 配文生成区域 */
.caption-section {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 24px;
    margin-top: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.caption-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.caption-section p {
    margin-bottom: 24px;
    color: var(--text-gray);
}

.caption-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.caption-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#caption-text {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .phone-mockup {
        width: 280px;
        height: 560px;
        padding: 16px;
    }
    
    .share-image {
        padding: 32px 24px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .caption-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* 再測一次按钮 */
.retest-section {
    text-align: center;
    margin-bottom: 40px;
}

.btn-retest {
    display: inline-block;
    background-color: var(--bg-gray);
    color: var(--text-dark);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.btn-retest:hover {
    background-color: #e5e7eb;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .result-header h1 {
        font-size: 2rem;
    }
    
    .personality-card h2 {
        font-size: 1.75rem;
    }
    
    .dimensions-grid {
        grid-template-columns: 1fr;
    }
    
    .suggestions-grid {
        grid-template-columns: 1fr;
    }
    
    .similarity-grid {
        grid-template-columns: 1fr;
    }
    
    .celebrities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .share-image {
        width: 250px;
        height: 350px;
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .celebrities-grid {
        grid-template-columns: 1fr;
    }
}

.celebrity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.celebrity-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.celebrity-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.celebrity-type {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.celebrity-desc {
    font-size: 0.875rem;
    color: #6b7280;
}

/* 分享图生成 */
.share-image-section {
    margin-bottom: 40px;
    text-align: center;
}

/* 分享提示样式 */
.share-tip {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.share-tip p {
    margin: 0;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* 响应式分享提示 */
@media (max-width: 768px) {
    .share-tip {
        padding: 16px;
    }
    
    .share-tip p {
        font-size: 1rem;
    }
}

.share-image-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.share-image-container {
    background-color: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    display: inline-block;
}

/* 手机模型 */
.phone-mockup {
    width: 340px;
    height: 680px;
    background-color: #1f2937;
    border-radius: 32px;
    padding: 20px;
    margin: 0 auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background-color: #111827;
    border-radius: 0 0 10px 10px;
}

/* 分享图 */
.share-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: white;
    text-align: center;
    padding: 40px 30px;
    box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.share-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    transform: rotate(30deg);
}

/* 确保文字清晰 */
.share-image * {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.share-brand {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    z-index: 1;
    color: white;
}

.share-image h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
    z-index: 1;
    color: white;
}

.share-image .share-type {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    z-index: 1;
    color: white;
}

.share-image p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 1;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    max-width: 240px;
    z-index: 1;
    color: white;
}

.share-image p:last-of-type {
    margin-bottom: 30px;
}

/* 维度条 */
.share-dimensions {
    width: 100%;
    margin-bottom: 30px;
    z-index: 1;
}

.dimension-bar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    min-height: 32px;
}

.dimension-bar span {
    font-size: 1rem;
    font-weight: 700;
    width: 40px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.bar-container {
    flex: 1;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    margin: 0 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.bar {
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    transition: width 1s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.share-features {
    width: 100%;
    margin-bottom: 20px;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 1rem;
}

.feature-text {
    color: white;
}

.share-domain {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
    z-index: 1;
}


/* 配文生成区域 */
.caption-section {
    background-color: var(--white);
    border-radius: 12px;
    padding: 24px;
    margin-top: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.caption-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.caption-section p {
    margin-bottom: 24px;
    color: #6b7280;
}

.caption-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.caption-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#caption-text {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
}

/* 再測一次按钮 */
.retest-section {
    text-align: center;
    margin-bottom: 40px;
}

.btn-retest {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.btn-retest:hover {
    background-color: #e5e7eb;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .result-header h1 {
        font-size: 2rem;
    }
    
    .personality-card h2 {
        font-size: 1.75rem;
    }
    
    .dimensions-grid {
        grid-template-columns: 1fr;
    }
    
    .suggestions-grid {
        grid-template-columns: 1fr;
    }
    
    .similarity-grid {
        grid-template-columns: 1fr;
    }
    
    .celebrities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .phone-mockup {
        width: 280px;
        height: 560px;
        padding: 16px;
    }
    
    .share-image {
        padding: 32px 24px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .caption-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .celebrities-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}