/* 鹅核 ru-core：全站日夜主题、只读光标与通用交互收口 */

/* 非编辑区域不显示文字插入光标；真实输入控件保留正常光标。 */
html,
body,
body * {
  caret-color: transparent !important;
}

input,
textarea,
[contenteditable="true"],
[contenteditable="plaintext-only"] {
  caret-color: auto !important;
}

/* 日夜切换按钮仅由最外层页面创建，iframe 内页不重复出现。 */
.ru-theme-toggle {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1400;
  min-width: 112px;
  height: 40px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(17, 24, 39, .78);
  color: #eaf1fb;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.ru-theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, .7);
  background: rgba(24, 34, 50, .92);
}

.ru-theme-toggle:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
}

.ru-theme-toggle__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #23324a, #111827);
  color: #f8d36b;
}

.ru-theme-toggle__icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* 所有原生选择器都显示明确的科技感下拉箭头。 */
select,
.form-select {
  -webkit-appearance: none !important;
  appearance: none !important;
  padding-right: 44px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 6.75 9 11.25l4.5-4.5' fill='none' stroke='%238BA4C7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 18px 18px !important;
}

select:disabled,
.form-select:disabled {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 6.75 9 11.25l4.5-4.5' fill='none' stroke='%235D6B7E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

/* 院校子页主内容始终完整居中；宽屏时返回按钮由外层壳放进左侧空白轨道。 */
body:has(.back-home-btn) > .container {
  width: calc(100% - 32px) !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 18px 0 24px !important;
}

body:has(.back-home-btn) .school-hero {
  width: 100% !important;
  margin-left: 0 !important;
}

.back-home-btn {
  position: fixed !important;
  top: 22px !important;
  left: 18px !important;
  z-index: 999 !important;
  min-height: 42px !important;
  padding: 0 16px 0 11px !important;
  gap: 9px !important;
  border: 1px solid rgba(96, 165, 250, .56) !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  background: linear-gradient(135deg, rgba(20, 43, 78, .96), rgba(30, 92, 184, .94)) !important;
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(4, 18, 42, .34), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  text-decoration: none !important;
  font-size: 0 !important;
  transform: none !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

.back-home-btn::before {
  content: '' !important;
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  background: center / 22px 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Crect x='1' y='1' width='20' height='20' rx='6' fill='%23ffffff' fill-opacity='.1' stroke='%23ffffff' stroke-opacity='.42'/%3E%3Cpath d='M12.8 6.8 8.6 11l4.2 4.2M8.8 11h6.4' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.back-home-btn::after {
  content: '返回院校图鉴' !important;
  font: 700 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  letter-spacing: .2px !important;
  white-space: nowrap !important;
}

.back-home-btn:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(147, 197, 253, .9) !important;
  box-shadow: 0 14px 32px rgba(4, 18, 42, .44), 0 0 0 1px rgba(96, 165, 250, .18) !important;
}

/* 院校主图上的正式申请入口：切换任意子选项卡后仍保持可见。 */
.ru-apply-school-btn {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #4f8df3;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e55b8, #3b82f6);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .2);
}

.school-hero .school-hero-overlay {
  padding-right: 220px !important;
}

.header.ru-school-header-hero {
  position: relative !important;
  padding-right: 220px !important;
}

.ru-apply-school-btn:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 12px 26px rgba(37, 99, 235, .34);
}

.ru-apply-school-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 比例不合适的旧院校图先用同图氛围层补齐，主体图不拉伸。 */
.school-hero.ru-ambient-hero {
  position: relative !important;
  isolation: isolate !important;
  background: #07111f !important;
}

.school-hero.ru-ambient-hero::before {
  content: '';
  position: absolute;
  inset: -24px;
  z-index: 0;
  background-image: var(--ru-school-hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(.45) saturate(.9);
  transform: scale(1.08);
  pointer-events: none;
}

.school-hero.ru-ambient-hero > .school-hero-bg {
  position: relative !important;
  z-index: 1 !important;
}

.school-hero.ru-ambient-hero > .school-hero-overlay {
  z-index: 2 !important;
}

/* Shared cutout building hero: preserve aspect ratio and leave space at the right edge. */
.school-hero.ru-cutout-hero {
  position: relative !important;
  isolation: isolate !important;
  background:
    radial-gradient(circle at 62% 28%, rgba(255, 255, 255, .94), rgba(225, 237, 252, .6) 34%, transparent 58%),
    linear-gradient(135deg, #dbe8f8 0%, #c3d9f2 55%, #a9c7ea 100%) !important;
}

.school-hero.ru-cutout-hero > .school-hero-bg {
  position: absolute !important;
  inset: auto 4% 0 auto !important;
  z-index: 1 !important;
  width: 68% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: right bottom !important;
  background: transparent !important;
  filter: drop-shadow(0 18px 18px rgba(13, 32, 69, .24));
}

.school-hero.ru-cutout-hero > .school-hero-overlay {
  inset: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  background: linear-gradient(90deg, rgba(5, 16, 32, .9) 0%, rgba(7, 24, 48, .64) 34%, rgba(7, 24, 48, .1) 66%, transparent 100%) !important;
}

html[data-ru-theme="dark"] .school-hero.ru-cutout-hero {
  background: radial-gradient(circle at 60% 28%, #173454 0%, #0b1a2d 50%, #050b13 100%) !important;
}

@media (max-width: 760px) {
  .school-hero.ru-cutout-hero > .school-hero-bg {
    inset: 0 4% auto auto !important;
    width: 96% !important;
    height: 62% !important;
    object-position: right top !important;
  }
  .school-hero.ru-cutout-hero > .school-hero-overlay {
    background: linear-gradient(0deg, rgba(5, 16, 32, .92) 0%, rgba(7, 24, 48, .68) 40%, transparent 80%) !important;
  }
}

/* 院校正文标题：只给真正的 h2 / h3 标题加玻璃板，正文条目必须使用 p/li。 */
html.ru-pedia-page[data-ru-theme="light"] .tab-content h2,
html.ru-pedia-page[data-ru-theme="light"] .tab-content h3:not(.rudn-prog-title) {
  display: table !important;
  max-width: 100% !important;
  border: 1px solid rgba(13, 32, 69, .12) !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, .76), rgba(223, 233, 247, .36)) !important;
  color: #0d2045 !important;
  font-weight: 800 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 8px 18px rgba(13, 32, 69, .09) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .98), 2px 3px 3px rgba(13, 32, 69, .24) !important;
}

/* 大标题与小标题保持明确层级，不能再使用同一字号。 */
html.ru-pedia-page[data-ru-theme="light"] .tab-content h2 {
  padding: 10px 17px 11px !important;
  font-size: 24px !important;
  line-height: 1.35 !important;
}

html.ru-pedia-page[data-ru-theme="light"] .tab-content h3:not(.rudn-prog-title) {
  padding: 7px 13px 8px !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
}

@media (max-width: 760px) {
  .school-hero .school-hero-overlay {
    padding-right: 20px !important;
    padding-bottom: 78px !important;
  }

  .header.ru-school-header-hero {
    padding-right: 20px !important;
    padding-bottom: 86px !important;
  }

  .ru-apply-school-btn {
    right: 18px;
    bottom: 18px;
  }
}

/* ========================= 夜间模式 ========================= */
html[data-ru-theme="dark"],
html[data-ru-theme="dark"] body {
  --bg: #0d1117;
  --bg-2: #10161f;
  --card: #161b22;
  --card-2: #1b212b;
  --card-bg: #161b22;
  --white: #161b22;
  --border: #21262d;
  --border-2: #2d333d;
  --text: #e6edf3;
  --text-2: #c8d2de;
  --text-3: #9da7b3;
  --text-s: #9da7b3;
  --text-light: #b8c4d1;
  color-scheme: dark;
  color: #e6edf3 !important;
}

html[data-ru-theme="dark"] :is(.app, .tab-content, .overview-body, .card, .detail-card, .module-card) {
  color: #e6edf3 !important;
}

html[data-ru-theme="dark"] :is(.app, .tab-content, .overview-body, .card, .detail-card, .module-card) :is(p, li, td) {
  color: #c8d2de !important;
}

/* ========================= 日间模式 ========================= */
html[data-ru-theme="light"],
html[data-ru-theme="light"] body {
  --bg: #f4f7fb;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-2: #eef3f8;
  --card-bg: #ffffff;
  --white: #ffffff;
  --border: #dbe4ef;
  --border-2: #c9d6e5;
  --text: #172235;
  --text-2: #506178;
  --text-3: #718198;
  --text-s: #46566b;
  --text-light: #5d6f86;
  --blue-s: rgba(37, 99, 235, .1);
  color-scheme: light;
  color: #172235 !important;
  background-color: #f4f7fb !important;
  background-image: none !important;
}

html[data-ru-theme="light"].ru-shell,
html[data-ru-theme="light"].ru-shell body,
html[data-ru-theme="light"] iframe {
  background: #f4f7fb !important;
  background-image: none !important;
}

html[data-ru-theme="light"] .bg-stars,
html[data-ru-theme="light"] .bg-stars-svg {
  display: none !important;
}

html[data-ru-theme="light"] .ru-sidebar {
  --sb-bg: #f4f7fb;
  --sb-bg2: #ffffff;
  --sb-card: #eef3f8;
  --sb-card2: #e5edf6;
  --sb-border: #dbe4ef;
  --sb-text: #172235;
  --sb-text2: #506178;
  --sb-text3: #718198;
  --sb-blue-s: rgba(37, 99, 235, .1);
  background: #ffffff !important;
  border-color: #dbe4ef !important;
  box-shadow: 8px 0 28px rgba(31, 54, 84, .05);
}

html[data-ru-theme="light"] .ru-theme-toggle {
  background: rgba(255, 255, 255, .9);
  border-color: #d1ddeb;
  color: #203047;
  box-shadow: 0 10px 28px rgba(31, 54, 84, .12);
}

html[data-ru-theme="light"] .ru-theme-toggle:hover {
  background: #ffffff;
  border-color: #7aa7e8;
}

html[data-ru-theme="light"] .ru-theme-toggle__icon {
  background: linear-gradient(145deg, #fff4bc, #f6c94d);
  color: #725000;
}

html[data-ru-theme="light"] :is(
  .selector-card,
  .overview-card,
  .detail-card,
  .module-card,
  .action-btns,
  .card,
  .tabs,
  .notice-card,
  .school-card,
  .hot-card,
  .news-list,
  .news-item,
  .feat-4,
  .feat-4-cd,
  .feat-4 .qbtn,
  .feat-4 .cd-item,
  .dept-card,
  .dept-detail-panel,
  .service-card,
  .service-note,
  .tool-row,
  .file-card
) {
  background: #ffffff !important;
  color: #172235 !important;
  border-color: #dbe4ef !important;
  box-shadow: 0 10px 30px rgba(31, 54, 84, .07) !important;
}

html[data-ru-theme="light"] :is(.feat-4 .qbtn, .feat-4 .cd-item, .school-city, .browse-action-btn) {
  background: #eef3f8 !important;
}

.qbtn-ico svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-ru-theme="light"] :is(h1, h2, h3, h4, .dept-name, .qbtn-label, .cd-event, .school-name h3) {
  color: #172235 !important;
  text-shadow: none;
}

html[data-ru-theme="light"] :is(.feat-overlay, .school-hero-overlay, .overview-title) :is(h1, h2, h3, h4),
html[data-ru-theme="light"] :is(.feat-overlay, .school-hero-overlay, .overview-title) {
  color: #ffffff !important;
  text-shadow: 0 2px 9px rgba(0, 0, 0, .68) !important;
}

html[data-ru-theme="light"] :is(p, .ru, .en, .school-desc, .dept-sub, .feat-4-name small) {
  color: #46566b !important;
}

/* 蓝色/图片抬头必须保持高对比，不能被日间模式的通用标题规则冲掉。 */
html[data-ru-theme="light"] :is(.schools-banner, .programs-heading-inner, .services-hero, .guide-hero, .header) :is(h1, h2, h3, p, .sub, .hero-kicker, .guide-kicker, .header-ru-name, .header-service),
html[data-ru-theme="light"] .services-hero .hero-meta span {
  color: #ffffff !important;
  text-shadow: 0 1px 5px rgba(4, 18, 40, .24) !important;
}

html[data-ru-theme="light"] .services-hero p,
html[data-ru-theme="light"] .guide-hero p,
html[data-ru-theme="light"] .services-hero .hero-meta span {
  color: #dfeaff !important;
}

/* 首页标题保持不透明深蓝；高光和投影只衬托字形，不再用透明渐变填充。 */
html[data-ru-theme="light"] .home-hero h1 {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #08275b !important;
  -webkit-text-fill-color: #08275b !important;
  text-shadow: 0 1px 0 #fff, 0 0 3px rgba(255,255,255,.9), 0 3px 2px rgba(4,20,49,.24), 0 7px 14px rgba(4,20,49,.34) !important;
}

html[data-ru-theme="light"] .home-hero .sub {
  color: #41536d !important;
  text-shadow: none !important;
}

/* 日间模式：13 所学校的申请/资料正文使用更深的黑灰色。 */
html[data-ru-theme="light"] :is(.app, .tab-content, .overview-body, .card, .detail-card, .module-card) {
  color: #26364c !important;
}

html[data-ru-theme="light"] :is(.app, .tab-content, .overview-body, .card, .detail-card, .module-card) :is(p, li, td, .cost-card-desc) {
  color: #46566b !important;
}

html[data-ru-theme="light"] .cost-card {
  background: linear-gradient(145deg, #f8fbff 0%, #eaf2fb 100%) !important;
  border-color: #cfdae8 !important;
  box-shadow: 0 6px 18px rgba(31, 54, 84, .06) !important;
}

html[data-ru-theme="light"] .cost-card-title {
  color: #244e8f !important;
}

html[data-ru-theme="light"] .cost-card-amount {
  color: #c7352c !important;
}

/* 首页图片卡在日间模式仍是照片，文字保持白色；蓝色服务卡改用深蓝文字。 */
html[data-ru-theme="light"] :is(.feat-1, .feat-2) .feat-overlay :is(h1, h2, h3, p, .feat-title, .feat-desc, .feat-meta) {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .72) !important;
}

html[data-ru-theme="light"] .feat-3 .feat-overlay :is(h1, h2, h3, p, .feat-title, .feat-desc) {
  color: #10213d !important;
  text-shadow: none !important;
}

html[data-ru-theme="light"] .feat-3 .feat-cta {
  color: #10213d !important;
  background: rgba(255, 255, 255, .56) !important;
  border-color: rgba(16, 33, 61, .2) !important;
}

/* 院校申请页的院校详情由 JS 生成并带有内联深色样式，按主题强制纠正。 */
html[data-ru-theme="light"] #schoolDetailContent {
  color: #26364c !important;
}

