
body{
  width: 100%;
  background: var(--card);
}
.mub{
  margin-top: 20px; color: rgba(0, 0, 0, 0.6); font-size: 20px; line-height: 2;
}
.form-col { width: 700px; max-width: 100%; display: flex; flex-direction: column; margin: auto;}

@media (min-width: 901px) {
  .hero-col { height: 100vh; }
}

.hero-col {
  position: sticky;
  top: 0;
  min-height: 60vh;
}
.hero-col img {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  object-fit: contain;
  object-position: center top;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
}
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  transform: translateX(100%);          
  transition: transform .6s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  transform: translateX(0);             
  pointer-events: auto;
}
.hero-slide.is-prev {
  transform: translateX(-100%);         
}
.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
}
.hero-dots {
  position: absolute;
  left: 10px;
  bottom: 70px;
  z-index: 2;
  display: flex;

  gap: 15px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, .25);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.hero-dot.is-active {
  width: 60px;
  height: 6px;
  margin-top: 2px;
  background: var(--accent);
}

.form-col footer { padding: 18px 0 0; }

.muted {
  color: var(--muted);
  font-size: 16px;
  padding: 0 0 0 4px;
}

.card {
  background: var(--card);
  
  border-radius: 14px;
  padding: 10px 0;
  margin-top: 10px;
}
.card h3{
  margin-bottom: 14px;
  display: flex;
  vertical-align: center;
}
.card-hd{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step {
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 111px;
  background: var(--ink);
  color: var(--card);
  font-size: 22px;
  font-family: "Noto Serif SC", "Songti SC", "PingFang SC", serif;
  font-weight: 600;
  margin-right: 8px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.row > * {
  flex: 1;
}

.tag {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
}

input[type=text],
input[type=number],
select {
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  color: var(--ink);
}


input[type=text] {
  letter-spacing: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}


.sub{
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}


.form-col .sub,
.form-col .muted,
.form-col .hint {
  text-align: justify;
  text-align-last: left;
}
.form-col .sub {
  text-align: right;
  text-align-last: right;
  margin-bottom: 24px;
}
.subject-tabs {
  display: flex;
  overflow: hidden;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 12px;
  border-radius: 12px;
  padding: 5px;
  background: rgba(0, 0, 0, .05);
  
  contain: layout;
  
  position: relative;
}



@property --subject-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.subject-tabs::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 5px;
  background: conic-gradient(from var(--subject-angle),
              rgba(16, 128, 255, 0) 0deg,
              #1080ff 30deg,
              #1080ff 120deg,
              rgba(16, 128, 255, 0) 150deg,
              rgba(16, 128, 255, 0) 360deg);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: subject-angle-spin 2.4s linear infinite;
  pointer-events: none;
}

@keyframes subject-angle-spin {
  to { --subject-angle: 360deg; }
}



@media (prefers-reduced-motion: reduce) {
  .subject-tabs::before { animation: none; }
}


.subject-tab {
  
  flex-direction: column;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  transition: flex-grow .22s cubic-bezier(.2, .8, .2, 1),
              background-color .16s ease,
              color .16s ease;
  min-width: 92px;
  height: 160px;
  border: 0;
  border-radius: 10px;
  background:none;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}


.subject-tab + .subject-tab {
  border-left: 2px solid rgba(0, 0, 0, .05);
  border-radius: 0;
}

.subject-tab:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.subject-tab:last-child{
  border-top-right-radius: 9px;
  border-bottom-right-radius: 9px;
}


.subject-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.subject-tab::before {
  content: "+";
  display: block;
  text-align: center;
  width: 48px;
  height: 48px;
  line-height: 42px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 42px;
  font-weight: 400;
  transition: opacity .15s;
}


.subject-tab.is-active {
  background: none;
  font-weight: 500;
}


.subject-tab.is-internal {
  color: var(--ink);
}



@media (hover: hover) {
  .subject-tab:hover {
    background: var(--card);
    color: var(--accent);
    font-weight: 600;
    border-radius: 7px;
    border-left-color: transparent;
    box-shadow: 0 0 28px 6px rgba(0, 0, 0, .06);
  }
  .subject-tab:hover::after {
    color: var(--accent);
    opacity: .9;
  }
  
  .subject-tab:hover + .subject-tab {
    border-left-color: transparent;
  }

  

  .subject-tabs:has(.subject-tab:hover) .subject-tab {
    flex-grow: .65;
  }
  .subject-tabs:has(.subject-tab:hover) .subject-tab:hover {
    flex-grow: 1.7;
  }
}

.subject-tab:focus-visible {
  background: var(--card);
  color: var(--accent);
  font-weight: 600;
  border-left-color: transparent;
}
.subject-tab:focus-visible::after {
  color: var(--accent);
  opacity: .9;
}

.subject-tab:focus-visible + .subject-tab {
  border-left-color: transparent;
}

.subject-tabs:has(.subject-tab:focus-visible) .subject-tab {
  flex-grow: .65;
}
.subject-tabs:has(.subject-tab:focus-visible) .subject-tab:focus-visible {
  flex-grow: 1.7;
}






.upload-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  pointer-events: none;
}

