/* 刻准 — electric blue + deep navy + signal yellow. Shared shell: base.css */
:root {
  --accent: #2556d8;
  --accent-dark: #17398f;
  --accent-soft: #dce6ff;
  --ts-bg: #edf1fb;
  --ts-paper: #f8faff;
  --ts-navy: #0b1535;
  --ts-navy-soft: #16244d;
  --ts-blue: #2556d8;
  --ts-blue-bright: #4d7cff;
  --ts-cyan: #8ce7dc;
  --ts-yellow: #ffd166;
  --ts-coral: #ff8264;
  --ts-line: #c4d0ea;
  --ts-muted: #586681;
}

::selection { color: var(--ts-paper); background: var(--ts-blue); }

body {
  color: var(--ink);
  background-color: var(--ts-bg);
  background-image:
    radial-gradient(circle at 91% -8%, rgba(140, 231, 220, .5), transparent 31rem),
    radial-gradient(circle at 7% 36%, rgba(255, 209, 102, .25), transparent 29rem),
    linear-gradient(rgba(31, 62, 130, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 62, 130, .045) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
}

.brand-mark {
  color: var(--ts-navy);
  background: var(--ts-yellow);
  font-family: var(--font-display);
  font-size: 20px;
}
.brand-mark.small { background: var(--ts-yellow); }
.eyebrow span { color: #fff; background: var(--ts-navy); }
.top-nav a::after { background: var(--ts-yellow); }
.site-footer { background: #080f26; }
.site-footer .footer-mark { color: var(--ts-navy); background: var(--ts-yellow); }
.footer-links a:hover,
#toolLinks a:hover { color: var(--ts-yellow); }

/* Hero */
.timestamp-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: clamp(42px, 7vw, 90px);
  padding-block: clamp(52px, 7.5vw, 98px) 74px;
}
.timestamp-hero h1 { letter-spacing: -.072em; }
.timestamp-hero h1 em { color: var(--accent); }
.timestamp-hero h1 em::after {
  left: -.02em;
  right: -.03em;
  bottom: .09em;
  height: .19em;
  background: var(--ts-yellow);
  opacity: .95;
  border-radius: 0;
  transform: skewX(-8deg);
}
.timestamp-hero .hero-lead { max-width: 650px; }
.hero-note {
  max-width: 650px;
  margin: 25px 0 0 !important;
  padding: 12px 14px;
  color: #405171 !important;
  background: rgba(248, 250, 255, .72);
  border-left: 4px solid var(--ts-blue);
  border-radius: 0 9px 9px 0;
  font-size: 11.5px !important;
  line-height: 1.75;
}
.hero-note strong { color: var(--ts-navy); }
.timestamp-hero .hero-facts span {
  background: rgba(248, 250, 255, .73);
  border-color: #9fb0d2;
}

.time-console {
  position: relative;
  width: min(100%, 448px);
  justify-self: end;
  overflow: hidden;
  padding: 20px 21px 16px;
  color: #f6f9ff;
  background:
    radial-gradient(circle at 96% 8%, rgba(77, 124, 255, .34), transparent 12rem),
    linear-gradient(138deg, rgba(140, 231, 220, .08), transparent 37%),
    var(--ts-navy);
  border: 2px solid var(--ts-navy);
  border-radius: 22px;
  box-shadow: 11px 11px 0 var(--ts-yellow);
  transform: rotate(1deg);
}
.time-console::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(140, 231, 220, .15);
  border-radius: 16px;
  pointer-events: none;
}
.time-console::after {
  content: "";
  position: absolute;
  top: -18px;
  right: 48px;
  width: 78px;
  height: 37px;
  background: var(--ts-yellow);
  border-radius: 0 0 5px 5px;
  opacity: .9;
}
.console-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 3px 13px;
  color: #91a1c8;
  border-bottom: 1px dashed rgba(140, 231, 220, .24);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .13em;
}
.console-top b {
  padding: 4px 8px;
  color: var(--ts-navy);
  background: var(--ts-cyan);
  border-radius: 3px;
  font-size: 8px;
}
.console-orbit {
  position: absolute;
  z-index: 1;
  right: -58px;
  top: 53px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(140, 231, 220, .14);
  border-radius: 50%;
  pointer-events: none;
}
.console-orbit::before,
.console-orbit::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(140, 231, 220, .1);
  border-radius: 50%;
}
.console-orbit::after { inset: 48px; border-color: rgba(255, 209, 102, .18); }
.console-orbit i {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--ts-yellow);
  border-radius: 50%;
}
.console-orbit i:nth-child(1) { left: 25px; top: 32px; }
.console-orbit i:nth-child(2) { right: 31px; top: 87px; background: var(--ts-cyan); }
.console-orbit i:nth-child(3) { left: 86px; bottom: 17px; }
.console-main {
  position: relative;
  z-index: 2;
  padding: 25px 4px 21px;
}
.console-label {
  margin: 0 0 7px;
  color: var(--ts-cyan);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
}
.console-main > strong {
  display: block;
  max-width: 100%;
  color: #fff;
  font-family: var(--font-mono);
  font-size: clamp(38px, 5.7vw, 61px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.console-clock-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 12px;
  margin-top: 13px;
}
.console-clock-row span {
  color: var(--ts-yellow);
  font-family: var(--font-mono);
  font-size: clamp(19px, 2.5vw, 26px);
  font-weight: 600;
  letter-spacing: .02em;
}
.console-clock-row small {
  color: #91a1c8;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
}
.console-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px dashed rgba(140, 231, 220, .24);
}
.console-grid div {
  min-width: 0;
  padding: 9px 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(140, 231, 220, .14);
  border-radius: 8px;
}
.console-grid small {
  display: block;
  color: #7f90b9;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
}
.console-grid strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #edf3ff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.console-ruler {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 16px;
  margin-top: 16px;
  padding-inline: 2px;
  border-bottom: 1px solid rgba(255, 209, 102, .48);
}
.console-ruler i { width: 1px; height: 5px; background: rgba(255, 209, 102, .55); }
.console-ruler i:nth-child(3n + 1) { height: 11px; background: var(--ts-yellow); }
.console-foot {
  position: relative;
  z-index: 2;
  margin: 12px 0 0;
  color: #7f90b9;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .07em;
  text-align: right;
}

