:root {
  --parchment: #f9f5e9;
  --parchment-dark: #f0e9d6;
  --ink: #2c1810;
  --ink-mid: #4a3728;
  --ink-light: #8b6f5e;
  --gold: #c49a23;
  --gold-light: #e8d07a;
  --gold-dark: #8c6b15;
  --red-seal: #b91c1c;
  --bamboo: #334233;
  --bamboo-mid: #4d634d;
  --bamboo-light: #80a680;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(44, 24, 16, 0.1);
  --shadow-lg: 0 8px 40px rgba(44, 24, 16, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(196, 154, 35, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(74, 140, 63, 0.04) 0%, transparent 60%);
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  line-height: 1.6;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

header {
  position: relative;
  overflow: hidden;
  padding: 40px 20px 36px;
  background: linear-gradient(135deg, var(--bamboo) 0%, #2a3d2a 50%, #1e2e1e 100%);
  color: var(--parchment);
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255, 255, 255, 0.02) 40px, rgba(255, 255, 255, 0.02) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255, 255, 255, 0.02) 40px, rgba(255, 255, 255, 0.02) 41px);
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}

.header-badge {
  border: 1px solid rgba(196, 154, 35, 0.35);
  border-radius: 20px;
  background: rgba(196, 154, 35, 0.15);
  color: var(--gold-light);
  padding: 3px 12px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
}

.site-title {
  color: #fff;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.site-subtitle {
  margin-top: 8px;
  color: var(--gold-light);
  text-align: center;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.3em;
}

.header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  color: rgba(232, 208, 122, 0.6);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.divider-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 208, 122, 0.5));
}

.divider-line.right {
  background: linear-gradient(90deg, rgba(232, 208, 122, 0.5), transparent);
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--parchment-dark);
  border-bottom: 1px solid rgba(196, 154, 35, 0.2);
  box-shadow: 0 2px 8px rgba(44, 24, 16, 0.06);
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

nav a {
  padding: 12px 18px;
  border-bottom: 2px solid transparent;
  color: var(--ink-mid);
  text-decoration: none;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: color 0.2s, border-color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

section {
  scroll-margin-top: 82px;
}

.today-hero,
.calendar-card,
.ai-outfit-container,
.principle-card,
.eeat-section {
  background: #fff;
  border: 1px solid rgba(196, 154, 35, 0.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.today-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
}

.today-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}

.today-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 32px 36px 24px;
}

.today-date-block h2 {
  margin-bottom: 4px;
  color: var(--ink-light);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.gregorian {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 700;
}

.lunar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ganzhi-pill {
  border: 1px solid rgba(196, 154, 35, 0.3);
  border-radius: 6px;
  background: var(--parchment);
  color: var(--ink-mid);
  padding: 3px 10px;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.today-element-badge {
  min-width: 120px;
  text-align: center;
}

.element-icon {
  display: block;
  min-height: 12px;
  margin-bottom: 2px;
  color: var(--gold);
  font-size: 0;
}

.element-name-big {
  display: block;
  margin-bottom: 2px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.04em;
}

.element-sub {
  color: var(--ink-light);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.color-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 36px 36px;
}

.element-desc-box {
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: var(--parchment);
  padding: 20px 22px;
}

.element-desc-box p {
  margin-bottom: 10px;
  color: var(--ink-mid);
  font-size: 0.95rem;
  line-height: 1.8;
}

.element-advice {
  border-top: 1px solid rgba(196, 154, 35, 0.2);
  padding-top: 10px;
  color: var(--ink-light);
  font-size: 0.88rem;
  line-height: 1.7;
}

.best-colors-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ink-mid);
  font-size: 1rem;
  letter-spacing: 1px;
}

.best-colors-box h3:not(:first-child) {
  margin-top: 18px;
}

.best-colors-box h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(196, 154, 35, 0.25);
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.swatch-circle {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.2s;
}