.upload-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 120px;
  padding: 10px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}

.upload-drop:hover,
.upload-drop:focus-within,
.upload-drop.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.upload-drop.is-dragover {
  border-style: solid;
}

.upload-icon {
  font-size: 48px;
  line-height: 60px;
  margin-bottom: 22px;
  color: var(--accent);
  opacity: .85;
}

.upload-title {
  font-size: 14px;
  font-weight: 600;
}

.upload-sub {
  font-size: 12px;
  color: var(--muted);
}

.upload-formats {
  font-size: 11px;
  color: #a09a8e;
  letter-spacing: .2px;
}

.upload-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 28px;
  border: 1px solid var(--accent);
  border-radius: 20px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.upload-drop:hover .upload-btn,
.upload-drop.is-dragover .upload-btn {
  background: var(--accent);
  color: #fff;
}



.upload-picked {
  display: flex;
  align-items: center;
  max-height: 168px;
  overflow: hidden;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fdfcf9;
}

.upload-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f0efec;
}

.upload-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upload-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-size {
  font-size: 12px;
  color: var(--muted);
}


.upload-subject {
  font-size: 11px;
  font-weight: 700;
  color: #ffe18d;
  letter-spacing: .5px;
}
.upload-subject::before {
  content: '当前科目：';
  color: var(--line);
  font-weight: 500;
}