/* Tool */
.timestamp-tool {
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, .86fr);
  gap: 28px;
}
.converter-card { overflow: visible; }
.converter-card .card-heading p:not(.section-index) { max-width: 520px; }
.compact-heading { align-items: flex-start; }
.compact-heading h2 { font-size: clamp(23px, 3vw, 29px); }
.status-pill.is-ok { color: var(--card); background: var(--green); border-color: var(--green); }

.converter-card .mode-tabs {
  display: flex;
  width: 100%;
  margin: 24px 0 20px;
}
.converter-card .mode-tab { flex: 1 1 0; }
.converter-card .mode-tab.is-active { background: var(--ts-navy); box-shadow: 2px 2px 0 var(--ts-yellow); }

.zone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 13px;
  padding: 14px;
  margin-bottom: 12px;
  background: #eef2fb;
  border: 1px solid var(--ts-line);
  border-radius: 12px;
}
.zone-field { display: block; min-width: 0; }
.zone-field > span,
.output-unit-row > span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: #3d4d6f;
  font-size: 11px;
  font-weight: 650;
}
.zone-field select { min-height: 41px; padding-block: 8px; background-color: #fff; font-size: 12px; }
.premium-tag {
  display: inline-block;
  padding: 1px 5px;
  color: #fff;
  background: var(--ts-blue);
  border-radius: 3px;
  font-style: normal;
  font-size: 8px;
  line-height: 1.6;
}
.zone-readout {
  max-width: 180px;
  margin: 0 0 10px;
  color: var(--ts-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  text-align: right;
  overflow-wrap: anywhere;
}
.timezone-lock { margin: 0 0 18px; padding-block: 9px; }

.timestamp-field .field-label small { color: var(--ts-muted); font-size: 10px; }
.unit-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #e9eefb;
  border: 1px solid #aebbd8;
  border-radius: 8px;
}
.unit-button {
  min-height: 31px;
  padding: 4px 11px;
  color: #596784;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.unit-button.is-active {
  color: #fff;
  background: var(--ts-blue);
  box-shadow: 1px 1px 0 var(--ts-navy);
}
.timestamp-input-row input {
  min-height: 54px;
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: .01em;
}
.timestamp-input-row #dateInput { font-size: 15px; }
.timestamp-input-row .button { min-height: 54px; white-space: nowrap; }
.output-unit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding: 11px 13px;
  background: var(--ts-paper);
  border: 1px dashed #aab8d7;
  border-radius: 9px;
}
.output-unit-row > span:first-child { margin: 0; }
.convert-actions { align-items: center; }
.convert-button { min-width: 180px; }
.convert-button span:first-child { font-size: 20px; }
.convert-actions .mini-note { margin: 0; }

