/* 万年历独立微信风格；不加载共享 style.css，避免影响其他页面。 */
:root {
  color-scheme:light;
  --accent:#07c160;
  --green-text:#079447;
  --ink:#191919;
  --muted:#888;
  --line:#ededed;
  --bg:#f7f7f7;
  --red:#e25555;
  --success:#079447;
  --text:#191919;
  --text-2:#555;
  --text-3:#888;
  --text-muted:#888;
  --text-dim:#b2b2b2;
  --border-soft:#ededed
}

* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
  font-size:14px
}
a {
  color:inherit;
  text-decoration:none
}
button {
  font:inherit;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent
}
button:active {
  transform:scale(.97)
}
button:focus-visible,a:focus-visible {
  outline:2px solid var(--green-text);
  outline-offset:3px
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap
}
.site-header {
  background:#fff;
  border-bottom:1px solid var(--line)
}
.header-inner {
  max-width:1320px;
  margin:auto;
  height:56px;
  display:flex;
  align-items:center;
  gap:66px;
  padding:0 20px
}
.site-brand {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:17px;
  font-weight:500;
  letter-spacing:.2px;
  flex:none
}
.clock-logo {
  width:22px;
  height:22px;
  display:block;
  flex:none;
}
.primary-nav {
  height:100%;
  display:flex;
  align-items:stretch;
  gap:34px
}
.primary-nav a {
  position:relative;
  display:flex;
  align-items:center;
  font-size:16px;
  padding:0 4px
}
.primary-nav a.active {
  color:var(--green-text);
  font-weight:500
}
.primary-nav a.active:after {
  position:absolute;
  content:"";
  width:22px;
  height:3px;
  background:var(--accent);
  border-radius:2px;
  bottom:0;
  left:50%;
  transform:translateX(-50%)
}
.header-caption {
  margin-left:auto;
  color:#b2b2b2;
  font-size:12px;
  white-space:nowrap
}
.sub-nav {
  max-width:1120px;
  margin:0 auto;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:32px;
  font-size:14px;
  color:#888
}
.sub-nav a.active {
  color:var(--green-text);
  font-weight:500
}
.cal-main {
  max-width:1120px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:24px;
  align-items:start
}
.calendar-column,.day-column {
  min-width:0
}
.cal-card {
  background:#fff;
  border-radius:8px;
  padding:26px 28px 20px
}
.cal-head {
  display:flex;
  align-items:center;
  gap:4px;
  margin-bottom:25px
}
.cal-title {
  order:-1;
  font-size:23px;
  font-weight:500;
  letter-spacing:.5px;
  margin-right:15px;
  font-variant-numeric:tabular-nums
}
.cal-nav {
  border:0;
  background:transparent;
  width:36px;
  height:36px;
  font-size:26px;
  font-weight:300;
  color:#888;
  border-radius:4px
}
.cal-nav:hover {
  background:#f5f5f5;
  color:#191919
}
.cal-today {
  margin-left:auto;
  border:0;
  background:#f2f2f2;
  color:var(--green-text);
  font-weight:500;
  border-radius:4px;
  min-height:36px;
  padding:0 18px
}
.cal-today:hover {
  background:#e9e9e9
}
.cal-week,.cal-grid {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr))
}
.cal-week {
  padding-bottom:14px;
  margin-bottom:9px;
  border-bottom:1px solid var(--line);
  text-align:center;
  color:#888;
  font-size:13px
}
.cal-week span:nth-child(n+6) {
  color:#a2a2a2
}
.cal-grid {
  gap:8px 6px;
  grid-auto-rows:minmax(64px,auto)
}
.cal-day {
  border:1px solid transparent;
  background:transparent;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  padding:7px 2px;
  min-width:0;
  width:100%;
  max-width:78px;
  justify-self:center;
  border-radius:5px;
  color:#191919;
  transition:background .15s
}
.cal-day .d {
  font-size:24px;
  font-weight:400;
  line-height:28px;
  font-variant-numeric:tabular-nums
}
.cal-day .l {
  font-size:11px;
  line-height:16px;
  color:#999;
  white-space:nowrap;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis
}
.cal-day.dim .d,.cal-day.dim .l {
  color:#ccc
}
.cal-day:hover {
  background:#f3f3f3
}
.cal-day.today:not(.selected) .d {
  color:var(--green-text)
}
.cal-day.today:after {
  content:"";
  width:4px;
  height:4px;
  background:var(--accent);
  border-radius:50%;
  position:absolute;
  bottom:2px
}
.cal-day.cal-holiday {
  background:#fff5f5
}
.cal-day.cal-holiday .d,.cal-day.cal-holiday .l {
  color:#dc6262
}
.cal-day.cal-holiday.dim {
  background:#fff8f8
}
.cal-status-badge {
  position:absolute;
  top:2px;
  right:3px;
  font-size:9px;
  line-height:12px;
  color:#d95858
}
.cal-workday .cal-status-badge {
  color:#888;
  background:#f0f0f0;
  border-radius:2px;
  padding:1px 2px
}
.cal-day.selected {
  background:var(--accent);
  color:#fff
}
.cal-day.selected .d,.cal-day.selected .l,.cal-day.selected .cal-status-badge {
  color:#fff
}
.cal-day.selected:after {
  background:#fff
}
.cal-vac {
  background:#fff;
  margin-top:16px;
  padding:6px 22px;
  border-radius:8px
}
.cal-vac-overview {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px 24px;
  padding:16px 0;
  font-size:13px;
  color:#888
}
.cal-vac-item b {
  font-weight:400;
  color:#191919
}
.cal-vac-item i {
  font-style:normal;
  color:var(--green-text);
  margin-left:6px
}
.cal-vac-total {
  color:#aaa;
  margin-left:auto;
  font-size:12px
}
.cal-vac-body {
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .25s
}
.cal-vac.open .cal-vac-body {
  grid-template-rows:1fr
}
.cal-vac-inner {
  overflow:hidden;
  min-height:0
}
.cal-vac-detail-head {
  display:flex;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid var(--line);
  padding-top:18px
}
.cal-vac-name {
  font-size:16px;
  font-weight:500
}
.cal-vac-brief {
  color:var(--green-text);
  font-size:12px
}
.cal-vac-note {
  font-size:11px;
  color:#999;
  line-height:1.8;
  margin:0 0 18px
}
.cal-vac-note a {
  color:#576b95
}
.date-summary {
  background:#fff;
  border-radius:8px;
  padding:25px 24px 23px
}
.section-label {
  color:#888;
  font-size:12px
}
.date-number {
  font-size:76px;
  font-weight:400;
  line-height:1.1;
  margin:12px 0 15px;
  letter-spacing:-3px
}
.cal-detail-main {
  font-size:16px;
  font-weight:500;
  line-height:1.6
}
.cal-detail-sub {
  color:#999;
  font-size:12px;
  line-height:1.9;
  margin-top:9px
}
.hl-today-card {
  background:#fff;
  border-radius:8px;
  margin-top:16px;
  padding:22px 24px 10px
}
.hl-today-card:empty {
  display:none
}
.conv-label {
  font-size:16px;
  font-weight:500;
  padding-bottom:16px;
  border-bottom:1px solid var(--line)
}
.cal-vac-rows {
  margin:0;
  padding:0
}
.cal-vac-rows>div {
  display:flex;
  align-items:baseline;
  gap:14px;
  padding:13px 0;
  border-bottom:1px solid var(--line);
  font-size:12px;
  line-height:1.9
}
.cal-vac-rows>div:last-child {
  border-bottom:0
}
.cal-vac-rows dt {
  flex:none;
  width:26px;
  color:#999
}
.cal-vac-rows dd {
  margin:0;
  min-width:0;
  color:#666;
  flex:1
}
.hl-good dt,.hl-avoid dt {
  align-self:flex-start;
  text-align:center;
  border-radius:3px;
  line-height:24px;
  margin-top:1px
}
.hl-good dt {
  background:#eaf8ef;
  color:var(--green-text)
}
.hl-avoid dt {
  background:#fff0f0;
  color:#d95858
}
.hl-term {
  color:#555
}
.hl-note {
  color:#999
}
footer {
  max-width:1120px;
  margin:30px auto 24px;
  text-align:center;
  color:#b2b2b2;
  font-size:11px;
  line-height:1.8
}
.footer-links {
  display:flex;
  justify-content:center;
  gap:24px;
  color:#888;
  font-size:12px
}
footer p {
  margin:10px 0 0
}
[hidden] {
  display:none!important
}

