:root {
      --bg-warm: #F3E8D5;
      --bg-card: #FFFBF4;
      --bg-card-2: #F8F0E3;
      --accent: #A65A3A;
      --accent-light: #C48A5A;
      --accent-dark: #713C2C;
      --ink: #263C37;
      --jade: #557A70;
      --gold: #C59A53;
      --text-main: #2F302B;
      --text-sub: #6F6A5F;
      --text-light: #9E9689;
      --correct: #5E876C;
      --wrong: #B85D52;
      --border: #E4D4BD;
      --shadow: rgba(74, 57, 36, 0.1);
    }

    * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      background: var(--bg-warm);
      min-height: 100vh;
      color: var(--text-main);
      position: relative;
      overflow-x: hidden;
    }
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      opacity: .28;
      background-image: linear-gradient(90deg, rgba(166,90,58,.035) 1px, transparent 1px), linear-gradient(rgba(166,90,58,.035) 1px, transparent 1px);
      background-size: 32px 32px;
      mask-image: linear-gradient(to bottom, #000, transparent 80%);
    }

    /* 东方纹样装饰：克制的朱砂印与玉色线条，避免卡片堆叠感 */
    .confetti {
      position: fixed;
      width: 9px; height: 9px;
      border-radius: 50%;
      opacity: 0.28;
      pointer-events: none;
      z-index: 0;
    }
    .c1 { background: var(--accent); top: 12%; left: 8%; width: 12px; height: 12px; }
    .c2 { background: var(--jade); top: 22%; right: 12%; width: 10px; height: 10px; }
    .c3 { background: var(--gold); top: 38%; left: 4%; width: 6px; height: 6px; }
    .c4 { background: var(--accent-light); top: 55%; right: 6%; width: 14px; height: 14px; }
    .c5 { background: var(--jade); top: 72%; left: 15%; width: 9px; height: 9px; }
    .c6 { background: var(--gold); top: 85%; right: 18%; width: 11px; height: 11px; }
    .c7 { background: var(--jade); top: 62%; left: 2%; width: 7px; height: 7px; }
    .c8 { background: var(--accent); top: 8%; right: 25%; width: 10px; height: 10px; }

    .app {
      position: relative;
      z-index: 1;
      max-width: 480px;
      margin: 0 auto;
      padding: 20px 16px 40px;
      min-height: 100vh;
    }

    .page { display: none; animation: fadeIn 0.35s ease; }
    .page.active { display: block; }
    #page-login.active {
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-height: calc(100vh - 60px);
      position: relative;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* 顶部状态栏 */
    .header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 0 16px;
    }
    .header .back {
      width: 32px; height: 32px;
      display: flex; align-items: center; justify-content: center;
      font-size: 22px; color: var(--text-main);
      cursor: pointer;
    }
    .header .title {
      font-size: 17px; font-weight: 700;
      color: var(--ink);
      text-align: center; flex: 1;
      letter-spacing: 1px;
    }
    .header .menu {
      width: 32px; height: 32px;
      display: flex; align-items: center; justify-content: center;
      font-size: 20px; color: var(--text-main);
      cursor: pointer;
    }

    /* 卡片通用 */
    .card {
      position: relative;
      background: var(--bg-card);
      border-radius: 18px;
      padding: 24px 20px;
      margin-bottom: 16px;
      box-shadow: 0 10px 28px var(--shadow);
      border: 1px solid rgba(255,255,255,0.72);
    }
    .card::before {
      content: "";
      position: absolute;
      top: 18px;
      left: 0;
      width: 3px;
      height: 28px;
      border-radius: 0 3px 3px 0;
      background: linear-gradient(var(--accent), var(--gold));
      opacity: .85;
    }

    .brand-tag {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 700;
      color: var(--accent);
      letter-spacing: 2px;
      margin-bottom: 10px;
    }
    .brand-tag::before {
      content: "和";
      display: inline-flex;
      width: 24px;
      height: 24px;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--accent);
      color: var(--accent);
      font-family: Georgia, serif;
      font-size: 15px;
      letter-spacing: 0;
      transform: rotate(-8deg);
    }

    .page-title {
      font-size: 26px;
      font-weight: 800;
      color: var(--ink);
      line-height: 1.3;
      letter-spacing: .5px;
      margin-bottom: 12px;
    }

    .page-subtitle {
      font-size: 15px;
      color: var(--text-sub);
      line-height: 1.6;
      margin-bottom: 20px;
      text-align: center;
    }

    /* 登录页国风氛围 */
    #page-login {
      position: relative;
      overflow: hidden;
    }
    .login-card {
      text-align: center;
      z-index: 2;
      background:
        linear-gradient(
          145deg,
          rgba(255, 253, 248, 0.98),
          rgba(250, 244, 235, 0.98)
        );
    }
    .login-ink-wash {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      pointer-events: none;
      opacity: .18;
      background:
        radial-gradient(ellipse 120% 60% at 20% 20%, rgba(168, 110, 70, .10) 0%, transparent 55%),
        radial-gradient(ellipse 100% 80% at 80% 70%, rgba(85, 122, 112, .08) 0%, transparent 55%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(168, 110, 70, .12) 0%, transparent 55%);
      filter: blur(1px);
    }
    .login-moon {
      position: absolute;
      top: 60px;
      right: 28px;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 35%, #fff8e8, #f3e2c6 40%, rgba(243, 226, 198, 0) 70%);
      opacity: .18;
      pointer-events: none;
    }
    .login-crane {
      position: absolute;
      bottom: 120px;
      left: -10px;
      width: 90px;
      height: 60px;
      opacity: .10;
      pointer-events: none;
      background-repeat: no-repeat;
      background-size: contain;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 60'%3E%3Cpath d='M70 30c-8 2-16-2-22-8-4 6-10 10-18 8-6-1-10-6-12-12-3 4-8 6-14 5' stroke='%23557A70' stroke-width='1.4' fill='none'/%3E%3Cpath d='M70 30c-5-2-9-6-10-11 3 2 7 2 10 0-2 4-1 8 0 11z' fill='%23557A70'/%3E%3Cpath d='M22 26c-4 1-8-1-10-4' stroke='%23557A70' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
    }

    .input-group {
      margin-bottom: 18px;
    }
    .input-group label {
      display: block;
      font-size: 14px;
      color: var(--text-sub);
      margin-bottom: 8px;
      font-weight: 500;
    }
    .input-group input {
      width: 100%;
      padding: 16px 18px;
      font-size: 16px;
      border: 1.5px solid var(--border);
      border-radius: 16px;
      background: #fff;
      color: var(--text-main);
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .input-group input:focus {
      border-color: var(--accent-light);
      box-shadow: 0 0 0 3px rgba(176,125,74,0.12);
    }

    .btn {
      display: block;
      width: 100%;
      padding: 17px 20px;
      font-size: 17px;
      font-weight: 700;
      color: #fff;
      background: var(--ink);
      border: none;
      border-radius: 18px;
      cursor: pointer;
      text-align: center;
      transition: transform 0.15s, opacity 0.15s;
    }
    .btn:active { transform: scale(0.98); }
    .btn:disabled { opacity: 0.55; cursor: not-allowed; }
    .btn-secondary {
      background: #fff;
      color: var(--text-main);
      border: 1.5px solid var(--border);
      margin-top: 12px;
    }
    .btn-accent {
      background: linear-gradient(135deg, var(--accent), var(--accent-dark));
      box-shadow: 0 8px 18px rgba(166,90,58,.2);
    }

    /* 答题页 */
    .progress-bar {
      height: 8px;
      background: #EDE0D0;
      border-radius: 4px;
      overflow: hidden;
      margin-bottom: 10px;
    }
    .progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--accent-light), var(--accent));
      border-radius: 4px;
      transition: width 0.3s ease;
    }
    .progress-text {
      font-size: 13px;
      color: var(--text-sub);
      margin-bottom: 20px;
    }

    .question-meta {
      display: inline-block;
      padding: 6px 14px;
      background: #F3E1D5;
      color: var(--accent-dark);
      font-size: 13px;
      font-weight: 600;
      border-radius: 20px;
      margin-bottom: 16px;
    }

    .question-text {
      font-size: 21px;
      font-weight: 700;
      line-height: 1.5;
      color: var(--text-main);
      margin-bottom: 24px;
    }

    .options {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .option {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 18px 16px;
      background: #fff;
      border: 1.5px solid var(--border);
      border-radius: 18px;
      cursor: pointer;
      transition: all 0.18s;
    }
    .option:hover { border-color: var(--accent-light); }
    .option.selected {
      border-color: var(--accent);
      background: #FFF5EB;
      box-shadow: 0 2px 10px rgba(176,125,74,0.1);
    }
    .option.correct {
      border-color: var(--correct);
      background: #E8F5E9;
    }
    .option.wrong {
      border-color: var(--wrong);
      background: #FFEBEE;
    }
    .option-key {
      width: 34px; height: 34px;
      display: flex; align-items: center; justify-content: center;
      border-radius: 50%;
      background: #F5E6D3;
      color: var(--accent);
      font-size: 15px;
      font-weight: 700;
      flex-shrink: 0;
    }
    .option.selected .option-key {
      background: var(--accent);
      color: #fff;
    }
    .option.correct .option-key {
      background: var(--correct);
      color: #fff;
    }
    .option.wrong .option-key {
      background: var(--wrong);
      color: #fff;
    }
    .option-text {
      font-size: 16px;
      line-height: 1.5;
      color: var(--text-main);
      flex: 1;
    }

    .question-actions {
      margin-top: 24px;
      display: flex;
      gap: 12px;
    }
    .question-actions .btn {
      flex: 1;
    }

    /* 结果页 */
    .score-circle {
      width: 150px; height: 150px;
      margin: 10px auto 20px;
      border-radius: 50%;
      background: conic-gradient(var(--accent) 0deg, var(--accent) var(--score-deg, 360deg), #EDE0D0 var(--score-deg, 360deg));
      display: flex; align-items: center; justify-content: center;
      position: relative;
    }
    .score-circle::after {
      content: '';
      position: absolute;
      width: 126px; height: 126px;
      border-radius: 50%;
      background: var(--bg-card);
    }
    .score-number {
      position: relative;
      z-index: 2;
      font-size: 56px;
      font-weight: 800;
      color: var(--accent);
      line-height: 1;
    }
    .score-label {
      text-align: center;
      font-size: 20px;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 6px;
    }
    .score-desc {
      text-align: center;
      font-size: 15px;
      color: var(--text-sub);
      margin-bottom: 24px;
    }
    .score-summary {
      display: flex;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
      margin: 14px auto 16px;
    }
    .score-summary-item {
      min-width: 112px;
      padding: 10px 12px;
      border-radius: 12px;
      background: var(--bg-card-2);
      border: 1px solid var(--border);
      color: var(--text-sub);
      font-size: 12px;
    }
    .score-summary-item b { display: block; margin-top: 3px; font-size: 20px; color: var(--accent-dark); }
    .continue-note { margin-top: 12px; color: var(--jade); font-size: 14px; font-weight: 700; }
    .reflection-review { margin: 18px auto 0; padding: 14px 16px; text-align: left; border-radius: 14px; background: #F1F5EE; border: 1px solid #CBDDCE; color: var(--jade); line-height: 1.7; font-size: 14px; }
    .reflection-review .review-stars { color: var(--gold); font-size: 20px; letter-spacing: 2px; margin-bottom: 4px; }

    .history-line { display: none; }
    .streak-line { display: none; }

    /* 结果页顶部当天信息条 */
    .result-day-info {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 20px;
    }
    .result-day-info .result-day-left {
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .result-day-info .result-day-number {
      width: 48px; height: 48px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--accent-light), var(--accent));
      color: #fff;
      font-size: 22px; font-weight: 800;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 12px rgba(166,90,58,.25);
    }
    .result-day-info .result-day-title {
      font-size: 18px; font-weight: 700;
      color: var(--text-main);
      margin-bottom: 4px;
    }
    .result-day-info .result-day-sub {
      font-size: 13px;
      color: var(--text-sub);
    }
    .result-day-info .result-day-count {
      font-size: 18px; font-weight: 800;
      color: var(--accent-dark);
    }

    /* 结果页主卡片：签到时间放右上角 */
    .result-main-card { position: relative; padding-top: 42px; }
    .result-main-card .sign-line {
      position: absolute;
      top: 14px; right: 16px;
      margin: 0;
      background: #F1F5EE;
      border: 1px solid #CBDDCE;
      color: var(--jade);
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 12px;
      white-space: nowrap;
    }

    /* 微信身份横幅 */
    .identity-banner {
      display: flex;
      align-items: center;
      gap: 12px;
      background: #F3E9D8;
      border: 1.5px solid #E5D5B8;
      border-radius: 14px;
      padding: 12px 14px;
      margin-bottom: 14px;
      text-align: left;
    }
    .identity-avatar {
      width: 42px; height: 42px;
      flex: none;
      background: var(--accent-light);
      color: #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
    }
    .identity-name {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-main);
    }
    .identity-hint {
      font-size: 12px;
      color: var(--text-light);
      margin-top: 2px;
    }
    .identity-switch {
      text-align: center;
      margin-top: 2px;
      font-size: 12px;
    }
    .identity-switch a { color: var(--text-light); }

    .share-qr {
      width: 160px; height: 160px;
      margin: 0 auto 14px;
      background: #fff;
      padding: 12px;
      border-radius: 16px;
      border: 1.5px solid var(--border);
    }
    .share-qr canvas, .share-qr img { width: 100% !important; height: 100% !important; display: block; border-radius: 8px; }
    .qr-link { display: block; text-decoration: none; cursor: pointer; }
    .qr-direct-tip { text-align: center; font-size: 12px; color: var(--jade); margin-top: 8px; }
    .qr-fallback { font-size: 12px; color: var(--text-sub); word-break: break-all; text-align: center; line-height: 1.6; }
    /* 后台生成分享链接 */
    .share-result { margin-top: 14px; text-align: center; }
    .share-url-box { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
    .share-url-box .ai-input { flex: 1; font-size: 12px; min-width: 0; }
    /* 首次扫码内联填名字弹窗 */
    .name-prompt-overlay {
      position: fixed; inset: 0; z-index: 9999;
      display: flex; align-items: center; justify-content: center;
      background: rgba(61, 50, 37, 0.55);
      padding: 24px;
    }
    .name-prompt-card {
      width: 100%; max-width: 340px;
      background: var(--bg-card, #FFF9F0);
      border: 1px solid var(--border, #EADFCB);
      border-radius: 18px;
      padding: 26px 22px 22px;
      box-shadow: 0 12px 40px rgba(0,0,0,0.18);
      text-align: center;
    }
    .name-prompt-title { font-size: 20px; font-weight: 800; color: var(--text-main, #3D3225); }
    .name-prompt-sub { font-size: 13px; color: var(--text-sub, #8A7B66); margin: 8px 0 18px; line-height: 1.6; }
    .name-prompt-label { display: block; text-align: left; font-size: 13px; color: var(--text-main, #3D3225); margin-bottom: 6px; font-weight: 600; }
    .name-prompt-input {
      width: 100%; padding: 13px 14px; font-size: 16px;
      border: 1.5px solid var(--border, #EADFCB); border-radius: 12px;
      background: #fff; color: var(--text-main, #3D3225);
      box-sizing: border-box; outline: none;
    }
    .name-prompt-input:focus { border-color: var(--jade, #4E8C5A); }
    .name-prompt-error { color: #C0392B; font-size: 12px; min-height: 16px; margin-top: 8px; text-align: left; }
    .name-prompt-card .btn { width: 100%; margin-top: 8px; padding: 13px; font-size: 16px; }

    /* 选择其他日期答题弹窗 */
    .day-picker-overlay {
      position: fixed; inset: 0; z-index: 9998;
      display: none; align-items: flex-end; justify-content: center;
      background: rgba(61, 50, 37, 0.55);
    }
    .day-picker-card {
      width: 100%; max-width: 480px;
      background: var(--bg-card, #FFF9F0);
      border: 1px solid var(--border, #EADFCB);
      border-radius: 22px 22px 0 0;
      padding: 18px 18px 26px;
      max-height: 82vh; overflow-y: auto;
      box-shadow: 0 -10px 36px rgba(0,0,0,0.2);
    }
    .day-picker-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
    .day-picker-title { font-size: 18px; font-weight: 800; color: var(--text-main, #3D3225); }
    .day-picker-sub { font-size: 13px; color: var(--text-sub, #8A7B66); line-height: 1.6; margin-bottom: 8px; }
    .dp-month { font-size: 14px; font-weight: 700; color: var(--jade, #4E8C5A); margin: 14px 0 8px; }
    .dp-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .dp-day {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      padding: 12px 4px; border-radius: 14px;
      border: 1.5px solid var(--border, #EADFCB);
      background: #fff; color: var(--text-main, #3D3225);
      font-size: 15px; font-weight: 700; cursor: pointer;
      transition: transform .08s ease;
    }
    .dp-day:active { transform: scale(0.96); }
    .dp-day .dp-label { font-size: 11px; font-weight: 500; color: var(--text-sub, #8A7B66); margin-top: 3px; }
    .dp-day.today { border-color: var(--jade, #4E8C5A); background: var(--jade, #4E8C5A); color: #fff; }
    .dp-day.today .dp-label { color: rgba(255,255,255,0.85); }
    .dp-day.answered { border-color: rgba(78,140,90,0.5); background: #EEF7EE; }

    .share-tip {
      text-align: center;
      font-size: 14px;
      color: var(--text-sub);
      margin-bottom: 14px;
      line-height: 1.6;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 10px 18px;
      background: linear-gradient(135deg, #FFF5D4, #FFECC2);
      border: 1.5px solid #F0D78C;
      border-radius: 24px;
      color: #8B6914;
      font-size: 15px;
      font-weight: 700;
      margin: 0 auto 20px;
    }

    /* 解析列表 */
    .explanation-list {
      margin-top: 20px;
    }
    .exp-item {
      background: #fff;
      border-radius: 18px;
      padding: 18px;
      margin-bottom: 12px;
      border: 1.5px solid var(--border);
    }
    .exp-item-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 10px;
      font-weight: 700;
    }
    .exp-status { font-size: 14px; }
    .exp-status.ok { color: var(--correct); }
    .exp-status.err { color: var(--wrong); }
    .exp-question { font-size: 15px; color: var(--text-main); margin-bottom: 8px; line-height: 1.5; }
    .exp-answer { font-size: 14px; color: var(--accent); margin-bottom: 6px; font-weight: 600; }
    .exp-detail { font-size: 14px; color: var(--text-sub); line-height: 1.6; }

    /* 统计页 */
    .stats-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }
    .stats-title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
    .stats-title::first-letter { color: var(--accent); }
    .card-title { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: .3px; }
    .stats-filter {
      padding: 8px 14px;
      border-radius: 12px;
      border: 1.5px solid var(--border);
      background: #fff;
      font-size: 14px;
      color: var(--text-main);
      outline: none;
    }
    .stat-card {
      background: #fff;
      border-radius: 18px;
      padding: 18px;
      margin-bottom: 12px;
      border: 1.5px solid var(--border);
    }
    .stat-name {
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 6px;
    }
    .stat-score {
      font-size: 14px;
      color: var(--text-sub);
      margin-bottom: 10px;
    }
    .stat-days {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 10px;
    }
    .day-dot {
      width: 28px; height: 28px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 11px;
      font-weight: 600;
      background: #EDE0D0;
      color: var(--text-sub);
    }
    .day-dot.full { background: var(--accent); color: #fff; }
    .day-dot.partial { background: var(--accent-light); color: #fff; }
    .day-dot.miss { background: #EDE0D0; color: var(--text-light); }
    .stat-badge {
      display: inline-block;
      padding: 5px 12px;
      background: #FFF5D4;
      color: #8B6914;
      border-radius: 16px;
      font-size: 13px;
      font-weight: 700;
    }

    .admin-login {
      margin-top: 10px;
    }
    .admin-link {
      text-align: center;
      margin-top: 20px;
    }
    .admin-link a {
      color: var(--text-light);
      font-size: 13px;
      text-decoration: none;
    }

    .loading {
      text-align: center;
      padding: 40px 20px;
      color: var(--text-sub);
    }
    .spinner {
      width: 40px; height: 40px;
      border: 3px solid var(--border);
      border-top-color: var(--accent);
      border-radius: 50%;
      margin: 0 auto 16px;
      animation: spin 1s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    .error-tip {
      background: #FFEBEE;
      color: #C62828;
      padding: 12px 16px;
      border-radius: 12px;
      font-size: 14px;
      margin-bottom: 16px;
      display: none;
    }
    .error-tip.show { display: block; }

    .hidden { display: none !important; }

    footer {
      text-align: center;
      color: var(--text-light);
      font-size: 12px;
      margin-top: 30px;
      padding-bottom: 20px;
    }

    /* 今日战况 */
    .card-title-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
    .card-title { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: .3px; }
    .card-sub { font-size: 13px; color: var(--text-light); }

    .board-item { display: flex; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--border); gap: 10px; }
    .board-item:last-child { border-bottom: none; }
    .board-item.self { background: var(--bg-card-2); border-radius: 10px; margin: 0 -8px; padding: 11px 12px; }
    .board-rank { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--accent-light); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
    .board-name { flex: 1; color: var(--text-main); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .board-score { color: var(--accent-dark); font-weight: 700; font-size: 15px; flex: none; }
    .board-full { color: #C8842B; font-size: 12px; font-weight: 600; margin-left: 6px; }
    .board-me { background: var(--accent); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 8px; margin-left: 6px; }

    .btn-small { padding: 10px 18px; font-size: 14px; flex: none; }
    .loading-sm { color: var(--text-light); font-size: 13px; padding: 12px 2px; text-align: center; }
    .empty-tip { color: var(--text-light); font-size: 13px; padding: 14px 2px; text-align: center; }
    .ai-textarea {
      width: 100%;
      border: 1.5px solid var(--border);
      border-radius: 12px;
      padding: 10px;
      font-size: 14px;
      font-family: inherit;
      background: var(--bg);
      color: var(--text);
      box-sizing: border-box;
      resize: vertical;
      margin-bottom: 10px;
    }
    .ai-file-drop {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      min-height: 66px;
      margin: 8px 0 8px;
      padding: 10px 12px;
      border: 1.5px dashed var(--accent-light);
      border-radius: 12px;
      background: rgba(255,250,242,.72);
      color: var(--text-main);
      cursor: pointer;
    }
    .ai-file-drop.dragover { background: #FFF0DE; border-color: var(--accent); }
    .ai-file-drop input[type="file"] { display: none; }
    .ai-file-icon {
      width: 34px; height: 34px; flex: none; display: grid; place-items: center;
      border-radius: 10px; background: #F1D4B3; color: var(--accent-dark); font-size: 22px; font-weight: 700;
    }
    .ai-file-drop strong, .ai-file-drop span { display: block; }
    .ai-file-drop strong { font-size: 13px; }
    .ai-file-drop span { margin-top: 3px; color: var(--text-light); font-size: 11px; }
    .ai-file-button {
      margin-left: auto; flex: none; border: 1px solid #D9B58D; border-radius: 8px; background: #FFF8EF;
      color: var(--accent-dark); padding: 7px 10px; font-size: 12px; cursor: pointer;
    }
    .ai-file-status { min-height: 18px; color: var(--text-light); font-size: 12px; }
    .ai-file-status.ok { color: #5D8A63; }
    .ai-file-status.error { color: #C05B3C; }
    .ai-options {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 10px;
    }
    .ai-label {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      color: var(--text-light);
    }
    .ai-input {
      border: 1.5px solid var(--border);
      border-radius: 8px;
      padding: 6px 8px;
      font-size: 13px;
      background: var(--bg);
      color: var(--text);
    }
    .hint {
      font-size: 12px;
      color: var(--text-light);
      margin: 8px 0;
      line-height: 1.5;
    }
    .ai-result {
      font-size: 13px;
      margin-top: 4px;
    }
    .ai-day-ok { color: #6b8f3c; padding: 2px 0; }
    .ai-day-fail { color: #c05b3c; padding: 2px 0; }
    .sign-line {
      font-size: 13px;
      font-weight: 600;
      color: #6b8f3c;
      margin: 10px 0 4px;
    }
    .streak-line {
      font-size: 15px;
      font-weight: 700;
      color: #E05B5B;
      margin: 6px 0;
    }
    .board-heart { color: #E87A2E; font-weight: 700; }
    .board-time {
      font-size: 11px;
      color: var(--text-light);
      white-space: nowrap;
      margin-left: 6px;
      flex: none;
    }
    .reflection-answer {
      width: 100%;
      min-height: 132px;
      padding: 14px 16px;
      margin-top: 14px;
      resize: vertical;
      border: 1.5px solid var(--border);
      border-radius: 14px;
      background: #FFFDF8;
      color: var(--text-main);
      font: inherit;
      line-height: 1.7;
      outline: none;
    }
    .reflection-answer:focus { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(85,122,112,.13); }
    .reflection-note { margin-top: 10px; color: var(--jade); font-size: 13px; line-height: 1.6; }

    .special-badge {
      display: inline-block;
      background: #f6e7c8;
      color: #a86a1f;
      font-size: 12px;
      font-weight: 600;
      border-radius: 8px;
      padding: 3px 10px;
      margin-bottom: 8px;
    }
    .badge-special {
      background: #f6e7c8 !important;
      color: #a86a1f !important;
    }
    .board-special {
      background: var(--accent-light);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      padding: 1px 7px;
      border-radius: 8px;
      margin-left: 6px;
    }
    .qm-q {
      border: 1.5px solid var(--border);
      border-radius: 12px;
      padding: 10px;
      margin-bottom: 12px;
      background: var(--bg);
    }
    .qm-q-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 8px;
    }
    .qm-del {
      border: none;
      background: #f3e3dc;
      color: #c05b3c;
      border-radius: 8px;
      padding: 4px 10px;
      font-size: 12px;
      cursor: pointer;
    }
    .qm-textarea {
      width: 100%;
      border: 1.5px solid var(--border);
      border-radius: 8px;
      padding: 8px;
      font-size: 13px;
      font-family: inherit;
      background: var(--bg);
      color: var(--text);
      box-sizing: border-box;
      resize: vertical;
      margin-bottom: 6px;
    }
    .qm-opt-row {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 6px;
    }
    .qm-opt-label {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-light);
      width: 18px;
      text-align: center;
      flex: none;
    }
    .qm-input {
      flex: 1;
      border: 1.5px solid var(--border);
      border-radius: 8px;
      padding: 6px 8px;
      font-size: 13px;
      background: var(--bg);
      color: var(--text);
    }
    select.qm-input { flex: 0 0 72px; }

    /* 题库管理 · 日期网格 */
    .qm-day-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 8px;
      margin: 6px 0 2px;
    }
    .qm-day-cell {
      aspect-ratio: 1;
      border: 1px solid var(--border);
      background: var(--bg-card);
      border-radius: 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform .12s, background .12s, border-color .12s;
      padding: 6px 2px;
    }
    .qm-day-cell:hover { transform: translateY(-1px); background: var(--bg-card-2); border-color: var(--accent-light); }
    .qm-day-cell.has { background: var(--accent-light); color: #fff; border-color: var(--accent-light); }
    .qm-day-cell.has:hover { background: var(--accent); }
    .qm-day-num { font-size: 16px; font-weight: 700; line-height: 1; }
    .qm-day-tag { font-size: 10px; margin-top: 2px; opacity: .85; }
    .qm-toolbar {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 0 14px;
      border-bottom: 1px dashed var(--border);
      margin-bottom: 14px;
    }
    .qm-current-day {
      font-size: 15px;
      font-weight: 700;
      color: var(--accent-dark);
    }
    .btn-sm {
      padding: 5px 12px;
      font-size: 12px;
      white-space: nowrap;
    }
    .myrec-summary-row {
      display: flex;
      gap: 8px;
      margin-top: 12px;
    }
    .myrec-cell {
      flex: 1;
      text-align: center;
      background: var(--bg);
      border: 1.5px solid var(--border);
      border-radius: 12px;
      padding: 10px 4px;
    }
    .myrec-cell b {
      display: block;
      font-size: 18px;
      color: var(--accent-dark);
    }
    .myrec-cell span {
      font-size: 11px;
      color: var(--text-light);
    }
    .myrec-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 2px;
      border-bottom: 1px solid var(--border);
      font-size: 13px;
    }
    .myrec-item:last-child { border-bottom: none; }
    .myrec-day {
      flex: none;
      font-weight: 700;
      color: var(--text-main);
      width: 56px;
    }
    .myrec-info {
      flex: 1;
      color: var(--text-main);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .myrec-info em {
      font-style: normal;
      font-size: 11px;
      color: var(--text-light);
      margin-left: 4px;
    }
    .myrec-unanswered { color: var(--text-light); }
    .member-detail {
      margin: 8px 0;
      padding: 10px;
      background: var(--bg);
      border: 1.5px solid var(--border);
      border-radius: 10px;
      font-size: 12px;
      line-height: 1.9;
    }
    .member-detail .day-tag {
      display: inline-block;
      margin: 2px 4px 2px 0;
      padding: 2px 8px;
      border-radius: 8px;
      background: var(--bg-card-2);
      color: var(--text-main);
    }
    .member-detail .day-tag.full { background: #e8f0d9; color: #6b8f3c; }
    .member-detail .day-tag.special { border: 1px solid #e3b96a; color: #a86a1f; }
    .data-admin-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
    .data-user-card { background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 14px; }
    .data-user-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
    .data-user-head input { flex: 1; min-width: 0; font: inherit; font-weight: 700; color: var(--ink); padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; }
    .data-day-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
    .data-day-row label { width: 46px; color: var(--text-sub); font-size: 12px; }
    .data-day-row input { min-width: 0; padding: 7px 8px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 12px; }
    .data-day-row input.date { flex: 1; }
    .data-day-row input.time { width: 72px; }
    .data-day-row .data-remove { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: #F7E4DE; color: var(--wrong); cursor: pointer; }
    .data-user-actions { display: flex; gap: 8px; margin-top: 12px; }
    .data-user-actions .btn { flex: 1; padding: 10px 12px; font-size: 13px; }

    /* ===== 电脑端适配（屏幕 ≥ 768px）===== */
    @media (min-width: 768px) {
      .app {
        max-width: 820px;
        margin: 32px auto;
        min-height: auto;
        background: var(--bg-warm);
        border: 1px solid var(--border);
        border-radius: 24px;
        box-shadow: 0 12px 48px rgba(93, 64, 32, 0.14);
        padding: 36px 48px 64px;
      }
      .header { padding: 14px 0 32px; }
      .card { padding: 28px 30px; }
      .question-text { font-size: 21px; line-height: 1.75; }
      .option { padding: 17px 20px; font-size: 16px; }
      .btn { min-height: 48px; font-size: 16px; }
      .section-title { font-size: 18px; }
      .daylist-item { padding: 15px 18px; }
      .daylist-icon { width: 38px; height: 38px; font-size: 18px; }
      .daylist-col-meta { width: 96px; }
      .data-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .page.active { animation: none; }
      .btn:hover { transform: translateY(-1px); opacity: 0.92; }
      .option:hover { border-color: var(--accent-light); background: var(--bg-card-2); }
      .board-item:hover, .myrec-item:hover { background: var(--bg-card-2); border-radius: 10px; }
      .ai-options .ai-input:focus, .qm-input:focus { border-color: var(--accent-light); }
    }

    /* 庆祝烟花 & 恭喜浮层 */
    #fireworks-canvas {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      z-index: 999;
      pointer-events: none;
    }
    .congrats-modal {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(60, 40, 20, 0.45);
      backdrop-filter: blur(2px);
    }
    .congrats-card {
      background: linear-gradient(160deg, #FFF8EC, #FFEFD6);
      border-radius: 22px;
      padding: 30px 36px 26px;
      text-align: center;
      box-shadow: 0 18px 60px rgba(93, 64, 32, 0.35);
      max-width: 320px;
      width: 82%;
      animation: congratsPop .45s cubic-bezier(.2, 1.4, .4, 1);
    }
    @keyframes congratsPop {
      from { transform: scale(.5); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }
    .congrats-spark { font-size: 46px; line-height: 1; margin-bottom: 10px; animation: sparkPulse 1s ease-in-out infinite; }
    @keyframes sparkPulse {
      0%, 100% { transform: scale(1); }
      25% { transform: scale(1.18); }
      40% { transform: scale(.96); }
      60% { transform: scale(1.1); }
    }
    .congrats-title { font-size: 21px; font-weight: 800; color: #7A4B22; }
    .congrats-streak { font-size: 17px; color: #A05E2C; margin: 10px 0 6px; }
    .congrats-streak b { font-size: 30px; color: #E87A2E; font-weight: 800; }
    .congrats-sub { font-size: 14px; color: #B0804F; margin-bottom: 18px; }
    .congrats-card .btn { width: 100%; }

    /* 全部题库 · 文件列表风格 */
    .daylist-folder {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
      margin-top: 10px;
    }
    .daylist-head {
      display: flex;
      padding: 10px 14px;
      background: var(--bg-card-2);
      border-bottom: 1px solid var(--border);
      font-size: 12px;
      color: var(--text-light);
      font-weight: 600;
    }
    .daylist-col-name { flex: 1; }
    .daylist-col-meta { width: 80px; text-align: right; }
    .daylist-item {
      display: flex;
      align-items: center;
      padding: 12px 14px;
      border-bottom: 1px solid var(--border);
      text-decoration: none;
      color: inherit;
      cursor: pointer;
      transition: background .12s;
    }
    .daylist-item:last-child { border-bottom: none; }
    .daylist-item:hover { background: var(--bg-card-2); }
    .daylist-item.today { background: #FFF1E0; }
    .daylist-item.today:hover { background: #FFE8CE; }
    .daylist-icon {
      width: 32px; height: 32px;
      flex: none;
      margin-right: 12px;
      background: var(--accent-light);
      color: #fff;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 700;
    }
    .daylist-item.empty .daylist-icon { background: #C8B89A; }
    .daylist-info { flex: 1; }
    .daylist-title { font-size: 15px; font-weight: 700; color: var(--text-main); }
    .daylist-sub { font-size: 12px; color: var(--text-light); margin-top: 2px; }
    .daylist-url { font-size: 11px; color: #B0804F; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; }
    .daylist-meta {
      width: 80px;
      text-align: right;
      font-size: 13px;
      color: var(--accent-dark);
      font-weight: 700;
    }
    .daylist-meta.empty { color: var(--text-light); font-weight: 400; }
    .daylist-badge {
      display: inline-block;
      background: var(--accent);
      color: #fff;
      font-size: 10px;
      padding: 1px 6px;
      border-radius: 6px;
      margin-left: 6px;
      vertical-align: middle;
    }

    /* ========================
       结果页新版东方美学样式
    ======================== */
    #page-result .result-header {
      background: transparent;
      padding: 4px 0 8px;
    }
    #page-result .result-header .back {
      color: var(--accent-dark);
      background: rgba(255,255,255,.55);
      border-radius: 50%;
      font-size: 20px;
    }
    #page-result .result-header .title,
    #page-result .result-header .menu { display: none; }

    .result-scroll {
      padding-bottom: 24px;
    }

    /* 主视觉区 */
    .result-hero {
      position: relative;
      background:
        linear-gradient(
          160deg,
          rgba(255,253,248,.98),
          rgba(250,244,235,.98)
        );
      border-radius: 24px;
      padding: 22px 18px 26px;
      margin-bottom: 16px;
      box-shadow:
        0 14px 40px rgba(93, 64, 32, .10),
        inset 0 0 0 1px rgba(196, 158, 110, .18);
      overflow: hidden;
    }

    /* 装饰：竹叶、祥云 */
    .bamboo-decor {
      position: absolute;
      width: 70px;
      height: 120px;
      opacity: .14;
      pointer-events: none;
      background-repeat: no-repeat;
      background-size: contain;
    }
    .bamboo-decor.bamboo-left {
      left: -12px;
      top: 64px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 120'%3E%3Cpath d='M30 120V10' stroke='%23557A70' stroke-width='2' fill='none'/%3E%3Cpath d='M30 90c8-6 18-8 22-14M30 60c-8-6-18-8-22-14M30 35c8-5 16-6 20-11' stroke='%23557A70' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    }
    .bamboo-decor.bamboo-right {
      right: -8px;
      top: 90px;
      width: 60px;
      transform: scaleX(-1);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 120'%3E%3Cpath d='M30 120V10' stroke='%23557A70' stroke-width='2' fill='none'/%3E%3Cpath d='M30 90c8-6 18-8 22-14M30 60c-8-6-18-8-22-14M30 35c8-5 16-6 20-11' stroke='%23557A70' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    }
    .cloud-decor {
      position: absolute;
      width: 60px;
      height: 24px;
      opacity: .12;
      pointer-events: none;
      background-repeat: no-repeat;
      background-size: contain;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 30'%3E%3Cpath d='M10 22c0-7 6-12 13-12 2-7 9-11 16-10 8 1 14 7 15 14 7 1 12 7 10 14H13c-4 0-7-3-7-7z' fill='%23A65A3A'/%3E%3C/svg%3E");
    }
    .cloud-decor.cloud-1 { top: 110px; right: 22px; }
    .cloud-decor.cloud-2 { top: 56px; left: 60px; width: 42px; }

    /* 国风山水、梅花点缀（极低透明度，仅作氛围） */
    .mountain-decor {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 90px;
      opacity: .13;
      pointer-events: none;
      background-repeat: no-repeat;
      background-size: 100% 100%;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 90' preserveAspectRatio='none'%3E%3Cpath d='M0 90h360V70c-30-8-60-28-90-20-40 10-70 30-110 24-45-7-90-18-160-10v26z' fill='%23557A70'/%3E%3Cpath d='M0 90h360V82c-50-6-100-18-150-10-40 7-80 18-130 12-40-5-60-8-80-4v10z' fill='%237A4B22'/%3E%3C/svg%3E");
    }
    .mountain-decor.mountain-far { opacity: .07; bottom: 12px; transform: scaleY(.72); transform-origin: bottom; }

    /* 墨韵点缀：扩大水墨层次，但保持低对比，不压住成绩 */
    .ink-wash, .ink-branch, .ink-birds, .ink-seal { position: absolute; pointer-events: none; }
    .ink-wash {
      width: 150px; height: 120px; opacity: .12; background-repeat: no-repeat; background-size: contain;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 130'%3E%3Cellipse cx='78' cy='65' rx='62' ry='42' fill='%23516B68' opacity='.24'/%3E%3Cellipse cx='93' cy='52' rx='48' ry='28' fill='%237A4B22' opacity='.16'/%3E%3Cpath d='M15 92c34-12 75-6 130-28' stroke='%23516B68' stroke-width='3' opacity='.32' fill='none'/%3E%3C/svg%3E");
    }
    .ink-wash-left { left: -66px; top: 188px; transform: rotate(-18deg); }
    .ink-wash-right { right: -68px; top: 254px; transform: rotate(24deg) scale(.78); opacity: .09; }
    .ink-branch {
      width: 132px; height: 112px; left: -18px; bottom: 94px; opacity: .14; background-size: contain; background-repeat: no-repeat;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 120'%3E%3Cpath d='M-5 112C28 95 42 65 65 18' stroke='%234D625E' stroke-width='3' fill='none'/%3E%3Cpath d='M40 70c-8-15-18-20-30-23M52 47c12-13 24-16 36-15M28 91c12-5 23-4 32 2' stroke='%234D625E' stroke-width='1.8' fill='none'/%3E%3Ccircle cx='35' cy='55' r='4' fill='%237A4B22'/%3E%3Ccircle cx='57' cy='38' r='3.5' fill='%237A4B22'/%3E%3Ccircle cx='66' cy='85' r='3' fill='%237A4B22'/%3E%3C/svg%3E");
    }
    .ink-birds {
      top: 164px; right: 86px; width: 62px; height: 26px; opacity: .22; background-size: contain; background-repeat: no-repeat;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 30'%3E%3Cpath d='M4 18c6-7 12-7 18 0-6-3-12-3-18 0M38 10c7-8 14-8 21 0-7-3-14-3-21 0' fill='none' stroke='%234D625E' stroke-width='1.8'/%3E%3C/svg%3E");
    }
    .ink-seal {
      right: 18px; bottom: 112px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(164,74,46,.34); color: rgba(164,74,46,.48); font-family: Georgia, serif; font-size: 15px; transform: rotate(7deg); opacity: .8;
    }
    .plum-decor {
      position: absolute;
      right: -16px;
      bottom: 88px;
      width: 86px;
      height: 86px;
      opacity: .08;
      pointer-events: none;
      background-repeat: no-repeat;
      background-size: contain;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M80 20c-10 5-18 14-22 24M60 55c-8-2-16 2-20 8M75 70c-6 4-14 4-20 0' stroke='%237A4B22' stroke-width='1.4' fill='none'/%3E%3Ccircle cx='52' cy='42' r='3' fill='%23C45B5B'/%3E%3Ccircle cx='42' cy='56' r='2.6' fill='%23C45B5B'/%3E%3Ccircle cx='62' cy='62' r='2.4' fill='%23C45B5B'/%3E%3Ccircle cx='70' cy='46' r='2.2' fill='%23C45B5B'/%3E%3C/svg%3E");
    }

    /* 顶部品牌 + 签到状态 */
    .result-top {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 12px;
      margin-bottom: 18px;
    }
    .result-logo {
      height: 36px;
      width: auto;
      max-width: 120px;
      object-fit: contain;
      display: block;
      flex-shrink: 0;
    }
    .result-title {
      margin: 0;
      text-align: center;
      color: var(--accent-dark);
      font-size: 17px;
      font-weight: 800;
      letter-spacing: 1px;
      white-space: nowrap;
    }
    .signin-status {
      display: flex;
      align-items: center;
      gap: 6px;
      min-height: 32px;
      padding: 0 12px;
      border: 1px solid #c8ddd3;
      border-radius: 999px;
      background: linear-gradient(180deg, #f5fbf7, #eaf5ef);
      color: #45746b;
      font-size: 12px;
      font-weight: 600;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .signin-status.practice {
      border-color: #e4d4bd;
      background: linear-gradient(180deg, #fdf8f0, #f8f0e3);
      color: var(--text-sub);
    }
    .signin-status .check-icon {
      width: 16px;
      height: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 5px;
      color: white;
      background: #54bd8a;
      font-size: 10px;
      flex-shrink: 0;
    }

    /* 大分数圆环 */
    .score-area {
      display: flex;
      justify-content: center;
      margin-bottom: 22px;
    }
    .score-ring {
      --score: 10;
      width: 156px;
      height: 156px;
      position: relative;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: conic-gradient(
        var(--accent) calc(var(--score) * 1%),
        #EDE0D0 0
      );
      box-shadow: 0 10px 28px rgba(127, 77, 43, .09);
    }
    .score-ring::before {
      content: '';
      position: absolute;
      inset: 13px;
      border-radius: 50%;
      background: linear-gradient(145deg, #FFFCF7, #FDF7ED);
      box-shadow: inset 0 0 16px rgba(134, 93, 49, .05);
    }
    .score-content {
      position: relative;
      z-index: 2;
      text-align: center;
    }
    .score-number {
      color: var(--accent);
      font-size: 54px;
      line-height: 1;
      font-weight: 800;
      font-family: Georgia, "Times New Roman", serif;
    }
    .score-unit {
      color: var(--text-sub);
      font-size: 15px;
      margin-top: 2px;
    }
    .score-rate {
      margin-top: 4px;
      color: var(--text-light);
      font-size: 12px;
      letter-spacing: 1px;
    }

    /* 四项数据卡片 */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }
    .stat-card {
      min-height: 86px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: linear-gradient(145deg, #FFFCF7, #F8F0E3);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 10px 4px;
      box-shadow: 0 5px 14px rgba(111, 81, 47, .05);
    }
    .stat-icon {
      font-size: 18px;
      margin-bottom: 4px;
    }
    .stat-title {
      color: var(--text-sub);
      font-size: 11px;
      margin-bottom: 5px;
    }
    .stat-value {
      color: var(--accent-dark);
      font-size: 17px;
      font-weight: 700;
      line-height: 1.1;
    }

    /* 学习反馈卡片 */
    .result-feedback-card {
      display: flex;
      align-items: center;
      gap: 16px;
      background: linear-gradient(100deg, rgba(249,241,228,.35), rgba(249,241,228,.95), rgba(249,241,228,.35));
      border: 1px solid rgba(196, 158, 110, .18);
      border-radius: 20px;
      padding: 20px 18px;
      margin-bottom: 16px;
    }
    .feedback-illustration {
      position: relative;
      flex-shrink: 0;
      width: 66px;
      height: 66px;
      display: grid;
      place-items: center;
      background: rgba(255,255,255,.7);
      border-radius: 50%;
    }
    .book-icon {
      font-size: 34px;
      opacity: .9;
    }
    .seal-mini {
      position: absolute;
      left: -2px;
      bottom: -2px;
      width: 22px;
      height: 22px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--accent);
      color: #fff;
      font-family: Georgia, serif;
      font-size: 12px;
      border-radius: 4px;
      transform: rotate(-8deg);
    }
    .feedback-content { flex: 1; }
    .feedback-title {
      font-size: 20px;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 6px;
    }
    .feedback-desc {
      color: var(--text-sub);
      font-size: 14px;
      line-height: 1.7;
    }
    .feedback-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }
    .feedback-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      border-radius: 999px;
      background: #F7F1E3;
      border: 1px solid #E4D4BD;
      color: var(--accent-dark);
      font-size: 12px;
      font-weight: 600;
    }
    .feedback-badge.badge-fire {
      background: #FFF4EB;
      border-color: #F5D0B0;
      color: #C45D1F;
    }
    #page-result .reflection-review {
      margin-top: 12px;
      padding: 12px 14px;
      border-radius: 12px;
      background: #F1F5EE;
      border: 1px solid #CBDDCE;
      color: var(--jade);
      font-size: 13px;
      line-height: 1.7;
      text-align: left;
    }
    #page-result .reflection-review .review-stars {
      color: var(--gold);
      font-size: 18px;
      letter-spacing: 2px;
      margin-bottom: 4px;
    }

    /* 激励文案 */
    .encourage-line {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin: 0 0 16px;
      color: var(--jade);
      font-size: 14px;
      font-weight: 700;
      text-align: center;
    }
    .encourage-deco {
      display: inline-block;
      width: 28px;
      height: 1px;
      background: rgba(71,123,114,.28);
    }

    /* 操作按钮 */
    .result-actions {
      display: flex;
      width: 100%;
      max-width: 560px;
      margin: 0 auto 16px;
      justify-content: center;
      align-items: stretch;
      gap: 12px;
    }
    .result-actions .btn {
      flex: 1 1 0;
      min-width: 0;
      justify-content: center;
      height: 46px;
      margin-top: 0;
      padding: 0 12px;
      border: 0;
      border-radius: 12px;
      cursor: pointer;
      font-size: 15px;
      font-weight: 600;
      transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .result-actions .btn:hover { transform: translateY(-2px); }
    .result-actions .btn-primary {
      color: white;
      background: linear-gradient(135deg, #9b4a2a, #b85d35);
      box-shadow: 0 8px 18px rgba(168,79,44,.18);
    }
    .result-actions .btn-secondary {
      margin-top: 0;
      color: var(--jade);
      border: 1px solid #c9ddd5;
      background: #f3f8f5;
    }
    .result-actions .btn-icon { font-size: 16px; }

    /* 二维码卡片沿用旧样式，但在结果页内微调 */
    #page-result .share-card {
      text-align: center;
      background: linear-gradient(145deg, #FFFCF7, #F8F0E3);
    }
    .daily-entry-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      margin: 10px auto 8px;
      padding: 0 22px;
      border-radius: 12px;
      background: linear-gradient(135deg, #9b4a2a, #b85d35);
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      text-decoration: none;
      box-shadow: 0 6px 14px rgba(168,79,44,.16);
    }
    .daily-entry-link:active { transform: scale(.98); }
    .share-tip { line-height: 1.6; }

    /* 响应式：手机端签到状态单独占一行，避免时间被裁切 */
    @media (max-width: 767px) {
      .result-top {
        grid-template-columns: auto minmax(0, 1fr);
        row-gap: 8px;
        column-gap: 8px;
      }
      .result-title { min-width: 0; font-size: 16px; letter-spacing: .5px; }
      .signin-status {
        grid-column: 1 / -1;
        justify-self: end;
        width: max-content;
        max-width: 100%;
        padding: 0 10px;
        font-size: 12px;
      }
    }
    @media (max-width: 360px) {
      .stats-grid { grid-template-columns: repeat(2, 1fr); }
      .stat-card { min-height: 78px; }
      .result-feedback-card { flex-direction: column; text-align: center; }
      .result-actions { flex-direction: column; }
      .result-actions .btn { flex: none; width: 100%; justify-content: center; }
    }
    @media (min-width: 768px) {
      .result-hero { padding: 28px 32px 34px; }
      .result-title { font-size: 19px; }
      .result-logo { height: 42px; max-width: 140px; }
      .score-ring { width: 180px; height: 180px; }
      .score-number { font-size: 64px; }
      .stats-grid { gap: 14px; }
      .stat-card { min-height: 96px; }
      .stat-title { font-size: 13px; }
      .stat-value { font-size: 20px; }
      .feedback-title { font-size: 22px; }
      .feedback-desc { font-size: 15px; }
    }