/* Result */
.result-stage {
  position: relative;
  overflow: hidden;
  margin-top: 25px;
  padding: clamp(20px, 3.2vw, 28px);
  color: #eff4ff;
  background:
    radial-gradient(circle at 100% 0, rgba(77, 124, 255, .38), transparent 18rem),
    linear-gradient(135deg, rgba(140, 231, 220, .06), transparent 45%),
    var(--ts-navy);
  border: 2px solid var(--ts-navy);
  border-radius: 15px;
  box-shadow: 6px 6px 0 var(--ts-yellow);
}
.result-stage::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -65px;
  bottom: -85px;
  border: 24px solid rgba(140, 231, 220, .09);
  border-radius: 50%;
  pointer-events: none;
}
.result-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8797bc;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.result-topline b {
  padding: 4px 8px;
  color: var(--ts-navy);
  background: var(--ts-cyan);
  border-radius: 3px;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .05em;
}
#result {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  min-height: 1.1em;
  margin: 13px 0 0;
  padding: 0;
  overflow: visible;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: clamp(25px, 4vw, 39px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -.045em;
  white-space: normal;
  overflow-wrap: anywhere;
}
#result:empty::before { content: "—"; color: #7f90b9; }
.result-meta {
  position: relative;
  z-index: 1;
  margin: 9px 0 0;
  color: #aab8d8;
  font-size: 11.5px;
  line-height: 1.7;
}
.result-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
}
.result-stage .button-quiet {
  color: var(--ts-navy);
  background: var(--ts-paper);
  border-color: var(--ts-paper);
}
.result-stage .button-quiet:hover:not(:disabled) { box-shadow: 3px 3px 0 var(--ts-cyan); }
.result-route {
  color: #8293b9;
  font-family: var(--font-mono);
  font-size: 9px;
}

