/* ===== 全局重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a, button, [role="button"] { touch-action: manipulation; }

/* ===== 亮色主题（默认）===== */
:root {
  --text: #0a0a0a;
  --text-secondary: #4a4a4a;
  --text-muted: #7a7a7a;
  --border: #e5e5e5;
  --bg: #ffffff;
  --bg-secondary: #f5f5f5;
  --card-bg: #ffffff;
  --nav-bg: rgba(255,255,255,.97);
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-lg: 0 6px 32px rgba(0,0,0,.12);

  /* 向下兼容 */
  --blue: #0a0a0a;
  --blue-light: rgba(0,0,0,.06);
  --blue-dark: #000000;
  --accent: #0a0a0a;
  --accent-light: rgba(0,0,0,.06);
  --accent-dark: #000000;
  --indigo: #0a0a0a;
  --purple: #0a0a0a;
}

/* ===== 暗色主题 ===== */
[data-theme="dark"] {
  --text: #f0f0f0;
  --text-secondary: #b0b0b0;
  --text-muted: #787878;
  --border: #222222;
  --bg: #000000;
  --bg-secondary: #0c0c0c;
  --card-bg: #111111;
  --nav-bg: rgba(0,0,0,.97);
  --shadow: 0 1px 3px rgba(0,0,0,.5);
  --shadow-lg: 0 6px 32px rgba(0,0,0,.6);

  --blue: #f0f0f0;
  --blue-light: rgba(255,255,255,.06);
  --blue-dark: #ffffff;
  --accent: #f0f0f0;
  --accent-light: rgba(255,255,255,.06);
  --accent-dark: #ffffff;
  --indigo: #f0f0f0;
  --purple: #f0f0f0;
}

/* ===== 跟随系统暗色 ===== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-muted: #787878;
    --border: #222222;
    --bg: #000000;
    --bg-secondary: #0c0c0c;
    --card-bg: #111111;
    --nav-bg: rgba(0,0,0,.97);
    --shadow: 0 1px 3px rgba(0,0,0,.5);
    --shadow-lg: 0 6px 32px rgba(0,0,0,.6);
    --blue: #f0f0f0;
    --blue-light: rgba(255,255,255,.06);
    --blue-dark: #ffffff;
    --accent: #f0f0f0;
    --accent-light: rgba(255,255,255,.06);
    --accent-dark: #ffffff;
  }
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Spectral', Georgia, 'Times New Roman', serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--text);
  color: var(--bg);
  padding: 11px 26px;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  letter-spacing: .04em;
  transition: transform .25s cubic-bezier(0.34,1.56,0.64,1), box-shadow .25s ease;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  padding: 8px 14px;
  font-weight: 400;
  font-size: 13px;
  font-family: inherit;
  transition: color .2s ease, opacity .2s ease;
}
.btn-ghost:hover { color: var(--text); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--text);
  color: var(--text);
  padding: 11px 26px;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  background: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .25s cubic-bezier(0.34,1.56,0.64,1);
  border-radius: 8px;
}
.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-large { padding: 13px 32px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

.btn-link {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
  font-style: italic;
  transition: color .2s, opacity .2s;
  position: relative;
}
.btn-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width .3s cubic-bezier(0.16,1,0.3,1);
}
.btn-link:hover { color: var(--text); }
.btn-link:hover::after { width: 100%; }

/* ===== 2行导航 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* 第一行：刊名居中 */
.nav-title-row {
  border-bottom: 1px solid var(--border);
  padding: 16px 0 14px;
  text-align: center;
}

.nav-title {
  font-family: 'Spectral', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  letter-spacing: -.03em;
  transition: opacity .2s;
}
.nav-title:hover { opacity: .65; }

