/* 基础样式和变量 */
:root {
    --primary-color: #FF6B6B;
    --primary-dark: #E55555;
    --primary-light: #FF8787;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --text-color: #2C3E50;
    --text-light: #7F8C8D;
    --bg-color: #F8F9FA;
    --white: #FFFFFF;
    --border-radius: 12px;
    --border-radius-small: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-large: 0 8px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

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-color);
    line-height: 1.6;
}

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

/* 头部样式 */
.header {
    text-align: center;
    color: var(--white);
    margin-bottom: 30px;
    padding: 20px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 广告位样式 */
.ad-banner {
    margin: 20px 0;
}

.ad-placeholder {
    background: var(--bg-color);
    border: 2px dashed #ddd;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    color: var(--text-light);
}

.ad-placeholder p {
    margin: 5px 0;
}

.ad-size {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 主内容区域 */
.main-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

/* 输入表单样式 */
.input-card {
    margin-bottom: 30px;
}

.input-card h2 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    flex: 1;
    padding: 14px 16px;
    padding-right: 50px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.input-suffix {
    position: absolute;
    right: 16px;
    color: var(--text-light);
    font-weight: 500;
}

/* 性别选择样式 */
.gender-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.gender-option {
    flex: 1;
    min-width: 120px;
    cursor: pointer;
    position: relative;
}

.gender-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gender-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    background: var(--white);
}

.gender-option input:checked + .gender-label {
    border-color: var(--primary-color);
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
}

.gender-option:hover .gender-label {
    border-color: var(--primary-light);
}

/* 按钮样式 */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    margin-top: 10px;
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--white);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

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

.btn-danger {
    background: #E74C3C;
    color: var(--white);
}

.btn-danger:hover {
    background: #C0392B;
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

/* 错误消息 */
.error-message {
    color: #E74C3C;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: var(--border-radius-small);
    background: rgba(231, 76, 60, 0.1);
    display: none;
}

.error-message.show {
    display: block;
}

/* 信息区域 */
.info-section {
    background: rgba(255, 107, 107, 0.05);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.info-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

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

.feature-list li {
    padding: 8px 0;
    color: var(--text-color);
}

.feature-list li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 8px;
}

/* 付费墙样式 */
.premium-wall {
    text-align: center;
    padding: 40px 20px;
}

.wall-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.wall-content h2 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.wall-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.personality-preview {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.personality-preview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--box-shadow-large);
}

.preview-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.personality-preview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.personality-preview-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 解锁选项 */
.unlock-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.unlock-option {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 30px 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.unlock-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-large);
}

.unlock-option .option-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.unlock-option h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.unlock-option p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.option-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 预览区域 */
.preview-section {
    background: var(--bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.preview-section h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-label {
    color: var(--text-light);
    font-weight: 500;
}

.preview-value {
    color: var(--text-color);
    font-weight: 600;
}

.preview-value.blurred {
    filter: blur(4px);
    user-select: none;
}

/* 解锁功能列表 */
.unlock-features {
    text-align: left;
    background: var(--bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
}

.unlock-features h4 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.unlock-features ul {
    list-style: none;
}

.unlock-features li {
    padding: 8px 0;
    color: var(--text-color);
}

/* 结果摘要卡片 */
.result-summary {
    margin-bottom: 30px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.summary-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-large);
}

.summary-card.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.summary-card .card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.summary-card .card-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
}

.summary-card.highlight .card-value {
    color: var(--white);
}

.summary-card .card-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.summary-card.highlight .card-label {
    color: rgba(255, 255, 255, 0.8);
}

/* 详细分析区域 */
.detailed-analysis {
    margin-bottom: 30px;
}

.analysis-section {
    background: var(--bg-color);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.analysis-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* 时间线图表 */
.timeline-chart {
    margin-top: 15px;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--border-radius-small);
    transition: var(--transition);
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-week {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 80px;
}

.timeline-weight {
    flex: 1;
    color: var(--text-color);
}

.timeline-change {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 推荐区域 */
.recommendations {
    display: grid;
    gap: 15px;
}

.recommendation-item {
    background: var(--white);
    padding: 15px;
    border-radius: var(--border-radius-small);
    border-left: 4px solid var(--primary-color);
}

.recommendation-item h4 {
    color: var(--text-color);
    margin-bottom: 8px;
}

.recommendation-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 分享区域 */
.share-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    text-align: center;
}

.share-section h3 {
    margin-bottom: 15px;
}

.share-description {
    margin-bottom: 20px;
    opacity: 0.9;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.share-btn {
    background: var(--white);
    color: var(--text-color);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.share-btn span {
    font-size: 1.2rem;
}

.share-preview {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: var(--border-radius-small);
    margin-top: 15px;
}

.share-preview p {
    margin-bottom: 10px;
    font-weight: 500;
}

.share-link {
    display: flex;
    gap: 10px;
}

.share-link input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--border-radius-small);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
}

.copy-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--primary-dark);
}