.upload-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-change,
.upload-remove {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.upload-change {
  padding: 5px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.upload-change:hover {
  border-color: var(--accent);
}

.upload-remove {
  text-align: center;
  width: 32px;
  height: 32px;
  line-height: 28px;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
}

.upload-remove:hover {
  background: #f3e7e7;
  color: var(--accent);
}

.file-error {
  margin-top: 8px;
  font-size: 12px;
  color: var(--accent);
}


.tone-warn {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-radius: 10px;
  background: #fff7e6;
  border: 1px solid #ffd591;
  color: #ad6800;
  font-size: 13px;
  line-height: 1.4;
}
.tone-warn[hidden] { display: none; }
.tone-warn-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fa8c16;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  line-height: 18px;
}
.tone-warn-text { flex: 1 1 auto; min-width: 0; }
.tone-warn-dismiss {
  flex: 0 0 auto;
  border: 1px solid #ffd591;
  background: #fff;
  color: #ad6800;
  border-radius: 14px;
  padding: 4px 30px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.tone-warn-dismiss:hover { border-color: #fa8c16; }



.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}


input[type=text]::placeholder { color: var(--muted); }
#code::placeholder { color: #b8b8b8; }
#code.input--err::placeholder { color: var(--accent); }
#code.input--info::placeholder { color: var(--accent); }
#code.input--ok::placeholder { color: var(--ok); }
/* 新增：点「生成评画报告」未输码时，输入框内提示红字，随呼吸灯一起出现/消失 */
#code.input--flash::placeholder { color: var(--red) !important; font-weight: 600; }
.field {
  position: relative;
  height: 68px;
  line-height: 68px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.field:hover,
#topic:hover { border-color: var(--ink); }

.field:focus-within {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

#topic { height: 50px; }
#topic:focus { border-color: var(--ink); outline: none; box-shadow: inset 0 0 0 1px var(--ink); }
#topic:placeholder-shown { caret-color: transparent; }
#topic:not(:placeholder-shown) { caret-color: var(--ink); }
.field input[type=text] {
  font-size: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  outline: none;
}
.field input[type=text]:placeholder-shown { caret-color: transparent; }
.field input[type=text]:not(:placeholder-shown) { caret-color: var(--ink); }
.field .msg {
  width: 100%;
  text-align: center;
  background-color: var(--red-bg);
  height: 60px;
  line-height: 58px;
}

/* 新增：未输评画码点「生成评画报告」时，评画码输入区红框呼吸闪烁（与人工评画上传区同款） */
#codeField.is-flashing::after {
  content: ""; position: absolute; inset: -3px; pointer-events: none;
  border: 2px solid var(--red); border-radius: 13px;
  animation: code-field-pulse .7s ease-in-out 3;
  z-index: 2;
}
@keyframes code-field-pulse {
  0%, 100% { border-width: 2px; opacity: .35; }
  50%      { border-width: 7px; opacity: 1; }
}


.msg.ok { display: none; }

footer {
  color: var(--muted);
  text-align: left;
  font-size: 11px;
  margin: 10px 0;
  line-height: 1.8;
}




@media (min-width: 760px) {
  .mub{
    font-size: 18px;
    line-height: 1.6;
  }
  .upload-drop {
    min-height: 160px;
    gap: 4px;
  }

  .upload-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 2px;
  }

  .upload-title {
    font-size: 20px;
  }

  .upload-sub {
    font-size: 15px;
  }

  .upload-formats {
    font-size: 13px;
  }

  .upload-btn {
    margin-top: 6px;
    padding: 8px 46px;
    font-size: 15px;
  }

  .upload-thumb {
    flex-basis: 80px;
    width: 80px;
    height: 80px;
  }

  .upload-name {
    font-size: 16px;
  }

  .upload-size,
  .upload-change {
    font-size: 14px;
  }
}




.eval-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .5);
  
}

.eval-card {
  width: 100%;
  max-width: 400px;
  padding: 60px 46px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
  text-align: center;
}

.eval-spinner {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border: 4px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: eval-spin .9s linear infinite;
}

.eval-spinner-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .75;
}


@keyframes eval-spin {
  to { transform: rotate(360deg); }
}


.eval-title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
}

.eval-stage {
  min-height: 20px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--accent);
}

.eval-steps {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.eval-steps li {
  flex: 1 1 0;
  padding-top: 9px;
  border-top: 3px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.eval-steps li.is-active {
  border-top-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.eval-steps li.is-done {
  border-top-color: var(--accent);
  color: var(--accent);
  opacity: .55;
}

.eval-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--accent-soft);
}

.eval-progress span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  animation: eval-sweep 1.4s ease-in-out infinite;
}


@keyframes eval-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(360%); }
}


.eval-timer {
  margin: 10px 0;
  font-size: 12px;
  color: var(--muted);
}

.eval-timer strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.eval-tip {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.eval-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.eval-actions .btn-ghost {
  min-width: 120px;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: 1px solid rgba(0, 0, 0, .1);
  border-color: var(--line);
}

.eval-actions .btn-ghost:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--text);
}

.eval-actions .btn-ghost:disabled {
  opacity: 0.55;
  cursor: default;
}


@media (prefers-reduced-motion: reduce) {
  .eval-spinner,
  .eval-progress span {
    animation: none;
  }
}



@media (max-width: 420px) {
  .eval-card {
    padding: 24px 18px 20px;
  }

  .eval-steps li {
    font-size: 10px;
  }
  .upload-drop {
    min-height: 132px;
    padding: 14px 10px;
  }

  .upload-thumb {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }
}


.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 10px 0 0;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-name {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}