/* 第二行：链接 + 操作 */
.nav-inner {
  display: flex;
  align-items: center;
  height: 46px;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  gap: 0;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  padding: 6px 14px;
  position: relative;
  transition: color .2s;
  font-family: 'Spectral', Georgia, serif;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(0.16,1,0.3,1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }

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

/* 搜索 */
.nav-search { display: flex; align-items: center; }
.search-trigger {
  background: none; border: none; cursor: pointer;
  font-size: 13px; padding: 6px 12px;
  color: var(--text-secondary); font-family: inherit;
  transition: color .2s;
  font-style: italic;
}
.search-trigger:hover { color: var(--text); }
.nav-search-input {
  width: 180px; border: none; border-bottom: 1px solid var(--border);
  padding: 6px 4px; font-size: 13px; font-family: inherit;
  background: transparent; color: var(--text);
  outline: none; transition: border-color .2s;
  font-style: italic;
}
.nav-search-input:focus { border-color: var(--text); }
.nav-search-input.hidden { display: none; }

/* 旧的 .logo（其他页面用）→ 与 nav-title 同风格 */
.logo {
  font-family: 'Spectral', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  letter-spacing: -.025em;
  background: none;
  -webkit-text-fill-color: inherit;
}

/* ===== 通用工具 ===== */

.section-header-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: 'Spectral', Georgia, serif;
}
.section-header-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-header-more {
  margin-left: auto;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-secondary);
  transition: color .2s, opacity .2s;
  font-style: italic;
}
.section-header-more:hover { color: var(--text); }

/* 滚动淡入 */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(0.16,1,0.3,1), transform .7s cubic-bezier(0.16,1,0.3,1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Banner ===== */
.banner-section {
}

.hero-dateline {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--text-muted);
  padding: 14px 0 10px;
  font-style: italic;
  text-transform: uppercase;
}
.hero-dateline-sep { margin: 0 10px; }

.banner-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 0;
}

.banner-img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    transparent 35%,
    rgba(0,0,0,.32) 48%,
    rgba(0,0,0,.14) 60%,
    transparent 72%
  );
}

.banner-overlay-text {
  position: absolute;
  bottom: 44%;
  left: 0;
  right: 0;
  text-align: center;
}

.banner-title {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,.95);
  letter-spacing: .06em;
  line-height: 1.5;
  margin-bottom: 6px;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

.banner-sub {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  font-style: italic;
  letter-spacing: .08em;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* ===== 滚动快讯 Ticker ===== */
.ticker-wrap {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 42px;
  background: var(--bg);
}

.ticker-label {
  flex-shrink: 0;
  padding: 0 18px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: 'Spectral', Georgia, serif;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40px, black calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 40px, black calc(100% - 40px), transparent 100%);
}

.ticker-inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 55s linear infinite;
  gap: 0;
}

.ticker-inner span {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 0 6px;
  font-style: italic;
}

.ticker-sep {
  color: var(--text-muted) !important;
  font-weight: 300;
  font-style: normal !important;
  padding: 0 12px !important;
  font-size: 11px !important;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-wrap:hover .ticker-inner { animation-play-state: paused; }

/* ===== 编辑网格 ===== */
.editorial-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 56px;
}

.editorial-featured .art-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.editorial-featured h2 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.025em;
  margin-bottom: 18px;
}

.editorial-featured h2 a {
  color: var(--text);
  transition: opacity .25s;
  display: block;
  position: relative;
}
.editorial-featured h2 a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width .4s cubic-bezier(0.16,1,0.3,1);
}
.editorial-featured h2 a:hover { opacity: .65; }
.editorial-featured h2 a:hover::after { width: 100%; }

.art-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 22px;
  font-style: italic;
}

.art-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .03em;
}

.art-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--text);
  padding: 2px 8px;
  font-style: normal;
  border-radius: 100px;
}

.editorial-secondary {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  padding-left: 56px;
}

.editorial-card .art-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.editorial-card h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -.015em;
  margin-bottom: 12px;
}

.editorial-card h3 a {
  color: var(--text);
  transition: opacity .25s;
}
.editorial-card h3 a:hover { opacity: .6; }

.editorial-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* ===== 我们做什么 ===== */
.what-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.what-col { padding: 0 44px; }
.what-col:first-child { padding-left: 0; }
.what-col:last-child { padding-right: 0; }
.what-col + .what-col { border-left: 1px solid var(--border); }

.what-num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--text-muted);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.what-col h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 12px;
  line-height: 1.3;
}

.what-col p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 18px;
  font-style: italic;
}

.what-link {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
  font-style: italic;
  position: relative;
  transition: color .2s;
}
.what-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width .3s cubic-bezier(0.16,1,0.3,1);
}
.what-link:hover { color: var(--text); }
.what-link:hover::after { width: 100%; }

/* ===== 近期资讯 ===== */
.more-news-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.news-list { display: flex; flex-direction: column; }