html[data-ru-theme="light"] #schoolDetailContent :is(p, li) {
  color: #3f4f64 !important;
}

html[data-ru-theme="light"] #schoolDetailContent strong {
  color: #172235 !important;
}

html[data-ru-theme="light"] #schoolDetailContent :is(h3, h4) {
  color: #765410 !important;
}

html[data-ru-theme="light"] #schoolDetailContent [style*="background:#f8fafc"] {
  background: #edf3f9 !important;
  border-color: #cfdae8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8) !important;
}

html[data-ru-theme="light"] #schoolDetailContent [style*="background:#f8fafc"] > div:first-child {
  color: #214f91 !important;
}

html[data-ru-theme="light"] #schoolDetailContent :is(
  [style*="color:#555"],
  [style*="color:#666"],
  [style*="color:#888"],
  [style*="color:#999"]
) {
  color: #46566b !important;
}

html[data-ru-theme="light"] #schoolDetailContent table {
  background: #ffffff !important;
  border-color: #cfdae8 !important;
}

html[data-ru-theme="light"] #schoolDetailContent :is(thead tr, th) {
  background: #dfeafb !important;
  color: #174f9f !important;
}

html[data-ru-theme="light"] #schoolDetailContent tbody tr,
html[data-ru-theme="light"] #schoolDetailContent tbody tr:nth-child(even) {
  background: #ffffff !important;
}

