:root {
  --sidebar-bg: #293d63;
  --sidebar-separator: #30466e;
  --sidebar-active: #3b74da;
  --page-bg: #f5f7fb;
  --surface: #ffffff;
  --border: #d8dee8;
  --border-soft: #e9edf3;
  --text: #2f4b73;
  --text-dark: #000000;
  --muted: #5d6b7e;
  --tab-idle: #ececec;
  --button-blue: #3d78df;
  --button-cyan-top: #42b0f1;
  --button-cyan-bottom: #35a0e6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text);
}

body {
  overflow: hidden;
}

.app-shell {
  display: flex;
  height: 100vh;
  min-width: 0;
}

.sidebar {
  width: clamp(188px, 16.5vw, 236px);
  background: var(--sidebar-bg);
  color: #fff;
  flex: 0 0 clamp(188px, 16.5vw, 236px);
}

.brand {
  height: clamp(118px, 11vw, 154px);
  padding: clamp(16px, 1.5vw, 25px) 26px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-logo-image {
  display: block;
  width: min(100%, 238px);
  height: auto;
}

.menu {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.menu-item {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 clamp(12px, 1.2vw, 18px);
  color: #fff;
  text-decoration: none;
  font-size: clamp(13px, 0.95vw, 15px);
  border-bottom: 1px solid var(--sidebar-separator);
  background: transparent;
  line-height: 1.35;
}

.menu-item span:last-child {
  flex: 1;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
}

.menu-item.active {
  background: var(--sidebar-active);
}

.menu-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: 0 0 auto;
}

.menu-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.main-panel {
  flex: 1;
  height: 100vh;
  padding: 0 0 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: 65px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-top-left-radius: 0;
  border-top-right-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 2vw, 27px) 0 clamp(18px, 2.1vw, 30px);
  gap: 16px;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 500;
  color: #7a522c;
  min-width: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7d7d7d;
  text-decoration: none;
  font-size: 14px;
  flex: 0 0 auto;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.content-card {
  margin: clamp(10px, 1.2vw, 16px) clamp(10px, 1.2vw, 16px) 0;
  flex: 1;
  min-height: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
}

.form-view {
  display: block;
}

.form-pane {
  display: none;
}

.form-pane.active {
  display: block;
}

.quota-view {
  display: none;
}

.withdrawal-view {
  display: none;
}

.withdrawal-form-table td input[type="text"] {
  width: 100%;
  max-width: 100%;
  border: none;
  border-bottom: 1px solid #cfd6de;
  border-radius: 0;
  padding: 0 4px;
  height: 30px;
  background: transparent;
  font-size: 15px;
}

.withdrawal-form-table td input[type="text"]:focus {
  border-bottom-color: var(--button-blue);
  outline: none;
}

.withdrawal-form-table td select {
  width: 100%;
  max-width: 100%;
  border: none;
  border-bottom: 1px solid #cfd6de;
  border-radius: 0;
  padding: 0 4px;
  height: 30px;
  background: transparent;
  font-size: 15px;
}

.withdrawal-form-table td select:focus {
  border-bottom-color: var(--button-blue);
  outline: none;
}

.success-view {
  display: none;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
  background: #fff;
  padding: 0 32px;
}

.success-view.active {
  display: flex;
}

.success-message {
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 700;
  color: #111;
  line-height: 1.7;
  text-align: center;
}

.static-success-message {
  display: none;
}

/* 学籍清退成功页高亮样式 */
#successHighlightContent.withdrawal-highlight {
  font-weight: bold;
  font-size: 20px;
  color: #ff0000;
}

.success-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5b2dbf;
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 700;
  text-decoration: none;
}

.success-back-link svg {
  width: 23px;
  height: 23px;
  color: #999;
}

.success-editable {
  display: inline-block;
  min-width: 34px;
  cursor: pointer;
}

.success-edit-input {
  display: none;
  width: min(140px, 100%);
  height: 32px;
  margin: 0 2px;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 500;
  text-align: center;
}

