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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #f1f5f9;
    --text: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.6;
}

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

.header {
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.nav {
    display: none;
}

@media (min-width: 768px) {
    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .nav {
        display: flex;
        gap: 24px;
    }
    .nav a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }
    .nav a:hover {
        color: var(--white);
    }
}

.hero {
    text-align: center;
    padding: 60px 20px 80px;
    color: var(--white);
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 48px;
    }
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 18px;
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

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

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 40px;
    }
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
}

.hero-actions {
    margin-bottom: 16px;
}

.hero-note {
    font-size: 13px;
    opacity: 0.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

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

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.section {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 24px;
    margin: 24px 0;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .section {
        padding: 50px 40px;
        margin: 40px 0;
    }
}

.section-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 32px;
    color: var(--text);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 28px;
    }
}

.section-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

.feature-card {
    text-align: center;
    padding: 24px;
    border-radius: var(--border-radius);
    background: var(--secondary);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
}

.types-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.type-group {
    padding: 20px;
    border-radius: var(--border-radius);
    background: var(--secondary);
}

.type-group-title {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 12px;
}

.type-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.type-item {
    font-size: 14px;
    color: var(--text-light);
}

.type-code {
    display: inline-block;
    width: 45px;
    font-weight: 600;
    color: var(--text);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    padding: 20px;
    border-radius: var(--border-radius);
    background: var(--secondary);
}

.faq-question {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text);
}

.faq-answer {
    font-size: 14px;
    color: var(--text-light);
}

.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.cta-title {
    font-size: 24px;
    margin-bottom: 12px;
}

.cta-text {
    opacity: 0.9;
    margin-bottom: 24px;
}

.footer {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.intro-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px 24px;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
}

.intro-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 32px;
    color: var(--text);
}

.intro-content {
    margin-bottom: 24px;
}

.intro-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--secondary);
}

.intro-item:last-child {
    border-bottom: none;
}

.intro-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.intro-text h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.intro-text p, .intro-text ul {
    font-size: 14px;
    color: var(--text-light);
}

.intro-text ul {
    margin-left: 20px;
    margin-top: 8px;
}

.intro-text li {
    margin-bottom: 4px;
}

.intro-notice {
    text-align: center;
    padding: 16px;
    background: #fef3c7;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.intro-notice p {
    font-size: 13px;
    color: #92400e;
}

.user-info-form {
    background: var(--secondary);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.user-info-form h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text);
}

.user-info-form .form-group {
    margin-bottom: 16px;
}

.user-info-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.user-info-form .required {
    color: var(--danger);
}

.user-info-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: border-color 0.3s;
}

.user-info-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-note {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 12px;
}

.intro-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.test-header {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.progress-info {
    text-align: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-light);
}

.progress-bar {
    height: 6px;
    background: var(--secondary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.question-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: var(--shadow-lg);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.question-number {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.question-dimension {
    font-size: 12px;
    padding: 4px 12px;
    background: var(--secondary);
    border-radius: 20px;
    color: var(--text-light);
}

.question-text {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text);
}

@media (min-width: 768px) {
    .question-text {
        font-size: 22px;
    }
}

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

.option-btn {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: var(--secondary);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    width: 100%;
}

.option-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.option-btn.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

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

.option-text {
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
}

.test-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.test-actions .btn {
    flex: 1;
}

.loading-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: 20px;
    margin: 40px auto;
    max-width: 600px;
}

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

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

.result-type-card {
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 40px 24px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.result-type {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 6px;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .result-type {
        font-size: 64px;
    }
}

.result-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.result-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
}

.scores-section {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.scores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.score-item {
    padding: 12px;
    background: var(--secondary);
    border-radius: var(--border-radius);
}

.score-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.score-bar {
    height: 6px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.preview-section {
    margin-bottom: 24px;
}

.preview-card {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.preview-text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

.paywall-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.paywall-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.paywall-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.paywall-card > p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.report-preview {
    text-align: left;
    padding: 20px;
    background: var(--secondary);
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.report-preview h4 {
    font-size: 14px;
    margin-bottom: 12px;
}

.report-preview ul {
    margin-left: 20px;
}

.report-preview li {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.full-report-section {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.report-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}

.report-content h4 {
    font-size: 18px;
    margin: 24px 0 12px;
    color: var(--primary);
}

.report-content h5 {
    font-size: 16px;
    margin: 20px 0 10px;
    color: var(--text);
}

.report-content p {
    margin-bottom: 12px;
}

.report-content strong {
    color: var(--primary);
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ai-loading-section {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.ai-loading-card {
    text-align: center;
}

.ai-loading-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary);
}

.ai-loading-card p {
    color: var(--text-light);
}

.pay-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px 24px;
    margin: 40px auto;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
}

.pay-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.pay-info {
    text-align: center;
    padding: 20px;
    background: var(--secondary);
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.pay-amount {
    margin-bottom: 16px;
}

.amount-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.amount-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.result-type-small {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 3px;
}

.result-name-small {
    font-size: 14px;
    color: var(--text-light);
}

.pay-methods {
    margin-bottom: 24px;
}

.pay-methods h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.method-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.method-list.single {
    grid-template-columns: 1fr;
}

.method-btn.wechat-only {
    background: #07c160;
    color: white;
    border-color: #07c160;
}

.method-btn.wechat-only .method-icon {
    font-size: 28px;
}

.method-btn.wechat-only .method-name {
    font-size: 16px;
    font-weight: 600;
}

.method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--secondary);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
}

.method-btn:hover {
    border-color: var(--primary);
}

.method-btn.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.method-icon {
    font-size: 24px;
}

.method-name {
    font-size: 14px;
    font-weight: 500;
}

.pay-features {
    margin-bottom: 24px;
}

.pay-features h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.pay-features ul {
    margin-left: 20px;
}

.pay-features li {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 6px;
}

.pay-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 16px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.modal-large {
    max-width: 600px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--secondary);
}

.modal-header h3 {
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    padding: 20px;
}

.qr-placeholder {
    text-align: center;
    padding: 40px 20px;
    background: var(--secondary);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
}

.qr-placeholder p {
    color: var(--text-light);
    margin-bottom: 8px;
}

.demo-link {
    text-align: center;
    margin-top: 16px;
}

.demo-link a {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: underline;
}

.download-section {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--secondary);
}

.pdf-container {
    padding: 40px;
    background: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pdf-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #6366f1;
}

.pdf-header h1 {
    font-size: 28px;
    color: #1e293b;
    margin-bottom: 10px;
}

.pdf-date {
    color: #64748b;
    font-size: 14px;
}

.pdf-type-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 12px;
    color: white;
}

.pdf-type {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 6px;
    margin-bottom: 10px;
}

.pdf-type-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.pdf-tags {
    font-size: 14px;
    opacity: 0.9;
}

.pdf-scores {
    margin-bottom: 30px;
}

.pdf-scores h2 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.pdf-report {
    margin-bottom: 30px;
}

.pdf-report h2 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.pdf-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
}

.pdf-footer p {
    margin: 5px 0;
}
