/* ==================== Reset & Variables ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ec4899;
    --secondary-color: #f472b6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-white: #ffffff;
    --bg-gray-50: #fafafa;
    --bg-gray-100: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== Navigation Bar ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--bg-gray-50);
}

.nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hamburger-menu {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.hamburger-menu:hover {
    background: var(--bg-gray-50);
}

.hamburger-menu span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.mobile-menu-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.close-menu-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-menu-btn:hover {
    background: var(--bg-gray-50);
    color: var(--text-primary);
}

.mobile-menu-nav {
    list-style: none;
    padding: 1rem 0;
}

.mobile-menu-nav li {
    margin: 0;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.mobile-menu-nav a:hover {
    background: var(--bg-gray-50);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-menu-nav svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ==================== Hero Section ==================== */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    background: var(--bg-white);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(196, 69, 105, 0.05));
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-badge svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #ec4899;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1rem;
    color: #6b7280;
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* Dual Perspective Card */
.dual-perspective-card {
    max-width: 720px;
    margin: 0 auto 2rem;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, #fff5f8, #ffe8f0);
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    text-align: left;
}

.perspective-icon-wrapper {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.15);
}

.perspective-icon-wrapper svg {
    width: 40px;
    height: 40px;
    stroke: #ec4899;
}

.perspective-text h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ec4899;
    margin-bottom: 0.625rem;
    line-height: 1.3;
}

.perspective-text p {
    font-size: 0.875rem;
    color: #6b4751;
    line-height: 1.7;
    margin: 0;
}

/* Test Selection Buttons */
.test-selection-buttons {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.test-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
    min-width: 160px;
    justify-content: center;
}

.test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
    background: linear-gradient(135deg, #f472b6, #f9a8d4);
}

.test-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.test-btn .arrow-icon {
    width: 18px;
    height: 18px;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--bg-white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: var(--transition);
    text-align: center;
}

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

.stat-item svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* 为每个统计卡片设置不同的颜色主题 */
/* 第1个卡片 - 粉色主题 */
.stat-item:nth-child(1) {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.03), rgba(236, 72, 153, 0.01));
}

.stat-item:nth-child(1) svg {
    stroke: #ec4899;
}

.stat-item:nth-child(1):hover {
    border-color: rgba(236, 72, 153, 0.3);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(236, 72, 153, 0.02));
}

.stat-item:nth-child(1) .stat-number {
    color: #ec4899;
}

/* 第2个卡片 - 粉色主题 */
.stat-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.03), rgba(236, 72, 153, 0.01));
}

.stat-item:nth-child(2) svg {
    stroke: #ec4899;
}

.stat-item:nth-child(2):hover {
    border-color: rgba(236, 72, 153, 0.3);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(236, 72, 153, 0.02));
}

.stat-item:nth-child(2) .stat-number {
    color: #ec4899;
}

/* 第3个卡片 - 粉色主题 */
.stat-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.03), rgba(236, 72, 153, 0.01));
}

.stat-item:nth-child(3) svg {
    stroke: #ec4899;
}

.stat-item:nth-child(3):hover {
    border-color: rgba(236, 72, 153, 0.3);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(236, 72, 153, 0.02));
}

.stat-item:nth-child(3) .stat-number {
    color: #ec4899;
}

/* 第4个卡片 - 蓝色主题 */
.stat-item:nth-child(4) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(59, 130, 246, 0.01));
}

.stat-item:nth-child(4) svg {
    stroke: #3b82f6;
}

.stat-item:nth-child(4):hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.02));
}

.stat-item:nth-child(4) .stat-number {
    color: #3b82f6;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.3;
    font-weight: 500;
}

/* ==================== Section Styles ==================== */
.section {
    padding: 4rem 0;
}

.test-perspective-section {
    background: #fafafa;
    padding: 4.5rem 0;
}

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

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    color: #1f2937;
    line-height: 1.3;
}