.swatch-circle:hover {
  transform: scale(1.12);
}

.swatch-label {
  color: var(--ink-light);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.72rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(196, 154, 35, 0.4), transparent);
}

.title-deco {
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--gold);
}

.calendar-section {
  margin-bottom: 42px;
}

.calendar-card {
  padding: 24px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.calendar-title {
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 700;
}

.calendar-subtitle,
.date-field span {
  color: var(--ink-light);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.78rem;
}

.icon-button,
.today-button {
  border: 1px solid rgba(196, 154, 35, 0.35);
  border-radius: 8px;
  background: var(--parchment);
  color: var(--ink-mid);
  transition: background 0.2s, transform 0.2s;
}

.icon-button {
  width: 38px;
  height: 38px;
  font-size: 1.6rem;
  line-height: 1;
}

.today-button {
  height: 38px;
  padding: 0 14px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.86rem;
}

.icon-button:hover,
.today-button:hover {
  background: #fff7de;
  transform: translateY(-1px);
}

.date-field {
  display: grid;
  gap: 3px;
}

.date-field input {
  height: 38px;
  border: 1px solid rgba(196, 154, 35, 0.35);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-mid);
  padding: 0 10px;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays {
  margin-bottom: 8px;
  color: var(--gold-dark);
  text-align: center;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.78rem;
}

.calendar-day,
.calendar-empty {
  min-height: 78px;
  border-radius: 10px;
}

.calendar-day {
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(196, 154, 35, 0.18);
  background: linear-gradient(135deg, #fff 0%, #fbf8ee 100%);
  color: var(--ink-mid);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.calendar-day:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.calendar-day.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--bamboo) 0%, #2a3d2a 100%);
  color: var(--parchment);
  box-shadow: var(--shadow-lg);
}

.calendar-day.today:not(.selected) {
  border-color: rgba(185, 28, 28, 0.45);
}

.day-number {
  font-size: 1.16rem;
  font-weight: 700;
}

.day-lunar,
.day-element {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.72rem;
}

.day-element {
  font-weight: 700;
}

.calendar-day.selected .day-element {
  filter: brightness(1.25) saturate(1.1);
}

.ai-outfit-container {
  margin-bottom: 48px;
  overflow: hidden;
}

.ai-outfit-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--bamboo) 0%, #2a3d2a 100%);
  color: var(--parchment);
  padding: 20px 28px;
}

.ai-outfit-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.section-mark {
  color: var(--gold-light);
  font-size: 1.2rem;
}

.ai-outfit-content {
  padding: 32px;
}

.advice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.advice-header h4 {
  color: var(--ink);
  font-size: 1.1rem;
}

.season-tag {
  border-radius: 20px;
  background: rgba(196, 154, 35, 0.1);
  color: var(--gold-dark);
  padding: 4px 12px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.78rem;
}

.lead-copy {
  border-left: 3px solid var(--gold);
  background: var(--parchment);
  padding: 16px 18px;
  color: var(--ink-mid);
  line-height: 1.8;
}

.sub-heading {
  margin: 28px 0 14px;
  color: var(--ink);
  font-size: 1rem;
}

.ratio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ratio-card {
  overflow: hidden;
  border: 1px solid rgba(196, 154, 35, 0.15);
  border-radius: 10px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.ratio-card strong {
  display: block;
  padding: 14px 8px;
  color: var(--ratio-percent-color, #fff);
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--ratio-color), var(--ratio-dark));
}

.ratio-card.best strong {
  background: linear-gradient(135deg, var(--ratio-color), var(--ratio-dark));
}

.ratio-card.second strong {
  background: linear-gradient(135deg, var(--ratio-color), var(--ratio-dark));
}

.ratio-card.accent strong {
  background: linear-gradient(135deg, var(--ratio-light), var(--ratio-color));
}

.ratio-card span,
.ratio-card b,
.ratio-card p,
.ratio-card small {
  display: block;
  padding: 0 14px;
}

