    :root {
      --paper: #f6f1e7;
      --ink: #2d2a24;
      --muted: #6d655a;
      --card-bg: #fffdf8;
      --border: #e6dccb;
      --shadow: 0 18px 40px rgba(32, 24, 16, 0.12);
      --radius: 18px;
      --space: 20px;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
      color: var(--ink);
      background: var(--paper);
      background-image:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.7) 0, rgba(255, 255, 255, 0) 45%),
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.6) 0, rgba(255, 255, 255, 0) 50%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    }

    .page {
      max-width: 1200px;
      margin: 0 auto;
      padding: 36px 20px 80px;
    }

    header {
      padding: 32px 32px 30px;
      border-radius: 22px;
      background: linear-gradient(120deg, #ede2d0 0%, #f7efe2 55%, #efe4d4 100%);
      border: 1px solid #e6d8c5;
      box-shadow: 0 12px 26px rgba(32, 24, 16, 0.12);
      position: relative;
      overflow: hidden;
    }

    header::after {
      content: "";
      position: absolute;
      top: -60px;
      right: -40px;
      width: 180px;
      height: 180px;
      background: radial-gradient(circle, rgba(155, 91, 42, 0.18), rgba(155, 91, 42, 0));
    }

    .brand-mark {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 6px 14px;
      border-radius: 999px;
      background: rgba(155, 91, 42, 0.12);
      color: #8a4b1f;
      font-weight: 600;
      font-size: 0.95rem;
      letter-spacing: 1px;
    }

    .brand-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #9b5b2a;
      display: inline-block;
    }

    .title {
      font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
      font-size: 2.2rem;
      margin: 12px 0 8px;
      letter-spacing: 1px;
    }

    .subtitle {
      margin: 0;
      color: var(--muted);
      font-size: 1rem;
    }

    .line-switch {
      margin-top: 18px;
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
    }

    .line-switch-label {
      color: #6a4d33;
      font-size: 0.92rem;
      font-weight: 600;
      letter-spacing: 0.04em;
    }

    .line-options {
      display: inline-flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      padding: 6px;
      border-radius: 999px;
      background: linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(244, 233, 219, 0.96));
      border: 1px solid #d8c1a8;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 10px 24px rgba(72, 45, 20, 0.12);
    }

    .line-option {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      border-radius: 999px;
      border: 1px solid transparent;
      background: rgba(255, 255, 255, 0.5);
      color: #5e4b39;
      font-size: 0.9rem;
      font-weight: 700;
      cursor: pointer;
      transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
    }

    .line-option-copy {
      display: flex;
      flex-direction: column;
      gap: 2px;
      line-height: 1.1;
    }

    .line-option-name {
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      opacity: 0.82;
    }

    .line-option input {
      margin: 0;
      accent-color: #9b5b2a;
    }

    .line-option:hover {
      transform: translateY(-1px);
    }

    .line-option-line1 {
      border-color: rgba(245, 158, 11, 0.4);
      background: linear-gradient(135deg, rgba(255, 247, 222, 0.96), rgba(255, 236, 205, 0.9));
      color: #8a4b08;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    }

    .line-option-line1 input {
      accent-color: #d97706;
    }

    .line-option-line1:has(input:checked) {
      border-color: rgba(194, 65, 12, 0.72);
      background: linear-gradient(135deg, #f59e0b, #ea580c);
      color: #fffdf8;
      box-shadow:
        0 14px 30px rgba(194, 65, 12, 0.3),
        0 0 0 3px rgba(251, 191, 36, 0.22);
    }

    .line-option-line2 {
      border-color: rgba(56, 189, 248, 0.42);
      background: linear-gradient(135deg, rgba(230, 248, 255, 0.96), rgba(213, 241, 255, 0.9));
      color: #0f5f86;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    }

    .line-option-line2 input {
      accent-color: #0284c7;
    }

    .line-option-line2:has(input:checked) {
      border-color: rgba(14, 116, 144, 0.72);
      background: linear-gradient(135deg, #0ea5e9, #2563eb);
      color: #f8fdff;
      box-shadow:
        0 14px 30px rgba(37, 99, 235, 0.26),
        0 0 0 3px rgba(56, 189, 248, 0.2);
    }

    .line-option-line3 {
      border-color: rgba(34, 197, 94, 0.42);
      background: linear-gradient(135deg, rgba(232, 255, 239, 0.96), rgba(214, 250, 226, 0.9));
      color: #15603b;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    }

    .line-option-line3 input {
      accent-color: #16a34a;
    }

    .line-option-line3:has(input:checked) {
      border-color: rgba(21, 128, 61, 0.72);
      background: linear-gradient(135deg, #22c55e, #16a34a);
      color: #f6fff8;
      box-shadow:
        0 14px 30px rgba(22, 163, 74, 0.24),
        0 0 0 3px rgba(74, 222, 128, 0.18);
    }

    .module-card {
      margin-top: 28px;
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 26px 26px 30px;
      position: relative;
      overflow: hidden;
    }

    .module-card::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 8px;
      background: var(--accent, #9b5b2a);
    }

    .module-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding-bottom: 16px;
      border-bottom: 1px dashed #e4d6c4;
    }

    .module-title {
      font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
      font-size: 1.55rem;
      margin: 0;
    }

    .module-tag {
      padding: 6px 14px;
      border-radius: 999px;
      color: white;
      font-size: 0.85rem;
      background: var(--accent, #9b5b2a);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

    .module-desc {
      margin: 12px 0 20px;
      color: var(--muted);
      font-size: 0.95rem;
    }

    .field-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px 22px;
    }

    .field-grid.full {
      grid-template-columns: 1fr;
    }

    label {
      display: block;
      font-size: 0.92rem;
      margin-bottom: 6px;
      color: #4a433a;
    }

    input[type="text"],
    input[type="number"],
    input[type="file"],
    textarea,
    select {
      width: 100%;
      border: 1px solid #d8cbb8;
      border-radius: 12px;
      padding: 10px 12px;
      background: #fffaf2;
      font-size: 0.95rem;
      color: var(--ink);
      outline: none;
      transition: border 0.2s ease, box-shadow 0.2s ease;
    }

    input[type="text"]:focus,
    input[type="number"]:focus,
    textarea:focus,
    select:focus {
      border-color: var(--accent, #9b5b2a);
      box-shadow: 0 0 0 3px rgba(155, 91, 42, 0.15);
    }

    textarea {
      min-height: 120px;
      resize: vertical;
    }

    .checkbox-group {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      font-size: 0.9rem;
      color: #4a433a;
    }

    .checkbox-group label {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #fff6ea;
      border: 1px solid #ead7c4;
      border-radius: 999px;
      padding: 6px 12px;
      margin: 0;
      cursor: pointer;
    }

    .upload-section {
      margin-top: 16px;
    }

    .upload-input {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      border: 0;
    }

    .upload-card {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 18px 20px;
      border-radius: 16px;
      border: 1.5px dashed #d7c8b3;
      background: linear-gradient(135deg, rgba(255, 248, 236, 0.95), rgba(255, 252, 246, 0.9));
      box-shadow: 0 10px 24px rgba(32, 24, 16, 0.08);
      cursor: pointer;
      transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .upload-card:hover {
      border-color: #b07a4a;
      box-shadow: 0 14px 30px rgba(32, 24, 16, 0.14);
      transform: translateY(-1px);
    }

    .upload-icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: rgba(155, 91, 42, 0.15);
      display: grid;
      place-items: center;
      color: #8a4b1f;
      font-size: 1.3rem;
    }

    .upload-title {
      font-weight: 600;
      margin-bottom: 4px;
      color: #3d352b;
    }

    .upload-desc {
      font-size: 0.88rem;
      color: var(--muted);
    }

    .upload-filename {
      margin-top: 6px;
      font-size: 0.85rem;
      color: #8a4b1f;
    }

    .upload-tools {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 10px;
      flex-wrap: wrap;
    }

    .btn-secondary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid #cdb7a1;
      background: #fff7ec;
      color: #6a3f1f;
      font-size: 0.88rem;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .btn-secondary:hover {
      border-color: #b07a4a;
      box-shadow: 0 8px 18px rgba(32, 24, 16, 0.12);
      transform: translateY(-1px);
    }

    .range-wrap {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    input[type="range"] {
      accent-color: var(--accent, #9b5b2a);
    }

    .hint {
      font-size: 0.82rem;
      color: var(--muted);
      margin-top: 6px;
    }

    .actions {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-top: 18px;
      flex-wrap: wrap;
    }

    .btn-primary {
      border: none;
      border-radius: 999px;
      padding: 12px 22px;
      font-size: 0.95rem;
      font-weight: 600;
      color: #fff;
      background: var(--accent, #9b5b2a);
      cursor: pointer;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .btn-primary:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      box-shadow: none;
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 14px 26px rgba(0, 0, 0, 0.16);
    }

    .status {
      font-size: 0.9rem;
      color: #2f5f3f;
    }

    .error {
      margin-top: 10px;
      color: #b42318;
      font-size: 0.9rem;
    }

    .is-error {
      border-color: #b42318 !important;
      box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12) !important;
    }

    .split {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    @media (max-width: 960px) {
      .field-grid,
      .split {
        grid-template-columns: 1fr;
      }

      .checkbox-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 640px) {
      .module-head {
        flex-direction: column;
        align-items: flex-start;
      }

      .checkbox-group {
        grid-template-columns: 1fr;
      }

      .btn-primary {
        width: 100%;
      }

      .line-options {
        width: 100%;
        justify-content: space-between;
      }
    }
  