@media(max-width:1190px) {
  .sub-nav,.cal-main {
  margin-left:28px;
  margin-right:28px
}
.header-inner {
  padding:0 28px;
  gap:45px
}
.header-caption {
  display:none
}
.primary-nav {
  gap:30px
}
.cal-main {
  grid-template-columns:minmax(0,1fr) 310px;
  gap:18px
}
.cal-card {
  padding:24px 20px
}

}

@media(max-width:850px) {
  .cal-main {
  grid-template-columns:minmax(0,1fr)
}
.day-column {
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:16px
}
.hl-today-card {
  margin:0
}
.date-summary {
  align-self:start
}
.cal-grid {
  grid-auto-rows:minmax(65px,auto)
}

}

@media(max-width:600px) {
  .header-inner {
  height:auto;
  min-height:102px;
  display:flex;
  flex-wrap:wrap;
  padding:18px 20px 0;
  gap:15px
}
.site-brand {
  font-size:16px;
  gap:6px
}
.clock-logo {
  width:21px;
  height:21px
}
.primary-nav {
  width:100%;
  height:43px;
  justify-content:space-between;
  gap:0
}
.primary-nav a {
  font-size:15px;
  padding:0 2px 7px
}
.primary-nav a.active:after {
  bottom:0
}
.sub-nav {
  margin:0;
  padding:0 20px;
  gap:28px;
  overflow-x:auto;
  white-space:nowrap;
  height:48px;
  justify-content:safe center;
  font-size:13px
}
.sub-nav a {
  flex:none
}
.cal-main {
  margin:0 12px;
  gap:12px
}
.cal-card {
  padding:20px 10px 14px;
  border-radius:6px
}
.cal-head {
  margin:0 7px 23px;
  gap:0
}
.cal-title {
  font-size:20px;
  letter-spacing:0;
  margin-right:5px
}
.cal-nav {
  width:32px
}
.cal-today {
  min-height:34px;
  padding:0 14px;
  font-size:13px
}
.cal-week {
  font-size:12px;
  margin-bottom:7px;
  padding-bottom:12px
}
.cal-grid {
  gap:5px 2px;
  grid-auto-rows:minmax(55px,auto)
}
.cal-day {
  padding:5px 0;
  gap:2px
}
.cal-day .d {
  font-size:21px;
  line-height:25px
}
.cal-day .l {
  font-size:10px;
  line-height:15px
}
.cal-status-badge {
  font-size:8px;
  right:1px;
  top:0
}
.cal-vac {
  margin-top:12px;
  padding:0 16px;
  border-radius:6px
}
.cal-vac-overview {
  gap:9px 18px;
  font-size:12px;
  padding:17px 0
}
.cal-vac-total {
  width:100%;
  margin:0;
  font-size:11px
}
.day-column {
  display:block
}
.date-summary {
  border-radius:6px;
  padding:20px;
  display:grid;
  grid-template-columns:60px 1fr;
  column-gap:16px;
  align-items:center
}
.date-number {
  grid-column:1;
  grid-row:1 / 3;
  font-size:48px;
  line-height:1;
  margin:0;
  letter-spacing:-2px
}
.section-label {
  display:none
}
.cal-detail {
  grid-column:2
}
.cal-detail-main {
  font-size:14px
}
.cal-detail-sub {
  font-size:11px;
  margin-top:5px;
  line-height:1.8
}
.hl-today-card {
  margin-top:12px;
  padding:20px 20px 10px;
  border-radius:6px
}
.conv-label {
  font-size:15px
}
.cal-vac-rows>div {
  font-size:13px;
  padding:14px 0
}
.cal-vac-rows dt {
  width:28px
}
.cal-vac-brief {
  font-size:11px
}
footer {
  margin:24px 0
}
.cal-vac-note {
  font-size:11px
}

}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
  transition:none!important
}
button:active {
  transform:none
}

}