.btn.sm {
  width: auto;
  padding: 8px 18px;
  font-size: 14px;
  margin-top: 0;
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn.ghost:hover {
  background: var(--accent-soft);
}
/* 已迁至 base.css：.modal */

/* 已迁至 base.css：.modal-card */

/* 已迁至 base.css：.modal-card h3 */

/* 已迁至 base.css：.modal-close */

/* 已迁至 base.css：.modal-close:hover */

/* 已迁至 base.css：.modal-hint */

/* 已迁至 base.css：.qr-box */

.qr-img{
  width: 200px;
  margin:16px auto 0;
}
/* 已迁至 base.css：.qr-placeholder */

/* 已迁至 base.css：.qr-placeholder.is-loading::after */


@keyframes qrSpin { to { transform: rotate(360deg); } }


@media (prefers-reduced-motion: reduce) {
  .qr-placeholder.is-loading::after { animation: none; }
}


.qr-url {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
/* 已迁至 base.css：.login-card */

.login-card-title {
  text-align: center;
  margin: 0 0 22px;
}
/* 已迁至 base.css：.login-cols */

/* 已迁至 base.css：.login-left */

/* 已迁至 base.css：.login-right */

/* 已迁至 base.css：.login-divider */

/* 已迁至 base.css：.login-mobile-tabs */


.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.login-logo {
  height: 30px;
  width: auto;
}
.login-brand-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.login-tip {
  font-size: 16px;
  color: var(--muted);
  margin: 18px 0;
  line-height: 1.6;
}
/* 已迁至 base.css：.phone-field, .code-field */

/* 已迁至 base.css：.phone-field:focus-within, .code-field:focus-within */

/* 已迁至 base.css：.phone-prefix */

/* 已迁至 base.css：.login-right input */

/* 已迁至 base.css：.login-right input:-webkit-autofill, .login-right input:-webkit-autofill:hover, .login-right input:-webkit-autofill:focus, .login-right input:-webkit-autofill:active */

/* 已迁至 base.css：.code-field .code-send */

/* 已迁至 base.css：.code-field .code-send:disabled */

/* 已迁至 base.css：.login-tabs */

/* 已迁至 base.css：.login-phone-hint */

/* 已迁至 base.css：.login-submit */

/* 已迁至 base.css：.login-submit:hover */

/* 已迁至 base.css：.login-submit:disabled */

/* 已迁至 base.css：.login-wx-title */

/* 已迁至 base.css：.login-alt */

/* 已迁至 base.css：.login-alt-label */

/* 已迁至 base.css：.login-alt-icons */

/* 已迁至 base.css：.login-alt-icon */

/* 已迁至 base.css：.login-alt-icon:hover */

/* 已迁至 base.css：.login-alt-icon:active */

/* 已迁至 base.css：.icon-qq */

/* 已迁至 base.css：.icon-qq:hover */

/* 已迁至 base.css：.agree-row */

/* 已迁至 base.css：.agree-row input */

/* 已迁至 base.css：.agree-row a */

/* 已迁至 base.css：.agree-row a:hover */

.login-foot {
  color: rgba(0, 0, 0, .3);
  margin:0 0 20px 0;
}


@media (max-width: 600px) {

  .login-card { max-width: 380px; padding: 24px 20px 26px; }
  .login-mobile-tabs {
    display: flex;
    gap: 6px;
    margin: 50px auto 30px;
    background: #f2f3f5;
    border-radius: 10px;
    padding: 4px;
  }
  .login-mtab {
    flex: 1 1 0;
    border: 0;
    background: transparent;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    font-family: inherit;
  }
  .login-mtab.is-active {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  }
  .login-cols { flex-direction: column; gap: 0; }
  .login-divider { display: none; }
  .login-left { padding: 8px 0 4px; }
  .login-right { padding: 4px 4px; }
  .login-brand { margin-bottom: 10px; }
  
  .login-wx-title,
  .login-cols.m-show-wechat .login-right { display: none; }
  .login-cols.m-show-account .login-left { display: none; }
  .login-alt{
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
}


.buy-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}


.buy-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.buy-tab {
  flex: 1;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.buy-tab.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.buy-pane {
  text-align: left;
}

/* 新增：购买弹窗两块内容平铺（去 tab），选中卡片高亮边框 + 圆形勾选 */
.buy-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 4px;
}
.buy-sections .buy-pane {
  position: relative;
  padding: 14px 16px 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.buy-sections .buy-pane:hover { border-color: var(--accent); }
.buy-sections .buy-pane.is-selected {
  background: var(--accent-soft);
}
.buy-pane-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.buy-pane-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  box-sizing: border-box;
  margin-left: auto;
  flex: 0 0 auto;
}
.buy-pane.is-selected .buy-pane-check {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
}
.buy-pane-package .pkg-group-title:first-child { margin-top: 0; }

.buy-pane label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}

.buy-pane input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}

