body {
  background: #fff;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

nav li a:hover span,
nav li a.active span {
  opacity: 0.7;
}

.article-container {
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

::selection {
  background: #dbeafe;
  color: #111;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

.site-header .nav-left {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 20px;
}

.site-header .nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.site-header .nav-link,
.site-header .nav-btn {
  font-size: 13px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
  padding: 0 16px;
  line-height: 19.68px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.site-header .nav-link:hover,
.site-header .nav-btn:hover {
  color: rgba(0, 0, 0, 0.55);
}

.site-header .nav-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  height: 100%;
  gap: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.site-header .nav-quick-access {
  display: flex;
  align-items: center;
  height: 100%;
  border-left: none;
  margin-left: 8px;
  padding-left: 4px;
}

.site-header .mobile-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #000;
  width: 40px;
  height: 40px;
  font-size: 22px;
  line-height: 1;
  border-radius: 50%;
  transition: color 0.2s;
}

.site-header .mobile-btn:hover {
  color: rgba(0, 0, 0, 0.55);
}

@media (min-width: 1024px) {
  .site-header .mobile-btn {
    display: none !important;
  }
}

@media (max-width: 1023.98px) {

  .site-header .nav-list,
  .site-header .nav-quick-access {
    display: none;
  }

  .mobile-drawer .drawer-quick {
    margin-top: 12px;
    padding-top: 10px;
  }

  .site-header .mobile-btn {
    display: flex !important;
  }
}

/* 1024-1199px：全导航已显示但空间偏紧，压缩内边距与字号，避免菜单文字被截断 */
@media (min-width: 1024px) and (max-width: 1199.98px) {

  .site-header .nav-link,
  .site-header .nav-btn {
    padding: 0 10px;
    font-size: 12px;
  }

  .site-header .nav-quick-access {
    margin-left: 0;
    padding-left: 0;
    gap: 2px;
  }
}

.nav-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: #fff;
  z-index: 51;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 8px 0;
  display: none;
  pointer-events: none;
  min-width: 140px;
  white-space: nowrap;
}

.nav-overlay.open {
  display: block;
  pointer-events: auto;
}

.nav-overlay-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-overlay-link {
  display: block;
  padding: 8px 20px 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  line-height: 1.4;
  transition: background 0.15s;
  white-space: nowrap;
}

.nav-overlay-link:hover {
  background: #f5f5f5;
  color: #000;
}

.mobile-drawer {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 52;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer .drawer-inner {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 32px;
}

.mobile-drawer .drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-drawer .drawer-link,
.mobile-drawer .drawer-sublink {
  display: block;
  padding: 16px 0;
  font-size: 17px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.mobile-drawer .drawer-link:hover,
.mobile-drawer .drawer-sublink:hover {
  color: rgba(0, 0, 0, 0.55);
}

.mobile-drawer .drawer-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-drawer .drawer-link {
  flex: 3;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-drawer .drawer-toggle {
  flex: 7;
  padding: 16px 0 16px 16px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  text-align: right;
}

.mobile-drawer .drawer-toggle:hover {
  color: #000;
}

.mobile-drawer .drawer-toggle i {
  transition: transform 0.2s ease;
  display: inline-block;
}

.mobile-drawer .drawer-toggle.active i {
  transform: rotate(-90deg);
}

.mobile-drawer .drawer-sub {
  display: none;
  padding-left: 16px;
  border-top: 1px solid #f3f4f6;
}

.mobile-drawer .drawer-sublink {
  padding: 12px 0;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.65);
}

.mobile-drawer .drawer-quick {
  margin-top: 16px;
  padding-top: 16px;
}

.mobile-drawer .drawer-quick-link {
  display: block;
  padding: 6px 0 6px 16px;
  font-size: 13px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.mobile-drawer .drawer-quick-link:hover {
  color: rgba(0, 0, 0, 0.55);
}

.sticky-search-bar {
  display: none;
  position: sticky;
  top: 64px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 32px 4px;
}

.sticky-search-bar.is-visible {
  display: block;
}

.sticky-search-bar__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sticky-search-bar__inner.is-hidden {
  display: none;
}

.sticky-search-bar__input-group {
  display: flex;
  align-items: center;
  width: 50vw;
  min-width: 240px;
  max-width: 640px;
  margin-bottom: 6px;
  border: 1px solid #d1d5db;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sticky-search-bar__input-group:focus-within {
  border-color: #000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.sticky-search-bar__input {
  flex: 1;
  border: none;
  padding: 10px 18px;
  font-size: 16px;
  outline: none;
  font-family: inherit;
  background: transparent;
  min-width: 0;
  min-height: calc(1lh + 20px);
  max-height: calc(3lh + 20px);
  resize: none;
  overflow-y: auto;
  line-height: 1.4;
}

.sticky-search-bar__btn {
  display: none;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: 4px;
  border: none;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, opacity 0.15s;
}

.sticky-search-bar__btn.is-active {
  display: inline-flex;
}

.sticky-search-bar__btn:hover {
  background: #333;
}

.sticky-search-bar__btn:active {
  background: #555;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 12.5vw;
  padding-right: 12.5vw;
}

@media (max-width: 767.98px) {
  .container-wide {
    max-width: 768px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

.site-logo:hover {
  color: #000;
}

.site-logo__icon {
  font-size: 18px;
}

.site-logo__img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.breadcrumb-wrap {
  padding: 2rem 0 0;
}

.breadcrumb-list {
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.breadcrumb-link {
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: rgba(0, 0, 0, 0.8);
}

.breadcrumb-item.active {
  color: rgba(0, 0, 0, 0.6);
}

.sticky-search-bar .breadcrumb-wrap {
  padding: 4px 0 2px;
  margin-bottom: 2px;
  text-align: center;
}

.sticky-search-bar .breadcrumb-list {
  margin: 0;
  padding: 0;
  justify-content: center;
}

.content-card {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 0;
  text-decoration: none;
  color: #000;
}

.content-card:last-child {
  border-bottom: none;
}

.content-card:hover {
  color: #000;
}

.content-card__img-wrap {
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
}

.content-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-card__img-placeholder {
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  flex-shrink: 0;
  color: #9ca3af;
}

.content-card__img-placeholder-icon {
  font-size: 1.5rem;
}

.content-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.content-card__title {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  line-height: 1.4;
  margin: 0 0 6px;
  padding: 0;
  overflow: hidden;
  max-height: 44.8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
}

.content-card__text {
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.5;
  margin: 0 0 8px;
  overflow: hidden;
  max-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
}

.content-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.content-card__meta-cat {
  color: #000;
}

.content-card__meta-date {
  color: rgba(0, 0, 0, 0.5);
}

.hero-section {
  padding: 0;
}

.hero-title,
.hero-search-box,
#heroInputHint,
#heroHistoryLink {
  display: none;
}

.page-home .hero-section {
  padding: 2rem 0 2rem;
}

.page-home .hero-title,
.page-home .hero-search-box,
.page-home #heroInputHint,
.page-home #heroHistoryLink {
  display: block;
}

.hero-section.is-chat-open {
  padding-bottom: 0;
}

.hero-container {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 28px;
  font-weight: 600;
  color: #000;
  line-height: 34px;
  letter-spacing: 0.3px;
  margin: 0 0 24px;
}

.hero-search-area {
  position: relative;
  z-index: 40;
  margin: 0 auto;
  width: 100%;
  max-width: 768px;
}

.hero-search-box {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px 52px 16px 16px;
  text-align: left;
}

.hero-input-area {
  position: relative;
  min-height: 72px;
}

.hero-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  padding: 2px 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.hero-input {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  font-family: inherit;
  padding: 0 8px 0 0;
  min-height: 3lh;
  max-height: 10lh;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

.hero-send-btn-wrap {
  position: absolute;
  right: 12px;
  bottom: 12px;
}

.hero-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
  opacity: 0.3;
}

.hero-send-btn:disabled {
  opacity: 0.3;
}

.drawer-quick-title {
  cursor: default;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 400;
  padding: 8px 0;
  font-size: 13px;
  display: block;
}

.footer-bar {
  border-color: #e5e7eb !important;
}

.footer-text {
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.45);
}

.footer-text-link {
  color: rgba(0, 0, 0, 0.45);
  text-decoration: none;
}

.footer-text-link:hover {
  color: rgba(0, 0, 0, 0.65);
}

@media (max-width: 767.98px) {
  .footer-text {
    font-size: 0.6875rem;
  }
}

.btn-top {
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  display: none;
  z-index: 1050;
}

.lang-switch-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: 12px;
  font-size: 13px;
}

.lang-switch {
  font-weight: 500;
  color: #000 !important;
  text-decoration: none !important;
  padding: 0 4px;
}

.lang-switch:hover {
  color: #2563eb !important;
}

.lang-active {
  color: #2563eb !important;
  font-weight: 600;
  cursor: default;
  pointer-events: none;
}

.lang-divider {
  color: #d1d5db;
  margin: 0 2px;
}

.page-head {
  padding: 2rem 0 1rem;
}

.page-head__body {
  margin-top: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7);
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}

.page-head__body p {
  margin: 0 0 0.5rem;
}

.page-head__body p:last-child {
  margin-bottom: 0;
}

.page-head__body ul {
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.25rem;
}

.page-head__body li {
  margin-bottom: 0.25rem;
}

.category-description {
  position: relative;
  padding: 1.25rem 0 1.25rem 1.5rem;
  margin: 1.5rem 0 2.5rem;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.7);
  border-left: 3px solid #000;
}

.category-description p {
  margin: 0 0 0.5rem;
}

.category-description p:last-child {
  margin-bottom: 0;
}

.category-empty {
  text-align: center;
  padding: 4rem 1rem;
}

.category-empty__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  background: #f3f4f6;
  border-radius: 50%;
}

.category-empty__icon {
  font-size: 1.75rem;
  color: rgba(0, 0, 0, 0.25);
}

.category-empty__text {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.45);
  margin: 0 0 1.5rem;
}

