:root {
    --primary-color: #4A90E2;
    --secondary-color: #2C3E50;
    --accent-color: #E74C3C;
    --background-color: #F5F6FA;
    --text-color: #2C3E50;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --section-bg: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--secondary-color);
    font-size: 1.2rem;
    opacity: 0.8;
}

.screen {
    display: none;
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.screen.active {
    display: block;
}

.welcome-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.welcome-header {
    margin-bottom: 40px;
}

.welcome-icon {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    display: block;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.test-introduction {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.intro-section {
    background: var(--section-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: left;
    transition: var(--transition);
}

.intro-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.intro-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.intro-section p {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.dimension-list, .result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dimension-list li, .result-list li {
    padding: 8px 0;
    color: var(--text-color);
    position: relative;
    padding-left: 25px;
}

.dimension-list li:before, .result-list li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.start-section {
    margin-top: 40px;
    padding: 20px;
    background: var(--section-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.ready-text {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.start-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(74, 144, 226, 0.3);
}

.start-btn:hover {
    background-color: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(74, 144, 226, 0.4);
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

button:hover {
    background-color: #357ABD;
    transform: translateY(-2px);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #E0E0E0;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.question-container {
    margin-bottom: 30px;
}

#question-text {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.option {
    background-color: #F8F9FA;
    border: 2px solid #E0E0E0;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.option:hover {
    border-color: var(--primary-color);
    background-color: #F0F7FF;
}

.option.selected {
    background-color: #E3F2FD;
    border-color: var(--primary-color);
}

.result-content {
    text-align: center;
}

.score-container {
    margin: 30px 0;
}

.total-score {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.score-label {
    display: block;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.score-details {
    text-align: left;
}

.score-item {
    margin-bottom: 20px;
}

.score-item span {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.score-bar {
    height: 8px;
    background-color: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 1s ease;
}

.recommendations {
    background-color: #F8F9FA;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 30px 0;
    text-align: left;
}

.recommendations h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.donate-section {
    margin-top: 20px;
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(231, 76, 60, 0.3);
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.4);
    background-color: #c0392b;
}

.donate-icon {
    font-size: 1.2rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-sleep:before {
    content: "\e6b1";
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    .screen {
        padding: 20px;
    }

    .welcome-icon {
        width: 80px;
        height: 80px;
    }

    .intro-section {
        padding: 20px;
    }

    .start-btn {
        width: 100%;
        padding: 15px;
    }
} 