/* css/style.css */

/* ==================== 基础重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7B68EE;
    --primary-light: #9D8DF1;
    --primary-dark: #5B4BC4;
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --accent-pink: #FF6B9D;
    --accent-blue: #4ECDC4;
    --accent-purple: #A855F7;
    --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(145deg, rgba(123, 104, 238, 0.1), rgba(168, 85, 247, 0.05));
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== 页面容器 ==================== */
.page {
    display: none;
    min-height: 100vh;
    position: relative;
}

.page.active {
    display: block;
}

/* ==================== 封面页 ==================== */
#page-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    overflow: hidden;
}

.cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(123, 104, 238, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(78, 205, 196, 0.05) 0%, transparent 70%);
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.cover-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
}

.logo-wrapper {
    margin-bottom: 30px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(123, 104, 238, 0.3);
}

.cover-title {
    font-size: 72px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 0 60px rgba(123, 104, 238, 0.5);
}

.cover-subtitle {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 8px;
    margin-bottom: 30px;
}

.cover-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.progress-bar {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 0 auto 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 3px;
    transition: width 1s ease;
}

.progress-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn-start {
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: var(--gradient-main);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(123, 104, 238, 0.4);
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(123, 104, 238, 0.5);
}

.btn-start:active {
    transform: translateY(0);
}

.cover-footer {
    margin-top: 60px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== 答题页 ==================== */
#page-quiz {
    padding: 20px;
    padding-bottom: 100px;
    background: var(--bg-dark);
}

.quiz-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.quiz-progress {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.quiz-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.quiz-container {
    margin-top: 80px;
    padding: 20px 0;
}

.question-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 20px;
}

.question-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* 选择题选项 */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item:hover {
    background: rgba(123, 104, 238, 0.1);
    border-color: rgba(123, 104, 238, 0.3);
}

.option-item.selected {
    background: rgba(123, 104, 238, 0.2);
    border-color: var(--primary-color);
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-right: 14px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: transparent;
}