.category-empty__btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: #000;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.category-empty__btn:hover {
  background: #333;
  color: #fff;
}

.chat-history-link {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  text-align: center;
  cursor: pointer;
  padding: 6px 0 2px;
  user-select: none;
  transition: color 0.15s;
}

.chat-history-link:hover {
  color: rgba(0, 0, 0, 0.65);
}

/* 查看历史：两侧下箭头图标，与关闭消息区域的上箭头（^）对应 */
.chat-history-link svg {
  margin: 0 4px;
  vertical-align: -0.1em;
}

.chat-history-expired {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  text-align: center;
  padding: 4px 0 2px;
  user-select: none;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  max-width: 768px;
  margin: 0 auto 12px;
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px;
  min-height: 80vh;
  overflow: hidden;
}

.chat-panel__messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px;
  scrollbar-width: thin;
}

.chat-panel__collapse {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -5px auto -10px;
  border: none;
  background: transparent;
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}

.chat-panel__collapse:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.04);
}

@media (max-width: 767.98px) {
  .chat-panel {
    min-height: 70vh;
  }

}

.chat-msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 88%;
  position: relative;
  padding-top: 18px;
}

.chat-msg--user {
  align-self: flex-end;
}

.chat-msg--assistant {
  align-self: flex-start;
}

