/* 金融界 AI 工具市场 — 全局共享样式 — Less */
:root {
  --jrj-red: #BF1738;
  --jrj-red-hover: #A01230;
  --jrj-red-dark: #96001E;
  --jrj-red-bg: rgba(191, 23, 57, 0.06);
  --jrj-blue: #185FA5;
  --jrj-blue-light: #F4F8FF;
  --jrj-green: #52c41a;
  --jrj-green-bg: rgba(82, 196, 26, 0.1);
  --jrj-orange: #D97706;
  --jrj-orange-bg: rgba(217, 119, 6, 0.08);
  --jrj-teal: #059669;
  --jrj-teal-bg: rgba(5, 150, 105, 0.08);
  --jrj-purple: #7C3AED;
  --jrj-purple-bg: rgba(124, 58, 237, 0.08);
  --text: #1d1d1f;
  --text-sub: #6e6e73;
  --text-muted: #8e8e93;
  --text-light: #aeaeb2;
  --bg: #fff;
  --bg-page: #f5f5f7;
  --bg-gray: #f5f5f5;
  --bg-card: #fff;
  --border: #e5e5e5;
  --border-light: #f0f0f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --max-w: 1200px;
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  scroll-behavior: smooth;
}
html::-webkit-scrollbar,
html::-moz-scrollbar {
  width: 5px;
  height: 5px;
}
html::-webkit-scrollbar-thumb,
html::-moz-scrollbar-thumb {
  border-radius: 10px;
  background: #a9a9a9;
}
html::-webkit-scrollbar-track,
html::-moz-scrollbar-track {
  background: transparent;
}
body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100% !important;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
}
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
    box-sizing: border-box;
  }
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* ===== 导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0;
}
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 44px;
    padding: 10px 20px 0;
    box-sizing: border-box;
  }
}
.header-logo {
  display: flex;
  align-items: center;
  width: 273px;
  height: 36px;
}
.header-logo .header-logo-pc {
  width: 100%;
  height: 100%;
  display: block;
}
.header-logo .header-logo-h5 {
  display: none;
}
@media (max-width: 768px) {
  .header-logo {
    width: auto;
    height: 25px;
    max-width: calc(100% - 80px);
  }
  .header-logo .header-logo-pc {
    display: none;
  }
  .header-logo .header-logo-h5 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 19px;
  }
  .header-logo .header-logo-brand {
    height: 19px;
    width: 45px;
    display: block;
    flex-shrink: 0;
  }
  .header-logo .header-logo-divider {
    width: 1px;
    height: 16px;
    background: #D8DCE6;
    flex-shrink: 0;
  }
  .header-logo .header-logo-name {
    font-weight: 600;
    font-size: 14px;
    color: #041026;
    line-height: 18px;
    white-space: nowrap;
    letter-spacing: 0;
  }
  .header-logo .header-logo-beta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 4px;
    background: var(--jrj-red);
    font-size: 10px;
    color: #FFFFFF;
    line-height: 15px;
    line-height: 1;
    flex-shrink: 0;
    width: 35px;
    height: 16px;
  }
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 60px;
  height: 100%;
  margin-left: 64px;
}
.header-nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 72px;
  font-size: 14px;
  color: var(--text-sub);
  font-weight: 500;
  transition: color var(--transition);
}
.header-nav a:hover {
  color: var(--text);
}
.header-nav a.active {
  color: var(--text);
}
.header-nav a.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  width: 20px;
  height: 4px;
  border-radius: 2px;
  background: var(--jrj-red);
}
@media (max-width: 768px) {
  .header-nav {
    order: 3;
    width: calc(100% + 40px);
    margin: 10px -20px 0;
    padding: 0 12px;
    gap: 0;
    height: 54px;
    justify-content: space-around;
    border-top: 1px solid var(--border);
    box-sizing: border-box;
  }
  .header-nav a {
    flex: 1;
    justify-content: center;
    height: 54px;
    font-size: 16px;
    color: #7B8389;
    line-height: 14px;
  }
  .header-nav a.active {
    font-weight: 600;
  }
  .header-nav a.active::after {
    bottom: 4px;
    width: 28px;
    height: 2px;
  }
  .header-nav a.nav-pc-only {
    display: none;
  }
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-gray);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 5px 14px;
  width: 220px;
  transition: all var(--transition);
}
.header-search:focus-within {
  border-color: var(--jrj-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(191, 23, 57, 0.06);
}
.header-search svg {
  flex-shrink: 0;
  color: var(--text-muted);
}
.header-search input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-size: 13px;
  color: var(--text);
  margin-left: 8px;
}
.header-search input::placeholder {
  color: var(--text-light);
}
@media (max-width: 768px) {
  .header-search {
    display: none;
  }
}
.btn-login {
  width: 84px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  background: var(--jrj-red);
  color: #fff !important;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-login:hover {
  background: var(--jrj-red-hover);
  color: #fff;
}
@media (max-width: 768px) {
  .btn-login {
    width: 50px;
    height: 25px;
    border-radius: 60px;
    font-size: 12px;
    line-height: 25px;
  }
}
.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-user .user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}
.header-user .user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.header-user .user-name,
.header-user .user-email {
  font-size: 14px;
  color: #2B2B2B;
  line-height: 24px;
}
.header-user .user-name {
  font-weight: 500;
}
.header-user .user-email {
  font-weight: 400;
}
.header-user .btn-logout {
  width: 84px;
  height: 38px;
  border-radius: 120px;
  border: 1px solid #BF1738;
  margin-left: 4px;
  font-weight: 400;
  font-size: 16px;
  color: #BF1738;
  line-height: 38px;
  background: #fff;
  transition: all var(--transition);
  flex-shrink: 0;
}
.header-user .btn-logout:hover {
  background: var(--jrj-red-bg);
}
@media (max-width: 768px) {
  .header-user {
    gap: 8px;
  }
  .header-user .user-avatar {
    width: 32px;
    height: 32px;
  }
  .header-user .user-meta {
    display: none;
  }
  .header-user .btn-logout {
    width: auto;
    height: 32px;
    margin-left: 0;
    padding: 0 12px;
    font-size: 13px;
    line-height: 30px;
  }
}
/* ===== 页面视图切换 ===== */
.page-view {
  display: none;
}
.page-view.active {
  display: block;
}
/* ===== 页脚 ===== */
.site-footer {
  height: auto;
  min-height: 324px;
  background: #0D1C38;
  padding: 61px 0 50px;
}
@media (max-width: 768px) {
  .site-footer {
    min-height: auto;
    padding: 40px 0 70px;
  }
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 768px) {
  .footer-cols {
    display: block;
  }
}
.footer-brand .footer-logo {
  width: 273px;
  height: 36px;
  max-width: 100%;
  display: block;
  margin-bottom: 8px;
}
.footer-brand p {
  font-weight: 400;
  font-size: 14px;
  color: #BBC1CF;
  line-height: 24px;
}
@media (max-width: 768px) {
  .footer-brand {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #BBC1CF;
  }
  .footer-brand .footer-logo {
    max-width: 200px;
    height: auto;
  }
  .footer-brand p {
    font-size: 12px;
    line-height: 23px;
  }
}
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 768px) {
  .footer-nav {
    display: flex;
    flex-direction: column;
  }
}
.footer-links h4 {
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  line-height: 24px;
  margin-bottom: 21px;
}
.footer-links a {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: #BBC1CF;
  line-height: 24px;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: #fff;
}
@media (max-width: 768px) {
  .footer-links {
    padding-bottom: 20px;
    border-bottom: 1px solid #BBC1CF;
  }
  .footer-links h4 {
    margin-bottom: 12px;
  }
}
.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 768px) {
  .footer-links-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 12px;
  }
}
.footer-bottom {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 400;
  font-size: 14px;
  color: #6E737F;
  line-height: 24px;
}
@media (max-width: 768px) {
  .footer-bottom {
    margin-top: 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    color: #BBC1CF;
  }
}
/* ===== 动画 ===== */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
