.cy-main {
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 16px 28px;
  color: #1f1a17;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}

.cy-header {
  margin-bottom: 12px;
}

.cy-header h1 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: #8f1d14;
}

.cy-sub {
  font-size: 13px;
  color: #6b5e55;
  line-height: 1.4;
}

.cy-card {
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #eadfd2;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(105, 62, 31, 0.05);
}

.cy-chip-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

@media (min-width: 560px) {
  .cy-chip-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cy-chip,
.cy-quick-btn,
.cy-seg-btn,
.cy-toggle-btn,
.cy-nav-btn,
.cy-ghost-btn,
.cy-primary-btn,
.cy-related-link {
  box-sizing: border-box;
  min-height: 44px;
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cy-chip {
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #5b493e;
  background: #fbf7f1;
  border: 1px solid #e5d8c8;
}

.cy-chip.is-active {
  background: #b42318;
  border-color: #b42318;
  color: #ffffff;
}

.cy-input-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

@media (min-width: 520px) {
  .cy-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cy-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cy-field > span {
  font-size: 12px;
  font-weight: 600;
  color: #6b5e55;
}

.cy-field input,
.cy-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 16px;
  color: #1f1a17;
  background: #fdfaf5;
  border: 1px solid #dccbb7;
  border-radius: 10px;
  font-family: inherit;
}

.cy-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cy-quick-btn {
  flex: 1 1 auto;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #4f4037;
  background: #f8f2e9;
  border: 1px solid #e2d3c1;
}

.cy-quick-btn--accent {
  color: #9a3412;
  background: #fef3c7;
  border-color: #f59e0b;
}

.cy-verdict-card {
  background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
  border-color: #e6cbb1;
}

.cy-verdict-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.cy-date-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #1f1a17;
  font-variant-numeric: tabular-nums;
}

.cy-lunar-pill {
  font-size: 12px;
  font-weight: 600;
  color: #8f1d14;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 2px 8px;
  border-radius: 999px;
}

.cy-gz-line {
  margin-top: 4px;
  font-size: 13px;
  color: #6b5e55;
}

.cy-score-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.cy-badge,
.cy-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.cy-badge--best {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.cy-badge--good {
  color: #9a3412;
  background: #fef3c7;
  border: 1px solid #fcd34d;
}

.cy-badge--fair {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

.cy-badge--avoid {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.cy-score-num {
  font-size: 20px;
  font-weight: 800;
  color: #8f1d14;
  font-variant-numeric: tabular-nums;
}

.cy-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.cy-tag {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.cy-tag--good {
  background: #ecfdf5;
  color: #065f46;
}

.cy-tag--warn {
  background: #fffbeb;
  color: #92400e;
}

.cy-tag--bad {
  background: #fef2f2;
  color: #991b1b;
}

.cy-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

@media (min-width: 520px) {
  .cy-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cy-metric {
  background: #faf6f0;
  border: 1px solid #eee2d3;
  border-radius: 10px;
  padding: 8px 10px;
}

.cy-metric-k {
  display: block;
  font-size: 11px;
  color: #786b62;
  margin-bottom: 2px;
}

.cy-metric-v {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1f1a17;
}

.cy-advice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdf8ee;
  border-left: 3px solid #d97706;
  font-size: 14px;
  line-height: 1.55;
  color: #3d312a;
}

.cy-advice--warn {
  background: #fef2f2;
  border-left-color: #dc2626;
}

.cy-hours-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.cy-subhead {
  font-size: 13px;
  font-weight: 700;
  color: #5b493e;
}

.cy-pengzu {
  font-size: 12px;
  color: #786b62;
}

.cy-hour-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

@media (min-width: 520px) {
  .cy-hour-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cy-hour-chip {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-variant-numeric: tabular-nums;
}

.cy-hour-chip strong {
  font-size: 14px;
  color: #166534;
}

.cy-hour-chip em {
  font-style: normal;
  font-size: 12px;
  color: #3f6212;
}

.cy-hour-chip small {
  font-size: 11px;
  color: #4d7c0f;
}

.cy-ghost-btn {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #6b4e3d;
  background: #faf5ee;
  border: 1px dashed #d4c0aa;
}

.cy-all-hours {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.cy-h12-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.cy-h12-item.is-good {
  background: #f0fdf4;
  color: #166534;
}

.cy-h12-item.is-bad {
  background: #f8fafc;
  color: #64748b;
}

.cy-primary-btn {
  width: 100%;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: #b42318;
  border: 1px solid #991b1b;
}

.cy-copy-tip {
  margin-top: 6px;
  min-height: 18px;
  font-size: 12px;
  text-align: center;
  color: #166534;
}

.cy-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.cy-table-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1f1a17;
}

.cy-month-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cy-nav-btn {
  width: 44px;
  padding: 0;
  font-size: 14px;
  color: #4f4037;
  background: #f8f2e9;
  border: 1px solid #e2d3c1;
}

.cy-month-label {
  font-size: 14px;
  font-weight: 700;
  color: #4f4037;
  min-width: 82px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cy-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.cy-seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.cy-seg-btn {
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 600;
  color: #5b493e;
  background: #faf6f0;
  border: 1px solid #e5d8c8;
}

.cy-seg-btn.is-active {
  background: #9a3412;
  border-color: #9a3412;
  color: #ffffff;
}

.cy-toggles {
  display: flex;
  gap: 8px;
}

.cy-toggle-btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #5b493e;
  background: #faf6f0;
  border: 1px solid #e5d8c8;
}

.cy-toggle-btn.is-active {
  background: #fef3c7;
  border-color: #d97706;
  color: #92400e;
}

.cy-table-count {
  font-size: 12px;
  color: #6b5e55;
  margin-bottom: 8px;
}

.cy-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.cy-table th {
  text-align: left;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #6b5e55;
  border-bottom: 2px solid #eadfd2;
  white-space: nowrap;
}

.cy-table td {
  padding: 10px 6px;
  border-bottom: 1px solid #f2e9de;
  vertical-align: middle;
}

.cy-row {
  cursor: pointer;
}

.cy-row:hover {
  background: #fdf8f0;
}

.cy-row.is-selected {
  background: #fef3c7;
}

.cy-table td strong,
.cy-table td span {
  display: block;
  color: #1f1a17;
}

.cy-table td small {
  display: block;
  font-size: 11px;
  color: #786b62;
  white-space: nowrap;
}

.cy-col-hours {
  font-size: 12px;
  color: #166534;
  white-space: nowrap;
}

.cy-empty {
  text-align: center;
  color: #6b5e55;
  padding: 20px 8px;
}

.cy-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cy-related-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #8f1d14;
  background: #ffffff;
  border: 1px solid #e5d8c8;
}

.cy-footnote {
  font-size: 12px;
  line-height: 1.5;
  color: #786b62;
  padding: 4px 2px;
}