.section-header p {
    font-size: 0.9375rem;
    color: #6b7280;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Perspective Test Cards */
.perspective-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.perspective-test-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.perspective-test-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
    border-color: rgba(236, 72, 153, 0.3);
}

.perspective-test-card.recommended .recommend-badge {
    display: inline-block;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(236, 72, 153, 0.3);
}

.recommend-badge {
    display: none;
}

.perspective-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.perspective-card-header svg {
    width: 52px;
    height: 52px;
    padding: 11px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(244, 114, 182, 0.04));
    border-radius: 50%;
    stroke: #ec4899;
    flex-shrink: 0;
}

.perspective-card-title {
    flex: 1;
}

.perspective-card-title h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.perspective-card-title p {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.4;
}

.dimensions-tags {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.dimension-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.dimension-tag svg {
    width: 15px;
    height: 15px;
    stroke: #ec4899;
    flex-shrink: 0;
    opacity: 0.5;
}

.test-meta {
    display: flex;
        flex-direction: column;
    gap: 0.625rem;
    padding: 1.125rem 0;
    margin-bottom: 1.25rem;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-label {
    font-size: 0.8125rem;
    color: #9ca3af;
    font-weight: 400;
}

.meta-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.start-test-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8125rem 1.5rem;
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(236, 72, 153, 0.25);
}

.start-test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
    background: linear-gradient(135deg, #f472b6, #f9a8d4);
}

.start-test-btn svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

/* ==================== Dimensions Section ==================== */
.dimensions-section {
    background: #ffffff;
    padding: 4.5rem 0;
}

.dimensions-section .section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.dimensions-section .section-header p {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.7;
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dimension-card {
    text-align: center;
    padding: 2.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dimension-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: rgba(236, 72, 153, 0.2);
}

.dimension-icon-wrapper {
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dimension-icon-wrapper svg {
    width: 56px;
    height: 56px;
    padding: 14px;
    border-radius: 50%;
    stroke-width: 1.8;
}

/* 为每个维度卡片设置不同的颜色主题 - 参考对标网站色系 */
/* 第1个卡片 - 柔和粉色（控制欲望） */
.dimension-card:nth-child(1) .dimension-icon-wrapper svg {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(236, 72, 153, 0.06));
    stroke: #ec4899;
}

/* 第2个卡片 - 柔和红色（嫉妒强度） */
.dimension-card:nth-child(2) .dimension-icon-wrapper svg {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.06));
    stroke: #ef4444;
}

/* 第3个卡片 - 柔和紫色（情感依赖） */
.dimension-card:nth-child(3) .dimension-icon-wrapper svg {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(168, 85, 247, 0.06));
    stroke: #a855f7;
}

/* 第4个卡片 - 柔和蓝色（关系不安） */
.dimension-card:nth-child(4) .dimension-icon-wrapper svg {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.06));
    stroke: #3b82f6;
}

.dimension-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.dimension-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.7;
    max-width: 240px;
}

/* ==================== Privacy Section ==================== */
.privacy-section-wrapper {
    background: linear-gradient(135deg, #fff5f8, #ffe8f0);
    padding: 4rem 0;
}

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

.privacy-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    stroke: #ec4899;
}

.privacy-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #ec4899;
    margin-bottom: 0.875rem;
}

.privacy-content p {
    font-size: 0.9375rem;
    color: #6b4751;
    margin-bottom: 1.75rem;
    line-height: 1.8;
}

.privacy-features {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.privacy-feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.6875rem 1.375rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(236, 72, 153, 0.15);
    border-radius: 50px;
    transition: var(--transition);
}

.privacy-feature:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
}

.privacy-feature svg {
    width: 22px;
    height: 22px;
    stroke: #ec4899;
}

.privacy-feature span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b4751;
}

/* ==================== CTA Section ==================== */
.cta-section {
    background: #ffffff;
}

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

.cta-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.875rem;
}

.cta-content p {
    font-size: 0.9375rem;
    color: #6b7280;
    margin-bottom: 1.875rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
        align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.875rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
}