.pkg-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.pkg-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.pkg-card:hover {
  border-color: var(--accent);
}

.pkg-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.pkg-card .pkg-name {
  font-size: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 600;
  color: var(--ink);
}

.pkg-card .pkg-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* 会员权益说明：后台套餐可填，前台卡片展示（新增，不改既有 pkg 布局） */
.pkg-card .pkg-benefit {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--accent, #1080ff);
  white-space: pre-line;
}

.pkg-card .pkg-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.pkg-empty {
  font-size: 13px;
  color: var(--muted);
  text-align: left;
  padding: 6px 0;
}

.buy-amount {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  margin: 12px 0 4px;
}

.buy-amount .amt {
  color: var(--accent);
}

.buy-result {
  margin-top: 16px;
  text-align: center;
}

.buy-result-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.buy-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fdfcf9;
  word-break: break-all;
  margin-bottom: 12px;
}


.card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0;
  padding-top: 14px;
  font-size: 16px;
  color: var(--muted);
}

.btn-link {
  border: 0;
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 0;
  margin-bottom: 8px;
  border-radius: 8px;
  font-family: inherit;
}

.btn-link:hover {
  color: var(--ink);
}


#topbarUser { display: none; align-items: center; gap: 6px; }
#topbarUser #memberName { color: var(--accent); font-weight: 600; white-space: nowrap; }


.buy-result-label { font-weight: 600; margin-bottom: 10px; }
#buyCopyAllBtn { margin: 0 0 12px; }
.buy-codes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.buy-code-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--card, #fff); border: 1px solid var(--line, #e6e8ec);
  border-radius: 10px; padding: 8px 12px;
}
.buy-code-idx {
  flex: 0 0 auto; width: 22px; height: 22px; line-height: 22px; text-align: center;
  background: var(--accent-soft); color: var(--accent); border-radius: 50%;
  font-size: 12px; font-weight: 700;
}
.buy-code-val {
  flex: 1 1 auto; font-family: var(--mono, ui-monospace, monospace);
  font-size: 14px; letter-spacing: .5px; word-break: break-all;
}
.buy-code-row .btn-link { flex: 0 0 auto; }


