* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: -1;
}

.container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 800px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

header {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    padding: 2rem;
}

.test-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.result-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.poster {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(78, 205, 196, 0.2));
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
    border-radius: 15px;
}

.poster-content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.poster-desc-container {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    display: inline-block;
    max-width: 80%;
}

.background-controls {
    margin: 1rem 0;
    text-align: center;
}

.change-bg-btn {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.change-bg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #45b7d1 0%, #4ecdc4 100%);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.welcome-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.result-details {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.score-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.option {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.option.selected {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b 0%, #4ecdc4 100%);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b 0%, #4ecdc4 100%);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.welcome-content {
    text-align: center;
    padding: 2rem 0;
}

.welcome-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.welcome-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.note {
    font-weight: bold;
    color: #764ba2;
    margin: 2rem 0;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.test-content h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.options {
    margin-bottom: 2rem;
}

.option {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.option.selected {
    border-color: #667eea;
    background: #e6ebff;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-content {
    text-align: center;
}

.result-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #667eea;
}

.result-card {
    background: linear-gradient(135deg, #f5f7ff 0%, #e6ebff 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.personality-image {
    width: 200px;
    height: 200px;
    margin: 1.5rem auto;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 4px solid #667eea;
}

.result-card p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.details-header:hover {
    background: #f0f4ff;
}

.toggle-icon {
    font-size: 1.2rem;
    color: #667eea;
    transition: transform 0.3s ease;
}

.toggle-icon.active {
    transform: rotate(180deg);
}

.result-details {
    margin-bottom: 2rem;
}

.result-details h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.score-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.score-item label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.score-item .score-bar {
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.score-item .score-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.score-item .score-value {
    font-size: 0.9rem;
    font-weight: bold;
    color: #667eea;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.poster-section {
    margin: 2rem 0;
    text-align: center;
}

.poster-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #667eea;
}

.poster {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.poster-content {
    text-align: center;
}

.poster-content h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.poster-image {
    width: 150px;
    height: 150px;
    margin: 1rem auto;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid #667eea;
}

.poster-content h5 {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: #333;
}

.poster-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.poster-tagline {
    font-weight: bold;
    color: #667eea;
    margin: 1.5rem 0;
}

.qrcode {
    width: 120px;
    height: 120px;
    margin: 1rem auto;
    background: white;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer {
    background: #f9f9f9;
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

footer p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
    margin-bottom: 1rem;
}

.friend-links {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.friend-links p {
    display: inline-block;
    margin-right: 10px;
    color: #666;
}

.friend-links a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.friend-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 手机端不显示背景图片 */
@media (max-width: 768px) {
    body {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }
    
    body::before {
        background: rgba(255, 255, 255, 0.5);
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .test-content h3 {
        font-size: 1.3rem;
    }
    
    .option {
        padding: 1.2rem;
    }
    
    .result-card h3 {
        font-size: 1.5rem;
    }
    
    .score-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}