  /* ============ Token & Reset ============ */
  :root {
    --red-deep: #8C1218;
    --red-theme: #A81E24;
    --red-block: #B3282D;
    --red-soft: #D94A4F;
    --gold: #D9A24A;
    --gold-light: #F5D08C;
    --gold-pale: #F8E4B8;
    --cream: #FBF2E3;
    --cream-deep: #F5E6CC;
    --cream-card: #FFF8EE;
    --brown-text: #5C3A2A;
    --brown-light: #8B6B53;
    --brown-pale: #B89B82;
    --page-w: 210mm;
    --page-h: 297mm;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body {
    font-family: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--brown-text);
    background: #e8dcc8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  input, textarea { font-family: inherit; color: inherit; }

  /* ============ Top Toolbar ============ */
  .toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--red-deep), var(--red-theme));
    color: #fff;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(140, 18, 24, 0.3);
  }
  .toolbar-title {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
  }
  .toolbar-title span { color: var(--gold-light); }
  .toolbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .thumb-nav {
    display: flex;
    gap: 6px;
    margin-right: 12px;
  }
  .thumb-btn {
    width: 28px;
    height: 36px;
    border: 1.5px solid var(--gold);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: 'Noto Serif SC', serif;
  }
  .thumb-btn:hover, .thumb-btn.active {
    background: var(--gold);
    color: var(--red-deep);
  }
  .print-btn {
    background: var(--gold);
    color: var(--red-deep);
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Noto Sans SC', sans-serif;
    transition: all 0.2s;
    letter-spacing: 0.5px;
  }
  .print-btn:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 162, 74, 0.4);
  }

  /* ============ Progress Bar ============ */
  .progress-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.2);
    z-index: 101;
  }
  .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    width: 0%;
    transition: width 0.4s ease;
  }
  .progress-tip {
    position: fixed;
    top: 8px;
    right: 16px;
    z-index: 101;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 10px;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  /* ============ Page Container ============ */
  .pages-wrap {
    padding-top: 70px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .page {
    width: var(--page-w);
    height: var(--page-h);
    background: var(--cream);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(92, 58, 42, 0.2);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
  }
  .page.page-red-bg {
    background: var(--red-theme);
  }

  /* ============ Common Components ============ */
  .checkbox-square {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gold);
    border-radius: 3px;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    background: #fff;
    transition: all 0.15s;
  }
  .checkbox-square.checked {
    background: var(--red-theme);
    border-color: var(--red-theme);
  }
  .checkbox-square.checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  .checkbox-square.round {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    border-width: 2px;
  }
  .checkbox-square.round.checked::after {
    left: 5px;
    top: 2px;
  }
  .underline-input {
    border: none;
    background: transparent;
    border-bottom: 1.5px solid var(--brown-pale);
    outline: none;
    padding: 2px 4px;
    font-size: 14px;
    color: var(--brown-text);
  }
  .underline-input:focus,
  .p1-info-item .underline-input:focus {
    border-bottom-color: var(--red-theme);
    background: transparent;
  }
  .underline-input:-webkit-autofill,
  .underline-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--brown-text);
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    transition: background-color 5000s ease-in-out 0s;
  }
  .underline-select {
    border: none;
    background: transparent;
    border-bottom: 1.5px solid var(--brown-pale);
    outline: none;
    padding: 2px 4px;
    font-size: 14px;
    color: var(--brown-text);
    font-family: inherit;
    cursor: pointer;
    appearance: auto;
  }
  .underline-select:focus {
    border-bottom-color: var(--red-theme);
  }

  /* ============ Page 1: Cover ============ */
  .p1-top-banner {
    background: var(--red-theme);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }
  .p1-school {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .p1-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--red-theme);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .p1-badge img { width: 100%; height: 100%; object-fit: contain; }
  .p1-school-name {
    font-family: 'Noto Serif SC', serif;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  }
  .p1-top-tag {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border: 1.5px solid var(--gold);
    border-radius: 20px;
    padding: 5px 16px;
    letter-spacing: 0.5px;
  }

  .p1-hero-area {
    position: relative;
    flex-shrink: 0;
  }
  .p1-hero-area img {
    width: 100%;
    display: block;
  }


  .p1-subtitle-row {
    background: var(--red-theme);
    text-align: center;
    padding: 6px 0 12px;
    flex-shrink: 0;
  }
  .p1-subtitle-line1 {
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 4px;
  }
  .p1-subtitle-line2 {
    color: #fff;
    font-family: 'Noto Serif SC', serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 3px;
  }

  .p1-clue-section {
    flex: 1;
    margin: 0 16px;
    padding: 18px 24px 16px;
    background: var(--cream-card);
    display: flex;
    flex-direction: column;
    border-radius: 12px 12px 0 0;
  }
  .section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .section-title {
    font-family: 'Noto Serif SC', serif;
    color: var(--red-theme);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
  }
  .section-hint {
    color: var(--brown-light);
    font-size: 13px;
  }
  .p1-clue-desc {
    font-size: 13.5px;
    color: var(--brown-text);
    line-height: 1.7;
    margin-bottom: 14px;
  }
  .clue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }
  .clue-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .clue-card:hover {
    border-color: var(--red-soft);
    box-shadow: 0 2px 8px rgba(179, 40, 45, 0.1);
  }
  .clue-card .checkbox-square {
    margin-top: 4px;
  }
  .clue-card-text { display: flex; flex-direction: column; gap: 4px; }
  .clue-card-title {
    font-family: 'Noto Serif SC', serif;
    color: var(--red-theme);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
  }
  .clue-card-sub {
    color: var(--brown-light);
    font-size: 12.5px;
  }
  .p1-tip-bar {
    background: rgba(217, 74, 79, 0.08);
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--brown-text);
  }
  .p1-tip-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
  }

  .p1-bottom-banner {
    background: var(--red-theme);
    padding: 10px 24px 10px;
    flex-shrink: 0;
  }
  .p1-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--cream);
    border-radius: 8px;
    padding: 8px 18px;
    margin-bottom: 10px;
  }
  .p1-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--brown-text);
    font-size: 14px;
    font-weight: 500;
  }
  .p1-info-item .underline-input {
    border-bottom-color: var(--brown-light);
    font-size: 13px;
    width: 100px;
  }
  .p1-info-item .underline-input.short { width: 40px; text-align: center; }
  .p1-info-item .underline-input.date-input { width: 140px; }
  .p1-info-item .class-group {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
  }
  .p1-info-item .underline-select {
    border-bottom-color: var(--brown-light);
    font-size: 13px;
  }
  .p1-page-footer {
    background: var(--red-deep);
    text-align: center;
    color: #fff;
    font-size: 12px;
    line-height: 1.8;
    padding: 8px 0 10px;
    flex-shrink: 0;
  }
  .p1-page-footer .gold-line {
    color: var(--gold-light);
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  /* ============ Page 2: Record Page ============ */
  .page-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 20px 14px;
    background: var(--cream-deep);
    margin: 10px;
    border-radius: 12px;
    border: 2px solid var(--red-block);
    min-height: 0;
  }
  .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-shrink: 0;
    background: var(--cream);
    padding: 10px 14px;
    border-radius: 8px;
  }
  .page-header-title {
    font-family: 'Noto Serif SC', serif;
    color: var(--red-theme);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1.5px;
  }
  .page-header-tag {
    border: 1.5px solid var(--gold);
    color: var(--red-theme);
    background: #fff;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .guide-bar {
    background: var(--cream-deep);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13.5px;
    color: var(--brown-text);
    margin-bottom: 14px;
    line-height: 1.6;
    flex-shrink: 0;
  }
  .guide-bar strong { color: var(--red-theme); font-weight: 600; }

  .record-block {
    background: var(--cream-card);
    border-radius: 10px;
    padding: 14px 16px 12px;
    margin-bottom: 10px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .record-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    background: var(--red-theme);
    border-radius: 0 3px 3px 0;
  }
  .record-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding-left: 8px;
    position: relative;
  }
  .record-number {
    width: 36px;
    height: 36px;
    background: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Noto Serif SC', serif;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
  }
  .record-title {
    font-family: 'Noto Serif SC', serif;
    color: var(--red-theme);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
  }
  .record-tag {
    margin-left: auto;
    border: 1.5px solid var(--gold);
    color: var(--red-theme);
    background: #fff;
    border-radius: 14px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
  }
  .record-question {
    font-size: 13.5px;
    color: var(--brown-text);
    line-height: 1.7;
    margin-bottom: 8px;
    padding-left: 8px;
  }
  .record-feel-label {
    color: var(--red-theme);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    padding-left: 8px;
  }
  .record-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    padding-left: 8px;
    padding-top: 6px;
  }
  .write-line {
    border-bottom: 1.5px solid var(--gold-pale);
    height: 22px;
    width: 100%;
    position: relative;
  }
  .write-line input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--brown-text);
    padding: 0 2px;
    height: 20px;
  }
  .write-line input:focus {
    background: rgba(251, 242, 227, 0.5);
  }

  .page-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 18px;
    background: var(--cream-deep);
    font-size: 12.5px;
    color: var(--brown-light);
    flex-shrink: 0;
    margin: 0 10px 10px;
    border-radius: 0 0 10px 10px;
    border-left: 2px solid var(--red-block);
    border-right: 2px solid var(--red-block);
    border-bottom: 2px solid var(--red-block);
  }
  .page-footer .page-num {
    font-family: 'Noto Serif SC', serif;
    color: var(--red-theme);
    font-weight: 700;
    font-size: 16px;
  }

  /* ============ Page 3: Creation Page ============ */
  .grade-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }
  .grade-card {
    background: var(--cream);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .grade-card-title {
    color: var(--red-theme);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .grade-card-icon {
    color: var(--gold);
    font-size: 16px;
  }
  .grade-card-desc {
    font-size: 12.5px;
    color: var(--brown-text);
    line-height: 1.5;
  }

  .story-forms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
  }
  .story-form-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--cream);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
  }
  .story-form-item:hover {
    border-color: var(--red-soft);
  }
  .story-form-item .checkbox-square {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border-width: 2px;
  }
  .story-form-item .checkbox-square.checked::after {
    left: 4px;
    top: 1px;
    width: 4px;
    height: 7px;
  }

  .creation-box {
    flex: 1 0 auto;
    border: 2px solid var(--gold-pale);
    border-radius: 10px;
    background: #fff;
    margin-bottom: 10px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
  }
  /* 第3页工具较多：固定 A4 高度下内容溢出时内层滚动，避免裁切 */
  #page3 .page-inner { overflow-y: auto; }
  #page3 .text-creation-area { flex-shrink: 0; }
  .creation-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--cream-card);
    border-bottom: 1px solid var(--cream-deep);
    flex-wrap: wrap;
    flex-shrink: 0;
    z-index: 3;
  }
  .creation-tool-btn {
    background: #fff;
    border: 1.5px solid var(--gold);
    color: var(--red-theme);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    white-space: nowrap;
  }
  .creation-tool-btn:hover {
    background: var(--gold);
    color: #fff;
  }
  .creation-tool-btn.active {
    background: var(--red-theme);
    border-color: var(--red-theme);
    color: #fff;
  }
  .creation-tool-btn.danger {
    border-color: var(--red-soft);
    color: var(--red-theme);
  }
  .creation-tool-btn.danger:hover {
    background: var(--red-soft);
    color: #fff;
  }
  .creation-tool-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #fff;
    color: var(--brown-pale);
    border-color: var(--gold-pale);
  }
  .creation-tool-btn:disabled:hover {
    background: #fff;
    color: var(--brown-pale);
    transform: none;
    box-shadow: none;
  }
  .color-picker-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 6px;
    border-left: 1px solid var(--cream-deep);
    margin-left: 2px;
  }
  .color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s;
  }
  .color-swatch:hover {
    transform: scale(1.15);
  }
  .color-swatch.active {
    border-color: var(--red-theme);
    box-shadow: 0 0 0 2px rgba(168, 30, 36, 0.2);
  }
  .brush-size-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 6px;
    border-left: 1px solid var(--cream-deep);
    margin-left: 2px;
  }
  .brush-size-label {
    font-size: 11px;
    color: var(--brown-light);
  }
  .brush-size-slider {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--cream-deep);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
  }
  .brush-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--red-theme);
    cursor: pointer;
  }
  .brush-size-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--red-theme);
    cursor: pointer;
    border: none;
  }
  .creation-canvas-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 392px;
    padding: 16px;
  }
  .creation-canvas {
    position: relative;
    width: 480px;
    height: 360px;
    max-width: 100%;
    background: #fff;
    border: 1px dashed var(--gold-pale);
    border-radius: 4px;
    cursor: default;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  .creation-canvas.drawing {
    cursor: crosshair;
    touch-action: none;
  }
  .creation-canvas-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
    pointer-events: none;
    user-select: none;
  }
  .creation-placeholder {
    color: var(--brown-pale);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 1;
  }
  .creation-placeholder.hidden {
    display: none;
  }
  .attach-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: var(--cream-card);
    border: 1.5px solid var(--gold-pale);
    border-top: none;
    border-radius: 0 0 10px 10px;
    margin-top: -11px;
    margin-bottom: 10px;
  }
  .attach-list-title {
    color: var(--red-theme);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .attach-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--cream-deep);
    border-radius: 8px;
    position: relative;
    transition: all 0.15s;
  }
  .attach-item:hover {
    border-color: var(--gold);
  }
  .attach-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--cream-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: var(--red-theme);
  }
  .attach-icon img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
  }
  .attach-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .attach-name {
    font-size: 13px;
    color: var(--brown-dark);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .attach-size {
    font-size: 11px;
    color: var(--brown-light);
  }
  .attach-del {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--brown-pale);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
  }
  .attach-del:hover {
    background: var(--red-soft);
    color: #fff;
  }
  /* ============ 创作区联动：空提示 / 录音 / 视频 ============ */
  .creation-empty-hint {
    display: block;
    padding: 20px 14px;
    text-align: center;
    font-size: 13px;
    color: var(--brown-light);
    background: var(--cream-deep);
    border-radius: 8px;
    margin-bottom: 10px;
  }
  .creation-tool-btn.recording {
    background: var(--red-soft);
    color: #fff;
    border-color: var(--red-soft);
    animation: recPulse 1.2s ease-in-out infinite;
  }
  @keyframes recPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(217, 74, 79, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(217, 74, 79, 0); }
  }
  .record-list, .video-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    background: var(--cream-card);
    border: 1.5px solid var(--gold-pale);
    border-radius: 10px;
    margin-top: 10px;
  }
  .record-item, .video-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--cream-deep);
    border-radius: 8px;
  }
  .record-item audio {
    flex: 1;
    min-width: 0;
    height: 32px;
  }
  .video-item video {
    max-width: 200px;
    max-height: 110px;
    border-radius: 6px;
    background: #000;
  }
  .record-item .attach-name, .video-item .attach-name {
    flex: 1;
    min-width: 0;
  }
  .video-loading {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    background: var(--cream-card);
    border-radius: 6px;
    min-width: 0;
  }
  .video-loading-bar {
    flex: 1;
    height: 4px;
    background: var(--gold-pale);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
  }
  .video-loading-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    animation: loadSlide 1.2s ease-in-out infinite;
  }
  @keyframes loadSlide {
    0% { left: -40%; }
    100% { left: 100%; }
  }
  .video-loading-text {
    font-size: 12px;
    color: var(--brown-light);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .text-creation-label {
    color: var(--red-theme);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
  }
  .text-creation-area {
    margin-bottom: 12px;
  }
  .text-creation-wrap {
    position: relative;
    background: #fff;
    border: 1.5px solid var(--gold-pale);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .text-creation-wrap:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(217, 162, 74, 0.15);
  }
  .text-creation-input {
    display: block;
    width: 100%;
    border: none;
    outline: none;
    resize: vertical;
    min-height: 120px;
    max-height: 360px;
    font-size: 15px;
    line-height: 2;
    color: var(--brown-text);
    padding: 10px 14px 26px;
    font-family: inherit;
    background-color: transparent;
    /* 稿纸横线效果：随文字行高对齐 */
    background-image: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(2em - 1px),
      var(--gold-pale) calc(2em - 1px),
      var(--gold-pale) 2em
    );
    background-size: 100% 2em;
    background-position: 0 10px;
    background-repeat: repeat-y;
  }
  .text-creation-input::placeholder { color: var(--brown-pale); }
  .text-creation-counter {
    position: absolute;
    right: 10px;
    bottom: 5px;
    font-size: 11px;
    color: var(--brown-pale);
    pointer-events: none;
    background: rgba(255,255,255,0.85);
    padding: 1px 6px;
    border-radius: 8px;
  }
  .text-creation-counter span {
    color: var(--red-theme);
    font-weight: 700;
  }

  .recommend-section {
    background: var(--cream-deep);
    border-radius: 10px;
    padding: 12px 16px 14px;
    flex-shrink: 0;
    margin-top: 6px;
  }
  .recommend-label {
    color: var(--red-theme);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .recommend-star { color: var(--gold); font-size: 16px; }
  .recommend-input {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid var(--brown-pale);
    background: transparent;
    outline: none;
    font-size: 14px;
    padding: 4px 2px;
    color: var(--brown-text);
  }
  .recommend-input:focus {
    border-bottom-color: var(--red-theme);
  }

  /* ============ Page 4: Map & Check-in Page ============ */
  .p4-top-banner {
    background: var(--red-theme);
    padding: 14px 28px 18px;
    flex-shrink: 0;
    text-align: center;
  }
  .p4-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .p4-school { display: flex; align-items: center; gap: 10px; }
  .p4-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--red-theme);
  }
  .p4-badge img { width: 100%; height: 100%; object-fit: contain; }
  .p4-school-name {
    font-family: 'Noto Serif SC', serif;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
  }
  .p4-top-tag {
    color: #fff;
    font-size: 13px;
    border: 1.5px solid var(--gold);
    border-radius: 20px;
    padding: 5px 14px;
  }
  .p4-big-title {
    font-family: 'Noto Serif SC', serif;
    color: var(--gold-light);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-bottom: 4px;
  }
  .p4-sub-title {
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 500;
  }

  .p4-map-area {
    background: var(--red-theme);
    padding: 12px 20px 8px;
    flex-shrink: 0;
  }
  .p4-map-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(92, 58, 42, 0.1);
  }
  .p4-map-wrap img {
    width: 100%;
    border-radius: 8px;
    display: block;
  }
  .p4-map-legend {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--brown-text);
    background: var(--cream-card);
    padding: 3px 8px;
    border-radius: 12px;
  }
  .legend-num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--red-theme);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
  }

  .p4-checkin-section {
    flex: 1;
    background: var(--red-theme);
    padding: 8px 20px 14px;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .p4-checkin-card {
    background: var(--cream-card);
    border-radius: 12px 12px 0 0;
    padding: 16px 20px 14px;
    flex: 1;
  }
  .checkin-title {
    font-family: 'Noto Serif SC', serif;
    color: var(--red-theme);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
  }
  .checkin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
  }
  .checkin-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--brown-text);
  }
  .checkin-item .underline-input {
    flex: 1;
    max-width: 140px;
  }
  .checkin-item .underline-input.tiny { flex: 0 0 auto; width: 40px; max-width: 40px; text-align: center; }

  .star-color-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .star-label {
    font-size: 13.5px;
    color: var(--brown-text);
    flex-shrink: 0;
  }
  .stars-group {
    display: flex;
    gap: 6px;
  }
  .star-item {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.15s;
  }
  .star-item:hover {
    transform: scale(1.15);
  }
  .star-item svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .p4-bottom-banner {
    background: var(--red-deep);
    padding: 12px 28px 14px;
    flex-shrink: 0;
  }
  .p4-city-title {
    text-align: center;
    color: var(--gold-light);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 10px;
  }
  .p4-city-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
  }
  .city-tag {
    padding: 8px 24px;
    border-radius: 24px;
    font-family: 'Noto Serif SC', serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1.5px solid var(--gold);
  }
  .city-tag.light {
    background: var(--gold);
    color: var(--red-deep);
  }
  .city-tag.dark {
    background: var(--red-theme);
    color: var(--gold-light);
  }
  .p4-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .p4-footer-slogan {
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.5px;
  }
  .p4-footer-num {
    color: #fff;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 16px;
  }

  /* ============ Print Styles ============ */
  @media print {
    @page {
      size: A4 portrait;
      margin: 0;
    }
    body { background: #fff; }
    .toolbar { display: none !important; }
    .pages-wrap { padding: 0 !important; gap: 0 !important; }
    .page {
      width: 210mm !important;
      height: 297mm !important;
      box-shadow: none !important;
      border-radius: 0 !important;
      page-break-after: always;
      break-after: page;
    }
    .page:last-child {
      page-break-after: auto;
      break-after: auto;
    }
    .checkbox-square.checked { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .underline-input { border-bottom: 1.5px solid #999 !important; }
    .write-line { border-bottom-color: #cca !important; }
    input, textarea { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .text-creation-input {
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;
      border: 1px solid #cca !important;
      height: auto !important;
      max-height: none !important;
      overflow: visible !important;
    }
    #page3 .page-inner { overflow: visible !important; }
  }

  /* ============ Mobile Responsive ============ */
  @media (max-width: 760px) {
    :root {
      --page-w: 100vw;
    }

    .pages-wrap {
      padding-top: 56px;
      padding-bottom: 24px;
      gap: 12px;
    }

    .page {
      width: 100%;
      height: auto;
      min-height: 100vh;
      border-radius: 0;
      box-shadow: none;
    }

    /* Toolbar */
    .toolbar {
      padding: 8px 12px;
    }
    .toolbar-title {
      font-size: 14px;
      letter-spacing: 0.5px;
      white-space: nowrap;
    }
    .thumb-nav {
      gap: 4px;
      margin-right: 8px;
    }
    .thumb-btn {
      width: 24px;
      height: 28px;
      font-size: 10px;
      border-radius: 2px;
      min-height: 28px;
    }
    .print-btn {
      padding: 6px 12px;
      font-size: 12px;
      min-height: 32px;
    }

    /* Page 1 cover */
    .p1-top-banner {
      padding: 10px 16px;
      flex-direction: column;
      gap: 8px;
      text-align: center;
    }
    .p1-school {
      flex-direction: column;
      gap: 6px;
    }
    .p1-badge {
      width: 44px;
      height: 44px;
    }
    .p1-school-name {
      font-size: 16px;
    }
    .p1-top-tag {
      font-size: 12px;
      padding: 4px 12px;
    }
    .p1-subtitle-line1 {
      font-size: 12px;
      letter-spacing: 1.5px;
    }
    .p1-subtitle-line2 {
      font-size: 15px;
      letter-spacing: 2px;
    }
    .p1-hero-area img {
      width: 100%;
      height: auto;
    }
    .p1-bottom-banner {
      padding: 10px 14px;
    }
    .p1-info-row {
      flex-direction: column;
      gap: 8px;
      padding: 10px 14px;
      align-items: flex-start;
    }
    .p1-info-item {
      font-size: 13px;
      width: 100%;
      justify-content: space-between;
    }
    .p1-info-item .underline-input {
      width: auto;
      flex: 1;
      min-width: 0;
      max-width: 180px;
    }
    .p1-info-item .date-group {
      flex: 1 1 auto;
      min-width: 0;
      max-width: 180px;
      margin-left: auto;
      display: inline-flex;
      align-items: baseline;
      gap: 4px;
    }
    .p1-info-item .class-group {
      flex: 1 1 auto;
      min-width: 0;
      max-width: 180px;
      margin-left: auto;
      display: inline-flex;
      align-items: baseline;
      gap: 2px;
    }
    .p1-info-item .underline-input.short {
      flex: 0 0 auto;
      width: 40px;
      max-width: 40px;
    }
    .p1-info-item .underline-input.date-input {
      flex: 0 0 auto;
      width: 140px;
      max-width: 140px;
    }
    .p1-page-footer {
      font-size: 11px;
      padding: 6px 12px 8px;
    }

    /* Section & Inner */
    .page-inner {
      padding: 14px 16px !important;
      margin: 8px !important;
    }
    .page-header {
      flex-direction: column;
      gap: 6px;
      text-align: center;
      padding: 8px 12px;
    }
    .page-header-title {
      font-size: 18px;
      letter-spacing: 1px;
    }
    .page-header-tag {
      font-size: 11.5px;
      padding: 3px 10px;
    }
    .guide-bar {
      padding: 8px 12px;
      font-size: 12.5px;
      margin-bottom: 10px;
    }
    .section-title {
      font-size: 17px !important;
    }
    .section-hint {
      font-size: 12px !important;
    }

    /* Record blocks (page 2) */
    .record-block {
      padding: 12px 12px 10px 14px;
      margin-bottom: 10px;
    }
    .record-block::before {
      width: 3px;
      top: 12px;
      bottom: 12px;
    }
    .record-block-header {
      flex-wrap: wrap;
      gap: 8px;
      padding-left: 6px;
    }
    .record-number {
      width: 30px;
      height: 30px;
      font-size: 15px;
      border-radius: 6px;
    }
    .record-title {
      font-size: 16px;
    }
    .record-tag {
      margin-left: 0;
      font-size: 11px;
      padding: 2px 8px;
    }
    .record-question {
      font-size: 12.5px;
      line-height: 1.6;
      padding-left: 6px;
    }
    .record-feel-label {
      font-size: 13px;
      padding-left: 6px;
    }
    .record-lines {
      gap: 12px;
      padding-left: 6px;
    }

    /* Clue cards grid */
    .clue-grid {
      grid-template-columns: 1fr;
      gap: 8px;
    }
    .clue-card {
      padding: 12px 14px;
      min-height: 44px;
    }
    .clue-card .checkbox-square {
      width: 20px;
      height: 20px;
      min-width: 20px;
    }
    .clue-card-title {
      font-size: 15px;
    }
    .clue-card-sub {
      font-size: 12px;
    }

    /* Grade cards */
    .grade-cards {
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .grade-card {
      padding: 10px 12px;
      min-height: 44px;
    }
    .grade-card-title {
      font-size: 13px;
    }
    .grade-card-desc {
      font-size: 11.5px;
      line-height: 1.4;
    }

    /* Story form items */
    .story-forms {
      gap: 6px;
    }
    .story-form-item {
      padding: 6px 12px;
      font-size: 12px;
      min-height: 36px;
    }
    .story-form-item .checkbox-square {
      width: 18px;
      height: 18px;
    }

    /* Creation box */
    .creation-box {
      min-height: 180px;
    }
    .creation-canvas-wrap {
      min-height: 0;
      padding: 10px;
    }
    .creation-toolbar {
      gap: 6px;
      padding: 8px 10px;
    }
    .creation-tool-btn {
      padding: 6px 10px;
      font-size: 11.5px;
      min-height: 36px;
    }
    .color-picker-row {
      gap: 3px;
      padding-left: 4px;
      margin-left: 0;
    }
    .color-swatch {
      width: 22px;
      height: 22px;
    }
    .brush-size-row {
      padding-left: 4px;
      margin-left: 0;
    }
    .brush-size-slider {
      width: 50px;
    }
    .creation-placeholder {
      font-size: 13px;
    }

    /* Attach list */
    .attach-list {
      padding: 8px 10px;
      gap: 6px;
      margin-top: -11px;
    }
    .attach-list-title {
      font-size: 11px;
    }
    .attach-item {
      padding: 6px 8px;
      gap: 8px;
    }
    .attach-icon {
      width: 32px;
      height: 32px;
      font-size: 14px;
    }
    .attach-icon img {
      width: 32px;
      height: 32px;
    }
    .attach-name {
      font-size: 12px;
    }
    .attach-size {
      font-size: 10.5px;
    }
    .attach-del {
      width: 26px;
      height: 26px;
      min-height: 26px;
      font-size: 13px;
    }

    /* Text creation area */
    .text-creation-label {
      font-size: 13px;
    }
    .text-creation-input {
      font-size: 14px;
      line-height: 2;
      padding: 8px 12px 24px;
      background-position: 0 8px;
    }

    /* Recommend section */
    .recommend-section {
      padding: 10px 12px 12px;
    }
    .recommend-label {
      font-size: 13px;
    }
    .recommend-input {
      font-size: 14px;
      min-height: 28px;
    }

    /* Footer */
    .page-footer {
      padding: 10px 20px 12px !important;
      font-size: 12px !important;
    }
    .page-footer .page-num {
      font-size: 14px;
    }

    /* Page 4 map */
    .p4-top-banner {
      padding: 10px 16px 8px;
    }
    .p4-top-row {
      flex-direction: column;
      gap: 6px;
      align-items: flex-start;
    }
    .p4-school {
      flex-direction: row;
    }
    .p4-badge {
      width: 40px;
      height: 40px;
    }
    .p4-school-name {
      font-size: 14px;
    }
    .p4-top-tag {
      font-size: 11.5px;
      padding: 3px 10px;
      align-self: flex-start;
    }
    .p4-big-title {
      font-size: 28px !important;
      text-align: center;
    }
    .p4-sub-title {
      font-size: 13px !important;
      text-align: center;
    }
    .p4-map-area {
      padding: 8px 14px 6px;
    }
    .p4-map-wrap {
      padding: 8px;
    }
    .p4-map-legend {
      gap: 6px;
      margin-top: 8px;
    }
    .legend-item {
      font-size: 10.5px;
      padding: 2px 6px;
    }
    .legend-num {
      width: 16px;
      height: 16px;
      font-size: 10px;
    }

    /* Check-in section */
    .p4-checkin-section {
      padding: 6px 14px 12px;
    }
    .p4-checkin-card {
      padding: 12px 14px 12px;
    }
    .checkin-title {
      font-size: 17px;
      margin-bottom: 8px;
    }
    .checkin-list {
      gap: 8px;
      margin-bottom: 12px;
    }
    .checkin-item {
      font-size: 12.5px;
      gap: 8px;
      align-items: flex-start;
    }
    .checkin-item .checkbox-square {
      margin-top: 2px;
      width: 18px;
      height: 18px;
      min-width: 18px;
    }
    .checkin-item .underline-input {
      max-width: none;
    }
    .star-color-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
    .star-label {
      font-size: 12.5px;
    }
    .stars-group {
      gap: 8px;
    }
    .star-item {
      width: 28px;
      height: 28px;
      min-height: 28px;
    }

    /* Bottom banner page 4 */
    .p4-bottom-banner {
      padding: 10px 16px 12px;
    }
    .p4-city-title {
      font-size: 13px !important;
    }
    .p4-city-tags {
      gap: 6px !important;
      margin: 8px 0 !important;
    }
    .city-tag {
      font-size: 11px !important;
      padding: 4px 10px !important;
    }
    .p4-footer-slogan {
      font-size: 12px !important;
    }
    .p4-footer-num {
      font-size: 13px !important;
    }
  }

  @media (max-width: 480px) {
    .grade-cards {
      grid-template-columns: 1fr;
    }
    .toolbar-title {
      font-size: 12.5px;
      max-width: 90px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: #e8dcc8; }
  ::-webkit-scrollbar-thumb { background: var(--brown-pale); border-radius: 5px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--brown-light); }

  /* Submit section */
  .submit-section {
    display: flex;
    justify-content: center;
    padding: 20px 24px 40px;
  }
  .submit-btn {
    background: linear-gradient(135deg, var(--red-deep), var(--red-theme));
    color: #fff;
    border: none;
    padding: 14px 60px;
    border-radius: 32px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Noto Serif SC', 'Noto Sans SC', serif;
    letter-spacing: 4px;
    box-shadow: 0 4px 16px rgba(140, 18, 24, 0.35);
    transition: all 0.2s;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(140, 18, 24, 0.45);
  }
  .submit-btn:active {
    transform: translateY(0);
  }
  .submit-btn.submitted {
    background: linear-gradient(135deg, #8a8a8a, #a6a6a6);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
  }
  .submit-btn .check-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Modal */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(92, 58, 42, 0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
  }
  .modal-overlay.show {
    display: flex;
  }
  .modal-box {
    background: var(--cream);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 16px 48px rgba(92, 58, 42, 0.3);
    border: 2px solid var(--gold);
  }
  .modal-header {
    background: linear-gradient(135deg, var(--red-deep), var(--red-theme));
    color: #fff;
    padding: 18px 24px;
    border-radius: 14px 14px 0 0;
    text-align: center;
    position: relative;
  }
  .modal-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
  }
  .modal-subtitle {
    font-size: 13px;
    margin-top: 4px;
    color: var(--gold-light);
    letter-spacing: 0.5px;
  }
  .modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
  }
  .modal-close:hover {
    background: rgba(255,255,255,0.3);
  }
  .modal-body {
    padding: 20px 24px;
  }
  .summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .summary-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--gold-pale);
  }
  .summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .success-notice {
    margin-top: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFF8E1, #FFF3CD);
    border: 1.5px solid #E8C547;
    border-radius: 10px;
    font-size: 13px;
    color: #5C4400;
    line-height: 1.8;
    text-align: center;
    font-family: 'Noto Serif SC', serif;
  }
  .summary-label {
    color: var(--red-theme);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    width: 80px;
    font-family: 'Noto Serif SC', serif;
  }
  .summary-value {
    color: var(--brown-text);
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
    word-break: break-all;
  }
  .summary-value.empty {
    color: var(--brown-pale);
    font-style: italic;
  }
  .summary-tag {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--gold);
    color: var(--red-theme);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 6px;
    margin-bottom: 4px;
    font-weight: 500;
  }
  .missing-list {
    background: rgba(217, 74, 79, 0.08);
    border: 1px solid rgba(217, 74, 79, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 14px;
  }
  .missing-list-title {
    color: var(--red-theme);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .missing-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .missing-list li {
    color: var(--brown-text);
    font-size: 13px;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    cursor: pointer;
  }
  .missing-list li:hover {
    color: var(--red-theme);
  }
  .missing-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--red-theme);
    font-weight: 700;
  }
  .modal-footer {
    padding: 16px 24px 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .modal-btn {
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
  }
  .modal-btn.primary {
    background: linear-gradient(135deg, var(--red-deep), var(--red-theme));
    color: #fff;
    box-shadow: 0 2px 8px rgba(140, 18, 24, 0.3);
  }
  .modal-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(140, 18, 24, 0.4);
  }
  .modal-btn.secondary {
    background: #fff;
    color: var(--red-theme);
    border: 1.5px solid var(--gold);
  }
  .modal-btn.secondary:hover {
    background: var(--gold-pale);
  }

  @media (max-width: 480px) {
    .submit-section {
      padding: 16px 20px 32px;
    }
    .submit-btn {
      width: 100%;
      justify-content: center;
      padding: 14px 40px;
      font-size: 16px;
      letter-spacing: 3px;
    }
    .modal-box {
      max-width: 100%;
    }
    .modal-header {
      padding: 14px 18px;
    }
    .modal-title {
      font-size: 18px;
    }
    .modal-body {
      padding: 14px 18px;
    }
    .summary-label {
      width: 68px;
      font-size: 13px;
    }
    .summary-value {
      font-size: 13px;
    }
    .modal-footer {
      padding: 12px 18px 16px;
    }
    .modal-btn {
      flex: 1;
      justify-content: center;
      min-height: 44px;
    }
  }