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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    animation: slideIn 0.5s ease-in-out;
}

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

h1 {
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.description {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #666;
}

.test-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.test-info ul {
    list-style-position: inside;
    margin-top: 10px;
}

.start-btn {
    display: block;
    width: 200px;
    margin: 0 auto;
    padding: 15px;
    background-color: #ff6b6b;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.start-btn:hover {
    background-color: #ee5a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.start-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.question-container {
    margin-bottom: 30px;
}

.question-number {
    background-color: #ff6b6b;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.question-text {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.options {
    margin-top: 20px;
}

.option {
    margin-bottom: 15px;
}

.option label {
    display: block;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.option label:hover {
    background-color: #f8f9fa;
    border-color: #ff6b6b;
}

.option input {
    margin-right: 15px;
    transform: scale(1.2);
    cursor: pointer;
    vertical-align: middle;
}

.option input:checked + span {
    font-weight: bold;
    color: #ff6b6b;
}

.option span {
    vertical-align: middle;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease-in-out;
}

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

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.nav-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prev-btn {
    background-color: #6c757d;
    color: white;
}

.prev-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.prev-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.next-btn {
    background-color: #ff6b6b;
    color: white;
}

.next-btn:hover {
    background-color: #ee5a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.next-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.submit-btn {
    background-color: #28a745;
    color: white;
}

.submit-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.result-container {
    text-align: center;
}

.result-title {
    color: #ff6b6b;
    margin-bottom: 20px;
    font-size: 2em;
}

.result-score {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.result-description {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    text-align: left;
}

.result-suggestion {
    background-color: #e7f3ff;
    padding: 20px;
    border-radius: 5px;
    text-align: left;
}

.restart-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff6b6b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.restart-btn:hover {
    background-color: #ee5a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.restart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.share-container {
    margin: 30px 0;
    text-align: center;
}

.share-container h3 {
    margin-bottom: 15px;
    color: #333;
}

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

.share-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.share-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.wechat-btn {
    background-color: #07C160;
}

.qq-btn {
    background-color: #12B7F5;
}

.weibo-btn {
    background-color: #E6162D;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #ff6b6b;
    transition: width 0.3s ease;
}

.footer {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-links a {
    color: #ff6b6b;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ee5a52;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.modal-header h4 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
    text-decoration: none;
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b6b;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

.poster-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* 海报内容样式 */
.poster-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: white;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.poster-content h2 {
    color: white;
    margin-bottom: 30px;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.poster-content .result-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: none;
    margin-bottom: 30px;
    color: #333;
    position: relative;
    z-index: 1;
}

.poster-content .personality-type {
    font-size: 1.8em;
    color: #ff6b6b;
    margin-bottom: 20px;
    font-weight: bold;
}

.poster-content .personality-description {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.poster-content .dimensions {
    text-align: left;
    margin-top: 30px;
}

.poster-content .dimensions h4 {
    margin-bottom: 20px;
    font-size: 1.4em;
    color: #333;
}

.poster-content .dimension-item {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #555;
}

.poster-content .qr-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.poster-content .qr-section p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: white;
    font-weight: bold;
}

/* 维度部分的样式 */
.poster-content .dimension-section {
    background-color: rgba(255, 107, 107, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #ff6b6b;
}

.poster-content h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.share-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff6b6b;
    color: white;
    text-decoration: none;
    font-size: 1em;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.share-button:hover {
    background-color: #ee5a52;
}