.cta-btn-primary {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: white;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
    background: linear-gradient(135deg, #f472b6, #f9a8d4);
}

.cta-btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.cta-btn-secondary:hover {
    background: #f9fafb;
    border-color: rgba(236, 72, 153, 0.3);
}

.cta-btn svg {
    width: 18px;
    height: 18px;
}

.cta-btn-primary svg {
    fill: white;
}

.cta-btn-secondary svg {
    stroke: #374151;
}

/* ==================== Footer ==================== */
.footer {
    background: #fafafa;
    border-top: 1px solid #e5e7eb;
    padding: 2.75rem 0 1.25rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.footer-brand-section {
    display: flex;
        flex-direction: column;
    gap: 0.875rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.footer-brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.footer-description {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.7;
    max-width: 380px;
    margin: 0;
}

.footer-column h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.875rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-column a,
.footer-column button {
    font-size: 0.8125rem;
    color: #6b7280;
    text-decoration: none;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.footer-column a:hover,
.footer-column button:hover {
    color: #ec4899;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.25rem;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin: 0;
}

/* ==================== Back to Top Button ==================== */
.back-to-top {
    position: fixed;
    bottom: 1.875rem;
    right: 1.875rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.45);
}

/* ==================== History Page Styles ==================== */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.content-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-header svg {
    width: 24px;
    height: 24px;
    fill: #ec4899;
}

.content-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.clear-history-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: var(--transition);
}

.clear-history-btn:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

.clear-history-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.history-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.history-grid.active {
    display: grid;
}

.history-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
}

.history-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: rgba(236, 72, 153, 0.3);
}

.delete-record-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(236, 72, 153, 0.1);
    border: none;
    border-radius: 50%;
    color: #ec4899;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
}

.history-card:hover .delete-record-btn {
    opacity: 1;
}

.delete-record-btn:hover {
    background: #ec4899;
    color: white;
}

.delete-record-btn svg {
    stroke: currentColor;
}

.history-card-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.test-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.test-type-icon.self {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(236, 72, 153, 0.06));
}

.test-type-icon.self svg {
    stroke: #ec4899;
}

.test-type-icon.partner {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.06));
}

.test-type-icon.partner svg {
    stroke: #ef4444;
}

.history-card-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.history-card-info p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.rpi-score-display {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    padding: 1.75rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    color: white;
    text-align: center;
}

.rpi-score-number {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    line-height: 1;
}

.rpi-score-label {
    font-size: 0.9375rem;
    opacity: 0.95;
    font-weight: 500;
}

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

.dimension-item {
    text-align: center;
    padding: 0.875rem;
    background: rgba(236, 72, 153, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(236, 72, 153, 0.08);
}

.dimension-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: #ec4899;
    margin-bottom: 0.25rem;
}

.dimension-label {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
}

.view-detail-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: var(--transition);
}

.view-detail-btn:hover {
    background: #f9fafb;
    border-color: rgba(236, 72, 153, 0.3);
    color: #ec4899;
}

.view-detail-btn svg {
    stroke: currentColor;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.empty-state p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-actions {
    display: flex;
    gap: 1rem;
        justify-content: center;
    flex-wrap: wrap;
}

.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.02));
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    margin-top: 2.5rem;
}

.privacy-notice svg {
    width: 24px;
    height: 24px;
    stroke: #3b82f6;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.privacy-notice div {
    font-size: 0.9375rem;
    color: #1e40af;
    line-height: 1.6;
}

.privacy-notice strong {
    font-weight: 600;
}

/* ==================== Result Page Styles (New Design) ==================== */
.result-wrapper {
    max-width: 920px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.export-area {
    background: #ffffff;
}

/* 导出专用样式 */
.export-header {
    display: none;
    text-align: center;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 2px solid rgba(236, 72, 153, 0.2);
    margin-bottom: 2rem;
}

.export-header h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #ec4899, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.export-header p {
    color: #6b7280;
    font-size: 0.9375rem;
}