/* 返回按钮区域 */
.back-section {
    text-align: center;
    margin-top: 30px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--box-shadow-large);
    animation: modalSlideIn 0.3s ease;
}

.modal-small {
    max-width: 400px;
}

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

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

.modal-header h3 {
    color: var(--text-color);
    margin: 0;
}

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

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 20px;
}

/* 广告视频占位符 */
.ad-video-placeholder {
    position: relative;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.ad-video-placeholder .ad-placeholder {
    background: #1a1a1a;
    color: #fff;
    padding: 40px 20px;
}

.ad-timer {
    background: rgba(255, 107, 107, 0.9);
    color: var(--white);
    padding: 15px;
    text-align: center;
    font-weight: 600;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--border-radius-small);
    min-width: 120px;
}

/* 付费内容样式 */
.pay-content {
    text-align: center;
}

.pay-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.pay-description {
    color: var(--text-light);
    margin-bottom: 20px;
}

.pay-features ul {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.pay-features li {
    padding: 10px 0;
    color: var(--text-color);
}

.pay-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pay-button {
    padding: 15px;
    border: none;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.wechat-pay {
    background: #07C160;
    color: var(--white);
}

.wechat-pay:hover {
    background: #06AD56;
}

.alipay {
    background: #1677FF;
    color: var(--white);
}

.alipay:hover {
    background: #1469E6;
}

.pay-notice {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 问卷页面样式 */
.quiz-intro,
.quiz-progress,
.quiz-complete {
    animation: fadeIn 0.5s ease;
}

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

.intro-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
}

.intro-content {
    text-align: center;
}

.intro-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.dimension-item {
    background: var(--bg-color);
    padding: 20px;
    border-radius: var(--border-radius-small);
    text-align: center;
}

.dimension-letter {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.dimension-name {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 3px;
}

.dimension-desc {
    font-size: 0.85rem;
    color: var(--text-light);
}

.test-info {
    text-align: left;
    background: var(--bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 30px 0;
}

.test-info h3 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.test-info ul {
    list-style: none;
}

.test-info li {
    padding: 10px 0;
    color: var(--text-color);
}

.time-estimate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-weight: 500;
}

.estimate-icon {
    font-size: 1.5rem;
}

/* 问卷进度样式 */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.progress-info {
    flex: 1;
}

.question-counter {
    font-weight: 600;
    color: var(--text-color);
    display: block;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.3s ease;
}

.exit-quiz {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px 15px;
    border-radius: var(--border-radius-small);
    transition: var(--transition);
}

.exit-quiz:hover {
    background: var(--bg-color);
    color: var(--text-color);
}

/* 问题卡片样式 */
.question-card {
    margin-bottom: 30px;
}

.question-text {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 25px;
    line-height: 1.4;
}

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

.option-item {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-small);
    padding: 18px 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.option-item:hover {
    border-color: var(--primary-light);
    background: rgba(255, 107, 107, 0.05);
}

.option-item.selected {
    border-color: var(--primary-color);
    background: rgba(255, 107, 107, 0.1);
}

.option-item.selected::after {
    content: "✓";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.option-text {
    color: var(--text-color);
    font-size: 1rem;
}

/* 问卷导航按钮 */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.quiz-navigation button {
    flex: 1;
}

/* 测试完成页面 */
.complete-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
}

.complete-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.complete-card h2 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.complete-message {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.loading-animation {
    margin: 30px 0;
}

.loading-spinner {
    border: 4px solid rgba(255, 107, 107, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.loading-animation p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 人格报告样式 */
.personality-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border-radius: var(--border-radius);
}

.personality-icon-large {
    font-size: 4rem;
    margin-bottom: 15px;
}

.personality-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.personality-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 维度分析图表 */
.dimension-breakdown {
    margin-bottom: 30px;
}

.dimensions-chart {
    display: grid;
    gap: 15px;
}

.dimension-bar-item {
    background: var(--white);
    padding: 15px;
    border-radius: var(--border-radius-small);
    box-shadow: var(--box-shadow);
}

.dimension-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
}

.dimension-bar {
    height: 30px;
    background: #eee;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.dimension-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.5s ease;
}

.dimension-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 人格描述 */
.personality-description {
    background: var(--bg-color);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.description-content {
    color: var(--text-color);
    line-height: 1.8;
}

/* 推荐卡片区域 */
.recommendation-sections {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.recommendation-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.card-header {
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-header .card-icon {
    font-size: 2rem;
}

.card-header h3 {
    color: var(--text-color);
    margin: 0;
}

.card-content {
    padding: 20px;
    color: var(--text-color);
    line-height: 1.8;
}

/* 隐藏人格区域 */
.special-section {
    background: linear-gradient(135deg, rgba(255, 230, 109, 0.2) 0%, rgba(255, 177, 153, 0.2) 100%);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.special-section h3 {
    color: var(--text-color);
    margin-bottom: 20px;
}

.hidden-personalities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.hidden-personality-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius-small);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.hidden-personality-item .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hidden-personality-item h4 {
    color: var(--text-color);
    margin-bottom: 8px;
}

.hidden-personality-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 操作按钮区域 */
.action-section {
    text-align: center;
    margin: 30px 0;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

/* 模态框操作按钮 */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    flex: 1;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--white);
    opacity: 0.9;
}

.footer p {
    margin: 5px 0;
}

.disclaimer {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .main-content {
        padding: 20px;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .unlock-options {
        grid-template-columns: 1fr;
    }

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

    .quiz-navigation {
        flex-direction: column;
    }

    .personality-title {
        font-size: 1.5rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-buttons button {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .hidden-personalities-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .main-content {
        padding: 15px;
    }

    .intro-card,
    .complete-card {
        padding: 20px;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .option-item {
        padding: 15px;
    }

    .personality-icon-large {
        font-size: 3rem;
    }
}

/* 无障碍样式 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 打印样式 */
@media print {
    body {
        background: white;
    }

    .ad-banner,
    .share-section,
    .action-section,
    .btn-primary,
    .btn-secondary {
        display: none;
    }

    .main-content {
        box-shadow: none;
    }
}

/* 人格鉴定弹窗样式 */
.personality-modal {
    max-width: 500px;
    text-align: center;
}

.personality-reveal {
    padding: 20px;
}

.reveal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.personality-reveal h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.personality-reveal h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.personality-reveal p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.share-actions {
    background: var(--bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 30px;
}

.share-actions h4 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.share-buttons-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.share-action-btn {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.share-action-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.share-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.share-action-btn span {
    font-size: 2rem;
}

.share-action-btn strong {
    display: block;
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 5px;
}

.share-action-btn small {
    color: var(--text-light);
    font-size: 0.85rem;
}

.countdown-timer {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 107, 107, 0.2) 100%);
    padding: 15px;
    border-radius: var(--border-radius-small);
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 15px;
}

.countdown-timer p {
    margin: 0;
}

.countdown-timer span {
    font-size: 1.3rem;
    font-weight: 700;
}