.news-row {
  display: grid;
  grid-template-columns: 68px 1fr 120px;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: transform .3s cubic-bezier(0.16,1,0.3,1);
}
.news-row:last-child { border-bottom: none; }
.news-row:hover { transform: translateX(6px); }
.news-row:hover .news-row-title { color: var(--text); opacity: 1; }

.news-row-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 2px;
}

.news-row-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  opacity: .85;
  transition: opacity .2s, color .2s;
}

.news-row-meta {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
  font-style: italic;
}

/* ===== 接入按钮 ===== */
.btn-connect {
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: .04em;
  transition: transform .25s cubic-bezier(0.34,1.56,0.64,1), box-shadow .25s ease, opacity .2s;
  border-radius: 8px;
}
.btn-connect:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.btn-connect:active { transform: translateY(0); box-shadow: none; }

/* ===== 接入 Modal ===== */
.connect-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeOverlay .25s ease;
}
.connect-overlay.hidden { display: none; }

@keyframes fadeOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.connect-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  max-width: 440px;
  width: 100%;
  padding: 48px 44px 40px;
  position: relative;
  animation: slideModal .35s cubic-bezier(0.16,1,0.3,1);
  border-radius: 16px;
}

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

.connect-close {
  position: absolute;
  top: 18px; right: 20px;
  background: none; border: none;
  font-size: 22px; line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .2s;
  font-family: inherit;
}
.connect-close:hover { color: var(--text); }

.connect-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.connect-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 12px;
}

.connect-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 28px;
}

.connect-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.connect-input {
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  font-style: italic;
}
.connect-input:focus { border-color: var(--text); }
.connect-input::placeholder { color: var(--text-muted); }

.connect-submit {
  margin-top: 8px;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 13px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: .06em;
  cursor: pointer;
  transition: opacity .2s, transform .25s cubic-bezier(0.34,1.56,0.64,1);
  border-radius: 8px;
}
.connect-submit:hover { opacity: .85; transform: translateY(-1px); }
.connect-submit:disabled { opacity: .5; cursor: default; transform: none; }

.connect-note {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  line-height: 1.6;
}

/* ===== 页脚（单行）===== */
.footer {
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  gap: 24px;
}

.footer-logo {
  font-family: 'Spectral', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  color: #f0f0f0;
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 12px;
  color: #555555;
  transition: color .2s;
  font-style: italic;
}
.footer-nav a:hover { color: #f0f0f0; }

.footer-copy {
  font-size: 11px;
  color: #333333;
  letter-spacing: .04em;
  flex-shrink: 0;
}

/* 旧页脚组件（其他页面保留）*/
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #1a1a1a;
}
.footer-brand .logo {
  color: #f0f0f0 !important;
  -webkit-text-fill-color: #f0f0f0 !important;
  font-size: 22px;
  margin-bottom: 10px;
  display: block;
}
.footer-brand p { font-size: 13px; color: #555555; font-style: italic; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #888888; font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: #555555; transition: color .2s; }
.footer-col a:hover { color: #f0f0f0; }
.footer-bottom { padding: 20px 0; font-size: 11px; color: #333333; letter-spacing: .04em; }

/* ===== 其他页面共用 ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -.025em;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 480px;
  text-align: center;
  font-style: italic;
}

.section-more {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 13px;
  margin-left: auto;
  font-style: italic;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  /* 导航链接横向滚动 */
  .nav-links {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }

  /* 容器内边距 */
  .container { padding: 0 16px; }
  .connect-modal { padding: 32px 20px 24px; }
}

/* ================================================
   搜索弹窗
   ================================================ */
.search-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
}
.search-modal.hidden { display: none; }
.search-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
}
.search-modal-box {
  position: relative; z-index: 1;
  background: var(--bg); border: 1px solid var(--border);
  width: 100%; max-width: 600px; margin: 0 16px;
  padding: 48px 24px 20px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.search-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 20px; color: var(--text-muted);
  cursor: pointer; line-height: 1; padding: 2px 6px;
}
.search-modal-close:hover { color: var(--text); }
.search-modal-form { display: flex; gap: 8px; }
.search-modal-input {
  flex: 1; border: 1px solid var(--border); background: var(--bg-secondary);
  padding: 12px 16px; font-size: 15px; font-family: inherit; color: var(--text);
  outline: none; border-radius: 10px;
}
.search-modal-input:focus { border-color: var(--text); background: var(--bg); }
.search-modal-btn {
  background: var(--text); color: var(--bg);
  border: none; padding: 12px 20px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  border-radius: 10px;
}
.search-modal-btn:hover { opacity: .85; }

