/* 好翻译 · 好办公 — 全站设计令牌 */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Noto+Sans+SC:wght@400;500;600;700&family=Literata:opsz,wght@7..72,500;7..72,600;7..72,700&display=swap");

:root {
  --hf-ink: #0f172a;
  --hf-ink-soft: #334155;
  --hf-muted: #64748b;
  --hf-line: rgba(15, 23, 42, 0.1);
  --hf-line-strong: rgba(15, 23, 42, 0.16);
  --hf-surface: #f4f7fb;
  --hf-surface-elevated: #ffffff;
  --hf-paper: #e8eef8;
  --hf-accent: #2563eb;
  --hf-accent-hover: #1d4ed8;
  --hf-accent-soft: rgba(37, 99, 235, 0.12);
  --hf-accent-ink: #1e40af;
  --hf-ocean: #1e3a8a;
  --hf-ocean-soft: rgba(30, 58, 138, 0.1);
  --hf-danger: #c23b3b;
  --hf-success: #1f8a5b;
  --hf-radius-sm: 8px;
  --hf-radius: 14px;
  --hf-radius-lg: 22px;
  --hf-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  --hf-shadow-sm: 0 4px 16px rgba(37, 99, 235, 0.08);
  --hf-header-h: 64px;
  --hf-font: "DM Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --hf-display: "Literata", "Noto Sans SC", "Songti SC", serif;
  --hf-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body, html {
  font-family: var(--hf-font);
  color: var(--hf-ink);
  background: var(--hf-surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--hf-accent-ink);
  transition: color 0.2s var(--hf-ease);
}

a:hover {
  color: var(--hf-accent);
}

/* —— 顶栏 —— */
.site-header .head-app {
  height: var(--hf-header-h);
  padding: 0 20px;
  background: rgba(244, 247, 251, 0.9);
  border-bottom: 1px solid var(--hf-line);
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(1.2);
}

.site-header .head-app-inner {
  max-width: 1280px;
  margin: 0 auto;
  gap: 20px;
}

.site-header .brand-lockup {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: var(--hf-ink);
  line-height: 1;
}

.site-header .brand-lockup:hover {
  color: var(--hf-ink);
  opacity: 0.92;
}

.site-header .brand-name,
.site-header .brand-sub {
  display: none;
}

.site-header .icon-haofanyia {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .icon-haofanyia img.logo {
  display: block;
  width: auto;
  height: 40px;
  max-width: 200px;
  object-fit: contain;
}

@media (max-width: 576px) {
  .site-header .icon-haofanyia img.logo {
    height: 32px;
    max-width: 160px;
  }
}

.site-header .nav_scroll > li {
  margin-left: 4px;
  padding: 6px 10px;
}

.site-header .nav_scroll > li > a {
  font-size: 14px;
  font-weight: 600;
  color: var(--hf-ink-soft);
  position: relative;
}

.site-header .nav_scroll > li > a.active,
.site-header .nav_scroll > li > a:hover {
  color: var(--hf-accent);
}

.site-header .nav_scroll > li > a.active:after {
  bottom: -10px;
  width: 20px;
  height: 2px;
  background: var(--hf-accent);
  border-radius: 2px;
}

.site-header .head-login-btn {
  min-width: 80px;
  height: 38px;
  padding: 0 18px;
  font-weight: 600;
  color: #fff;
  background: var(--hf-accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(13, 122, 111, 0.25);
}

.site-header .head-login-btn:hover {
  background: var(--hf-accent-hover);
  color: #fff;
}

.site-header .head-user-link {
  border-color: var(--hf-line);
  border-radius: 999px;
  background: var(--hf-surface-elevated);
}

.site-header .head-user-avatar--placeholder {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.site-header .mobile-nav-toggle span {
  background: var(--hf-ink);
}

.site-header .mobile-nav-drawer {
  background: var(--hf-surface-elevated);
}

.site-header .mobile-nav-label {
  color: var(--hf-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* body offset under fixed header（覆盖旧 .home-index 顶距） */
body {
  margin: 0;
  padding-top: var(--hf-header-h);
}

.home-index {
  padding-top: 0;
  min-height: calc(100vh - var(--hf-header-h));
  background-color: var(--hf-surface);
}

.home-index .index-container {
  max-width: 1280px;
}

/* —— 页脚 —— */
.site-footer {
  margin-top: 48px;
  padding: 40px 20px 56px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(37, 99, 235, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(30, 58, 138, 0.08), transparent 50%),
    var(--hf-paper);
  border-top: 1px solid var(--hf-line);
}

.site-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.site-footer-brand {
  font-family: var(--hf-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--hf-ink);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.site-footer-tag {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--hf-muted);
}

.site-footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--hf-muted);
}

.site-footer-copy a {
  color: var(--hf-accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— 工具壳基线覆盖 —— */
.home-index:has(.ai-tool-page) {
  background-color: var(--hf-surface);
}

.ai-tool-page {
  background: var(--hf-surface);
}

.ai-tool-sidebar-group {
  background: var(--hf-surface-elevated);
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius);
  box-shadow: var(--hf-shadow-sm);
}

.ai-tool-h1 {
  font-family: var(--hf-display);
  color: var(--hf-ink);
}

.ai-tool-main {
  color: var(--hf-ink);
}

.ai-tool-sidebar {
  top: calc(var(--hf-header-h) + 16px) !important;
}

.meum-left,
.home-sidebar {
  top: calc(var(--hf-header-h) + 16px);
}

/* 会员 / 资讯 轻量统一 */
.member-page,
.news-page {
  background: var(--hf-surface);
}

.member-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.member-page .m-card {
  border-radius: var(--hf-radius);
  border: 1px solid var(--hf-line);
  box-shadow: var(--hf-shadow-sm);
}

.news-wrap {
  background: transparent;
}

.news-page-title,
.news-sidebar-title {
  font-family: var(--hf-display);
  color: var(--hf-ink);
}

.news-cta-btn,
.news-cat-list a.active {
  background: var(--hf-accent) !important;
  border-color: var(--hf-accent) !important;
  color: #fff !important;
}

.news-cat-list a:hover {
  color: var(--hf-accent) !important;
}