.option-item.selected .option-radio {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.option-item.selected .option-radio::after {
    display: none;
}

.option-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.option-item.selected .option-text {
    color: var(--text-primary);
}

/* MBTI 网格选择 */
.mbti-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mbti-item {
    padding: 14px 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.mbti-item:hover {
    background: rgba(123, 104, 238, 0.1);
    border-color: rgba(123, 104, 238, 0.3);
}

.mbti-item.selected {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
}

/* 填空题输入框 */
.input-wrapper {
    position: relative;
}

.text-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.text-input:focus {
    border-color: var(--primary-color);
    background: rgba(123, 104, 238, 0.05);
}

.text-input::placeholder {
    color: var(--text-muted);
}

.input-counter {
    position: absolute;
    right: 16px;
    bottom: -24px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 简答题文本域 */
.textarea-input {
    width: 100%;
    min-height: 120px;
    padding: 16px 20px;
    font-size: 16px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: none;
    resize: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.textarea-input:focus {
    border-color: var(--primary-color);
    background: rgba(123, 104, 238, 0.05);
}

/* 月份选择 */
.month-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.month-item {
    padding: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: var(--text-secondary);
}

.month-item:hover {
    background: rgba(123, 104, 238, 0.1);
}

.month-item.selected {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
}

/* 底部导航 */
.quiz-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    gap: 12px;
}

.btn-prev, .btn-next {
    flex: 1;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-prev:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-next {
    background: var(--gradient-main);
    border: none;
    color: white;
}

.btn-next:hover {
    box-shadow: 0 5px 20px rgba(123, 104, 238, 0.4);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== 加载页 ==================== */
#page-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
}

.loading-content {
    text-align: center;
}

.loading-animation {
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
    position: relative;
}

.orbit {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(123, 104, 238, 0.2);
    border-radius: 50%;
    position: relative;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.star {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary-color);
}

.star1 { top: -6px; left: 50%; transform: translateX(-50%); }
.star2 { bottom: 20px; left: 10px; background: var(--accent-pink); box-shadow: 0 0 20px var(--accent-pink); }
.star3 { bottom: 20px; right: 10px; background: var(--accent-blue); box-shadow: 0 0 20px var(--accent-blue); }

.loading-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.loading-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.loading-dots span {
    font-size: 24px;
    color: var(--primary-color);
    animation: blink 1.4s infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* ==================== 结果页 ==================== */
#page-result {
    padding: 20px;
    background: var(--bg-dark);
    min-height: 100vh;
}

.result-header {
    text-align: center;
    padding: 20px 0 30px;
}

.result-header h2 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.result-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.result-display {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.final-poster {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.result-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.btn-regenerate, .btn-restart {
    flex: 1;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-regenerate {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.btn-restart {
    background: var(--gradient-main);
    border: none;
    color: white;
}

.result-footer {
    text-align: center;
    padding: 20px 0;
}

.result-footer p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.result-url {
    color: var(--primary-light) !important;
}

/* ==================== 海报模板 ==================== */
.poster-template {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 375px;
    height: auto;
    min-height: 700px;
}

.poster-bg {
    width: 100%;
    padding: 24px 20px;
    background: linear-gradient(180deg, #1a1035 0%, #0d0d1a 50%, #0a0a12 100%);
    position: relative;
    overflow: hidden;
}

.poster-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(123, 104, 238, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.poster-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.poster-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.poster-year {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.poster-avatar-section {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.poster-avatar {
    width: 100px;
    height: 100px;
    margin-bottom: 8px;
}

.poster-mbti-type {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 4px;
}

.poster-keywords {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.keyword-tag {
    padding: 6px 14px;
    background: rgba(123, 104, 238, 0.2);
    border: 1px solid rgba(123, 104, 238, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-light);
}

.poster-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* css/style.css */

/* ==================== 基础重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7B68EE;
    --primary-light: #9D8DF1;
    --primary-dark: #5B4BC4;
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --accent-pink: #FF6B9D;
    --accent-blue: #4ECDC4;
    --accent-purple: #A855F7;
    --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(145deg, rgba(123, 104, 238, 0.1), rgba(168, 85, 247, 0.05));
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== 页面容器 ==================== */
.page {
    display: none;
    min-height: 100vh;
    position: relative;
}

.page.active {
    display: block;
}

/* ==================== 封面页 ==================== */
#page-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    overflow: hidden;
}

.cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(123, 104, 238, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(78, 205, 196, 0.05) 0%, transparent 70%);
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.cover-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
}

.logo-wrapper {
    margin-bottom: 30px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(123, 104, 238, 0.3);
}

.cover-title {
    font-size: 72px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 0 60px rgba(123, 104, 238, 0.5);
}

.cover-subtitle {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 8px;
    margin-bottom: 30px;
}

.cover-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.progress-bar {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 0 auto 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 3px;
    transition: width 1s ease;
}

.progress-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn-start {
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: var(--gradient-main);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(123, 104, 238, 0.4);
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(123, 104, 238, 0.5);
}

.btn-start:active {
    transform: translateY(0);
}

.cover-footer {
    margin-top: 60px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== 答题页 ==================== */
#page-quiz {
    padding: 20px;
    padding-bottom: 100px;
    background: var(--bg-dark);
}

.quiz-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.quiz-progress {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.quiz-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.quiz-container {
    margin-top: 80px;
    padding: 20px 0;
}

.question-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 20px;
}

.question-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* 选择题选项 */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item:hover {
    background: rgba(123, 104, 238, 0.1);
    border-color: rgba(123, 104, 238, 0.3);
}

.option-item.selected {
    background: rgba(123, 104, 238, 0.2);
    border-color: var(--primary-color);
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-right: 14px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.option-item.selected .option-radio {
    border-color: var(--primary-color);
}

.option-item.selected .option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.option-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.option-item.selected .option-text {
    color: var(--text-primary);
}

/* MBTI 网格选择 */
.mbti-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mbti-item {
    padding: 14px 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.mbti-item:hover {
    background: rgba(123, 104, 238, 0.1);
    border-color: rgba(123, 104, 238, 0.3);
}

.mbti-item.selected {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
}

/* 填空题输入框 */
.input-wrapper {
    position: relative;
}

.text-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.text-input:focus {
    border-color: var(--primary-color);
    background: rgba(123, 104, 238, 0.05);
}

.text-input::placeholder {
    color: var(--text-muted);
}

.input-counter {
    position: absolute;
    right: 16px;
    bottom: -24px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 简答题文本域 */
.textarea-input {
    width: 100%;
    min-height: 120px;
    padding: 16px 20px;
    font-size: 16px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: none;
    resize: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.textarea-input:focus {
    border-color: var(--primary-color);
    background: rgba(123, 104, 238, 0.05);
}

/* 月份选择 */
.month-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.month-item {
    padding: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: var(--text-secondary);
}

.month-item:hover {
    background: rgba(123, 104, 238, 0.1);
}

.month-item.selected {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
}

/* 底部导航 */
.quiz-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    gap: 12px;
}

.btn-prev, .btn-next {
    flex: 1;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-prev:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-next {
    background: var(--gradient-main);
    border: none;
    color: white;
}

.btn-next:hover {
    box-shadow: 0 5px 20px rgba(123, 104, 238, 0.4);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== 加载页 ==================== */
#page-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
}

.loading-content {
    text-align: center;
}

.loading-animation {
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
    position: relative;
}

.orbit {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(123, 104, 238, 0.2);
    border-radius: 50%;
    position: relative;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.star {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary-color);
}

.star1 { top: -6px; left: 50%; transform: translateX(-50%); }
.star2 { bottom: 20px; left: 10px; background: var(--accent-pink); box-shadow: 0 0 20px var(--accent-pink); }
.star3 { bottom: 20px; right: 10px; background: var(--accent-blue); box-shadow: 0 0 20px var(--accent-blue); }

.loading-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.loading-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.loading-dots span {
    font-size: 24px;
    color: var(--primary-color);
    animation: blink 1.4s infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* ==================== 结果页 ==================== */
#page-result {
    padding: 20px;
    background: var(--bg-dark);
    min-height: 100vh;
}

.result-header {
    text-align: center;
    padding: 20px 0 30px;
}

.result-header h2 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.result-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.result-display {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.final-poster {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.result-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.btn-regenerate, .btn-restart {
    flex: 1;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-regenerate {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.btn-restart {
    background: var(--gradient-main);
    border: none;
    color: white;
}

.result-footer {
    text-align: center;
    padding: 20px 0;
}

.result-footer p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.result-url {
    color: var(--primary-light) !important;
}

/* ==================== 海报模板 ==================== */
.poster-template {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 375px;
    height: auto;
    min-height: 700px;
}

.poster-bg {
    width: 100%;
    padding: 24px 20px;
    background: linear-gradient(180deg, #1a1035 0%, #0d0d1a 50%, #0a0a12 100%);
    position: relative;
    overflow: hidden;
}

.poster-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(123, 104, 238, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.poster-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.poster-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.poster-year {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.poster-avatar-section {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.poster-avatar {
    width: 100px;
    height: 100px;
    margin-bottom: 8px;
}

.poster-mbti-type {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 4px;
}

.poster-keywords {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.keyword-tag {
    padding: 6px 14px;
    background: rgba(123, 104, 238, 0.2);
    border: 1px solid rgba(123, 104, 238, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-light);
}

.poster-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.poster-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.section-icon {
    font-size: 16px;
    margin-bottom: 8px;
}

.section-label {
    font-size: 12px;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.poster-analysis,
.poster-highlight,
.poster-time,
.poster-guidance {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.poster-lucky {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.15), rgba(168, 85, 247, 0.1));
    border-radius: 12px;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.lucky-label {
    font-size: 12px;
    color: var(--text-muted);
}

.lucky-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-pink);
}

.poster-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.poster-qr {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-placeholder {
    font-size: 8px;
    color: #333;
    text-align: center;
}

.poster-info {
    text-align: left;
}

.poster-info p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==================== 响应式适配 ==================== */
@media screen and (max-width: 375px) {
    .cover-title {
        font-size: 56px;
    }
    
    .cover-subtitle {
        font-size: 18px;
        letter-spacing: 4px;
    }
    
    .mbti-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .mbti-item {
        padding: 10px 4px;
        font-size: 12px;
    }
}

@media screen and (min-width: 768px) {
    .cover-content {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .quiz-container {
        max-width: 600px;
        margin: 80px auto 0;
    }
    
    .quiz-nav {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .result-display {
        max-width: 400px;
        margin: 0 auto 30px;
    }
}

/* ==================== 动画效果 ==================== */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 选项点击波纹效果 */
.option-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(123, 104, 238, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.option-item:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
}