/* FBTI 足球观赛人格测试 - index.html 特有样式 */

/* 首页 Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 600px;
}

.brand {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 900;
    color: var(--text);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.tagline {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.3;
}

.description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.credits {
    margin-top: 3rem;
    text-align: center;
}

.credit-line {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

/* 足球场动画 */
.hero-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.15;
    pointer-events: none;
}

.football-field {
    position: relative;
    width: 300px;
    height: 400px;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
}

.field-center {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: translateY(-50%);
}

.field-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.field-ball {
    position: absolute;
    font-size: 2rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -60%) scale(1.1); }
}

/* 答题页 */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 60px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--surface-light);
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
}

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

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.question-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
}

.question-text {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-btn {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--surface-light);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9375rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out backwards;
    line-height: 1.5;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.option-btn:hover {
    border-color: var(--primary);
    background: rgba(229, 57, 53, 0.1);
    transform: translateX(4px);
}

.option-marker {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

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

.option-text {
    flex: 1;
}

/* 昵称页 */
.nickname-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 60px;
}

.nickname-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    border: 1px solid var(--border);
    text-align: center;
}

.nickname-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text);
}

.nickname-input-wrapper {
    margin-bottom: 2rem;
}

.nickname-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: var(--text);
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.3s ease;
}

.nickname-input:focus {
    border-color: var(--primary);
}

.nickname-input::placeholder {
    color: var(--text-muted);
}

/* 结果页 */
.result-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    padding-bottom: 80px;
    position: relative;
}

/* 结果页中的 powered-by，需要高于 cover-image */
.result-container .powered-by {
    position: relative;
    z-index: 2;
    margin-top: 1.5rem;
    padding-bottom: 1rem;
}

.result-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    margin-top: 1rem;
}

.result-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-greeting {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.result-name {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.result-subtitle {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
}

.result-visual {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.type-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.4);
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent);
}

.result-description {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--surface-light);
    border-radius: var(--radius-sm);
}

.result-description p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 分享海报页 */
.share-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

.share-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.share-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.share-header {
    margin-bottom: 1rem;
}

.share-greeting {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.share-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.share-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.share-subtitle {
    font-size: 0.875rem;
    color: var(--accent);
}

.share-visual {
    margin: 1rem 0;
}

.share-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    margin: 0 auto;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.share-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.share-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.share-stat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.share-stat-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--accent);
}

.share-desc {
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.share-desc p {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.share-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.share-slogan {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.share-qrcode {
    display: flex;
    justify-content: center;
}

.qrcode-placeholder {
    width: 80px;
    height: 80px;
    background: var(--surface-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.5rem;
}

.share-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

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

    .football-field {
        width: 200px;
        height: 280px;
    }

    .quiz-container,
    .nickname-container,
    .result-container,
    .share-container {
        padding: 1rem;
        padding-bottom: 60px;
    }

    .question-card,
    .result-card,
    .share-card,
    .nickname-card {
        padding: 1.5rem;
    }

    .option-btn {
        padding: 0.875rem;
    }

    .action-buttons,
    .share-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .result-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
}