.chat-msg__bubble {
  padding: 9px 13px;
  font-size: 14px;
  line-height: 1.55;
  border-radius: 14px;
}

.chat-msg--user .chat-msg__bubble {
  background: #000;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg--assistant .chat-msg__bubble {
  background: #fff;
  color: #111;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
  text-align: left;
}

.chat-msg__text,
.chat-wait-hint,
.chat-error__text {
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg__text a {
  color: inherit;
  text-decoration: underline;
}

.chat-panel__input-area {
  flex-shrink: 0;
  margin-top: 10px;
}

.chat-options-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.chat-option-btn {
  padding: 6px 14px;
  font-size: 13px;
  line-height: 1.4;
  color: #111;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.chat-option-btn:hover {
  border-color: #000;
}

.chat-input-box {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px 52px 12px 14px;
  text-align: left;
}

.chat-input {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  font-family: inherit;
  padding: 0 8px 0 0;
  min-height: 1.5lh;
  max-height: 10lh;
  overflow-y: auto;
}

.chat-panel__privacy {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.35);
  text-align: center;
  margin-top: 6px;
}

.chat-input-hint {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.35);
  text-align: center;
  margin-top: 6px;
}

@media (max-width: 1023.98px) {
  .chat-input-hint {
    display: none;
  }
}

.chat-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 20px;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  animation: chatTypingBlink 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes chatTypingBlink {

  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.chat-wait-hint {
  color: rgba(0, 0, 0, 0.45);
}

绝对定位在气泡上方，宽度与气泡一致（不被时间文字撑开） */ .chat-msg__meta {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.chat-msg--user .chat-msg__meta {
  justify-content: flex-end;
}

.chat-msg__time {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.35);
}

.chat-retry-btn {
  padding: 0;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.35);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  flex-shrink: 0;
}

.chat-retry-btn:hover {
  color: rgba(0, 0, 0, 0.6);
}