 :root {
  color-scheme: light;
  --page: #f6f7f9;
  --surface: #ffffff;
  --surface-subtle: #f9fafb;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --success: #15803d;
  --success-bg: #f0fdf4;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --info-bg: #eff6ff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
 }
 * { box-sizing: border-box; }
 html { background: var(--page); }
body {
  margin: 0;
  min-width: 0;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
   "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
 }
 center {
  display: block;
  width: min(1120px, calc(100vw - 32px));
  margin: 16px auto 32px;
  text-align: initial;
 }
 body > center > table,
 body > center > table > tbody,
 body > center > table > tbody > tr,
 body > center > table > tbody > tr > td {
  display: block;
  width: 100% !important;
 }
 table {
  border-collapse: separate;
  border-spacing: 0;
  max-width: 100%;
 }
 td {
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
 }
 pre,
 textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
   "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
 }
 pre {
  margin: 8px 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
 }
 a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
 }
 a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
 }
 b { font-weight: 500; }
 hr {
  height: 1px;
  margin: 12px 0;
  border: 0;
  background: var(--border);
 }
 input,
 select,
 textarea,
 button {
  max-width: 100%;
  font: inherit;
 }
 input[type="text"],
 input[type="textbox"],
 textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
   "Courier New", monospace;
  font-variant-numeric: tabular-nums;
 }
 div[id^="Cal"],
 span[id^="Cal"],
 td[id^="Cal"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
   "Courier New", monospace;
  font-variant-numeric: tabular-nums;
 }
 input[type="text"],
 input[type="textbox"],
 select,
 textarea {
  min-height: 32px;
  margin: 3px 4px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
 }
 input[type="text"],
 input[type="textbox"] {
  padding: 4px 8px;
 }
 select {
  padding: 4px 28px 4px 8px;
 }
 textarea {
  width: min(100%, 920px);
  padding: 10px 12px;
  overflow: auto;
  background: #f8fafc;
  resize: vertical;
 }
 input[type="text"]:focus,
 input[type="textbox"]:focus,
 select:focus,
 textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
 }
 input[type="button"],
 button {
  min-height: 32px;
  margin: 3px;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease,
   box-shadow .15s ease;
 }
 input[type="button"]:hover,
 button:hover {
  border-color: #cbd5e1;
  background: var(--surface-subtle);
 }
 input[type="button"]:focus-visible,
 button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
 }
 input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0 6px 0 4px;
  vertical-align: -2px;
  accent-color: var(--accent);
 }
 canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
 }
 font[color="red"],
 font[color="#FF0000"],
 font[color="#ff0000"] { color: var(--danger) !important; }
 font[color="green"],
 font[color="#00C000"] { color: var(--success) !important; }
 font[color="blue"],
 font[color="#0000FF"],
 font[color="#0000ff"] { color: var(--accent) !important; }
 .cua {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
 }
 .cua a {
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
 }
 .cua a:hover {
  border-color: var(--border);
  background: var(--surface-subtle);
  color: var(--accent);
 }
 .hzb { font-size: 12px; line-height: 1.2; color: var(--muted); }
 .fixcell {
  height: 263px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-subtle);
 }
 .bd0 { border: 0; }
 .bd1,
 .bd15,
 .bd2 {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
 }
 .bd1 {
  width: min(100%, 1120px) !important;
  table-layout: fixed;
 }
 body > center > table > tbody > tr > td > table.bd1,
 body > center > table > tbody > tr > td > table.bd1 > tbody,
 body > center > table > tbody > tr > td > table.bd1 > tbody > tr,
 body > center > table > tbody > tr > td > table.bd1 > tbody > tr > td {
  max-width: 1120px;
 }
 .dTop,
 .dBot,
 .dRig,
 .dLef,
 .dRB,
 .dRT,
 .dTBr,
 .dBr,
 .dTr,
 .dBot2,
 .dTop2 {
  border-color: var(--border) !important;
 }
 .dRig { border-right: 1px solid var(--border); }
 .dBot2 { padding: 16px; border-bottom: 1px solid var(--border); }
 .dTop2 { padding: 14px 16px; border-top: 1px solid var(--border); color: var(--muted); }