/* Side cards */
.live-card {
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .3), transparent 48%),
    var(--ts-yellow);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ts-navy);
}
.live-card .section-index { color: #604700; }
.live-card .card-heading { align-items: center; }
.live-card h2 { margin: 0; font-family: var(--font-display); font-size: 29px; }
.live-dot {
  width: 10px;
  height: 10px;
  background: #e04723;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(224, 71, 35, .16);
  animation: live-pulse 1.7s ease-in-out infinite;
}
@keyframes live-pulse {
  50% { box-shadow: 0 0 0 9px rgba(224, 71, 35, 0); }
}
.live-label {
  margin: 21px 0 1px;
  color: #604700;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.live-seconds {
  margin: 0;
  color: var(--ts-navy);
  font-family: var(--font-mono);
  font-size: clamp(34px, 4.3vw, 45px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.06em;
  overflow-wrap: anywhere;
}
.live-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(11, 21, 53, .2);
}
.live-line span { color: #654e10; font-size: 10px; }
.live-line strong { font-family: var(--font-mono); font-size: 11px; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.live-card .button-dark { width: 100%; margin-top: 17px; color: var(--ts-paper); background: var(--ts-navy); border-color: var(--ts-navy); box-shadow: 3px 3px 0 rgba(255, 255, 255, .52); }
.live-card .button-dark:hover:not(:disabled) { box-shadow: 3px 3px 0 rgba(11, 21, 53, .25); }
.live-note { margin: 12px 0 0; color: #654e10; font-size: 10px; line-height: 1.65; }

.format-card { padding: 24px; }
.format-list { display: grid; gap: 0; margin-top: 16px; border-top: 1px solid var(--ts-line); }
.format-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 47px;
  padding: 7px 0;
  border-bottom: 1px dashed #d1d9ea;
}
.format-row > span { color: var(--ts-muted); font-size: 10px; }
.format-row code {
  min-width: 0;
  color: #1d2d51;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.format-copy {
  min-height: 34px;
  padding: 4px 8px;
  color: var(--accent-dark);
  background: #edf2ff;
  border: 1px solid #aab8d9;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  cursor: pointer;
}
.format-copy:hover { background: var(--ts-yellow); }
.format-copy.is-copied { color: var(--ink); background: var(--green-soft); border-color: var(--green); }
.format-note { margin: 15px 0 0; color: var(--ts-muted); font-size: 10px; line-height: 1.65; }

/* Batch */
.batch-section { margin-top: 55px; scroll-margin-top: 28px; }
.batch-card {
  padding: clamp(23px, 4vw, 38px);
  background: var(--ts-paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--ts-navy);
}
.batch-card .batch-heading p:not(.section-index) { max-width: 630px; }
.batch-card .lock-note { max-width: 850px; }
.batch-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 25px;
  margin-top: 24px;
}
.batch-input-panel,
.batch-output-panel { min-width: 0; }
.batch-input-panel textarea {
  min-height: 292px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.batch-actions { margin-top: 12px; }
.batch-actions .button { flex: 1 1 auto; }
.batch-output-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 15px;
  background: #eff3fc;
  border: 1px solid var(--ts-line);
  border-radius: 12px;
}
.batch-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  padding: 0 2px 11px;
  border-bottom: 1px solid #c7d2e8;
}
.batch-summary-row strong { font-family: var(--font-display); font-size: 18px; }
.batch-summary-row span { color: var(--ts-muted); font-size: 10px; line-height: 1.5; text-align: right; }
.batch-table-wrap { flex: 1; max-width: 100%; overflow-x: auto; }
.batch-table { min-width: 610px; margin-top: 7px; font-size: 11px; }
.batch-table th { padding: 8px 7px; font-family: var(--font-mono); font-size: 8px; letter-spacing: .04em; }
.batch-table td { padding: 8px 7px; border-bottom: 1px dashed #cbd4e6; }
.batch-table .mono-cell { font-family: var(--font-mono); font-size: 9.5px; }
.batch-table tr.is-error td { color: #a52f1a; background: #ffebe5; }
.empty-state { margin: 0; padding: 43px 16px; color: #71809d; font-size: 11.5px; line-height: 1.7; text-align: center; }

/* How-to, FAQ and premium */
.guide-shell,
.faq-shell { margin-top: 54px; }
.guide-heading h2 { color: var(--ts-navy); }
.how-to-grid li { box-shadow: 3px 3px 0 var(--ts-navy); }
.how-to-grid li > span { background: var(--ts-blue); }
.faq-list details { background: rgba(248, 250, 255, .82); }
.faq-list summary::after { color: var(--ts-blue); }
.unlock-section { margin-top: 56px; }
.premium-map { background: var(--ts-paper); box-shadow: 5px 5px 0 var(--ts-yellow); }
.premium-map li span { color: var(--ts-blue); }
.referral-card { box-shadow: 7px 7px 0 var(--ts-yellow); }
.referral-copy { color: var(--ts-navy); background: var(--ts-yellow); border-color: var(--ts-yellow); }
.referral-dot { background: var(--ts-yellow); }
.referral-steps i.is-filled { background: var(--ts-yellow); }

@media (max-width: 980px) {
  .timestamp-hero { grid-template-columns: 1fr; padding-bottom: 58px; }
  .time-console { justify-self: start; width: min(100%, 500px); transform: rotate(.5deg); }
  .timestamp-tool { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr 1fr; }
  .batch-grid { grid-template-columns: 1fr; }
  .batch-input-panel textarea { min-height: 240px; }
}

@media (max-width: 700px) {
  .timestamp-hero { gap: 35px; }
  .timestamp-hero h1 { font-size: clamp(48px, 16vw, 70px); }
  .time-console { padding: 18px 17px 14px; box-shadow: 7px 7px 0 var(--ts-yellow); }
  .console-main > strong { font-size: clamp(35px, 11vw, 52px); }
  .side-stack { grid-template-columns: 1fr; }
  .zone-row { grid-template-columns: 1fr; align-items: start; }
  .zone-readout { max-width: none; margin: 0; padding-left: 2px; text-align: left; }
  .timestamp-input-row .button { width: 100%; flex-basis: 100%; }
  .result-stage { box-shadow: 4px 4px 0 var(--ts-yellow); }
  #result { font-size: clamp(24px, 7.2vw, 34px); }
  .format-row { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .batch-card { box-shadow: 5px 5px 0 var(--ts-navy); }
  .batch-summary-row { align-items: flex-start; flex-direction: column; gap: 3px; }
  .batch-summary-row span { text-align: left; }
  .batch-table { min-width: 590px; }
}

@media (max-width: 430px) {
  .site-header .top-nav a:nth-child(2) { display: none; }
  .timestamp-hero { padding-top: 36px; padding-bottom: 45px; }
  .timestamp-hero h1 { font-size: clamp(44px, 15.4vw, 58px); }
  .time-console::after { right: 30px; width: 62px; }
  .console-main { padding-block: 21px 18px; }
  .console-main > strong { font-size: clamp(32px, 10.5vw, 45px); }
  .console-grid { gap: 6px; }
  .console-grid div { padding: 8px; }
  .converter-card .mode-tabs { flex-direction: column; }
  .converter-card .mode-tab { width: 100%; }
  .field-label { align-items: flex-start; }
  .timestamp-input-row { flex-direction: column; }
  .timestamp-input-row input { width: 100%; }
  .unit-button { min-height: 38px; }
  .output-unit-row { align-items: flex-start; flex-direction: column; }
  .convert-actions { align-items: stretch; flex-direction: column; }
  .convert-button { width: 100%; }
  .result-actions { align-items: stretch; flex-direction: column; }
  .result-actions .button { width: 100%; }
  .result-route { text-align: center; }
  .format-row { grid-template-columns: 1fr auto; gap: 3px 9px; padding-block: 9px; }
  .format-row > span { grid-column: 1; }
  .format-row code { grid-column: 1 / -1; grid-row: 2; }
  .format-copy { grid-column: 2; grid-row: 1; min-height: 38px; }
  .batch-actions { align-items: stretch; flex-direction: column; }
  .batch-actions .button { width: 100%; }
  .batch-output-panel { padding: 12px; }
  .batch-table { min-width: 555px; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}
