:root {
  --tj-ink: #06080d;
  --tj-surface: #0b1018;
  --tj-surface-glass: rgba(11, 17, 27, 0.94);
  --tj-card: #0d1420;
  --tj-paper: #f0f3f8;
  --tj-muted: #8893a6;
  --tj-faint: #566173;
  --tj-line: rgba(235, 240, 250, 0.12);
  --tj-border-strong: rgba(235, 240, 250, 0.20);
  --tj-accent: #d47769;
  --tj-accent-deep: #ba4e42;
  --tj-gold: #cca86e;
  --tj-gold-light: #f0d8a8;
  --tj-positive: #5bc995;
  --tj-danger: #ee7878;
}

.tj-brand {
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.tj-brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: block;
}

.tj-brand-word {
  min-width: 0;
  display: block;
}

.tj-brand .tj-brand-word strong {
  display: block;
  color: var(--tj-paper);
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .13em;
  white-space: nowrap;
}

.tj-brand .tj-brand-word small {
  display: block;
  margin-top: 4px;
  color: var(--tj-gold);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 8.5px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .19em;
  white-space: nowrap;
}

.tj-mobile-dock { display: none; }

.tj-calendar-notice {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--tj-line);
  border-radius: 14px;
  background: var(--tj-card);
  color: var(--tj-paper);
}

.tj-calendar-notice strong { font-size: 14px; color: var(--tj-paper); }
.tj-calendar-notice span { color: var(--tj-muted); font-size: 12px; line-height: 1.55; }
.tj-calendar-notice[data-calendar="lunar"] { border-color: rgba(204, 168, 110, 0.4); }
.tj-calendar-notice[data-calendar="lunar"] strong { color: var(--tj-gold-light); }

.tj-lunar-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(204, 168, 110, 0.35);
  border-radius: 14px;
  background: rgba(204, 168, 110, 0.08);
  color: var(--tj-paper);
  font-size: 13px;
  line-height: 1.55;
}

.tj-lunar-confirm[hidden] { display: none; }
.tj-lunar-confirm input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--tj-gold);
}

@media (max-width: 780px) {
  .tj-brand { gap: 10px; }
  .tj-brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .tj-brand .tj-brand-word strong { font-size: 16px; letter-spacing: .11em; }
  .tj-brand .tj-brand-word small { display: none; }
  body:has(.tj-mobile-dock) { padding-bottom: 84px; }
  .tj-mobile-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 80;
    min-height: 62px;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    border: 1px solid rgba(240, 243, 248, .16);
    border-radius: 21px;
    background:
      linear-gradient(135deg, rgba(255,255,255,.08), transparent 34%),
      linear-gradient(160deg, rgba(18,27,41,.79), var(--tj-surface-glass));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.15),
      inset 0 -1px 0 rgba(255,255,255,.035),
      0 20px 60px rgba(0,0,0,.54),
      0 0 0 1px rgba(6,8,13,.18);
    backdrop-filter: blur(26px) saturate(148%);
    -webkit-backdrop-filter: blur(26px) saturate(148%);
  }
  .tj-mobile-dock a, .tj-mobile-dock button {
    min-width: 0;
    min-height: 48px;
    padding: 0 3px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    color: var(--tj-muted);
    background: transparent;
    text-decoration: none;
    font: 700 11px/1 "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .tj-mobile-dock a[aria-current="page"], .tj-mobile-dock button[aria-current="page"] {
    color: #ffffff;
    background:
      linear-gradient(145deg, rgba(255,255,255,.12), transparent 48%),
      rgba(186, 78, 66, .82);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.16),
      0 6px 18px rgba(96, 34, 29, .38);
  }
  .tj-mobile-dock button { color: var(--tj-muted); background: transparent; }
}

@media (prefers-reduced-transparency: reduce) and (max-width: 780px) {
  .tj-mobile-dock { background: var(--tj-ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
