/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fafbfc;
}

main.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* 导航栏样式 - 优雅简洁设计 */
.navbar-custom {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1a237e !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand:hover {
    color: #667eea !important;
    transform: translateY(-1px);
}

.navbar-custom .navbar-brand i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.5));
}

.navbar-custom .navbar-nav .nav-link {
    color: #546e7a;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
}

.navbar-custom .navbar-nav .nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.navbar-custom .navbar-nav .nav-link.fw-semibold {
    font-weight: 600;
}

.navbar-custom .navbar-nav .nav-link.text-warning {
    color: #f57c00 !important;
}

.navbar-custom .navbar-nav .nav-link.text-warning:hover {
    background: rgba(245, 124, 0, 0.1);
    color: #e65100 !important;
}

.navbar-custom .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: none;
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2854, 110, 122, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   首页专业设计样式 - 基于心理学、营销学、社会学原理
   ============================================ */

/* 简化配色方案 - 更柔和的色彩 */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-dark: #1a237e;
    --text-primary: #1a237e;
    --text-secondary: #546e7a;
    --text-muted: #78909c;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
}

/* Hero Section - 心理学：第一印象、视觉焦点 */
.hero-section {
    background: #ffffff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    /* border: 1px solid rgba(102, 126, 234, 0.08); */
    margin: 0px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(180deg); }
}

.min-vh-80 {
    min-height: 80vh;
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a237e;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #546e7a;
    line-height: 1.8;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.stat-badge {
    display: flex;
    flex-direction: column;
    padding: 15px 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

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

.stat-label {
    font-size: 0.85rem;
    color: #78909c;
    margin-top: 5px;
}

.hero-cta {
    margin: 40px 0;
}

.btn-hero-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
    color: white;
}

.btn-hero-outline {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

.trust-indicators {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.trust-item i {
    font-size: 1.1rem;
}

.trust-item .text-success {
    color: #4caf50 !important;
}

.trust-item .text-warning {
    color: #ff9800 !important;
}

.trust-item .text-info {
    color: var(--primary-color) !important;
}

/* Hero Visual - 心理学：视觉吸引力 */
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-graphic {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphic-circle {
    position: absolute;
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.graphic-circle-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    animation-delay: 0s;
}

.graphic-circle-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15) 0%, rgba(0, 242, 254, 0.15) 100%);
    animation-delay: 1s;
}

.graphic-circle-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.1) 0%, rgba(254, 225, 64, 0.1) 100%);
    animation-delay: 2s;
}

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

.graphic-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.graphic-content i {
    font-size: 8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 20px;
}

.graphic-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a237e;
    line-height: 1.4;
}

/* Social Proof Section - 营销学：社会证明 */
.social-proof-section {
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(102, 126, 234, 0.08);
    margin: 20px 0;
}

.proof-label {
    font-size: 0.9rem;
    color: #78909c;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.proof-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.proof-stat-item {
    font-size: 1rem;
    color: #37474f;
    font-weight: 500;
}

.proof-stat-divider {
    color: #b0bec5;
}

/* Features Section - 心理学：认知负荷、视觉层次 */
.features-section {
    background: #f8f9fa;
    padding: 100px 0;
    border-radius: 24px;
    border: 1px solid rgba(102, 126, 234, 0.08);
    margin: 20px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #546e7a;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.12);
}

.feature-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
}

.feature-icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: rgba(102, 126, 234, 0.08);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon-bg {
    background: rgba(102, 126, 234, 0.12);
    transform: scale(1.05);
}

.feature-icon {
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 15px;
}

.feature-text {
    color: #546e7a;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Why MBTI Section - 社会学：权威性、社会认同 */
.why-mbti-section {
    background: white;
    padding: 100px 0;
    border-radius: 24px;
    border: 1px solid rgba(102, 126, 234, 0.08);
    margin: 20px 0;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-title-left {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a237e;
    line-height: 1.3;
}

.why-text {
    font-size: 1.1rem;
    color: #546e7a;
    line-height: 1.8;
}

.why-benefits {
    margin-top: 40px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(102, 126, 234, 0.04);
    transform: translateX(3px);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.benefit-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 5px;
}

.benefit-text {
    color: #546e7a;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Stats Grid - 营销学：数据可视化 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
}

.stat-icon i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 8px;
}

.stat-desc {
    font-size: 0.85rem;
    color: #78909c;
}

/* CTA Section - 营销学：转化优化 */
.cta-section {
    background: var(--primary-gradient);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-box {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a237e;
}

.cta-text {
    font-size: 1.1rem;
    color: #546e7a;
}

.btn-cta-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    padding: 15px 40px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
    color: white;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title,
    .section-title-left {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-graphic {
        height: 400px;
        margin-top: 40px;
    }
    
    .graphic-content i {
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        margin-left: 0 !important;
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .btn-hero-outline:last-child {
        margin-bottom: 0;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 15px;
    }
    
    .features-section,
    .why-mbti-section {
        padding: 60px 0;
    }
    
    .cta-box {
        padding: 30px;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .btn-cta-primary {
        width: 100%;
        margin-top: 20px;
    }
}

/* 保留原有样式 */
.min-vh-75 {
    min-height: 75vh;
}

.hero-image {
    position: relative;
}

.feature-icon {
    transition: transform 0.3s ease;
}

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

.stats-container .stat-item {
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stats-container .stat-item:hover {
    transform: translateY(-5px);
}

/* 测试页面样式 */
.question-container {
    animation: fadeIn 0.5s ease-in-out;
}

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

.option-btn {
    position: relative;
    overflow: hidden;
}

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

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

/* 结果页面样式 */
.result-header {
    position: relative;
    overflow: hidden;
}

.result-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.mbti-type {
    position: relative;
    z-index: 1;
}

/* 支付成功页面样式 */
.success-icon {
    animation: bounce 1s ease-in-out, pulse 2s ease-in-out infinite 1s;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .mbti-type {
        font-size: 2.5rem;
    }
    
    .question-card {
        padding: 1rem;
    }
    
    .option-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn-payment {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 工具提示样式 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 按钮悬停效果 */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 卡片悬停效果 */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* 表单元素样式 */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* 进度条动画 */
.progress-bar {
    transition: width 0.6s ease;
}

/* 响应式网格 */
@media (max-width: 576px) {
    .scores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-methods {
        flex-direction: column;
        align-items: center;
    }
}
