* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5e6f8 0%, #e8d4f2 100%);
    min-height: 100vh;
}

.page {
    display: none;
    min-height: 100vh;
    padding: 20px;
}

.page.active {
    display: block;
}

/* 首页样式 */
.home-container {
    text-align: center;
    padding-top: 60px;
}

.home-container h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.quiz-master {
    font-size: 60px;
    font-weight: bold;
    color: #e0d0e8;
    line-height: 1.1;
    margin-bottom: 30px;
}

.desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

.today-count {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.btn-primary {
    background: #7a42b5;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
}

.btn-secondary {
    background: #e9d8f4;
    color: #7a42b5;
    border: 1px solid #d4b8e8;
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    margin: 10px 0;
}

.text-btn {
    background: none;
    border: none;
    color: #7a42b5;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.home-footer {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    font-size: 14px;
    color: #7a42b5;
}

/* 规则页样式 */
.header {
    margin-bottom: 20px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.rules-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
}

.time-info {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.rule-item {
    margin-bottom: 20px;
}

.rule-item h3 {
    font-size: 16px;
    color: #7a42b5;
    margin-bottom: 10px;
}

.rule-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 积分页样式 */
.score-card {
    background: #7a42b5;
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
}

.score-card h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.score-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.score-item {
    text-align: center;
}

.score-num {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.score-label {
    font-size: 14px;
    opacity: 0.8;
}

/* 答题页样式 */
.progress-bar {
    height: 6px;
    background: #e0d0e8;
    border-radius: 3px;
    margin-bottom: 30px;
}

.progress {
    height: 100%;
    background: #7a42b5;
    border-radius: 3px;
    width: 10%;
}

.quiz-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.quiz-container h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    padding: 12px;
    border: 1px solid #e0d0e8;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.option-item.selected {
    background: #e9d8f4;
    border-color: #7a42b5;
    color: #7a42b5;
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
}

/* 结果页样式 */
.result-container {
    text-align: center;
    padding-top: 40px;
}

.result-container h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
}

.result-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.result-item {
    text-align: center;
}

.result-num {
    font-size: 32px;
    font-weight: bold;
    color: #7a42b5;
    display: block;
}

.result-label {
    font-size: 14px;
    color: #666;
}

.score-tip {
    font-size: 14px;
    color: #666;
    margin: 20px 0;
}

/* 分享页样式 */
.share-container {
    text-align: center;
    padding-top: 60px;
}

.share-container h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 40px;
}

.share-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.share-item {
    text-align: center;
}

.share-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.share-item span {
    font-size: 14px;
    color: #666;
}

/* 提取积分页样式 */
.withdraw-container {
    text-align: center;
    padding-top: 40px;
}

.withdraw-container h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.withdraw-container p {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.qrcode-box {
    width: 150px;
    height: 150px;
    background: #f0f0f0;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
}

.qrcode p {
    margin: 5px 0;
}