.top-shell {
  position: relative;
  width: 100% !important;
  margin: 24px 0 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
  overflow: hidden;
 }
 .top-shell.is-menu-open {
  overflow: visible;
 }
 .top-shell table[width="770"] {
  width: 100% !important;
 }
 .top-shell > tbody > tr:first-child {
  background: var(--surface) !important;
 }
 .top-shell > tbody > tr:first-child > td {
  padding: 18px 20px;
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border);
  border-radius: 14px 14px 0 0;
 }
 .top-shell > tbody > tr:nth-child(2) {
  background: var(--surface-subtle) !important;
 }
 .top-nav {
  border-collapse: separate;
  border-spacing: 0;
 }
 .top-nav td {
  vertical-align: middle;
 }
 .top-nav td:first-child span:first-child {
  color: var(--text) !important;
  font-family: inherit !important;
  font-size: 24px !important;
  font-weight: 600 !important;
 }
 .top-nav td:first-child span:nth-child(2),
 .top-nav td:first-child span:nth-child(3) {
  color: var(--text) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
 }
 .top-nav td[align="right"] {
  text-align: right;
 }
 .brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
 }
 .brand-mark svg {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
 }
 .brand-mark span {
  white-space: nowrap;
 }
 .top-nav input[type="button"] {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
 }
 .top-nav input[type="button"]:hover {
  background: var(--surface-subtle);
  color: var(--accent);
 }
 .top-nav input.nav-tab {
  border-radius: 8px;
 }
 .top-nav input.nav-tab.is-active {
  background: var(--accent-subtle);
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
  font-weight: 500;
 }
 .top-nav input.nav-tab.is-active:hover {
  background: var(--accent-subtle);
  color: var(--accent);
 }
 .top-nav input.lang-toggle {
  min-width: 42px;
  height: 36px;
  padding: 0 10px;
  border-color: var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
 }
 .top-nav input.lang-toggle:hover {
  border-color: var(--accent-soft);
  background: var(--accent-subtle);
  color: var(--accent);
 }
 .top-nav input.lang-toggle:disabled {
  color: var(--muted);
  opacity: .55;
 }
 .top-shell > tbody > tr:nth-child(2) td,
 .top-shell > tbody > tr:nth-child(3) td {
  padding: 8px 16px 10px;
  background: var(--surface-subtle);
  color: var(--muted);
 }
 .top-selector-grid {
  display: grid;
  grid-template-columns: minmax(320px, 35%) minmax(0, 65%);
  gap: 8px 20px;
  align-items: start;
 }
 .top-control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  min-width: 0;
 }
 .top-control-group.location-group {
  display: grid;
  grid-template-columns: 150px minmax(260px, 560px);
  gap: 6px 8px;
  align-items: center;
 }
 .top-control-group select {
  min-height: 30px;
  margin: 0;
 }
 .top-control-group .meta {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 4px 8px;
  align-items: baseline;
  min-width: 0;
  color: var(--muted);
 }
 #Sel_zhou { width: 112px; }
 #Sel_dq { width: 230px; }
 #Sel1 { width: 150px; }
 #Sel2 {
  width: 100%;
  max-width: 560px;
 }
 #Sel2 + .meta {
  grid-column: 1 / -1;
  width: 100%;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
 }
 #Sel2 + .meta::-webkit-scrollbar { display: none; }
 #Cal_zdzb {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
 }
 #Clock1 { white-space: nowrap; }
 @media (max-width: 980px) {
  .top-selector-grid {
   grid-template-columns: 1fr;
  }
  .top-control-group.location-group {
   grid-template-columns: 150px minmax(240px, 1fr);
  }
 }
 #tools {
  display: none;
  position: absolute;
  top: 54px;
  right: 16px;
  z-index: 20;
  min-width: 128px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
 }
 #tools .cua {
  display: grid;
  gap: 2px;
 }
 #tools .cua a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text);
  white-space: nowrap;
 }
 #help {
  display: none;
  padding: 16px !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px 10px 0 0;
  background: var(--info-bg);
  color: var(--text);
 }
 #help .help-content {
  box-sizing: border-box;
  width: min(100%, 1040px);
  margin: 0 auto;
  display: grid;
  gap: 12px;
  text-align: left;
  line-height: 1.7;
 }
 #help .help-section {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
 }
 #help .help-title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
 }
 #help .help-section p {
  margin: 6px 0;
 }
 #help .help-list {
  margin: 6px 0 0;
  padding-left: 1.4em;
 }
 #help .help-list li {
  margin: 4px 0;
 }
 #help .help-note {
  color: #b91c1c;
  font-weight: 500;
 }
 #Clock2 {
  font-weight: bold;
  color: blue;
 }
 #Clock1 {
  font-weight: bold;
  color: red;
 }
 #page2,
 #page3,
 #page4,
 #page5,
 #page6,
 #page7,
 #page8,
 #page9,
 #page10,
 #page11,
 #page12,
 #pan_1,
 .is-hidden {
  display: none;
 }
 .summary-column,
 .eclipse-control-column {
  line-height: 150%;
 }
 #GJ1_out {
  font-size: 16px;
  color: red;
 }
 #page1 > td:first-child {
  padding: 16px;
  background: var(--surface-subtle);
 }
 #page1 > td:last-child {
  padding: 16px;
 }
 #Cal2 table {
  width: 100% !important;
  height: auto !important;
  border-collapse: separate;
  border-spacing: 4px;
 }
 #Cal2 td {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  vertical-align: top;
 }
 #Cal2 td.date-cell {
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
 }
 #Cal2 td.date-cell:hover {
  border-color: #bfdbfe;
  background: var(--info-bg);
 }
 #Cal2 td.date-cell.is-selected {
  border-color: #c4b5a5;
  background: #f7f3ed !important;
  box-shadow: inset 0 0 0 1px #b8a898, 0 6px 14px rgba(15, 23, 42, .08);
 }
 #Cal2 tr:first-child td {
  height: auto;
  padding: 8px;
  border-color: transparent;
  background: var(--surface-subtle) !important;
  color: var(--text) !important;
  font-weight: 500 !important;
 }
 #Cal2 tr:nth-child(2) td {
  height: 32px;
  background: var(--surface-subtle) !important;
  color: var(--muted) !important;
  font-weight: 500 !important;
 }
 #Cal2 span[style*="Arial Black"] {
  display: inline-block;
  min-width: 30px;
  font-family: inherit !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  color: var(--text) !important;
 }
 #Cal2 span[style*="background-color:#90D050"] {
  padding: 0 8px;
  border: 1px solid #d6c2aa;
  border-radius: 999px;
  background: #fffaf3 !important;
  color: var(--text) !important;
 }
 #Cal2 .lunar-day {
  display: inline-block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
 }
 #Cal2 .gz-day {
  display: inline-block;
  min-width: 2.6em;
  margin-top: 3px;
  padding: 1px 5px;
  border: 1px solid #a7d8c2;
  border-radius: 999px;
  background: #f0fdf4;
  color: #047857;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
 }
 #Cal4,
 #Cal_day,
 #Cal_tip,
 #Cal5 {
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
 }
 #Cal_day {
  margin-bottom: 12px;
 }
 #Cal_tip {
  margin-bottom: 12px;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 14px;
  line-height: 1.7;
 }
 #Cal_tip b {
  font-weight: 500;
 }
 #Cal4:empty,
 #Cal_day:empty,
 #Cal_tip:empty,
 #Cal5:empty {
  display: none;
 }
 tr[id^="page"][style*="block"] {
  display: table-row !important;
 }
 [id^="page"] > td {
  padding: 16px;
  max-width: 1120px;
  overflow-x: auto;
 }
 [id^="page"] table td {
  padding: 4px;
 }
 [id^="page"] table {
  max-width: 100%;
 }
 [id^="page"] pre,
 [id^="page"] textarea,
 [id^="page"] div {
  max-width: 100%;
 }