html[data-ru-theme="light"] #schoolDetailContent tbody tr:nth-child(even) {
  background: #f4f7fb !important;
}

html[data-ru-theme="light"] #schoolDetailContent td {
  color: #26364c !important;
  border-color: #cfdae8 !important;
}

html[data-ru-theme="light"] .browse-action-btn {
  background: #edf3f9 !important;
  color: #214f91 !important;
  border-color: #6d93c6 !important;
}

html[data-ru-theme="light"] .browse-action-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}

/* 桌面端申请表：占满侧栏之外的可用宽度，并将字段排成两大列。 */
@media (min-width: 901px) {
  body > .app,
  body .app {
    width: 100% !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
  }

  body .app > .tab-content {
    padding: 0 34px 34px !important;
  }

  body .app #applicationForm > .form-section {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 24px !important;
    align-items: start !important;
  }

  body .app #applicationForm > .form-section > .section-title,
  body .app #applicationForm > .form-section > #applyChoicesContainer,
  body .app #applicationForm > .form-section > #bachelorUploads,
  body .app #applicationForm > .form-section > #masterUploads,
  body .app #applicationForm > .form-section > .form-item:has(.btn-add-choice),
  body .app #applicationForm > .form-section > .form-item:has(.upload-row) {
    grid-column: 1 / -1 !important;
  }

  body .app .apply-choice-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 20px !important;
  }

  body .app .apply-choice-group > :is(.choice-header, .major-detail-item) {
    grid-column: 1 / -1 !important;
  }
}

