/* =============================================================
   珞石文化 · 全局基础样式
   设计语言：深藏青 + 金色 + 大留白，现代财经门户
   ============================================================= */

/* ---------- 设计变量 ---------- */
:root {
  --ink-950: #071322;
  --ink-900: #0B1B2B;
  --ink-800: #102A43;
  --ink-700: #1B3A57;
  --ink-600: #24476B;
  --gold: #C8A45C;
  --gold-light: #D9B978;
  --gold-dark: #A8853F;
  --paper: #FFFFFF;
  --bg: #F4F6F9;
  --bg-soft: #ECF1F7;
  --text: #1C2B3A;
  --text-secondary: #52657A;
  --text-muted: #8595A6;
  --border: #E4E9F0;
  --border-strong: #D3DBE5;
  --up: #E0574F;
  --down: #2FA36B;
  --shadow-sm: 0 1px 2px rgba(11, 27, 43, .05), 0 2px 6px rgba(11, 27, 43, .05);
  --shadow-md: 0 10px 30px rgba(11, 27, 43, .09);
  --shadow-lg: 0 24px 60px rgba(11, 27, 43, .18);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong",
    Georgia, "Times New Roman", "SimSun", serif;
  --container: 1240px;
  --header-height: 76px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
p,
figure {
  margin: 0;
}

::selection {
  background: rgba(200, 164, 92, .3);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- 布局骨架 ---------- */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: all .22s var(--ease);
}

.btn svg {
  transition: transform .22s var(--ease);
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13.5px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--ink-800);
  color: #fff;
  box-shadow: 0 6px 16px rgba(16, 42, 67, .18);
}

.btn-primary:hover {
  background: var(--ink-700);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(16, 42, 67, .24);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--ink-900);
}

.btn-gold:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(200, 164, 92, .38);
}

.btn-outline {
  border-color: var(--border-strong);
  background: #fff;
  color: var(--ink-800);
}

.btn-outline:hover {
  border-color: var(--ink-800);
  transform: translateY(-1px);
}

.btn-text {
  color: var(--text-secondary);
}

.btn-text:hover {
  color: var(--ink-900);
}

/* ---------- 通用元素 ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
}

.pill-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--ink-900);
}

.pill-ghost {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .88);
  backdrop-filter: blur(6px);
}

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold-dark);
  text-transform: uppercase;
}

.meta-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
  flex: none;
}

.meta-dot--light {
  background: rgba(255, 255, 255, .45);
}

.meta-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---------- 顶部行情条 ---------- */
.topbar {
  background: var(--ink-950);
  color: rgba(255, 255, 255, .62);
  font-size: 12.5px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 38px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.live-dot {
  display: inline-block;
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38B26B;
  box-shadow: 0 0 0 3px rgba(56, 178, 107, .16);
  animation: livePulse 2.2s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.topbar-name {
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}

.topbar-divider {
  flex: none;
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, .14);
}

.topbar-motto {
  letter-spacing: .08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.topbar-date {
  letter-spacing: .04em;
}

/* ---------- 站点头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transition: box-shadow .3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 34px rgba(11, 27, 43, .09);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}

.brand-logo {
  width: auto;
  height: 44px;
}

.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--header-height);
  padding: 0 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color .2s var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--ease);
}

.nav-link:hover {
  color: var(--ink-900);
}

.nav-link.active {
  color: var(--ink-900);
  font-weight: 600;
}

.nav-link.active::after {
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink-800);
  transition: background .2s var(--ease);
}

.icon-button:hover {
  background: var(--bg);
}

.menu-button {
  display: none;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 28px 48px rgba(11, 27, 43, .14);
}

.mobile-nav .container {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  padding-bottom: 20px;
}

.mobile-nav-link {
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.mobile-nav-link.active {
  color: var(--gold-dark);
  font-weight: 600;
}

.drop-enter-active,
.drop-leave-active {
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.drop-enter-from,
.drop-leave-to {
  opacity: 0;
  transform: translateY(-10px);
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 76px;
  background: var(--ink-950);
  color: rgba(255, 255, 255, .6);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.7fr .9fr 1.2fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer-logo-card {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 10px;
  background: #fff;
}

.footer-logo-card img {
  width: auto;
  height: 38px;
}

.footer-brand p {
  max-width: 320px;
  margin: 18px 0 16px;
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .5);
}

.footer-slogan {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: .18em;
  color: var(--gold-light);
}

.footer-col h4 {
  position: relative;
  margin-bottom: 18px;
  padding-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #fff;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .54);
  transition: color .2s var(--ease);
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .54);
}

.footer-contact p svg {
  flex: none;
  color: var(--gold);
}

.footer-hours {
  margin-top: 6px;
  font-size: 12.5px !important;
  color: rgba(255, 255, 255, .38) !important;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, .08);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 26px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .36);
}

/* ---------- 排行列表 ---------- */
.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--border);
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-num {
  flex: none;
  min-width: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.rank-num--top {
  color: var(--gold-dark);
}

.rank-content {
  min-width: 0;
}

.rank-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
  transition: color .2s var(--ease);
}

.rank-title:hover {
  color: var(--gold-dark);
}

.rank-meta {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.rank-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
}

.pagination-total {
  font-size: 13px;
  color: var(--text-muted);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  transition: all .2s var(--ease);
}

.page-btn:hover:not(:disabled) {
  border-color: var(--ink-800);
  color: var(--ink-900);
}

.page-btn.active {
  border-color: var(--ink-800);
  background: var(--ink-800);
  color: #fff;
  box-shadow: 0 6px 14px rgba(16, 42, 67, .22);
}

.page-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.page-arrow {
  padding: 0;
}

.page-ellipsis {
  padding: 0 6px;
  color: var(--text-muted);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color .2s var(--ease);
}

.breadcrumb a:hover {
  color: var(--gold-dark);
}

.breadcrumb-sep {
  color: var(--border-strong);
}

/* ---------- 空状态 ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-muted);
}

.empty-state h3 {
  margin-bottom: 8px;
  font-size: 17px;
  color: var(--ink-900);
}

.empty-state p {
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------- 错误面板 ---------- */
.error-panel {
  max-width: 560px;
  margin: 80px auto;
  padding: 56px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
}

.error-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(200, 164, 92, .14);
  color: var(--gold-dark);
}