#page3 > td:first-child {
  width: 320px !important;
  max-width: none;
  padding: 16px;
  background: var(--surface-subtle);
  overflow: auto;
}
#page3 > td:last-child {
  width: auto !important;
  max-width: none;
  padding: 16px;
  overflow: auto;
}
#Cal_zb {
  font-size: 13px;
  line-height: 1.45;
}
#Cal_zb .astro-panel {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
#Cal_zb .astro-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
}
#Cal_zb .astro-summary div,
#Cal_zb .astro-extra div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
#Cal_zb .astro-summary span,
#Cal_zb .astro-extra span {
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
   "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 12px;
  white-space: nowrap;
}
#Cal_zb .astro-summary b,
#Cal_zb .astro-extra b,
#Cal_zb .astro-value {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#Cal_zb .astro-danger {
  color: var(--danger);
}
#Cal_zb .astro-section {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--border);
}
#Cal_zb .astro-section:last-child {
  border-bottom: 0;
}
#Cal_zb .astro-section-head,
#Cal_zb .astro-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  column-gap: 8px;
}
#Cal_zb .astro-section-head {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
   "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
}
#Cal_zb .astro-section-no {
  color: var(--accent);
}
#Cal_zb .astro-row {
  min-height: 22px;
}
#Cal_zb .astro-label {
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
   "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 12px;
  white-space: nowrap;
}
#Cal_zb .astro-value {
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: clip;
}
#Cal_zb .astro-extra {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  background: var(--surface-subtle);
}
#page3 .eclipse-control-column > #Cal_zb {
  margin-bottom: 10px;
}
#Cal_zb > table {
  width: 100% !important;
  max-width: none;
  border: 1px solid #ffaaaa !important;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
}
#Cal_zb table table {
  width: 100% !important;
  max-width: none;
  table-layout: fixed;
}
#Cal_zb td {
  padding: 1px !important;
  border-radius: 0 !important;
  background: transparent;
  overflow-wrap: normal;
  word-break: keep-all;
}
#Cal_zb td[width="109"] {
  width: 96px !important;
  white-space: nowrap;
}
#Cal_zb .dTBr {
  border-top: 1px solid #ffaaaa !important;
  border-bottom: 1px solid #ffaaaa !important;
}
#Cal_zb .dBr {
  border-bottom: 1px solid #ffaaaa !important;
}
#Cal_zb .bd0 {
  border: 0 !important;
}
#Cb_zb,
#Cb_b1,
#Cb_b2 {
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: normal;
  word-break: normal;
}
#page10 canvas {
  margin-top: 8px;
}
 #Cal_pan {
  display: none;
  position: absolute;
  z-index: 1;
  width: 220px !important;
  font-size: 12px;
  filter: shadow(color=#333333,direction=135);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18) !important;
  overflow: hidden;
 }
 #Cal_pan_in {
  display: block;
  width: auto !important;
  padding: 10px 12px !important;
  background: rgba(17, 24, 39, .94) !important;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 13px;
  line-height: 150%;
  text-align: center;
  opacity: .9;
  -moz-opacity: .9;
  filter: Alpha(opacity=90);
 }
 #out {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-subtle);
 }
 @media (max-width: 820px) {
  center {
   width: min(100vw - 16px, 100%);
   margin: 8px auto 24px;
  }
  body > center table[width="770"],
  body > center table[width="900"] {
   width: 100% !important;
  }
  body > center table[width="770"] > tbody,
  body > center table[width="770"] > tbody > tr,
  body > center table[width="770"] > tbody > tr > td {
   display: block;
   width: 100% !important;
  }
  body > center > table > tbody > tr > td > table:first-child > tbody > tr:first-child td,
  body > center > table > tbody > tr > td > table:first-child > tbody > tr:first-child td[align="right"] {
   display: block;
   width: 100% !important;
   text-align: left;
  }
  body > center > table > tbody > tr > td > table:first-child > tbody > tr:first-child input[type="button"] {
   margin-top: 8px;
  }
  #page1 > td,
  #page3 > td {
   display: block;
   width: 100% !important;
   max-width: 100% !important;
   min-width: 0 !important;
   border-right: 0;
  }
  [id^="page"] > td {
   padding: 12px;
  }
  input[type="button"] {
   padding: 5px 10px;
  }
  #Cal2 span[style*="Arial Black"] {
   min-width: 24px;
   font-size: 18px !important;
  }
  #Cal2 td {
   height: 52px;
   font-size: 12px;
  }
  textarea {
   width: 100%;
  }
 }