html[data-ru-theme="light"] :is(input, textarea, select, .form-select) {
  background-color: #f8fafc !important;
  color: #172235 !important;
  border-color: #cfdbe8 !important;
}

html[data-ru-theme="light"] :is(table, tbody, tr, td, th) {
  color: #26364c !important;
  border-color: #dbe4ef !important;
}

html[data-ru-theme="light"] table tr:nth-child(odd) td {
  background: #ffffff !important;
}

html[data-ru-theme="light"] table tr:nth-child(even) td {
  background: #f5f8fc !important;
}

html[data-ru-theme="light"] table th {
  background: #eaf2ff !important;
  color: #1756b8 !important;
}

html[data-ru-theme="light"] .site-icp-footer {
  border-color: #dbe4ef !important;
}

/* 院校图鉴页签在浅色背景上必须保持足够对比度。 */
html.ru-pedia-page[data-ru-theme="light"] .tabs .tab:not(.active) {
  color: #41536d !important;
  font-weight: 750 !important;
}

/* 申请表统一为更高、更清晰的灰蓝品牌页头。 */
html[data-ru-theme="light"] body:has(#applicationForm) {
  background: linear-gradient(180deg, #edf3fb 0%, #f7f9fc 46%, #eef3f9 100%) !important;
}
html[data-ru-theme="light"] body:has(#applicationForm) > .app {
  width: calc(100% - 40px) !important;
  max-width: 1380px !important;
  margin: 22px auto 44px !important;
  overflow: hidden !important;
  border: 1px solid #ccdae9 !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 28px 70px rgba(30,64,110,.16) !important;
}
html[data-ru-theme="light"] body:has(#applicationForm) .header {
  min-height: 190px !important;
  padding: 28px 48px !important;
  gap: 30px !important;
  background: linear-gradient(112deg, #f7faff 0%, #e3ecf7 38%, #c9d9ec 72%, #edf3fa 100%) !important;
  color: #0d2045 !important;
  box-shadow: inset 0 -1px 0 rgba(43,84,139,.16), 0 14px 38px rgba(50,84,130,.14) !important;
}
html[data-ru-theme="light"] body:has(#applicationForm) .header::after {
  height: 4px !important;
  background: linear-gradient(90deg, transparent 0%, #002fa7 20%, #5d8ee8 50%, #002fa7 80%, transparent 100%) !important;
  opacity: .72 !important;
}
html[data-ru-theme="light"] body:has(#applicationForm) .header-logo {
  width: 116px !important;
  height: 116px !important;
  filter: drop-shadow(0 12px 18px rgba(13,32,69,.18)) !important;
}
html[data-ru-theme="light"] body:has(#applicationForm) .header-logo-right {
  object-fit: contain !important;
}
html[data-ru-theme="light"] body:has(#applicationForm) .header-center h1 {
  margin-bottom: 7px !important;
  color: #0a2a62 !important;
  font-size: clamp(26px,2.4vw,36px) !important;
  font-weight: 850 !important;
  letter-spacing: .5px !important;
  text-shadow: 0 1px 0 #fff, 0 0 16px rgba(255,255,255,.88), 0 5px 16px rgba(34,70,120,.16) !important;
}
html[data-ru-theme="light"] body:has(#applicationForm) .header-center p {
  color: #435b78 !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  opacity: 1 !important;
}
html[data-ru-theme="light"] body:has(#applicationForm) .header-center .header-service {
  margin-top: 7px !important;
  color: #1c56ad !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}
html[data-ru-theme="light"] body:has(#applicationForm) .required-notice {
  margin: 22px 32px !important;
}
html[data-ru-theme="light"] body:has(#applicationForm) #applicationForm {
  padding: 0 32px 42px !important;
}

@media (max-width: 700px) {
  html[data-ru-theme="light"] body:has(#applicationForm) > .app {width:calc(100% - 20px) !important;margin:10px auto 26px !important;border-radius:17px !important}
  html[data-ru-theme="light"] body:has(#applicationForm) .header {min-height:150px !important;padding:22px 18px !important;gap:12px !important}
  html[data-ru-theme="light"] body:has(#applicationForm) .header-logo {width:72px !important;height:72px !important}
  html[data-ru-theme="light"] body:has(#applicationForm) .header-center h1 {font-size:21px !important}
  html[data-ru-theme="light"] body:has(#applicationForm) .header-center .header-ru-name {display:none !important}
  html[data-ru-theme="light"] body:has(#applicationForm) .required-notice {margin:16px !important}
  html[data-ru-theme="light"] body:has(#applicationForm) #applicationForm {padding:0 16px 28px !important}
}

@media (max-width: 1000px) {
  .ru-theme-toggle {
    top: 12px;
    right: 12px;
    min-width: 42px;
    width: 42px;
    padding: 0;
  }

  .ru-theme-toggle__label {
    display: none;
  }

  body:has(.back-home-btn) > .container {
    max-width: calc(100vw - 32px) !important;
    margin: 0 auto !important;
    padding: 68px 0 18px !important;
  }

  .back-home-btn {
    top: 14px !important;
    left: 14px !important;
  }
}

/* ========================================================================
   13 所院校申请表：日/夜严格共用同一套尺寸、网格与卡片。
   夜间模式只把应用卡片外侧换成星空，表头和表单内容保持日间布局与可读性。
   ======================================================================== */
html[data-ru-theme] body.application-page {
  color-scheme: light !important;
  color: #172235 !important;
}

html[data-ru-theme="light"] body.application-page {
  background-color: #eef3f9 !important;
  background-image: linear-gradient(180deg, #edf3fb 0%, #f7f9fc 46%, #eef3f9 100%) !important;
}

html[data-ru-theme="dark"] body.application-page {
  background-color: #0b1220 !important;
  background-image: url('/starfield-random.svg?v=2') !important;
  background-size: 3200px 3200px !important;
  background-position: center top !important;
  background-repeat: repeat-y !important;
  background-attachment: fixed !important;
}

html[data-ru-theme] body.application-page > .app {
  --bg: #f4f7fb;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-2: #eef3f8;
  --card-bg: #ffffff;
  --white: #ffffff;
  --border: #dbe4ef;
  --border-2: #c9d6e5;
  --text: #172235;
  --text-2: #506178;
  --text-3: #718198;
  --text-s: #46566b;
  --text-light: #5d6f86;
  width: calc(100% - 40px) !important;
  max-width: 1380px !important;
  min-height: 0 !important;
  margin: 22px auto 44px !important;
  overflow: hidden !important;
  border: 1px solid #ccdae9 !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.97) !important;
  color: #172235 !important;
  box-shadow: 0 28px 70px rgba(7,24,52,.22) !important;
}

html[data-ru-theme] body.application-page .header {
  min-height: 190px !important;
  padding: 28px 48px !important;
  gap: 30px !important;
  background: linear-gradient(112deg, #f7faff 0%, #e3ecf7 38%, #c9d9ec 72%, #edf3fa 100%) !important;
  color: #0d2045 !important;
  box-shadow: inset 0 -1px 0 rgba(43,84,139,.16), 0 14px 38px rgba(50,84,130,.14) !important;
}

html[data-ru-theme] body.application-page .header::after {
  height: 4px !important;
  background: linear-gradient(90deg, transparent 0%, #002fa7 20%, #5d8ee8 50%, #002fa7 80%, transparent 100%) !important;
  opacity: .72 !important;
}

html[data-ru-theme] body.application-page .header-logo {
  width: 116px !important;
  height: 116px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 12px 18px rgba(13,32,69,.18)) !important;
}

html[data-ru-theme] body.application-page .header-center h1 {
  margin-bottom: 7px !important;
  color: #0a2a62 !important;
  font-size: clamp(26px,2.4vw,36px) !important;
  font-weight: 850 !important;
  letter-spacing: .5px !important;
  text-shadow: 0 1px 0 #fff, 0 0 16px rgba(255,255,255,.88), 0 5px 16px rgba(34,70,120,.16) !important;
}

html[data-ru-theme] body.application-page .header-center p { color:#435b78 !important; font-size:14px !important; font-weight:650 !important; opacity:1 !important; }
html[data-ru-theme] body.application-page .header-center .header-service { margin-top:7px !important; color:#1c56ad !important; font-size:16px !important; font-weight:800 !important; }
html[data-ru-theme] body.application-page .required-notice { margin:22px 32px !important; }
html[data-ru-theme] body.application-page #applicationForm { padding:0 32px 42px !important; }

/* 夜间模式不再重绘表格/字段：它们与日间模式保持同色、同尺寸。 */
html[data-ru-theme="dark"] body.application-page .app :is(.tab-content, .form-section, .apply-choice-group, .major-detail-card, .fallback-option, .agreement-panel, .disclaimer-box) {
  color: #172235 !important;
}
html[data-ru-theme="dark"] body.application-page .app :is(.form-section, .fallback-option) { background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(246,250,255,.94)) !important; }
html[data-ru-theme="dark"] body.application-page .app .apply-choice-group { background:linear-gradient(135deg,#f9fbff,#eef4ff) !important; }
html[data-ru-theme="dark"] body.application-page .app :is(input[type="text"],input[type="tel"],input[type="email"],textarea,select,.form-select) { background-color:#f8fafc !important; color:#172235 !important; border-color:#cfdbe8 !important; }
html[data-ru-theme="dark"] body.application-page .app :is(.section-title,.item-label,.detail-value,.agreement-consent,.disclaimer-title,strong,h2,h3,p,li,td) { color:#263b5e !important; }
html[data-ru-theme="dark"] body.application-page .app table { color:#26364c !important; border-color:#dbe4ef !important; }
html[data-ru-theme="dark"] body.application-page .app table tr:nth-child(odd) td { background:#fff !important; }
html[data-ru-theme="dark"] body.application-page .app table tr:nth-child(even) td { background:#f5f8fc !important; }
html[data-ru-theme="dark"] body.application-page .app table th { background:#eaf2ff !important; color:#1756b8 !important; }
html[data-ru-theme="dark"] body.application-page .app .choice-badge,
html[data-ru-theme="dark"] body.application-page .app .btn-submit,
html[data-ru-theme="dark"] body.application-page .app .tuition-cny :is(.detail-label,.detail-value) { color:#fff !important; }

@media (max-width: 700px) {
  html[data-ru-theme] body.application-page > .app { width:calc(100% - 20px) !important; margin:10px auto 26px !important; border-radius:17px !important; }
  html[data-ru-theme] body.application-page .header { min-height:150px !important; padding:22px 18px !important; gap:12px !important; }
  html[data-ru-theme] body.application-page .header-logo { width:72px !important; height:72px !important; }
  html[data-ru-theme] body.application-page .header-center h1 { font-size:21px !important; }
  html[data-ru-theme] body.application-page .header-center .header-ru-name { display:none !important; }
  html[data-ru-theme] body.application-page .required-notice { margin:16px !important; }
  html[data-ru-theme] body.application-page #applicationForm { padding:0 16px 28px !important; }
}
/* 站内更新日志：与首次告知书共用欢迎视觉，但日志内容仅在正式发布后出现。 */
.ru-changelog-welcome {
  display: block;
  width: min(100%, 440px);
  height: auto;
  margin: 0 auto 22px;
}

.ru-change-empty {
  margin: 0;
  color: #65738a;
  text-align: center;
}

html[data-ru-theme="dark"] .ru-change-empty { color: #b8c4d5; }
