/* ─── 全局样式 ─────────────────────────────────────────────────── */

body {
  min-height: 100vh;
}

#app {
  min-height: 100vh;
}

/* ─── Header ───────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 8px;
}

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

.site-header__logo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex-shrink: 0;
}

.site-header__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1;
  margin-left: 9px; /* 填补原来圆点的位置 */
}

.site-header__title-green { color: #22c55e; }
.site-header__title-accent { color: var(--accent); }
.site-header__title-plain { color: var(--text); font-weight: 700; font-size: 20px; margin-left: 6px; }

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

.site-header__date {
  font-size: 13px;
  color: var(--text-sub);
}

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: 28px 0 36px;
  text-align: center;
}

.hero__time {
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 6px;
}

.hero__date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ─── 主题切换器 ───────────────────────────────────────────────── */
.theme-switcher {
  position: relative;
  display: inline-block;
}

.theme-switcher__btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 9px;
  padding: 7px 12px;
  cursor: pointer;
  color: var(--text-sub);
  font-size: 13px;
  transition: all 0.15s ease;
}

.theme-switcher__btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.theme-switcher__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  flex-shrink: 0;
}

.theme-switcher__caret {
  font-size: 10px;
  opacity: 0.5;
  transition: transform 0.15s;
}

.theme-switcher__btn[aria-expanded="true"] .theme-switcher__caret {
  transform: rotate(180deg);
}

.theme-switcher__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 8px;
  min-width: 190px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.12s ease;
}

.theme-switcher__dropdown-label {
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 8px 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  color: var(--text-sub);
  font-size: 13px;
  transition: background 0.1s ease;
  text-align: left;
}

.theme-option:hover {
  background: var(--bg3);
}

.theme-option--active {
  background: var(--accent-hover-bg, rgba(88, 166, 255, 0.08));
  border-color: rgba(88, 166, 255, 0.3);
  color: var(--text);
}

.theme-option__swatches {
  display: flex;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border2);
  flex-shrink: 0;
}

.theme-option__swatch {
  width: 14px;
  height: 22px;
}

.theme-option__swatch--accent {
  width: 10px;
}

.theme-option__check {
  margin-left: auto;
  font-size: 12px;
  color: var(--accent);
}

/* ─── 详情页头部 ───────────────────────────────────────────────── */
.detail-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.detail-header__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.detail-header__info {
  flex: 1;
  min-width: 0;
}

.detail-header__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.detail-header__title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.detail-header__domain {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── 打开链接按钮 ─────────────────────────────────────────────── */
.btn-open-site {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--btn-open-color, var(--accent));
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--btn-open-border, rgba(88, 166, 255, 0.25));
  background: var(--btn-open-bg, rgba(88, 166, 255, 0.06));
  transition: background 0.12s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn-open-site:hover {
  background: var(--btn-open-hover-bg, rgba(88, 166, 255, 0.12));
}

/* ─── 打开链接按钮颜色变体（由 JS 注入） ─────────────────────────── */
.btn-open-site[data-mod-color] {
  color: var(--btn-open-color);
  border-color: var(--btn-open-border);
  background: var(--btn-open-bg);
}
.btn-open-site[data-mod-color]:hover {
  background: var(--btn-open-hover-bg);
}