.export-watermark {
    display: none;
    text-align: center;
    padding: 1.5rem 0 1rem;
    margin-top: 2rem;
    border-top: 2px solid rgba(236, 72, 153, 0.2);
}

.export-watermark p {
    color: #ec4899;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.25rem 0;
}

/* 核心分数展示 */
.score-hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #fff5f8, #ffe8f0);
    border-radius: 16px;
    margin-bottom: 2.5rem;
}

.score-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(236, 72, 153, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-icon svg {
    width: 40px;
    height: 40px;
    fill: #ec4899;
}

.score-title {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.score-number {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ec4899, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.score-level {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background: #ec4899;
    color: white;
    border-radius: 50px;
    font-size: 1.375rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    margin-bottom: 1.5rem;
}

.score-description {
    font-size: 1rem;
    color: #6b4751;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Section 通用样式 */
.radar-section,
.dimensions-analysis,
.interpretation-section,
.advice-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.section-title svg {
    width: 24px;
    height: 24px;
    fill: #ec4899;
    stroke: #ec4899;
    flex-shrink: 0;
}

/* 雷达图 */
.radar-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem;
}

/* 维度卡片 */
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.dimension-card {
    background: linear-gradient(135deg, #fafafa, #ffffff);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.75rem;
    transition: var(--transition);
}

.dimension-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: rgba(236, 72, 153, 0.3);
}

.dimension-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.dimension-icon {
    font-size: 2rem;
    line-height: 1;
}

.dimension-card-header h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.dimension-score-display {
    margin-bottom: 1rem;
}

.dimension-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ec4899;
    line-height: 1;
}

.dimension-max {
    font-size: 1.25rem;
    color: #9ca3af;
    font-weight: 600;
}

.dimension-progress {
    height: 10px;
    background: rgba(236, 72, 153, 0.1);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.dimension-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ec4899, #f472b6);
    border-radius: 50px;
    transition: width 1s ease;
}

.dimension-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* 解读内容 */
.interpretation-content {
    display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

.interpretation-card {
    background: linear-gradient(135deg, #fafafa, #ffffff);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.75rem;
}

.interpretation-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.interpretation-card p {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.8;
    margin: 0;
}

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

.interpretation-list li {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 0.875rem;
    padding-left: 1.5rem;
    position: relative;
}

.interpretation-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ec4899;
    font-weight: 700;
    font-size: 1.25rem;
}

.interpretation-list li strong {
    color: #1f2937;
    font-weight: 600;
}

/* 建议内容 */
.advice-content {
    background: linear-gradient(135deg, #fff5f8, #ffe8f0);
    border-radius: 12px;
    padding: 1.75rem;
}

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

.advice-list li {
    font-size: 0.9375rem;
    color: #6b4751;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.advice-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ec4899;
    font-weight: 700;
    font-size: 1.125rem;
    width: 1.5rem;
    text-align: center;
}

.advice-list li:last-child {
    margin-bottom: 0;
}

/* Old result container styles (keep for compatibility) */
.result-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.result-hero-display {
    text-align: center;
    padding: 3rem 2rem;
    background: transparent;
    margin-bottom: 2.5rem;
}

.result-emoji {
    font-size: 4rem;
    margin-bottom: 1.25rem;
    line-height: 1;
}

.rpi-score {
    font-size: 5.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ec4899, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.rpi-label {
    font-size: 1.5rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.level-badge {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: white;
    border-radius: 50px;
    font-size: 1.375rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.level-description {
    margin-top: 1.75rem;
    color: #6b7280;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-size: 1rem;
}

.chart-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.result-actions {
    text-align: center;
    margin-top: 3.5rem;
    padding-bottom: 2rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.action-btn svg {
    flex-shrink: 0;
}

.action-btn-primary {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: white;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
    grid-column: 1 / -1;
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
    background: linear-gradient(135deg, #f472b6, #f9a8d4);
}

.action-btn-primary svg {
    stroke: white;
}

.action-btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.action-btn-secondary:hover {
    background: #f9fafb;
    border-color: rgba(236, 72, 153, 0.3);
    color: #ec4899;
}

.action-btn-secondary svg {
    stroke: currentColor;
    fill: currentColor;
}

/* ==================== Page Content Styles ==================== */
.page-content {
    padding-top: 80px;
    min-height: calc(100vh - 200px);
}

.page-hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.content-section {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.content-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.content-header .icon {
    font-size: 2rem;
    line-height: 1;
}

.content-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

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

.card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.card .card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

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

.step {
    text-align: center;
}

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

.step h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list strong {
    color: var(--primary-color);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.info-table th,
.info-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.info-table th {
    background: var(--bg-gray-50);
    color: var(--primary-color);
    font-weight: 600;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
    color: #2980b9;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    color: #f39c12;
}

/* ==================== Responsive Design ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

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

    .dimensions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .dimension-card {
        padding: 2rem 1.375rem;
    }

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

/* Mobile */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .hero {
        padding: 5rem 0 2.5rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .hero-description {
        font-size: 0.9375rem;
    }

    .dual-perspective-card {
        flex-direction: column;
        padding: 1.375rem 1.25rem;
        gap: 1rem;
    }

    .perspective-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .perspective-icon-wrapper svg {
        width: 36px;
        height: 36px;
    }

    .perspective-text h3 {
        font-size: 1rem;
    }

    .perspective-text p {
        font-size: 0.8125rem;
    }

    .test-selection-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .test-btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }

    .stat-item {
        padding: 1.25rem 0.75rem;
    }

    .stat-item svg {
        width: 28px;
        height: 28px;
    }

    .stat-number {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .section {
        padding: 2.75rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.875rem;
    }

    .dimensions-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .dimension-card {
        padding: 1.875rem 1.25rem;
    }

    .dimension-icon-wrapper svg {
        width: 52px;
        height: 52px;
        padding: 12px;
    }

    .dimension-title {
        font-size: 1rem;
    }

    .dimension-desc {
        font-size: 0.8125rem;
    }

    .perspective-card-header {
        align-items: flex-start;
    }

    .perspective-test-card {
        padding: 1.375rem 1.25rem;
    }

    .perspective-card-title h3 {
        font-size: 1rem;
    }

    .perspective-card-title p {
        font-size: 0.75rem;
    }

    .dimension-tag {
        font-size: 0.75rem;
    }

    .privacy-features {
        flex-direction: column;
        align-items: center;
    }

    .history-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .rpi-score-number {
        font-size: 2.25rem;
    }

    .dimension-value {
        font-size: 1.125rem;
    }

    .empty-actions {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .empty-actions .test-btn {
        width: 100%;
    }

    .privacy-feature {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .result-container {
        padding: 0 1.25rem 2rem;
    }

    .result-emoji {
        font-size: 3rem;
    }

    .rpi-score {
        font-size: 3.5rem;
    }

    .rpi-label {
        font-size: 1.25rem;
    }

    .level-badge {
        font-size: 1.125rem;
        padding: 0.75rem 2rem;
    }

    .action-buttons {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .action-btn-primary {
        grid-column: 1;
    }

    /* New result page mobile */
    .result-wrapper {
        padding: 1.5rem 1rem;
    }

    .score-hero {
        padding: 2.5rem 1.5rem;
    }

    .score-number {
        font-size: 4.5rem;
    }

    .score-level {
        font-size: 1.125rem;
        padding: 0.75rem 2rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .radar-section,
    .dimensions-analysis,
    .interpretation-section,
    .advice-section {
        padding: 1.5rem;
    }

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

    .dimension-score {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-btn {
    width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .brand-title {
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: 0.7rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-stats {
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 1rem 0.625rem;
        gap: 0.5rem;
    }

    .stat-item svg {
        width: 24px;
        height: 24px;
    }

    .stat-number {
        font-size: 0.9375rem;
    }

    .stat-label {
        font-size: 0.6875rem;
    }

    .perspective-test-card {
        padding: 1.5rem;
    }

    .dimension-card {
        padding: 1.5rem 1rem;
    }
}