.tabs {
  display: flex;
  min-height: 54px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(to bottom, #fefefe 0%, #fafafa 100%);
}

.tab {
  width: min(50%, 183px);
  border: 0;
  border-right: 1px solid var(--border-soft);
  background: var(--tab-idle);
  color: var(--text-dark);
  font-size: clamp(14px, 1.1vw, 16px);
  cursor: default;
}

.tab.active {
  background: #3b74da;
  color: #fff;
}

.fill-time {
  padding: 11px 0 5px clamp(16px, 2vw, 26px);
  font-size: clamp(14px, 1vw, 15px);
  color: #000;
}

.notice {
  padding: 0 clamp(12px, 2vw, 18px) 13px;
  text-align: center;
  font-size: clamp(14px, 1.15vw, 17px);
  color: #000;
  line-height: 1.8;
  white-space: normal;
}

.notice-remaining-editor {
  display: none;
  vertical-align: middle;
}

.notice-remaining-input {
  width: 64px;
  max-width: 64px;
  margin-left: 4px;
  text-align: center;
}

.deadline-editor {
  display: inline-block;
  position: relative;
}

#deadlineDateText {
  cursor: pointer;
  display: inline;
}

#deadlineDateInput {
  display: none;
  width: auto;
  min-width: 72px;
  height: 30px;
  margin: 0;
  padding: 0 6px;
  text-align: left;
}

.deadline-editor.editing #deadlineDateText {
  display: none;
}

.deadline-editor.editing #deadlineDateInput {
  display: inline-block;
}

.panel {
  margin: 0 clamp(14px, 2vw, 26px) 16px;
}

.panel-title {
  height: 54px;
  display: flex;
  align-items: center;
  padding-left: clamp(34px, 2.8vw, 40px);
  border: 1px solid var(--border);
  border-bottom: 0;
  color: #45607c;
  font-size: clamp(15px, 1.05vw, 16px);
  position: relative;
  background: #fff;
}

.panel-title::before {
  content: "";
  position: absolute;
  left: clamp(22px, 2.2vw, 30px);
  top: 19px;
  width: 3px;
  height: 18px;
  background: #3c70db;
}

.grid-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid var(--border);
}

.grid-table th,
.grid-table td {
  border: 1px solid var(--border);
  height: 43px;
  text-align: center;
  vertical-align: middle;
  font-size: clamp(13px, 1vw, 15px);
  color: #4a5f7e;
  font-weight: 400;
  padding: 0 clamp(8px, 1vw, 16px);
  word-break: break-word;
}

.quota-table th {
  width: 14%;
}

.quota-table td:nth-child(2) {
  width: 27%;
}

.quota-table td:nth-child(4) {
  width: 29%;
}

.quota-table .action-cell {
  width: 16%;
}

.form-table th {
  width: 14%;
}

.form-table td {
  width: 36%;
}

input,
select {
  width: 100%;
  max-width: 156px;
  height: 31px;
  border: 1px solid #cfd6de;
  border-radius: 3px;
  padding: 0 10px;
  font-size: 15px;
  color: #000;
  background: #fff;
  outline: none;
}
input.input_yx{
  width: 100%;
  
}

input::placeholder {
  color: #333;
  opacity: 1;
}

select {
  appearance: auto;
  padding-right: 8px;
}

input[type="date"] {
  color: #000;
  cursor: pointer;
}

.date-field {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 156px;
  height: 31px;
}

.quota-class-input {
  display: none;
}

#quotaTimeDisplay {
  position: relative;
  z-index: 2;
  background: #fff;
  cursor: pointer;
}

#quotaTimeInput {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.btn {
  border: 0;
  border-radius: 3px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  max-width: 158px;
  height: 32px;
  background: var(--button-blue);
}

.btn-accent {
  width: 100%;
  max-width: 181px;
  height: 44px;
  background: linear-gradient(to bottom, var(--button-cyan-top) 0%, var(--button-cyan-bottom) 100%);
  font-size: 17px;
}

.quota-stats {
  height: 126px;
  padding-top: 5px;
}

.quota-stats p {
  margin: 0;
  line-height: 2.8;
  font-size: 15px;
  color: #4f6180;
}

.quota-hero {
  margin: clamp(18px, 2vw, 29px) clamp(16px, 2.6vw, 38px) 0;
  position: relative;
  height: 278px;
  overflow: hidden;
}