.my-codes-body { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; max-height: 60vh; overflow-y: auto; }
.my-codes-empty { color: var(--muted); line-height: 1.6; }
.mc-row {
  border: 1px solid var(--line, #e6e8ec); border-radius: 12px; padding: 6px 12px 10px 12px;
  background: var(--card, #fff);
}
.mc-main { display: flex; padding: 10px 0; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mc-code { font-family: var(--mono, ui-monospace, monospace); font-size: 15px; font-weight: 600; letter-spacing: .5px; word-break: break-all; }
.mc-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 4px; }
.mc-meta { font-size: 12px; color: var(--muted); }
.mc-actions { display: flex; gap: 6px; }
.mc-actions .btn-link{ width: 100%; margin: 0; background: var(--accent-soft);}
.mc-badge {
  font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.mc-unused { background: #e7f6ec; color: #1a8a4a; border-color: #bfe6cc; }
.mc-reserved { background: #fff4e0; color: #b9770a; border-color: #f3dca6; }
.mc-used { background: #eef0f3; color: #6b7280; border-color: #dde1e6; }
.mc-expired, .mc-voided, .mc-unknown, .mc-code_not_found, .mc-code_expired {
  background: #fdecec; color: #c0392b; border-color: #f5c6c6;
}
.mc-pending { background: #eef2f7; color: #5a6b82; border-color: #d8e0ea; }

@media (max-width: 600px) {
  .field input[type=text] { font-size: 16px; }
  .field .btn.secondary { font-size: 16px; }
  
  .subject-tabs {
    flex-direction: column;
    overflow: hidden;
    background: none;
    display: flex;
    gap: 6px;
    padding: 0;
  }
  .subject-tab {
    flex-direction:row;
    width: 100%;
    height: auto;
    padding: 30px 20px 30px 0;
    font-size: 36px;
    line-height: 1.2;
    gap: 20px;
    flex: none;
    background: rgba(0, 0, 0, .05);
  }
  .subject-tab::before{
    width: 42px;
    height: 42px;
    line-height: 36px;
    font-size: 36px;
  }
  .subject-tab::after{
    font-size: 20px;
  }
  .subject-tab.is-active{
    background: rgba(0, 0, 0, .05)
  }
  .subject-tab + .subject-tab{
    border: 0;
    border-radius: 10px;
  }
  #uploadPicked{
    max-height:400px;
  }
}



#codeField #verifyBtn { display: none; }
#code:not(:placeholder-shown) ~ #verifyBtn { display: block; }


#codeField.auto-verify { position: relative; }
#codeField.auto-verify #verifyBtn,
#codeField.auto-verify #code:not(:placeholder-shown) ~ #verifyBtn { display: none; }
#codeField.auto-verify #code { padding-right: 58px; }
.code-state {
  position: absolute;
  right: 18px;
  top: 34px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
}
.code-state.is-visible { display: flex; }
.code-state.is-ok { background: var(--ok-bg); color:var(--ok) ; }
.code-state.is-err { background: var(--red-bg); color: var(--red); }
.code-state.is-checking { background: #eef3f8; color: #7a8a9a; }

.code-state svg, .code-state .ico { width: 18px; height: 18px; display: block; }

@media (max-width: 600px) {
  .code-state { right: 12px; width: 32px; height: 32px; font-size: 16px; }
  .code-state svg, .code-state .ico { width: 15px; height: 15px; }
  #codeField.auto-verify #code { padding-right: 48px; }
}



#uploadPicked {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
#uploadPicked .upload-thumb {
  display: block;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  background: #fff;
}
#uploadPicked .upload-meta {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: auto;
  max-width: 58%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
}
#uploadPicked .upload-name {
  color: #fff;
  font-size: 12px;
  max-width: 100%;
  margin: 0 0 0 5px;
}
#uploadPicked .upload-size {
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  white-space: nowrap;
}
#uploadPicked .upload-size::before {
  content: "·";
  margin: 0 6px;
}
#uploadPicked .upload-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  gap: 8px;
}
#uploadPicked .upload-change {
  padding: 5px 16px;
  border-color: transparent;
  background: rgba(255, 255, 255, .94);
}
#uploadPicked .upload-remove {
  background: rgba(255, 255, 255, .94);
  color: #333;
}


.login-providers {
  display: flex;
  gap: 8px;
  margin: 8px 0 12px;
}
/* 已迁至 base.css：.login-tab */

/* 已迁至 base.css：.login-tab.is-active */



