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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
}

.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 30px 80px;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 2rem;
}

.logo-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.hero-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

/* Version Selector */
.version-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.version-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.version-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.25);
}

.version-card:active {
    transform: translateY(-1px);
}

.version-card.premium {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.version-card.premium:hover {
    border-color: rgba(255, 215, 0, 0.6);
}

.version-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 10px;
}

.version-label {
    display: block;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
}

.version-count {
    display: block;
    color: #ffd700;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.version-desc {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.version-time {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.user-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.trending-question {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 30px;
}

.start-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 18px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.start-btn.bottom {
    margin: 30px auto;
    display: flex;
}

.btn-icon {
    font-size: 1.2rem;
}

.privacy-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: 20px;
}

.privacy-link {
    color: white;
    text-decoration: underline;
}

/* Content Section */
.content-section {
    padding: 30px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.section-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

/* MBTI Intro */
.mbti-intro {
    color: #555;
}

.intro-highlight {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

/* Feature Tags */
.feature-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.feature-tag {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8efff 100%);
    color: #667eea;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Steps Container */
.steps-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-box {
    flex: 1;
    text-align: center;
}

.step-number {
    display: block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 600;
}

.step-title {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.step-desc {
    display: block;
    color: #999;
    font-size: 0.85rem;
}

.step-arrow {
    color: #ddd;
    font-size: 1.5rem;
}

/* Dimensions Container */
.dimensions-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.dimension-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    border-left: 3px solid #667eea;
}

.dimension-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.dimension-title {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
    text-align: center;
}

.dimension-desc {
    display: block;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

/* Type Group Cards */
.type-group-card {
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
}

.type-group-card.analyst {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.type-group-card.diplomat {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.type-group-card.sentinel {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.type-group-card.explorer {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.group-header {
    padding: 20px;
    text-align: center;
}

.group-emoji {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

.group-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px;
}

.group-header h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

.group-desc {
    color: #666;
    font-size: 0.9rem;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.type-box {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.type-icon {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.type-box:nth-child(2n) {
    border-right: none;
}

.type-code {
    display: block;
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-align: center;
}

.type-name {
    display: block;
    font-weight: 600;
    color: #555;
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.type-desc {
    display: block;
    color: #777;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
}

.types-note {
    color: #999;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 15px;
}

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

.benefits-card .section-title {
    color: #166534;
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.benefit-box {
    text-align: center;
}

.benefit-emoji {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 10px;
}

.benefit-title {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.benefit-desc {
    display: block;
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Notice Card */
.notice-card {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 16px;
    padding: 25px;
}

.notice-card .section-title {
    color: #92400e;
}

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

.notice-list li {
    color: #78350f;
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 0.9rem;
    padding-left: 20px;
    position: relative;
}

.notice-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f59e0b;
}

/* Appreciation Card */
.appreciation-card {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.appreciation-card h3 {
    color: #831843;
    margin-bottom: 10px;
}

.appreciation-card p {
    color: #9d174d;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.appreciate-btn {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.appreciate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
}

.heart-icon {
    font-size: 1.1rem;
}

/* Test Page */
.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.progress-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.progress-bar {
    height: 6px;
    background: #eee;
    margin: 0 30px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.question-card {
    padding: 40px 30px;
}

.question-card h2 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 18px 20px;
    font-size: 1rem;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.option-btn:hover {
    background: #f0f4ff;
    border-color: #667eea;
    color: #667eea;
}

.option-btn:active {
    transform: scale(0.98);
}

/* Result Page */
.result-container {
    padding: 30px;
}

.result-header {
    padding: 20px 0;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.result-type {
    text-align: center;
    margin-bottom: 30px;
}

.result-type h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.result-type p {
    font-size: 1.3rem;
    color: #667eea;
    font-weight: 600;
}

.traits-bar {
    margin-bottom: 30px;
}

.trait-row {
    margin-bottom: 20px;
}

.trait-row:last-child {
    margin-bottom: 0;
}

.trait-label {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
}

.trait-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trait-option {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    min-width: 25px;
}

.trait-fill {
    flex: 1;
    height: 12px;
    background: #e8efff;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.trait-fill::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
}

.result-content h3,
.result-section h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
}

.result-content p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background: #f0f4ff;
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.result-appreciation {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    margin: 30px 0;
}

.result-appreciation h3 {
    color: #831843;
    margin-bottom: 10px;
}

.result-appreciation p {
    color: #9d174d;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.restart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.modal-content h3 {
    color: #333;
    margin-bottom: 10px;
}

.modal-content p {
    color: #666;
    margin-bottom: 20px;
}

.donation-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.donation-btn {
    background: #f0f4ff;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.donation-btn:hover {
    background: #667eea;
    color: white;
}

.qr-code {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.qr-code p {
    color: #333;
    margin-bottom: 15px;
}

.qr-image {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.qr-tip {
    font-size: 0.85rem !important;
    color: #999 !important;
}

/* Responsive */
@media (max-width: 480px) {
    .hero-section {
        padding: 40px 20px 60px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .section-card {
        padding: 20px;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .benefits-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .result-card {
        padding: 20px;
    }
    
    .result-type h2 {
        font-size: 2.5rem;
    }
}