.quota-hero img {
  width: 100%;
  height: 100%;
  /* height: clamp(150px, 17vw, 207px); */
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.hero-dropdown {
  display: none;
  position: fixed;
  width: 200px;
  height: 340px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 100;
  overflow: hidden;
}

.hero-dropdown.open {
  display: block;
}

.hero-dropdown-list {
  height: 100%;
  overflow-y: auto;
  padding: 4px 0;
}

.hero-dropdown-item {
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-dropdown-item:hover {
  background: #f0f4ff;
  color: var(--sidebar-active);
}

.quota-notice {
  padding: 0 clamp(12px, 2vw, 18px) 14px;
  text-align: center;
  font-size: clamp(18px, 1.6vw, 24px);
  color: #000;
  line-height: 1.6;
}

.quota-editable-text {
  cursor: pointer;
}

.quota-inline-input {
  display: none;
  width: 100%;
  max-width: 150px;
  height: 32px;
  font-size: clamp(16px, 1.35vw, 20px);
  text-align: center;
}

.quota-title-input {
  max-width: 180px;
}

.quota-school-table th {
  width: 12%;
  line-height: 1.9;
}

.quota-school-table td {
  width: 21.333%;
}

.quota-school-table th,
.quota-school-table td,
.quota-form-table th,
.quota-form-table td {
  height: 44px;
}

.withdrawal-form-table th,
.withdrawal-form-table td {
  height: 44px;
}

.withdrawal-form-table th {
  width: 18%;
  word-break: break-all;
}

.withdrawal-form-table td {
  width: 32%;
}

.school-quota-row th,
.school-quota-row td {
  height: 44px;
}

.school-quota-secondary th,
.school-quota-secondary td {
  height: 44px;
}

.quota-big {
  font-size: 15px !important;
  color: #4f6180 !important;
}

.quota-form-table th {
  width: 13%;
  word-break: break-all;
}

.quota-form-table td {
  width: 20.333%;
}

.inline-editor {
  display: inline-block;
}

.editable-number {
  cursor: pointer;
  display: inline-block;
  min-width: 24px;
}

.quota-number-input {
  width: 100%;
  max-width: 180px;
  height: 30px;
  margin-left: 4px;
  text-align: left;
  display: none;
}

.quota-page-number-input {
  width: 100%;
  max-width: 88px;
  margin-left: 0;
  text-align: center;
}

.danger-input {
  color: #ff0000;
}

.danger {
  color: #ff0000;
}

.required {
  color: #ff0000;
  margin-right: 1px;
}

.submit-row td {
  height: 61px;
  text-align: center;
}

.tips-row th,
.tips-row td {
  height: 84px;
  vertical-align: top;
  padding-top: 10px;
}

.tips-text {
  text-align: left !important;
  line-height: 1.8;
  padding: 10px 0 10px 10px !important;
}

.tips-text p {
  margin: 0;
  text-align: left;
}

.tips-title {
  margin-bottom: 2px;
  text-align: left;
}

.aid-list-panel {
  display: none;
}

.aid-list-table th,
.aid-list-table td {
  height: 45px;
  font-size: 15px;
  color: #6d747d;
}

.aid-list-table th {
  font-weight: 500;
  background: #fff;
}

.aid-list-table th:nth-child(1),
.aid-list-table td:nth-child(1) {
  width: 33%;
}

.aid-list-table th:nth-child(2),
.aid-list-table td:nth-child(2) {
  width: 17%;
}

.aid-list-table th:nth-child(3),
.aid-list-table td:nth-child(3) {
  width: 50%;
}

.aid-list-empty-row td {
  height: 44px;
}

.aid-list-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 10px 0 0;
  color: #666;
  font-size: 14px;
}

.aid-page-btn {
  min-width: 58px;
  height: 26px;
  border: 0;
  padding: 0 12px;
  font-size: 14px;
  cursor: pointer;
}

.aid-page-btn-dark {
  background: #555;
  color: #fff;
}

.aid-page-btn-light {
  background: #bdbdbd;
  color: #fff;
}

.aid-list-pagination span {
  margin: 0 10px;
}

.notice-article {
  max-width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 2.4vw, 34px) clamp(20px, 5vw, 70px) clamp(36px, 4vw, 54px);
  color: #6b6f76;
}

.notice-article-title {
  margin: 0;
  text-align: center;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.4;
  font-weight: 700;
  color: #333;
}

.notice-article-body {
  margin-top: clamp(28px, 4vw, 58px);
}

.notice-article-body p {
  margin: 0;
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 2;
  text-indent: 2em;
}

.notice-article-item {
  text-indent: 0 !important;
  padding-left: clamp(22px, 3vw, 42px);
  margin-top: 4px !important;
}

@media (max-width: 1440px) {
  .brand {
    gap: 10px;
  }

  .menu-item {
    gap: 10px;
  }

  .topbar {
    height: 60px;
  }

  .grid-table th,
  .grid-table td {
    padding: 0 8px;
  }

  input,
  select,
  .date-field {
    max-width: 142px;
  }

  .btn-accent {
    max-width: 168px;
  }

  .quota-title-input {
    max-width: 156px;
  }
}

