:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    --choleric-color: #ef4444;
    --choleric-light: #fee2e2;
    --sanguine-color: #f59e0b;
    --sanguine-light: #fef3c7;
    --phlegmatic-color: #06b6d4;
    --phlegmatic-light: #e0f7fa;
    --melancholic-color: #8b5cf6;
    --melancholic-light: #f3e8ff;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-hero: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
    
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    --animation-duration: 0.3s;
    --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 全局動畫 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

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

.container {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* 頁面管理 */
.page {
    display: none;
    min-height: 100vh;
    animation: fadeIn var(--animation-duration) ease-in-out;
}

.page.active {
    display: block;
}

/* 美化Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-sm);
    transition: all var(--animation-duration) ease;
}

.header:hover {
    box-shadow: var(--shadow-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform var(--animation-duration) ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 2rem;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--animation-duration) ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--primary-light);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 按鈕美化 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--animation-duration) var(--animation-bounce);
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    border-radius: var(--radius-xl);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--animation-duration) ease;
    backdrop-filter: blur(10px);
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Hero Section 美化 */
#landing-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    min-height: calc(100vh - 100px);
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 3s infinite;
}

.hero-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 0.8s ease-out 0.3s both;
}

.personality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 350px;
    transform: perspective(1000px) rotateY(-5deg);
}

.grid-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    text-align: center;
    font-weight: 600;
    transition: all var(--animation-duration) var(--animation-bounce);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.grid-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.grid-item span {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    animation: bounce 2s infinite;
}

.grid-item.choleric {
    border-left: 6px solid var(--choleric-color);
    background: linear-gradient(135deg, var(--choleric-light), rgba(255,255,255,0.9));
}

.grid-item.sanguine {
    border-left: 6px solid var(--sanguine-color);
    background: linear-gradient(135deg, var(--sanguine-light), rgba(255,255,255,0.9));
}

.grid-item.phlegmatic {
    border-left: 6px solid var(--phlegmatic-color);
    background: linear-gradient(135deg, var(--phlegmatic-light), rgba(255,255,255,0.9));
}

.grid-item.melancholic {
    border-left: 6px solid var(--melancholic-color);
    background: linear-gradient(135deg, var(--melancholic-light), rgba(255,255,255,0.9));
}

/* About Section 美化 */
.about-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 6rem 2rem;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 3rem 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    transition: all var(--animation-duration) var(--animation-bounce);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.feature-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    transition: transform var(--animation-duration) ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotateY(360deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Assessment Page 美化 */
#assessment-page {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
    min-height: 100vh;
}

.assessment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    max-width: 500px;
}

.progress-bar {
    flex: 1;
    height: 0.75rem;
    background: var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: var(--radius-xl);
    transition: width 0.5s ease;
    width: 0;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.progress-text {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    font-size: 1.1rem;
}

.question-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 3rem 2rem;
}

.question-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 4rem 3rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    max-width: 800px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

.question-text {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 3rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.option-button {
    padding: 1.5rem 2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.8);
    text-align: left;
    cursor: pointer;
    transition: all var(--animation-duration) var(--animation-bounce);
    font-size: 1.1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.option-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.option-button:hover::before {
    left: 100%;
}

.option-button:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.option-button.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.option-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.option-button:disabled:not(.selected) {
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--border-light);
    color: var(--text-light);
}

