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

body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f0f5f2;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 12px;
}

/* ===== 页面切换 ===== */
.page {
    display: none;
    max-width: 420px;
    width: 100%;
    background: #ffffff;
    border-radius: 28px;
    padding: 24px 20px 30px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    min-height: 480px;
    animation: fadeUp 0.4s ease;
    margin: 0 auto;
}
.page.active {
    display: block;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== 通用按钮 ===== */
.btn-primary {
    background: #1a7a4a;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}
.btn-primary:hover { background: #14633b; }
.btn-primary:disabled {
    background: #a0c0aa;
    cursor: not-allowed;
}

.btn-block { width: 100%; }
.btn-large { padding: 18px 24px; font-size: 20px; }

/* ===== 首页 ===== */
/* 头部区域：纯白底展示官方统一标识，不做彩色渐变，尊重标识规范 */
.home-banner {
    text-align: center;
    padding: 4px 10px 6px;
    margin-bottom: 10px;
}
.home-badge {
    display: inline-block;
    background: #1a7a4a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 20px;
    border-radius: 20px;
    letter-spacing: 2px;
    box-shadow: 0 2px 8px rgba(26, 122, 74, 0.16);
    margin-bottom: 16px;
}
.home-logo {
    display: block;
    width: 74%;
    max-width: 300px;
    margin: 0 auto 18px;
}
.home-sub {
    font-size: 15px;
    color: #33424a;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-top: 0;
}
.home-sub .sub-strong {
    color: #1a7a4a;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-right: 4px;
    vertical-align: -1px;
}
.home-org {
    font-size: 12.5px;
    color: #7a8a8a;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eef1ef;
    letter-spacing: 1px;
}

/* 手机号输入 */
.home-phone {
    margin-bottom: 12px;
}
.home-phone label {
    font-size: 14px;
    font-weight: 500;
    color: #1a2a2a;
    display: block;
    margin-bottom: 6px;
}
.home-phone input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e0e8e4;
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #fafcfa;
}
.home-phone input:focus {
    border-color: #1a7a4a;
}
.home-phone input::placeholder {
    color: #b0c0b8;
}
.phone-error {
    font-size: 13px;
    color: #c0392b;
    margin-top: 4px;
    min-height: 20px;
}
.phone-privacy {
    font-size: 12px;
    color: #a0b0a8;
    line-height: 1.5;
    margin-top: 6px;
}

/* 答题规则卡片 */
.home-notice {
    background: linear-gradient(165deg, #f3faf6, #e6f2ec);
    border: 1.5px solid #d3e8da;
    border-radius: 18px;
    padding: 18px 20px 20px;
    margin-bottom: 18px;
    text-align: center;
}
.rule-head {
    font-size: 15px;
    font-weight: 700;
    color: #1a7a4a;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.rule-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    color: #1a2a2a;
    font-size: 15px;
}
.rule-num-big {
    font-size: 36px;
    font-weight: 800;
    color: #1a7a4a;
    line-height: 1;
}
.rule-row-text {
    font-size: 14px;
    color: #4a5a52;
}
.rule-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.rule-tag {
    background: #ffffff;
    border: 1px solid #cfe5d8;
    color: #1a6b42;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 13px;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(26, 122, 74, 0.08);
}
.rule-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #b8d8c6, transparent);
    margin: 14px 0 12px;
}
.rule-pass {
    font-size: 15px;
    color: #1a2a2a;
}
.rule-pass b {
    color: #1a7a4a;
    font-size: 17px;
}
.rule-reward {
    margin-top: 6px;
    font-size: 14px;
    color: #5a6a6a;
}
.rule-reward b {
    color: #1a7a4a;
    font-size: 16px;
}

.home-actions {
    margin-bottom: 16px;
}
.home-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #eef2f0;
    font-size: 13px;
    color: #8a9a9a;
}
.site-copyright {
    text-align: center;
    font-size: 11px;
    color: #bbb;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.site-beian {
    text-align: center;
    font-size: 11px;
    margin-top: 6px;
    padding-bottom: 10px;
}
.site-beian a {
    color: #999;
    text-decoration: none;
}
.site-beian a:hover {
    color: #1a7a4a;
    text-decoration: underline;
}

/* ===== 答题页（整卷） ===== */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f0;
}
.quiz-back {
    font-size: 16px;
    color: #5a6a6a;
    cursor: pointer;
    padding: 4px 8px;
}
.quiz-back:hover { color: #1a7a4a; }
.quiz-progress {
    font-size: 15px;
    font-weight: 600;
    color: #1a7a4a;
    background: #e6f2ec;
    padding: 4px 16px;
    border-radius: 20px;
}
.quiz-timer {
    text-align: right;
    font-size: 14px;
    color: #8a9a9a;
    margin-top: 8px;
    margin-bottom: 4px;
}

/* 体验答题（不领水）状态条：仅在该模式下显示，避免答完才发现没水 */
.quiz-noreward-tip {
    display: none;
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #fff7e6;
    border: 1px solid #f3dda6;
    color: #8a6116;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.quiz-noreward-tip.show { display: block; }

.quiz-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 12px 0 18px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}
.quiz-list::-webkit-scrollbar {
    width: 3px;
}
.quiz-list::-webkit-scrollbar-thumb {
    background: #c0d0c8;
    border-radius: 10px;
}

.quiz-item {
    background: #f8faf9;
    border-radius: 16px;
    padding: 14px 16px;
    border-left: 4px solid #1a7a4a;
}
.quiz-item .q-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a7a4a;
    margin-bottom: 8px;
}
.quiz-item .q-text {
    font-size: 16px;
    color: #1a2a2a;
    line-height: 1.6;
    margin-bottom: 10px;
}
.quiz-item .q-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.quiz-item .q-options .opt {
    font-size: 14px;
    color: #2a3a3a;
    padding: 8px 14px;
    background: #ffffff;
    border: 1.5px solid #e0e8e4;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}
.quiz-item .q-options .opt:hover {
    border-color: #b0c8bc;
}
.quiz-item .q-options .opt.selected {
    border-color: #1a7a4a;
    background: #e6f2ec;
}
.quiz-item .q-options .opt.multi-selected {
    border-color: #1a7a4a;
    background: #e6f2ec;
}
.quiz-item .q-hint-multi {
    font-size: 12px;
    color: #8a9a9a;
    margin-top: 4px;
}

.quiz-hint {
    font-size: 12px;
    color: #aababa;
    text-align: center;
    margin-top: 12px;
}

/* ===== 结果页 ===== */
.result-header {
    text-align: center;
    padding: 12px 0 16px;
}
.result-icon { font-size: 56px; }
.result-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a2a2a;
    margin-top: 4px;
}
.result-sub {
    font-size: 14px;
    color: #6a7a7a;
    margin-top: 4px;
    line-height: 1.6;
}
.result-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: #f8faf9;
    border-radius: 16px;
    padding: 16px 8px;
    margin-bottom: 16px;
}
.result-stat-item {
    text-align: center;
}
.result-stat-num {
    font-size: 24px;
    font-weight: 700;
    color: #1a2a2a;
}
.result-stat-item:nth-child(2) .result-stat-num { color: #1a7a4a; }
.result-stat-item:nth-child(3) .result-stat-num { color: #c0392b; }
.result-stat-item:nth-child(4) .result-stat-num { color: #5a8aaa; }
.result-stat-label {
    font-size: 12px;
    color: #8a9a9a;
    display: block;
    margin-top: 2px;
}

/* ===== 结果页按钮 —— 加大加粗 ===== */
.btn-result-primary-large {
    background: #1a7a4a;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 18px 24px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    letter-spacing: 1px;
}
.btn-result-primary-large:hover { background: #14633b; }

.btn-result-secondary-large {
    background: #eef3f0;
    color: #1a7a4a;
    border: 2px solid #1a7a4a;
    border-radius: 50px;
    padding: 18px 24px;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 12px;
    letter-spacing: 0.5px;
}
.btn-result-secondary-large:hover { background: #dce8e0; }

.detail-item {
    padding: 8px 0;
    border-bottom: 1px solid #eef2f0;
    font-size: 14px;
    line-height: 1.6;
}
.detail-item:last-child { border-bottom: none; }
.detail-item .q { color: #1a2a2a; }
.detail-item .status-correct { color: #1a7a4a; font-weight: 600; }
.detail-item .status-wrong { color: #c0392b; font-weight: 600; }
.detail-item .a-user { color: #6a7a7a; }

.result-actions {
    margin-top: 6px;
}

/* ===== 反馈弹窗 ===== */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 42, 42, 0.45);
    z-index: 999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.feedback-dialog {
    background: #fff;
    border-radius: 20px;
    padding: 24px 20px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    animation: fadeUp 0.25s ease;
}
.feedback-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a2a2a;
    margin-bottom: 4px;
}
.feedback-sub {
    font-size: 13px;
    color: #8a9a9a;
    margin-bottom: 14px;
}
.feedback-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1.5px solid #e0e8e4;
    border-radius: 10px;
    outline: none;
    background: #fafcfa;
    color: #1a2a2a;
    margin-bottom: 10px;
}
.feedback-textarea {
    width: 100%;
    height: 110px;
    padding: 12px;
    font-size: 15px;
    border: 1.5px solid #e0e8e4;
    border-radius: 12px;
    outline: none;
    background: #fafcfa;
    resize: none;
    font-family: inherit;
    color: #1a2a2a;
}
.feedback-textarea:focus {
    border-color: #1a7a4a;
}
.feedback-error {
    font-size: 13px;
    color: #c0392b;
    margin-top: 6px;
    min-height: 18px;
}
.feedback-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.feedback-btn-cancel {
    flex: 1;
    padding: 12px;
    font-size: 15px;
    border-radius: 12px;
    border: 1.5px solid #e0e8e4;
    background: #fff;
    color: #5a6a6a;
    cursor: pointer;
}
.feedback-btn-submit {
    flex: 1.4;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: #1a7a4a;
    color: #fff;
    cursor: pointer;
}
.feedback-btn-submit:hover { background: #14633b; }
.feedback-btn-submit:disabled { background: #a0c0aa; cursor: not-allowed; }
/* ===== 限次提示弹窗（同一手机号 / 同一部手机每天限领 1 瓶） ===== */
.limit-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 42, 42, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 22px;
}
.limit-modal.show { display: flex; }
.limit-dialog {
    position: relative;
    background: #fff;
    border-radius: 22px;
    padding: 28px 22px 22px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.2);
    animation: limitPop 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes limitPop {
    0% { opacity: 0; transform: scale(0.88) translateY(12px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.limit-icon {
    font-size: 46px;
    line-height: 1;
    margin-bottom: 12px;
}
.limit-title {
    font-size: 19px;
    font-weight: 700;
    color: #1a2a2a;
    margin-bottom: 10px;
}
.limit-text {
    font-size: 15px;
    line-height: 1.65;
    color: #1a7a4a;
    font-weight: 600;
    background: #f0f8f3;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
/* 关闭按钮：右上角 ✕（次要出口，主出口是下面两个选项） */
.limit-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #bfccc7;
    font-size: 15px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    font-family: inherit;
}
.limit-close:hover { background: #f1f5f3; color: #7a8a85; }

/* 选项区：主选项（不喝水继续答题）+ 次选项（意见反馈） */
.limit-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.limit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    background: #1a7a4a;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
}
.limit-btn:hover { background: #14633b; }
.limit-btn-sub {
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
    border: 1.5px solid #d8e3de;
    background: #fff;
    color: #4a5a55;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
}
.limit-btn-sub:hover { background: #f5f9f7; border-color: #b9cdc5; }