.error-panel h2 {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink-900);
}

.error-panel p {
  margin-bottom: 22px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.error-panel--inline {
  margin: 0;
  padding: 56px 24px;
}

/* ---------- 骨架屏 ---------- */
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #E9EEF4;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.skeleton-line {
  height: 14px;
  margin-bottom: 12px;
}

.skeleton-line.w-30 { width: 30%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-70 { width: 70%; }

.skeleton-media {
  height: 168px;
  margin-bottom: 16px;
  border-radius: 10px 10px 0 0;
}

.skeleton-card {
  overflow: hidden;
  padding-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.skeleton-card .skeleton-line {
  margin: 0 16px 12px;
}

.skeleton-card .skeleton-media {
  margin: 0 0 16px;
}

.skeleton-strip {
  display: flex;
  gap: 16px;
  margin: 28px 0;
}

.skeleton-strip .skeleton-line {
  flex: 1;
  height: 44px;
  margin: 0;
}

.hero-skeleton {
  height: 480px;
  margin-top: 28px;
  border-radius: var(--radius-lg);
}

.home-skeleton {
  padding-top: 28px;
}

.list-skeleton {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skeleton-row {
  display: flex;
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.skeleton-row-media {
  flex: none;
  width: 240px;
  height: 150px;
}

.skeleton-row-body {
  flex: 1;
  padding-top: 6px;
}

/* ---------- Toast ---------- */
.toast-stack {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(11, 27, 43, .93);
  color: #fff;
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.toast-item--success svg {
  color: #4CC38A;
}

.toast-item--info svg {
  color: var(--gold-light);
}

.toast-enter-active,
.toast-leave-active {
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.toast-enter-from,
.toast-leave-to {
  opacity: 0;
  transform: translateY(-12px);
}

.toast-move {
  transition: transform .3s var(--ease);
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ink-800);
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: all .25s var(--ease);
}

.back-top:hover {
  background: var(--ink-700);
  transform: translateY(-3px);
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
  transform: translateY(8px);
}

/* ---------- 页面切换动画 ---------- */
.page-enter-active,
.page-leave-active {
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}

.page-enter-from {
  opacity: 0;
  transform: translateY(10px);
}

.page-leave-to {
  opacity: 0;
  transform: translateY(-6px);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .nav-link {
    padding: 0 9px;
    font-size: 14px;
  }

  .nav-link::after {
    left: 9px;
    right: 9px;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .topbar-motto,
  .topbar-date {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .header-inner {
    gap: 16px;
  }

  .header-tools {
    margin-left: auto;
  }

  .mobile-nav {
    display: block;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 20px;
  }

  .topbar-right {
    display: none;
  }

  .topbar-inner {
    justify-content: flex-start;
    height: 36px;
  }

  .brand-logo {
    height: 38px;
  }

  .header-inner {
    height: 66px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 48px;
    padding-bottom: 36px;
  }

  .footer-contact {
    grid-column: auto;
  }

  .back-top {
    right: 18px;
    bottom: 22px;
  }

  .skeleton-row {
    flex-direction: column;
  }

  .skeleton-row-media {
    width: 100%;
    height: 180px;
  }

  .modal-mask {
    padding: 16px;
  }

  .auth-modal {
    padding: 34px 24px 26px;
  }
}