:root {
  --paper: #f3f4ee;
  --paper-2: #fbfcf7;
  --ink: #151713;
  --muted: #62685e;
  --line: #d2d8cc;
  --accent: #c8f02d;
  --accent-deep: #607900;
  --danger: #a43d2d;
  --reading: "Times New Roman", "SimSun", "Songti SC", "STSong", "宋体", serif;
  --heading: "Arial Black", "Microsoft YaHei", "SimHei", sans-serif;
  --shadow: 0 20px 55px #15171312;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--reading); }
[hidden] { display: none !important; }
button, input, textarea, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #789807;
  outline-offset: 3px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 18% 20%, #dcff5960, transparent 31%), linear-gradient(145deg, #f8f9f3, #edf0e8);
}
.login-card {
  width: min(500px, 100%);
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fbfcf7ed;
  box-shadow: 0 32px 80px #15171319;
  backdrop-filter: blur(16px);
}
.eyebrow, .card-kicker {
  font-family: "Times New Roman", serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .17em;
  color: var(--accent-deep);
}
h1, h2, h3 { font-family: var(--heading); letter-spacing: .01em; }
.login-card h1 { font-size: clamp(3.2rem, 9vw, 5.5rem); line-height: .9; margin: 16px 0 24px; }
.login-card > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.login-card form { display: grid; gap: 10px; margin-top: 30px; }
label { font-weight: 700; }
input, textarea {
  width: 100%;
  border: 1px solid #bfc7b8;
  border-radius: 10px;
  background: #fff;
  padding: 12px 13px;
  font-family: var(--reading);
  font-size: 1rem;
  color: var(--ink);
}
input { min-height: 48px; }
textarea { resize: vertical; line-height: 1.6; }
input:focus, textarea:focus { outline: 3px solid #95b8174d; border-color: var(--accent-deep); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 12px 25px #1517131c; }
.button:active { transform: translateY(1px) scale(.97); transition-duration: .08s; }
.button:disabled { cursor: not-allowed; opacity: .48; transform: none; box-shadow: none; }
.button-dark { background: var(--ink); color: white; }
.button-accent { background: var(--accent); color: var(--ink); border-color: #819d0b; }
.form-message { min-height: 1.3em; margin: 4px 0 0; color: var(--danger); }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 0 max(5vw, 28px);
  border-bottom: 1px solid #d7dccf;
  background: #f3f4eeee;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.brand {
  width: max-content;
  color: var(--ink);
  font-family: "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .075em;
  text-decoration: none;
  opacity: 0;
  transition: opacity .2s;
}
.brand.is-visible { opacity: 1; }
.site-header nav { display: flex; gap: clamp(18px, 3vw, 38px); }
.site-header nav a { padding: 12px 2px; color: var(--muted); text-decoration: none; transition: color .2s, transform .2s; }
.site-header nav a:hover { color: var(--accent-deep); transform: translateY(-2px); }
.logout-button { justify-self: end; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.title-morph {
  position: fixed;
  z-index: 40;
  left: 0;
  top: 0;
  display: none;
  transform-origin: left top;
  white-space: nowrap;
  pointer-events: none;
  font-family: var(--heading);
  font-weight: 900;
  line-height: .88;
  letter-spacing: .015em;
  will-change: transform, opacity;
}

.hero {
  position: relative;
  min-height: min(730px, calc(100vh - 76px));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(85px, 12vw, 150px) max(7vw, 42px) clamp(90px, 11vw, 135px);
}
.hero > div:first-child { position: relative; z-index: 2; }
.hero h1 {
  max-width: 1180px;
  margin: 25px 0 38px;
  font-size: clamp(4.2rem, 6.8vw, 7.3rem);
  line-height: .86;
  letter-spacing: .015em;
  white-space: nowrap;
}
.hero-copy { max-width: 790px; color: var(--muted); font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.85; }
.hero-orbit { position: absolute; right: 5vw; top: 50%; width: min(28vw, 390px); aspect-ratio: 1; transform: translateY(-50%); }
.hero-orbit:before, .hero-orbit:after, .hero-orbit i {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #89917f60;
  border-radius: 50%;
}
.hero-orbit:after { inset: 14%; border-color: #78980780; }
.hero-orbit i:nth-child(1) { inset: 31%; border: 0; background: var(--accent); opacity: .7; }
.hero-orbit i:nth-child(2) { inset: 46%; border: 0; background: var(--ink); }
.hero-orbit i:nth-child(3) { inset: -9% 48%; border-radius: 0; border-width: 0 1px; animation: orbit-spin 12s linear infinite; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

.schedule-section, .tools-section, .reminder-section { scroll-margin-top: 86px; }
.schedule-section { padding: clamp(90px, 10vw, 140px) max(7vw, 42px); background: linear-gradient(180deg, #f8faf4, #edf1e8); }
.section-intro { margin-bottom: 48px; }
.section-intro h2, .section-head h2 { margin: 15px 0 0; font-size: clamp(3.3rem, 6.7vw, 6.8rem); line-height: .92; }
.schedule-grid { display: grid; grid-template-columns: minmax(280px, .68fr) minmax(560px, 1.32fr); gap: 18px; align-items: stretch; }
.today-stack { display: grid; grid-template-rows: .86fr 1.14fr; gap: 18px; }
.weather-card, .today-card, .calendar-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.weather-card { padding: clamp(25px, 3vw, 38px); background: linear-gradient(145deg, #151713, #292e25); color: #f8faf3; overflow: hidden; position: relative; }
.weather-card:after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--accent); opacity: .14; right: -90px; bottom: -120px; }
.weather-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.weather-topline > span { font-size: 1.08rem; font-weight: 700; }
.weather-topline button { border: 0; color: #c9d0c2; background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.weather-main { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 8px; }
.weather-main strong { font: 700 clamp(4rem, 7vw, 6.7rem)/.8 "Times New Roman", serif; letter-spacing: -.04em; }
.weather-main span { font-size: clamp(3rem, 6vw, 5.5rem); color: var(--accent); }
.weather-card > p { margin: 18px 0 25px; font-size: 1.2rem; color: #dce2d6; }
.weather-meta { position: relative; z-index: 1; display: flex; gap: 13px; flex-wrap: wrap; color: #bfc7ba; font-size: .9rem; }
.weather-meta a { color: #bfc7ba; text-underline-offset: 3px; }
.today-card { display: grid; align-content: center; padding: clamp(28px, 4vw, 46px); background: linear-gradient(145deg, #fbfcf7, #e8ede2); }
.today-card > span { font: 700 clamp(1.5rem, 2.7vw, 2.25rem)/1 var(--reading); color: var(--accent-deep); }
.today-card > strong { display: block; margin: clamp(18px, 3vw, 30px) 0; font: 700 clamp(5rem, 9vw, 8.5rem)/.72 "Times New Roman", serif; letter-spacing: -.055em; }
.today-card p { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.today-card em { color: var(--muted); font-size: .88rem; font-style: normal; letter-spacing: .1em; }
.today-card b { font: 700 clamp(1.9rem, 3.5vw, 3rem)/1 "Times New Roman", serif; letter-spacing: .055em; }

.calendar-card { padding: clamp(24px, 3.4vw, 42px); }
.calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.calendar-header span, .agenda-heading span { font: 700 .78rem/1 "Times New Roman", serif; letter-spacing: .15em; color: var(--accent-deep); }
.calendar-header h3, .agenda-heading h3 { margin: 9px 0 0; font-size: 1.6rem; }
.calendar-controls { display: flex; gap: 7px; }
.calendar-controls button { min-width: 42px; min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; transition: background .2s, transform .2s; }
.calendar-controls button:hover { background: #edf4dc; transform: translateY(-2px); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { padding: 22px 0 10px; color: var(--muted); font-size: .86rem; text-align: center; }
.calendar-grid { gap: 5px; }
.calendar-day {
  position: relative;
  min-height: 65px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 700 1.13rem/1 "Times New Roman", serif;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.calendar-day:hover { transform: translateY(-3px); background: #edf3df; border-color: #d1ddb7; }
.calendar-day.is-outside { opacity: .28; }
.calendar-day.is-today { border-color: #8ea912; }
.calendar-day.is-selected { background: var(--ink); color: white; border-color: var(--ink); }
.calendar-day.has-events:after { content: ""; position: absolute; left: 50%; bottom: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-deep); transform: translateX(-50%); box-shadow: 9px 0 0 #a5c51c; }
.calendar-day.is-selected.has-events:after { background: var(--accent); box-shadow: 9px 0 0 #e3ff78; }
.day-agenda { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.agenda-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.agenda-list { display: grid; gap: 8px; margin-top: 18px; }
.agenda-list > p { margin: 0; color: var(--muted); line-height: 1.6; }
.agenda-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 11px 13px; border-radius: 10px; background: #eef3e5; }
.agenda-item time { font: 700 1rem/1 "Times New Roman", serif; color: var(--accent-deep); }
.agenda-item strong { font-size: .98rem; }

.tools-section { padding: clamp(90px, 10vw, 140px) max(7vw, 42px); }
.tools-intro { display: grid; grid-template-columns: 1fr; }
.tools-intro > p:last-child { max-width: 620px; color: var(--muted); line-height: 1.7; }
.quick-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 18px; transition: grid-template-columns .65s cubic-bezier(.2, .75, .2, 1); }
.quick-grid:has(.tool-card-fullprof:hover), .quick-grid:has(.tool-card-fullprof:focus-within) { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); }
.tool-card {
  position: relative;
  display: grid;
  align-content: space-between;
  min-width: 0;
  min-height: 430px;
  padding: clamp(28px, 4vw, 50px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #fbfcf7, #edf1e7);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .4s, box-shadow .4s, border-color .4s, background .5s, color .5s;
}
.tool-card:after { content: ""; position: absolute; width: 260px; height: 260px; right: -130px; bottom: -130px; border-radius: 50%; background: var(--accent); opacity: .12; transition: transform .6s, opacity .6s; }
.tool-card:hover { transform: translateY(-7px); border-color: #b3c67e; box-shadow: 0 30px 65px #1517131e; }
.tool-card:hover:after { transform: scale(1.4); opacity: .23; }
.tool-card-lab { background: var(--ink); color: #f8faf3; border-color: #33372f; }
.tool-card-lab .card-kicker { color: var(--accent); }
.tool-card-lab p:not(.card-kicker) { color: #c5cbbf; }
.quick-grid:has(.tool-card-fullprof:hover) .tool-card-lab,
.quick-grid:has(.tool-card-fullprof:focus-within) .tool-card-lab { background: linear-gradient(145deg, #fbfcf7, #edf1e7); color: var(--ink); border-color: var(--line); }
.quick-grid:has(.tool-card-fullprof:hover) .tool-card-lab .card-kicker,
.quick-grid:has(.tool-card-fullprof:focus-within) .tool-card-lab .card-kicker { color: var(--accent-deep); }
.quick-grid:has(.tool-card-fullprof:hover) .tool-card-lab p:not(.card-kicker),
.quick-grid:has(.tool-card-fullprof:focus-within) .tool-card-lab p:not(.card-kicker) { color: var(--muted); }
.quick-grid:has(.tool-card-fullprof:hover) .tool-card-fullprof,
.quick-grid:has(.tool-card-fullprof:focus-within) .tool-card-fullprof { background: var(--ink); color: #f8faf3; border-color: #33372f; }
.quick-grid:has(.tool-card-fullprof:hover) .tool-card-fullprof .card-kicker,
.quick-grid:has(.tool-card-fullprof:focus-within) .tool-card-fullprof .card-kicker { color: var(--accent); }
.quick-grid:has(.tool-card-fullprof:hover) .tool-card-fullprof p:not(.card-kicker),
.quick-grid:has(.tool-card-fullprof:focus-within) .tool-card-fullprof p:not(.card-kicker) { color: #c5cbbf; }
.tool-card h3 { max-width: 650px; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.05; margin: 14px 0 22px; }
.tool-card p:not(.card-kicker) { max-width: 680px; color: var(--muted); font-size: 1.04rem; line-height: 1.8; transition: color .4s; }
.card-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; }
.text-button { border: 0; padding: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }

.reminder-section { padding: clamp(90px, 10vw, 140px) max(7vw, 42px); background: linear-gradient(180deg, #f8faf4, #eef1e9); }
.section-head { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; margin-bottom: 55px; }
.section-head > p { color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.reminder-layout { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(400px, 1.28fr); gap: 18px; }
.reminder-form, .reminder-list-panel { padding: clamp(24px, 3vw, 38px); border: 1px solid var(--line); border-radius: 20px; background: #fbfcf7; box-shadow: 0 16px 40px #1517130c; }
.reminder-form { display: grid; align-content: start; gap: 11px; }
.form-head, .list-toolbar { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.form-head span, .list-toolbar span { font: 700 .78rem/1 "Times New Roman", serif; letter-spacing: .14em; color: var(--accent-deep); }
.form-head strong, .list-toolbar strong { font-family: var(--heading); font-size: 1.35rem; }
.reminder-form .button { margin-top: 8px; }
.list-toolbar { border-bottom: 1px solid var(--line); padding-bottom: 19px; }
.reminder-list { display: grid; gap: 10px; }
.reminder-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid transparent; border-radius: 13px; transition: background .2s, border-color .2s, transform .2s; }
.reminder-item:hover { background: #eff4e5; border-color: #d2dcb9; transform: translateX(4px); }
.date-block { text-align: center; }
.date-block strong { display: block; font: 700 1.8rem/1 "Times New Roman", serif; color: var(--accent-deep); }
.date-block span { font-size: .84rem; color: var(--muted); }
.reminder-copy h3 { margin: 0 0 6px; font-size: 1.05rem; letter-spacing: 0; }
.reminder-copy p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.status-line { display: flex; align-items: center; gap: 8px; margin-top: 8px !important; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #8ca314; }
.status-sent .status-dot { background: #6b7467; }
.status-failed .status-dot { background: #c55643; }
.delete-button { border: 0; background: transparent; color: var(--muted); padding: 8px; cursor: pointer; font-size: 1.25rem; }
.delete-button:hover { color: var(--danger); }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); }

.resume-cta { display: flex; justify-content: space-between; align-items: end; gap: 40px; padding: clamp(75px, 9vw, 120px) max(7vw, 42px); background: var(--ink); color: white; }
.resume-cta h2 { margin: 13px 0 16px; font-size: clamp(3rem, 6vw, 6rem); }
.resume-cta p:not(.eyebrow) { color: #bdc5b8; font-size: 1.05rem; }
.resume-cta .eyebrow { color: var(--accent); }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 30px max(7vw, 42px); border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 1100px) {
  .brand { opacity: 1; }
  .title-morph { display: none !important; }
  #hero-title { opacity: 1 !important; }
  .hero h1 { white-space: normal; max-width: 900px; }
  .hero-orbit { opacity: .3; right: -7vw; }
  .schedule-grid { grid-template-columns: 1fr; }
  .today-stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; padding-top: 7px; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; padding-bottom: 8px; }
  .hero { min-height: auto; }
  .hero h1 { font-size: clamp(4.2rem, 14vw, 7rem); }
  .quick-grid, .quick-grid:has(.tool-card-fullprof:hover), .quick-grid:has(.tool-card-fullprof:focus-within), .reminder-layout, .section-head { grid-template-columns: 1fr; }
  .tool-card { min-height: 360px; }
  .tool-card-lab { order: 1; }
  .tool-card-fullprof { order: 2; }
  .section-head > p { max-width: 650px; }
  .reminder-item { grid-template-columns: 70px 1fr auto; }
  .resume-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 650px) {
  .site-header { padding-inline: 20px; }
  .hero, .schedule-section, .tools-section, .reminder-section, .resume-cta { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 80px; }
  .hero h1 { font-size: clamp(3.2rem, 14vw, 4.7rem); overflow-wrap: anywhere; }
  .hero .eyebrow { max-width: 100%; font-size: .74rem; line-height: 1.55; overflow-wrap: anywhere; }
  .hero-orbit { display: none; }
  .today-stack { grid-template-columns: 1fr; }
  .weather-main strong { font-size: 5rem; }
  .today-card > strong { font-size: 6.5rem; }
  .calendar-card { padding: 18px; }
  .calendar-header, .agenda-heading { align-items: flex-start; flex-direction: column; }
  .calendar-day { min-height: 48px; }
  .calendar-weekdays { padding-top: 17px; }
  .tool-card { padding: 27px; min-height: 340px; }
  .reminder-form, .reminder-list-panel { padding: 20px; }
  .reminder-item { grid-template-columns: 60px 1fr; gap: 12px; padding: 15px 8px; }
  .delete-button { grid-column: 2; justify-self: start; }
  .section-intro h2, .section-head h2 { font-size: 3.5rem; }
  footer { flex-direction: column; padding: 24px 20px; }
}

@media (hover: none) {
  .quick-grid, .quick-grid:has(.tool-card-fullprof:hover) { grid-template-columns: 1fr; }
  .tool-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .title-morph { display: none !important; }
  .brand { opacity: 1; }
}