/* 保留页脚访问统计浮层。 */
.stats-brand {
  position: relative;
  cursor: default;
  border-bottom: 1px dashed var(--text-dim);
}

.brand-stats {
  position: absolute;
  bottom: calc(100% + 10px);
  top: auto;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  padding: 14px 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.4;
}

.stats-brand:hover .brand-stats,
.stats-brand.open .brand-stats {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.bs-today {
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin-bottom: 10px;
}

.bs-today strong {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bs-bars {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.bs-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.bs-track {
  width: 12px;
  height: 40px;
  display: flex;
  align-items: flex-end;
  background: var(--fill);
  border-radius: var(--r-xs);
  overflow: hidden;
}

.bs-track i {
  display: block;
  width: 100%;
  background: var(--accent);
  border-radius: var(--r-xs) var(--r-xs) 0 0;
}

.bs-bar em {
  font-size: var(--fs-2xs);
  font-style: normal;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.bs-bar span {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.bs-loading {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  padding: 4px 2px;
}


:root {
  --r-xs: 4px;
  --r-md: 8px;
  --shadow-xl: 0 4px 20px rgba(0, 0, 0, .06);
  --fill: #f2f2f2;
  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
}
.brand-stats { border-color: var(--line); transform: translateX(-50%) translateY(4px); }

/* 桌面页头独立于内容宽度，主菜单保持居中；两栏按内容自然等高。 */
@media (min-width: 851px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
  }
  .site-brand { justify-self: start; }
  .primary-nav { justify-self: center; }
  .header-caption { justify-self: end; }
  .cal-main { align-items: stretch; }
  .calendar-column, .day-column {
    display: flex;
    flex-direction: column;
  }
  .cal-card {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .cal-grid { flex: 1; }
  .hl-today-card { flex: 1; }
}

/* 统一轻量导航：缩小视觉字号，保留原点击高度。 */
.site-brand{font-size:15px;font-weight:400;letter-spacing:.1px;gap:6px}
.clock-logo{width:20px;height:20px}
.primary-nav a{font-size:14px;font-weight:400}
.primary-nav a.active{font-weight:400}
.primary-nav a.active:after{width:18px;height:2px}
.sub-nav{font-size:12px}
.sub-nav a.active{font-weight:400}
@media(max-width:600px){
 .site-brand{font-size:14px;gap:5px}
 .clock-logo{width:19px;height:19px}
 .primary-nav a{font-size:13px}
 .sub-nav{font-size:12px}
}

/* 普通周末用淡绿休标，调休仅用深色班标；法定假期沿用红色。 */
.cal-day.cal-weekend{background:#f1f6f3}
.cal-weekend .cal-status-badge{background:#e0ece4;color:#427451;border-radius:3px;padding:1px 3px}
.cal-day.cal-workday{background:transparent;border-color:transparent}
.cal-workday .cal-status-badge{background:#94651c;color:#fff;border-radius:3px;padding:1px 3px;font-weight:500}
.cal-day.cal-workday .d{color:var(--ink);font-weight:400}
.cal-day.cal-workday .l{color:#999}
.cal-day.cal-workday.dim .d{color:#ccc}
.cal-day.cal-workday.dim .l{color:#ccc}
.cal-day.cal-weekend:hover{background:#e7f0e9}
.cal-day.cal-workday:hover{background:#f3f3f3}
.cal-day.selected,.cal-day.selected:hover{background:var(--accent);border-color:transparent}
.cal-day.selected .d,.cal-day.selected .l{color:#fff}
.cal-day.selected .cal-status-badge{background:#ffffffed;color:#307247}
.cal-day.selected.cal-workday .cal-status-badge{background:#94651c;color:#fff}
@media(max-width:560px){.cal-workday .cal-status-badge,.cal-weekend .cal-status-badge{padding:0 2px;font-size:9px;line-height:13px}}