.ratio-card span {
  margin-top: 12px;
  color: var(--ink-mid);
  font-size: 0.86rem;
}

.ratio-card b {
  color: var(--gold-dark);
  font-size: 0.82rem;
}

.ratio-card p {
  margin: 8px 0;
  color: var(--ink);
  font-size: 0.86rem;
}

.ratio-card small {
  padding-bottom: 14px;
  color: var(--ink-light);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.74rem;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.style-grid div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-radius: 8px;
  background: #fbf8ee;
  padding: 12px 14px;
}

.style-grid strong {
  color: var(--ink-light);
  font-size: 0.82rem;
}

.style-grid span {
  color: var(--ink-mid);
  text-align: right;
  font-weight: 600;
}

.warning-strip {
  margin-top: 18px;
  border-left: 3px solid var(--red-seal);
  border-radius: 8px;
  background: rgba(185, 28, 28, 0.06);
  color: var(--ink-mid);
  padding: 12px 14px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.88rem;
}

.item-list {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(196, 154, 35, 0.12);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.item-list article {
  display: grid;
  grid-template-columns: 130px 190px 1fr;
  gap: 14px;
  align-items: start;
  border-radius: 8px;
  padding: 14px;
}

.item-list article:nth-child(odd) {
  background: rgba(249, 245, 233, 0.75);
}

.item-list b {
  color: var(--gold-dark);
  font-size: 0.86rem;
}

.item-list strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.item-list p,
.scenario-grid p,
.season-note {
  color: var(--ink-mid);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.86rem;
  line-height: 1.75;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.scenario-grid article {
  border-radius: 10px;
  background: linear-gradient(135deg, #fff 0%, #fbf8ee 100%);
  border: 1px solid rgba(196, 154, 35, 0.12);
  padding: 16px;
}

.scenario-grid h4 {
  margin-bottom: 6px;
  color: var(--ink);
}

.season-note {
  border-radius: 10px;
  background: #fbf8ee;
  padding: 16px;
}

.ornament {
  margin: 32px 0 24px;
  color: var(--gold);
  text-align: center;
  font-size: 1rem;
  letter-spacing: 12px;
}

.color-levels-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}

.color-level-card {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: #fff;
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.color-level-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.color-level-card.best {
  border-color: var(--gold);
  background: linear-gradient(135deg, #fff 60%, rgba(196, 154, 35, 0.05));
}

.level-badge {
  display: inline-block;
  margin-bottom: 10px;
  border-radius: 10px;
  padding: 2px 8px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
}

.card-level-0 .level-badge { background: rgba(196, 154, 35, 0.15); color: var(--gold-dark); }
.card-level-1 .level-badge { background: rgba(46, 125, 50, 0.12); color: #2e7d32; }
.card-level-2 .level-badge { background: rgba(100, 100, 100, 0.1); color: #555; }
.card-level-3 .level-badge { background: rgba(230, 150, 0, 0.12); color: #9a6200; }
.card-level-4 .level-badge { background: rgba(211, 47, 47, 0.1); color: #c62828; }

.level-element {
  margin: 8px 0 8px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.08em;
}

.level-colors-row,
.future-palettes,
.k-colors {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.mini-swatch,
.future-dot {
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.level-names {
  margin: 10px 0 5px;
  color: var(--ink-mid);
  font-size: 0.8rem;
}

.level-tip {
  color: var(--ink-light);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.74rem;
  line-height: 1.5;
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.future-card {
  border: 1px solid rgba(196, 154, 35, 0.15);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: default;
}

.future-card span {
  display: block;
}

.future-date {
  margin-bottom: 3px;
  color: var(--ink-light);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.75rem;
}

.future-weekday {
  margin-bottom: 8px;
  color: var(--ink-mid);
  font-size: 0.85rem;
  font-weight: 600;
}

.future-element {
  margin: 2px 0 4px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.08em;
}

.future-ganzhi {
  margin-bottom: 10px;
  color: var(--ink-light);
  font-size: 0.72rem;
}

.future-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
}

.tips-box {
  margin-bottom: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bamboo) 0%, #2a3d2a 100%);
  color: var(--parchment);
  padding: 24px 28px;
}

.tips-box h3 {
  margin-bottom: 14px;
  color: var(--gold-light);
  font-size: 1.05rem;
}

.tips-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.tips-list p {
  color: rgba(249, 245, 233, 0.82);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.84rem;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}

.knowledge-card {
  border: 1px solid rgba(196, 154, 35, 0.12);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}

.k-name {
  margin: 14px 0 12px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.08em;
}

.knowledge-card p {
  margin: 8px 0 5px;
  color: var(--ink-mid);
  font-size: 0.8rem;
}

.k-desc,
.knowledge-card small {
  display: block;
  color: var(--ink-light);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.75rem;
  line-height: 1.5;
}

.knowledge-card small {
  margin-top: 8px;
  color: var(--red-seal);
}

.principle-card {
  margin-bottom: 48px;
  padding: 24px;
}

.principle-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.principle-columns h4 {
  margin-bottom: 12px;
  color: var(--gold-dark);
}

.principle-columns p {
  margin-bottom: 8px;
  color: var(--ink-mid);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.9rem;
}

.eeat-section {
  padding: 28px;
  background: linear-gradient(135deg, #fff 0%, #f9f5e9 100%);
}

.eeat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.eeat-grid article {
  text-align: center;
}

.eeat-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: rgba(196, 154, 35, 0.12);
  color: var(--gold-dark);
  font-size: 1.4rem;
}

.eeat-grid h4 {
  margin-bottom: 8px;
}

.eeat-grid p,
.method-box p {
  color: var(--ink-mid);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.86rem;
  line-height: 1.8;
}

.method-box {
  border-radius: 10px;
  background: #fff;
  padding: 18px;
}

.method-box h4 {
  margin-bottom: 8px;
  color: var(--gold-dark);
}

.disclaimer {
  margin-top: 12px;
  border-top: 1px solid rgba(196, 154, 35, 0.18);
  padding-top: 12px;
  color: var(--ink-light);
}

footer {
  background: var(--bamboo);
  color: rgba(249, 245, 233, 0.6);
  text-align: center;
  padding: 28px 20px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 0.82rem;
}

footer p + p {
  margin-top: 6px;
  color: var(--gold-light);
}

@media (max-width: 900px) {
  .today-header,
  .color-showcase {
    grid-template-columns: 1fr;
  }

  .calendar-toolbar {
    grid-template-columns: auto 1fr auto;
  }

  .date-field,
  .today-button {
    grid-column: span 3;
  }

  .color-levels-grid,
  .knowledge-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .future-grid,
  .ratio-grid,
  .eeat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .item-list article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  header {
    padding: 34px 16px 30px;
  }

  main {
    padding: 28px 14px 64px;
  }

  nav a {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .today-header,
  .color-showcase,
  .calendar-card,
  .ai-outfit-content,
  .eeat-section,
  .principle-card {
    padding: 20px;
  }

  .calendar-days,
  .calendar-weekdays {
    gap: 5px;
  }

  .calendar-day,
  .calendar-empty {
    min-height: 68px;
  }

  .day-lunar {
    display: none;
  }

  .color-levels-grid,
  .future-grid,
  .knowledge-grid,
  .ratio-grid,
  .style-grid,
  .scenario-grid,
  .principle-columns,
  .tips-list,
  .eeat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .style-grid,
  .scenario-grid,
  .principle-columns,
  .tips-list,
  .eeat-grid {
    grid-template-columns: 1fr;
  }

  .advice-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-subtitle {
    letter-spacing: 0.16em;
  }
}
