
:root {
  --bg: #fafafa;
  --card: #fff;
  --text: #111;
  --text2: #555;
  --text3: #888;
  --border: #e5e5e5;
  --accent: #0f6e56;
  --accent2: #e1f5ee;
  --good: #1d9e75;
  --info: #185fa5;
  --attention: #ba7517;
  --action: #a32d2d;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.06);
  --maxw: 780px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--text);
}

.nav-links a {
  margin-left: 18px;
  font-size: 13px;
  color: var(--text2);
}

/* Breadcrumb */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  font-size: 12px;
  color: var(--text3);
}

.breadcrumb a { color: var(--text2); }
.breadcrumb span { color: var(--text3); }

/* Container */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 40px 20px 28px;
}

.hero h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero p {
  color: var(--text2);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 24px;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 20px;
}

/* Hero Card - 主题色背景，白色文字，突出重点 */
.card-hero {
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(15, 110, 86, 0.25);
  padding: 28px;
  margin-bottom: 20px;
}

.card-hero label {
  color: rgba(255, 255, 255, 0.9) !important;
}

.card-hero .input-hint {
  color: rgba(255, 255, 255, 0.7);
}

.card-hero #statusInput {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.card-hero #statusInput::placeholder {
  color: var(--text3);
}

.card-hero #statusInput:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.card-hero #suggestions {
  background: #fff;
  border: 1px solid var(--border);
}

.card-hero .sug-item {
  color: var(--text);
}

.card-hero .sug-match {
  color: var(--accent);
  font-weight: 700;
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.badge-good { background: var(--accent2); color: var(--good); }
.badge-info { background: #e6f1fb; color: var(--info); }
.badge-attention { background: #faeeda; color: var(--attention); }
.badge-action { background: #fcebeb; color: var(--action); }

/* Status Title */
.status-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

/* One-liner */
.one-liner {
  font-size: 18px;
  color: var(--text2);
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Simple terms / Meaning */
.simple-terms {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* Meta Grid */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.meta-box {
  background: var(--bg);
  border-radius: 10px;
  padding: 16px;
}

.meta-box h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text3);
  margin-bottom: 6px;
  font-weight: 700;
}

.meta-box p {
  font-size: 15px;
  color: var(--text2);
  font-weight: 600;
}

/* Worry Bar */
.worry-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.worry-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Link Sections */
.link-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.link-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-section h2 .icon {
  font-size: 18px;
}

.link-section ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-section li {
  margin-bottom: 0;
}

.link-section a {
  display: inline-block;
  padding: 8px 14px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text2);
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.link-section a:hover {
  background: var(--card);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Flow Section - Before/Current/Next */
.flow-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.flow-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.flow-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.flow-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 8px;
  position: relative;
}

.flow-item.before {
  background: var(--bg);
  border: 1px solid var(--border);
}

.flow-item.current {
  background: var(--accent2);
  border: 2px solid var(--accent);
  font-weight: 600;
}

.flow-item.next {
  background: var(--bg);
  border: 1px solid var(--border);
}

.flow-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text3);
  min-width: 70px;
}

.flow-arrow {
  text-align: center;
  color: var(--text3);
  font-size: 20px;
  padding: 4px 0;
}

/* Common Outcomes */
.outcomes-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.outcomes-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

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

.outcome-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text2);
}

/* FAQ Section */
.faq-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.faq-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.faq-item {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.faq-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.faq-item p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* What Next Section */
.what-next-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.what-next-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.what-next-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.what-next-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.what-next-card p {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 12px;
}

.what-next-card .steps {
  list-style: none;
  padding: 0;
}

.what-next-card .steps li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.what-next-card .steps li:last-child {
  border-bottom: none;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Ad Slot */
.ad-slot {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 12px;
  margin: 24px 0;
}

/* Disclaimer */
.disclaimer {
  background: var(--bg);
  border-radius: 10px;
  padding: 20px;
  font-size: 13px;
  color: var(--text3);
  line-height: 1.7;
  margin-top: 32px;
}

.disclaimer strong {
  color: var(--text2);
}

/* Footer */
footer {
  max-width: var(--maxw);
  margin: 48px auto 0;
  padding: 24px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text3);
  text-align: center;
}

.muted {
  color: var(--text3);
  font-size: 14px;
}

/* Status Grid (for listings) */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.status-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-chip:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.status-chip-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 10px;
}

.status-chip-meta {
  font-size: 11px;
  color: var(--text3);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.status-chip-arrow {
  color: var(--text3);
  font-size: 13px;
  margin-left: 8px;
}

/* Search */
.search-wrap {
  position: relative;
  margin-bottom: 16px;
}

#statusInput {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

#statusInput:focus {
  border-color: var(--accent);
}

/* 输入框清空按钮 */
.input-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: var(--text3);
  color: var(--card);
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  transition: all 0.2s;
}

.input-clear:hover {
  background: var(--text);
  transform: translateY(-50%) scale(1.1);
}

.input-clear.visible {
  display: flex;
}

.input-hint {
  font-size: 12px;
  color: var(--text3);
  margin-top: 8px;
}

#suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow-y: auto;
  display: none;
  z-index: 40;
}

.sug-item {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sug-item:last-child {
  border-bottom: none;
}

.sug-item:hover {
  background: var(--bg);
}

.sug-item small {
  font-size: 11px;
  color: var(--text3);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 20px;
}

.sug-match {
  font-weight: 700;
  color: var(--accent);
}

/* Result Area */
#resultArea {
  margin-top: 20px;
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.result-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-status {
  font-size: 18px;
  font-weight: 700;
}

.result-body {
  padding: 24px;
}

.result-body h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text3);
  margin-bottom: 10px;
  font-weight: 700;
}

.result-body p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
}

/* Section titles */
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.section-sub {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 20px;
}

/* Category filter */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.category-tab {
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
}

.category-tab:hover, .category-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 { font-size: 26px; }
  .meta-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  .status-title { font-size: 22px; }
  .one-liner { font-size: 16px; }
  .flow-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .flow-label { min-width: auto; }
}