.member-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff9a3c, #ff5e62);
  vertical-align: middle;
}
.pkg-card { position: relative; } 
.pkg-card--member {
  border: 1px solid #ffd0a6;
  background: linear-gradient(180deg, #fff7ef, #ffffff);
}
.pkg-badge {
  position: absolute;
  top: -9px;
  right: -9px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff9a3c, #ff5e62);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(255, 94, 98, .35);
}
.pkg-group-title {
  width: 100%;
  margin: 6px 2px 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted, #8a94a6);
  letter-spacing: .04em;
}
.pkg-per {
  margin-top: 4px;
  font-size: 12px;
  color: #ff6b3d;
  font-weight: 600;
}


.nav-burger {
  display: none;                
  position: fixed;
  top: 18px;
  right: 8px;
  z-index: 120;
  width: 50px;
  height: 46px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger-bar {
  display: block;
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-burger[aria-expanded="true"] .nav-burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .nav-burger-bar:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .nav-burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


#navModal.modal {
  background: var(--card, #fff);
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  z-index: 105;               
  animation: navOverlayIn .3s ease both;
}

#navModal .modal-close { display: none; }
#navModal .nav-modal-card {
  max-width: none;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  border-radius: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 22px) 16px 32px;
  background: rgba(0, 0, 0, .03);
  box-shadow: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: navCardIn .3s cubic-bezier(.22, .61, .36, 1) both;
}
.nav-modal-logo { margin-bottom: 26px; }
.nav-modal-logo img { width: 120px; }
#navModal .nav-modal-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#navModal .nav-modal-list li {
  margin: 0;
  opacity: 0;
  transform: translateY(16px);
  animation: navItemIn .42s cubic-bezier(.22, .61, .36, 1) forwards;
}
#navModal .nav-modal-list li:nth-child(1) { animation-delay: .05s; }
#navModal .nav-modal-list li:nth-child(2) { animation-delay: .11s; }
#navModal .nav-modal-list li:nth-child(3) { animation-delay: .17s; }
#navModal .nav-modal-list li:nth-child(4) { animation-delay: .23s; }
#navModal .nav-modal-list li:nth-child(5) { animation-delay: .29s; }
#navModal .nav-modal-list li a {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 55px;
  padding: 0 24px;
  border-radius: 16px;
  font-size: 20px;
  color: var(--ink, #1d1d1f);
  text-decoration: none;
  background: rgba(255, 255, 255, .8);
}
#navModal .nav-modal-list li a:hover { background: rgba(0, 0, 0, .07); color: var(--accent, #1080ff); }
#navModal .nav-modal-list li.bg-blue a { color: var(--card, #fff); background: var(--accent, #1080ff); }
#navModal .nav-modal-list li.bg-blue a:hover { color: var(--card, #fff); }
#navModal .nav-modal-list li svg, #navModal .nav-modal-list li .ico { flex-shrink: 0; }


@keyframes navOverlayIn { from { opacity: 0; } to { opacity: 1; } }


@keyframes navCardIn { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: translateX(0); } }


@keyframes navItemIn { to { opacity: 1; transform: translateY(0); } }



#navModal.nav-closing { animation: navOverlayOut .26s ease forwards; }
#navModal.nav-closing .nav-modal-card { animation: navCardOut .26s cubic-bezier(.4, 0, .2, 1) forwards; }

@keyframes navOverlayOut { to { opacity: 0; } }


@keyframes navCardOut { to { opacity: 0; transform: translateX(36px); } }



@media (prefers-reduced-motion: reduce) {
  #navModal.modal, #navModal .nav-modal-card,
  #navModal.nav-closing, #navModal.nav-closing .nav-modal-card { animation: none !important; }
  #navModal .nav-modal-list li { opacity: 1 !important; transform: none !important; animation: none !important; }
}



@media (max-width: 900px) {
  .nav-burger { display: flex; } 
}




@keyframes subject-plus-hop {
  0% {
    transform: translateY(0) scale(1);
    animation-timing-function: cubic-bezier(.22, .68, .32, 1);
  }
  12% {
    transform: translateY(-8px) scale(1.04);
    animation-timing-function: cubic-bezier(.42, 0, .58, 1);
  }
  30% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}


#subjectTabs .subject-tab:nth-child(1)::before {
  animation: subject-plus-hop 2.1s ease-out 0s infinite;
}
#subjectTabs .subject-tab:nth-child(2)::before {
  animation: subject-plus-hop 2.1s ease-out 0.18s infinite;
}
#subjectTabs .subject-tab:nth-child(3)::before {
  animation: subject-plus-hop 2.1s ease-out 0.36s infinite;
}



@media (prefers-reduced-motion: reduce) {
  #subjectTabs .subject-tab:nth-child(1)::before,
  #subjectTabs .subject-tab:nth-child(2)::before,
  #subjectTabs .subject-tab:nth-child(3)::before {
    animation: none;
  }
}