/* 热门标签行 */
.search-modal-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 14px;
}
.search-modal-label {
  font-size: 11px; color: var(--text-muted); font-weight: 700; letter-spacing: .06em;
  margin-right: 2px;
}
.search-hot-tag {
  display: inline-block; padding: 4px 12px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  font-size: 12px; color: var(--text); text-decoration: none;
  border-radius: 100px; transition: all .15s;
}
.search-hot-tag:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* 热门内容列表 */
.search-popular {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.search-popular-title {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px;
}
.search-popular-list { display: flex; flex-direction: column; gap: 0; }
.search-popular-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: opacity .15s;
}
.search-popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.search-popular-item:hover { opacity: .65; }
.search-popular-cat {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted);
  white-space: nowrap; min-width: 52px; flex-shrink: 0;
}
.search-popular-text {
  font-size: 13px; font-weight: 500; line-height: 1.4;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.search-modal-hint {
  margin-top: 14px; font-size: 11px; color: var(--text-muted);
  text-align: center; letter-spacing: .03em;
}

/* ================================================
   热门工具（首页，双排无限滚动）
   ================================================ */
.hot-tools-section {
  padding: 48px 0 52px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hot-tools-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
}
.hot-tools-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted);
}
.hot-tools-more {
  font-size: 12px; color: var(--text-muted); text-decoration: none;
}
.hot-tools-more:hover { color: var(--text); }

/* Marquee 轨道 */
.marquee-wrap {
  max-width: 1120px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 24px;
}
.marquee-track {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%);
}
.marquee-inner {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
}
.marquee-inner--left {
  animation: marquee-left 38s linear infinite;
}
.marquee-inner--right {
  animation: marquee-right 42s linear infinite;
}
.marquee-track:hover .marquee-inner { animation-play-state: paused; }

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* 单张工具卡片 */
.htc {
  display: flex; align-items: center; gap: 12px;
  width: 210px; flex-shrink: 0;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none; color: var(--text);
  position: relative; overflow: hidden;
  transition: none;
}
.htc::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .2s;
  pointer-events: none;
}
.htc:hover::after {
  background: rgba(0,0,0,.06);
}
.htc-logo {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.htc-logo img { width: 26px; height: 26px; object-fit: contain; }
.htc-logo-fb {
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.htc-body { flex: 1; min-width: 0; }
.htc-name { font-size: 13px; font-weight: 700; margin-bottom: 3px; line-height: 1.2; }
.htc-desc {
  font-size: 11px; color: var(--text-muted); line-height: 1.4;
  margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.htc-cat {
  display: inline-block; font-size: 9px; font-weight: 700;
  letter-spacing: .05em;
  color: var(--text-muted); background: var(--bg-secondary);
  padding: 2px 7px; border-radius: 100px;
}

/* ===== 图标按钮（导航栏）===== */
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  padding: 7px; border-radius: 8px;
  color: var(--text-secondary);
  transition: color .2s, background .15s;
  line-height: 0;
}
.icon-btn:hover { color: var(--text); background: var(--bg-secondary); }

.btn-connect.icon-btn {
  background: none; color: var(--text-secondary);
}

/* 主题切换图标 */
.theme-btn {
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  padding: 7px; border-radius: 8px;
  color: var(--text-secondary);
  transition: color .2s, background .15s;
  line-height: 0;
}
.theme-btn:hover { color: var(--text); background: var(--bg-secondary); }

.theme-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 120px; z-index: 200;
}
.theme-menu.hidden { display: none; }
.theme-option {
  display: flex; align-items: center; gap: 8px;
  width: 100%; background: none; border: none;
  padding: 9px 14px; font-size: 13px;
  font-family: inherit; cursor: pointer;
  color: var(--text-secondary); text-align: left;
  transition: background .15s, color .15s; line-height: 0;
}
.theme-option:hover { background: var(--bg-secondary); color: var(--text); }
.theme-option.active { color: var(--text); font-weight: 600; }

@media (max-width: 540px) {
  .search-modal { padding-top: 8vh; }
  .search-modal-box { padding: 20px 16px 16px; border-radius: 12px; }
  .search-modal-input { font-size: 14px; padding: 10px 12px; }
}