.assessment-navigation {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Results Page 美化 */
#results-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.results-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.result-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.result-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

.result-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.result-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.result-sections {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.result-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform var(--animation-duration) ease;
    color: var(--text-primary);
}

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

.result-section h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.temperament-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    margin-bottom: 4rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.temperament-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.temperament-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

.temperament-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.temperament-card p {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.temperament-card p:last-child {
    margin-bottom: 0;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Explorer Page 美化 */
#explorer-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.explorer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.explorer-header h2 {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.type-filter {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.filter-select {
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    min-width: 220px;
    backdrop-filter: blur(10px);
    transition: all var(--animation-duration) ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.type-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all var(--animation-duration) var(--animation-bounce);
    cursor: pointer;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.type-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.type-card-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
}

.type-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.type-card-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.type-card-content {
    padding: 2rem;
    color: var(--text-primary);
}

.type-card-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .personality-grid {
        max-width: 280px;
        transform: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .question-card {
        padding: 2.5rem 2rem;
        margin: 1rem;
    }
    
    .question-text {
        font-size: 1.4rem;
    }
    
    .option-button {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .assessment-navigation {
        padding: 1rem;
    }
    
    .results-content {
        padding: 2rem 1rem;
    }
    
    .result-title {
        font-size: 2.2rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .types-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .type-filter {
        flex-direction: column;
        padding: 1rem;
    }
    
    .filter-select {
        min-width: auto;
    }
}

/* 無障礙設計 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 焦點樣式 */
.btn:focus,
.option-button:focus,
.filter-select:focus,
.nav-link:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* 載入動畫 */
.loading {
    animation: pulse 2s infinite;
}

/* 通知樣式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    z-index: 1000;
    animation: slideInRight 0.5s ease-out;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 300px;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* 指南區域樣式 */
.guide-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 4rem 2rem;
    margin: 4rem 0;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.guide-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.guide-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--animation-duration) ease;
    color: var(--text-primary);
}

.guide-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.guide-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.guide-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 結果頁面增強樣式 */

/* 特質概覽 */
.result-overview {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-overview h2 {
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.trait-bars {
    display: grid;
    gap: 1.5rem;
    padding: 1rem 0;
}

.trait-bar {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.trait-bar:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.trait-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.trait-dominant {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.trait-progress {
    position: relative;
    height: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.trait-fill {
    height: 100%;
    border-radius: 12px;
    position: relative;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.trait-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 12px 12px 0 0;
}

.trait-fill::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: inherit;
    border-radius: 10px;
    filter: brightness(1.1);
}

/* 增強的MBTI維度顏色 */
.trait-fill.E { 
    background: linear-gradient(135deg, #e11d48, #f43f5e, #fb7185);
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.4);
}

.trait-fill.I { 
    background: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.trait-fill.S { 
    background: linear-gradient(135deg, #16a34a, #22c55e, #4ade80);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.trait-fill.N { 
    background: linear-gradient(135deg, #dc2626, #ef4444, #f87171);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.trait-fill.T { 
    background: linear-gradient(135deg, #7c3aed, #8b5cf6, #a78bfa);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.trait-fill.F { 
    background: linear-gradient(135deg, #ea580c, #fb923c, #fdba74);
    box-shadow: 0 4px 20px rgba(251, 146, 60, 0.4);
}

.trait-fill.J { 
    background: linear-gradient(135deg, #0891b2, #06b6d4, #22d3ee);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}

.trait-fill.P { 
    background: linear-gradient(135deg, #be185d, #ec4899, #f472b6);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

.trait-percentage {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.trait-percentage::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

/* 添加脈動動畫 */
@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
    50% { 
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    }
}

.trait-fill {
    animation: progressFill 2s cubic-bezier(0.4, 0, 0.2, 1) forwards,
               pulse-glow 3s infinite 2s;
}

/* 響應式設計優化 */
@media (max-width: 768px) {
    .trait-bar {
        padding: 1rem;
    }
    
    .trait-label {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .trait-progress {
        height: 14px;
    }
    
    .trait-percentage {
        font-size: 1rem;
    }
}

/* 加載狀態美化 */
.loading-trait-bar {
    opacity: 0.6;
    pointer-events: none;
}

.loading-trait-bar .trait-fill {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

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

/* 標籤頁系統 */
.analysis-tabs {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.tab-content {
    display: none;
    padding: 2rem;
    animation: fadeInUp 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* 職業建議列表 */
.career-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.career-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
    border: 2px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.career-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.career-item:hover::before {
    left: 100%;
}

.career-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
    color: var(--primary-color);
}

/* 優勢和挑戰列表 */
.strength-list, .challenge-list, .growth-list, .activity-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.strength-item, .challenge-item, .growth-item, .activity-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.strength-item {
    border-left-color: var(--success-color);
}

.challenge-item {
    border-left-color: var(--warning-color);
}

.growth-item {
    border-left-color: var(--primary-color);
}

.activity-item {
    border-left-color: var(--secondary-color);
}

.strength-item::before, .challenge-item::before, .growth-item::before, .activity-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: inherit;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.strength-item:hover, .challenge-item:hover, .growth-item:hover, .activity-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.strength-item:hover::before, .challenge-item:hover::before, .growth-item:hover::before, .activity-item:hover::before {
    transform: scaleY(1);
}

/* 相容性分析 */
.compatibility-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.compatibility-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.compatibility-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.compatibility-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.compatibility-level {
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.compatibility-level.excellent { color: var(--success-color); }
.compatibility-level.good { color: #22d3ee; }
.compatibility-level.fair { color: var(--warning-color); }
.compatibility-level.challenging { color: var(--error-color); }

.compatibility-types {
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 氣質卡片增強 */
.temperament-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
}

.temperament-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.temperament-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.temperament-card p:last-child {
    margin-bottom: 0;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .tab-btn:last-child {
        border-bottom: none;
    }
    
    .tab-btn.active::after {
        height: 100%;
        width: 3px;
        left: 0;
        right: auto;
    }
    
    .trait-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .trait-label {
        min-width: auto;
    }
    
    .career-list {
        grid-template-columns: 1fr;
    }
    
    .compatibility-grid {
        grid-template-columns: 1fr;
    }
    
    .result-overview, .analysis-tabs, .compatibility-section {
        padding: 1.5rem;
    }
}

/* 動畫效果 */
@keyframes progressFill {
    from { width: 0; }
    to { width: var(--target-width); }
}

.trait-fill {
    animation: progressFill 1.5s ease-out forwards;
}

/* 加載狀態 */
.loading-trait-bar {
    opacity: 0.5;
    pointer-events: none;
}

.loading-trait-bar .trait-fill {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 工具提示樣式 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 結果頁面字體顏色修正 */
#results-page .result-section {
    color: var(--text-primary); /* 白色卡片內的內容使用深色字體 */
}

#results-page .result-section h3 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#results-page .result-section p {
    color: var(--text-secondary);
}

/* 確保氣質卡片在結果頁面中的字體顏色正確 */
#results-page .temperament-card {
    color: var(--text-primary);
}

#results-page .temperament-card h4 {
    color: var(--text-primary);
}

#results-page .temperament-card p {
    color: var(--text-secondary);
}

/* 確保功能卡片字體顏色正確 */
.feature-card h3 {
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

/* 指南項目字體顏色 */
.guide-item h3 {
    color: var(--primary-color);
}

.guide-item p {
    color: var(--text-secondary);
}

/* 結果頁面布局 */
.results-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
    padding: 2rem;
}

/* 狀態導覽列 */
.status-nav {
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: fit-content;
    position: sticky;
    top: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.status-nav-header {
    margin-bottom: 1.5rem;
}

.status-nav-header h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.status-overview {
    margin-bottom: 2rem;
}

.status-type, .status-temperament, .status-dimensions {
    margin-bottom: 1.5rem;
}

.status-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.status-value {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

#status-temperament {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#status-temperament-icon {
    font-size: 1.2rem;
}

/* 迷你進度條 */
.mini-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mini-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mini-bar-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 20px;
}

.mini-bar-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.mini-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease;
}

/* 迷你進度條的MBTI維度顏色 */
.mini-bar-fill.E { 
    background: linear-gradient(90deg, #e11d48, #f43f5e);
}

.mini-bar-fill.I { 
    background: linear-gradient(90deg, #1e40af, #3b82f6);
}

.mini-bar-fill.S { 
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.mini-bar-fill.N { 
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.mini-bar-fill.T { 
    background: linear-gradient(90deg, #7c3aed, #8b5cf6);
}

.mini-bar-fill.F { 
    background: linear-gradient(90deg, #ea580c, #fb923c);
}

.mini-bar-fill.J { 
    background: linear-gradient(90deg, #0891b2, #06b6d4);
}

.mini-bar-fill.P { 
    background: linear-gradient(90deg, #be185d, #ec4899);
}

.mini-bar-percentage {
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 30px;
    text-align: right;
}

/* 狀態導航菜單 */
.status-navigation {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-bottom: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left: 3px solid var(--primary-color);
}

.nav-item i {
    width: 16px;
    text-align: center;
}

/* 主要內容區域調整 */
.results-content {
    flex: 1;
    max-width: none;
    padding: 0;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .results-layout {
        flex-direction: column;
        padding: 1rem;
    }
    
    .status-nav {
        width: 100%;
        position: static;
        order: 2;
        margin-top: 2rem;
    }
    
    .results-content {
        order: 1;
    }
    
    .mini-bars {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .mini-bar {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .status-nav {
        padding: 1rem;
    }
    
    .nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .mini-bars {
        gap: 0.75rem;
    }
    
    .mini-bar {
        min-width: 100px;
    }
}

/* 64種類型展示區域 */
.types-showcase-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 6rem 2rem;
    position: relative;
}

.types-showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--choleric-color), var(--sanguine-color), var(--phlegmatic-color), var(--melancholic-color));
}

.types-showcase-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 篩選控制 */
.showcase-filters {
    display: flex;
    gap: 1.5rem;
    align-items: end;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.showcase-filters .filter-select {
    min-width: 180px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: white;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--animation-duration) ease;
    box-shadow: var(--shadow-sm);
}

.showcase-filters .filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.showcase-filters .filter-select:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* 統計信息 */
.showcase-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 類型網格 */
.showcase-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.showcase-type-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--animation-duration) var(--animation-bounce);
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.showcase-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--temperament-color);
    transition: height 0.3s ease;
}

.showcase-type-card:hover::before {
    height: 8px;
}

.showcase-type-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    background: rgba(255, 255, 255, 0.95);
}

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

.showcase-type-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.showcase-type-icon {
    font-size: 1.5rem;
}

.showcase-cognitive-group {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.showcase-cognitive-group.NT {
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary-color);
}

.showcase-cognitive-group.SJ {
    background: rgba(6, 182, 212, 0.1);
    color: var(--phlegmatic-color);
}

.showcase-cognitive-group.SP {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.showcase-cognitive-group.NF {
    background: rgba(251, 146, 60, 0.1);
    color: #ea580c;
}

.showcase-temperament-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-lg);
}

.showcase-temperament-name {
    font-weight: 600;
    color: var(--text-primary);
}

.showcase-type-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.showcase-type-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.showcase-trait-tag {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-lg);
    font-weight: 500;
}

/* 載入動畫 */
.showcase-type-card.loading {
    opacity: 0;
    transform: translateY(30px);
}

.showcase-type-card.loaded {
    animation: fadeInUp 0.6s ease forwards;
}

/* 篩選動畫 */
.showcase-type-card.filtered-out {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.showcase-type-card.filtered-in {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .types-showcase-section {
        padding: 4rem 1rem;
    }
    
    .types-showcase-section h2 {
        font-size: 2.2rem;
    }
    
    .showcase-filters {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filter-group {
        align-items: center;
    }
    
    .showcase-filters .filter-select {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .showcase-stats {
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .showcase-types-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .showcase-type-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .showcase-type-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .showcase-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* VIP會員系統樣式 */
.vip-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vip-status {
    text-align: center;
}

.membership-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.membership-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
}

.membership-badge.vip {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.membership-badge.vip::before {
    content: '👑';
    font-size: 1.1rem;
}

.membership-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.btn-vip {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-vip:disabled {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-vip .btn-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.btn-vip .main-text {
    font-size: 1rem;
    font-weight: 600;
}

.btn-vip .sub-text {
    font-size: 0.8rem;
    opacity: 0.8;
}

.btn-premium {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-premium:hover::before {
    transform: translateX(100%);
}

.btn-premium:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

/* VIP彈窗樣式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: var(--radius-2xl);
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 1rem;
    box-shadow: var(--shadow-2xl);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.vip-modal-content {
    padding: 3rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.vip-header {
    text-align: center;
    margin-bottom: 3rem;
}

.vip-crown {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.vip-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vip-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.vip-features {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: var(--radius-xl);
    transition: transform 0.3s ease;
}

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

.feature-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

.feature-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.vip-pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.price-option {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.price-option.featured {
    border-color: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.price-option.featured::before {
    content: '推薦';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.price .currency {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0.25rem;
}

.price .period {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.savings {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.price-features {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.price-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.price-features li:last-child {
    border-bottom: none;
}

.vip-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-xl);
    color: #059669;
    font-weight: 600;
}

.vip-guarantee i {
    font-size: 1.2rem;
}

/* 認知功能分析樣式 */
.cognitive-function {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--primary-color);
}

.function-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.function-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.function-characteristics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.function-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 500;
}

/* 改進的結果卡片樣式 */
.result-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--animation-duration) ease;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.result-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-section:hover::before {
    opacity: 1;
}

.result-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
    background: rgba(255, 255, 255, 0.98);
}

/* 響應式VIP設計 */
@media (max-width: 768px) {
    .vip-modal-content {
        padding: 2rem;
        margin: 0.5rem;
    }
    
    .vip-pricing {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .price-option.featured {
        transform: none;
        order: -1;
    }
    
    .vip-features {
        gap: 1.5rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .vip-section {
        padding: 1.5rem;
    }
    
    .btn-vip, .btn-premium {
        width: 100%;
    }
}

/* 新增分析內容樣式 */
.performance-list, .development-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.performance-item, .development-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    border-left: 4px solid var(--success-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.performance-item:hover, .development-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.goals-list, .vision-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.goal-item, .vision-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.goal-item:hover, .vision-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.goal-item i, .vision-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    min-width: 20px;
}

/* 人生階段發展樣式 */
.life-stage-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--secondary-color);
}

.life-stage-content h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.life-stage-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.life-stage-content ul {
    color: var(--text-secondary);
    padding-left: 1.5rem;
}

.life-stage-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 工作生活平衡樣式 */
.balance-content h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.balance-tips {
    display: grid;
    gap: 1rem;
}

.balance-tip {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.balance-tip:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.balance-tip i {
    color: var(--phlegmatic-color);
    font-size: 1.3rem;
    min-width: 24px;
}

/* 認知功能顏色區分 */
.cognitive-function:nth-child(1) {
    border-left-color: var(--primary-color);
}

.cognitive-function:nth-child(2) {
    border-left-color: var(--secondary-color);
}

.cognitive-function:nth-child(3) {
    border-left-color: var(--accent-color);
}

.cognitive-function:nth-child(4) {
    border-left-color: var(--warning-color);
}

/* 增強的標籤頁響應式設計 */
@media (max-width: 768px) {
    .tab-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .life-stage-content {
        padding: 1.5rem;
    }
    
    .balance-tips {
        gap: 0.75rem;
    }
    
    .goal-item, .vision-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .tab-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .performance-item, .development-item, .balance-tip {
        padding: 1rem;
    }
} 