* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.test-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
}

.screen {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screen.active {
    display: block;
    opacity: 1;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.intro {
    text-align: left;
    margin-bottom: 30px;
    color: #666;
    font-size: 1.1em;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.intro h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.intro h3 {
    color: #34495e;
    margin: 20px 0 10px;
    font-size: 1.3em;
}

.intro ol, .intro ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.intro li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    display: block;
    margin: 20px auto;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress {
    width: 0;
    height: 100%;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.question-container {
    text-align: center;
}

#question-number {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 1.2em;
}

#question-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #2c3e50;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    background-color: #fff;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background-color: #3498db;
    color: white;
}

.result-type {
    font-size: 2.5em;
    text-align: center;
    color: #2c3e50;
    margin: 20px 0;
    font-weight: bold;
}

.result-description {
    text-align: justify;
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    line-height: 1.8;
}

.dimension-bars {
    margin: 30px 0;
}

.dimension {
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bar-container {
    flex-grow: 1;
    height: 20px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background-color: #3498db;
    transition: width 0.5s ease;
}

.dimension-intro {
    margin-top: 25px;
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dimension-intro ul {
    list-style: none;
    padding: 0;
}

.dimension-intro li {
    margin-bottom: 12px;
}

.dimension-intro strong {
    color: #3498db;
    margin-right: 8px;
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.author-section {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.author-section p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

.donate-section {
    margin-top: 20px;
}

.donate-btn {
    background-color: #ff4d4f;
}

.donate-btn:hover {
    background-color: #ff7875;
}

.donate-qr {
    display: none;
    margin-top: 15px;
    gap: 20px;
    justify-content: center;
}

.donate-qr.active {
    display: flex;
}

/* 二维码样式 */
.qr-code {
    width: 200px;
    height: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-code.enlarged {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    max-width: 500px;
    height: auto;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* 导出按钮样式 */
.export-btn {
    background-color: #28a745;
}

.export-btn:hover {
    background-color: #218838;
}

/* 遮罩层 */
.qr-code.enlarged::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

@media (max-width: 600px) {
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .qr-code {
        width: 120px;
        height: 120px;
    }
}