@media (max-width: 1280px) {
  .brand-logo-image {
    width: min(100%, 218px);
  }

  .sidebar {
    width: 184px;
    flex-basis: 184px;
  }

  .topbar h1 {
    font-size: 15px;
  }

  .back-link {
    font-size: 12px;
  }

  .quota-table th {
    width: 15%;
  }

  .quota-table td:nth-child(2) {
    width: 25%;
  }

  .quota-table td:nth-child(4) {
    width: 27%;
  }

  .quota-table .action-cell {
    width: 18%;
  }

  .form-table th {
    width: 13%;
  }

  .form-table td {
    width: 37%;
  }

  .quota-school-table th {
    width: 13%;
  }

  .quota-school-table td {
    width: 20.333%;
  }

  .quota-form-table th {
    width: 14%;
  }

  .quota-form-table td {
    width: 19.333%;
  }

  .notice-article-body p {
    line-height: 1.9;
  }

  input,
  select,
  .date-field {
    max-width: 126px;
  }

  .btn-primary {
    max-width: 132px;
  }

  .btn-accent {
    max-width: 156px;
  }

  .quota-title-input {
    max-width: 140px;
  }
}

@media (max-width: 1100px) {
  .sidebar {
    width: 176px;
    flex-basis: 176px;
  }

  .brand {
    padding: 14px 18px 18px 14px;
  }

  .brand-logo-image {
    width: min(100%, 198px);
  }

  .menu-item {
    padding: 0 10px;
    font-size: 12px;
    min-height: 60px;
  }

  .topbar {
    padding: 0 12px 0 14px;
  }

  .content-card {
    margin: 8px 8px 0;
  }

  .panel {
    margin: 0 10px 12px;
  }

  .panel-title {
    padding-left: 30px;
    font-size: 14px;
  }

  .panel-title::before {
    left: 18px;
  }

  .grid-table th,
  .grid-table td {
    font-size: 12px;
    padding: 0 6px;
  }

  input,
  select,
  .date-field {
    max-width: 114px;
    font-size: 13px;
  }

  .quota-inline-input {
    max-width: 116px;
  }

  .quota-title-input {
    max-width: 128px;
  }

  .quota-number-input {
    max-width: 132px;
  }

  .notice-article {
    padding: 20px 16px 30px;
  }
}

/* ===== 弹窗公用样式 ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: 8px;
  padding: 32px 32px 24px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  max-width: 420px;
  width: 90%;
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
}

.modal-icon svg {
  width: 100%;
  height: 100%;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
}

.modal-text {
  font-size: 16px;
  font-weight: 600;
  color: #2f4b73;
  line-height: 1.6;
  margin: 0 0 28px 0;
}

.modal-confirm-btn {
  width: 100%;
  max-width: 140px;
  height: 40px;
  font-size: 15px;
  border: none;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

/* ===== 注册弹窗样式 ===== */
#registerModal .modal-card {
  max-width: 520px;
}

/* ===== 清退确认弹窗样式 ===== */
#withdrawalConfirmModal .modal-card {
  max-width: 520px;
}

.withdrawal-warning-text {
  font-weight: bold;
  font-size: 20px;
  color: #ff0000;
  margin-bottom: 24px;
}

.modal-btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.modal-btn-group .btn {
  flex: 0 0 120px;
  height: 40px;
  font-size: 15px;
  border-radius: 4px;
  cursor: pointer;
}

.modal-btn-group .modal-cancel-btn {
  background: #fff;
  color: #666;
  border: 1px solid #d9d9d9;
}

.modal-btn-group .modal-cancel-btn:hover {
  color: #3b74da;
  border-color: #3b74da;
}

.modal-btn-group .modal-confirm-btn {
  background: var(--button-blue);
  color: #fff;
  border: 1px solid var(--button-blue);
}

.modal-btn-group .modal-confirm-btn:hover {
  background: #5a8fe8;
  border-color: #5a8fe8;
}

/* ===== 移动端等比缩放 =====
   在手机上把整个 PC 页面等比例缩小铺满屏幕，
   缩放值由 script.js 动态计算。 */
@media (max-width: 1100px) {
  body.mobile-scale {
    margin: 0;
    overflow: hidden;
  }

  .app-shell {
    transform-origin: 0 0;
  }
}
