:root {
  --bg: #f5f5f7;
  --panel: #ffffff;
  --panel2: #f9fafb;
  --stroke: #e5e7eb;
  --text: #111827;
  --muted: #4b5563;
  --muted2: #6b7280;
  --brand: #f97316; /* 接近 RSSHub 官方橙色 */
  --brand2: #ef6b0f;
  --danger: #dc2626;
  --ok: #16a34a;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --radius2: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Liberation Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--mono);
  font-size: 0.95em;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e5e7eb;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, #facc15, #f97316 55%, #ea580c 100%);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.25);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  flex: 0 0 auto;
}

.brand__title {
  font-weight: 750;
  line-height: 1.1;
}

.brand__sub {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__link {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
}

.nav__link:hover {
  background: #f3f4f6;
  color: var(--text);
}

.nav__cta {
  font-size: 14px;
  font-weight: 650;
  padding: 10px 12px;
  border-radius: 14px;
  background: #111827;
  border: 1px solid #111827;
  color: #f9fafb;
}

.nav__cta:hover {
  background: #020617;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  padding: 32px 0 24px;
  position: relative;
}

.hero__title {
  margin: 0;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero__desc {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 52ch;
}

.hero__tips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: var(--muted2);
  font-size: 13px;
}

.chip code {
  color: var(--text);
}

.chip--button {
  cursor: pointer;
  border-color: rgba(249, 115, 22, 0.5);
  background: #fff7ed;
}

.chip--button:hover {
  background: #ffedd5;
}

.chip__caret {
  font-size: 10px;
  opacity: 0.8;
}

.card {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card--mini {
  padding: 14px;
  margin-top: 14px;
}

.card__title {
  font-weight: 700;
}

.quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.quick__btn {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.quick__btn:hover {
  background: #f9fafb;
}

.grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 18px;
  padding: 8px 0 40px;
}

.panel {
  border: 1px solid #e5e7eb;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel--main {
  padding-bottom: 10px;
}

.panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 10px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.panel__title {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.panel__sub {
  color: var(--muted2);
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.5;
}

.field {
  padding: 14px 16px 0;
}

.label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: var(--text);
  outline: none;
}

.input:focus {
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted2);
  line-height: 1.5;
}

.divider {
  height: 1px;
  background: #e5e7eb;
  margin: 14px 0;
}

.routeList {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 280px);
  overflow: auto;
}

.routeItem {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  margin-bottom: 4px;
}

.routeItem--group {
  cursor: pointer;
  background: #f9fafb;
  border-left: 3px solid var(--brand);
}

.routeItem--group:hover {
  background: #f9fafb;
}

.routeItem--child {
  margin-left: 10px;
}

.routeItem__title-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.routeItem__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.routeItem__title > div {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.routeGroup__caret {
  font-size: 10px;
  color: #9ca3af;
}

.routeItem__path {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted2);
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.routeItem:hover {
  background: #f9fafb;
}

.routeItem--active {
  border-color: rgba(249, 115, 22, 0.7);
  background: #fff7ed;
}

.routeItem__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 760;
}

.badge {
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  color: var(--muted2);
  background: #f9fafb;
}

.routeItem__desc {
  margin-top: 6px;
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.5;
}

.toggles {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  user-select: none;
}

.toggle input {
  accent-color: var(--brand);
}

.form {
  padding: 8px 16px 0;
}

.formRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.formFull {
  grid-column: 1 / -1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-weight: 650;
}

.btn:hover {
  background: #f3f4f6;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  background: #f97316;
  border-color: #f97316;
  color: #ffffff;
}

.btn--primary:hover {
  background: #ea580c;
}

.result {
  padding: 0 16px;
}

.result__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.result__title {
  font-weight: 800;
}

.result__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result__box {
  margin-top: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  overflow: auto;
}

.result__url {
  display: block;
  white-space: nowrap;
  color: var(--text);
}

.footerNote {
  padding: 0 16px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.footerNote__title {
  font-weight: 800;
}

.footerNote__text {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.ad {
  border-radius: var(--radius2);
  border: 1px dashed #d1d5db;
  background: #f9fafb;
  color: var(--muted2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 10px;
  position: relative;
}

.ad::before {
  content: "AdSense";
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  color: #9ca3af;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad--top {
  min-height: 120px;
  margin: 12px 0 18px;
}

.ad--sidebar {
  min-height: 250px;
  margin: 18px 0 0;
}

.siteFooter {
  border-top: 1px solid #e5e7eb;
  padding: 18px 0;
  color: var(--muted2);
  background: #f9fafb;
}

.siteFooter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.siteFooter__brand {
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #4b5563;
}

.siteFooter__meta {
  margin-top: 6px;
  font-size: 13px;
}

.sep {
  margin: 0 8px;
  opacity: 0.5;
}

.baseMenu {
  position: absolute;
  z-index: 20;
  margin-top: 6px;
  width: min(360px, 100%);
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.28);
}

.baseMenu__section + .baseMenu__section {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 10px;
  padding-top: 10px;
}

.baseMenu__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #4b5563;
  margin-bottom: 6px;
}

.baseMenu__item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 8px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
}

.baseMenu__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.baseMenu__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.baseMenu__label {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.baseMenu__tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid #f97316;
  background: transparent;
  color: #f97316;
}

.baseMenu__item[data-base-kind="mine"] .baseMenu__tag {
  border-color: transparent;
  background: #f97316;
  color: #ffffff;
}

.baseMenu__url {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  color: #6b7280;
  word-break: break-all;
}

.baseMenu__list {
  display: flex;
  flex-direction: column;
  max-height: 220px;
  overflow: auto;
}

.baseMenu__hint {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted2);
}

.baseMenu__hint a {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .routeList {
    max-height: 380px;
  }
  .footerNote {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav__link {
    display: none;
  }
  .quick {
    grid-template-columns: 1fr;
  }
  .formRow {
    grid-template-columns: 1fr;
  }
}


