/* ===================================================================
   外汇导航 — 主样式表
   =================================================================== */

:root {
  --brand: #1a56db;
  --brand-d: #1e40af;
  --brand-l: #eef4ff;
  --gold: #c8961e;
  --gold-l: #fdf6e3;
  --ink: #101828;
  --ink-2: #344054;
  --ink-3: #667085;
  --ink-4: #98a2b3;
  --line: #e7eaf0;
  --line-2: #f0f2f6;
  --bg: #f5f7fb;
  --card: #fff;
  --up: #d92d20;
  --down: #079455;
  --r: 10px;
  --r-lg: 14px;
  --sh: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-2: 0 4px 16px rgba(16, 24, 40, .08);
  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; border: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
button { font-family: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.main { min-height: 60vh; padding-bottom: 48px; }

/* ---------------------------------------------------------- 头部 */
.hd {
  background: linear-gradient(180deg, #16233f 0%, #1c2f52 100%);
  color: #fff;
  position: relative;
  z-index: 50;
}

.hd-in {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo:hover { color: #fff; }

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), #e8b83f);
  color: #16233f;
  font-weight: 800;
  font-size: 19px;
  flex: none;
}

.logo-txt { display: flex; flex-direction: column; line-height: 1.25; }
.logo-txt b { font-size: 17px; color: #fff; letter-spacing: .3px; }
.logo-txt i { font-style: normal; font-size: 11px; color: #93a4c4; }

.hd-search {
  flex: 1;
  max-width: 520px;
  display: flex;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  overflow: hidden;
  transition: .18s;
}

.hd-search:focus-within {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(200, 150, 30, .22);
}

.hd-search input {
  flex: 1;
  border: 0; outline: 0;
  background: transparent;
  padding: 10px 18px;
  color: #fff;
  font-size: 13.5px;
}

.hd-search input::placeholder { color: #8fa1c2; }
.hd-search:focus-within input { color: var(--ink); }
.hd-search:focus-within input::placeholder { color: var(--ink-4); }

.hd-search button {
  border: 0;
  background: transparent;
  color: #a9b8d6;
  padding: 0 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hd-search:focus-within button { color: var(--brand); }

.hd-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.hd-toggle span { width: 20px; height: 2px; background: #cbd5e1; border-radius: 2px; }

/* 导航条 */
.hd-nav { border-top: 1px solid rgba(255, 255, 255, .09); }
.hd-nav-in { display: flex; align-items: center; gap: 2px; position: relative; }

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 11px 15px;
  font-size: 14.5px;
  color: #cdd8ec;
  border-radius: 0;
  white-space: nowrap;
  transition: .15s;
}

.nav-item:hover, .nav-item.on { color: #fff; background: rgba(255, 255, 255, .08); }

.caret {
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .7;
}

.nav-drop { position: static; }

.drop-panel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: #fff;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: var(--sh-2);
  padding: 22px 24px;
  display: none;
  z-index: 60;
}

.nav-drop:hover .drop-panel { display: block; }

.drop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px 24px;
}

.drop-col-hd {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
  padding-bottom: 7px;
  margin-bottom: 7px;
  border-bottom: 1px solid var(--line);
}
.drop-col-hd:hover { color: var(--brand); }

.drop-col-a {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  padding: 3px 0;
}
.drop-col-a:hover { color: var(--brand); padding-left: 3px; transition: .15s; }

/* ---------------------------------------------------------- 提示条 */
.flash-wrap { margin-top: 16px; }
.flash {
  padding: 11px 16px;
  border-radius: var(--r);
  font-size: 13.5px;
  border: 1px solid;
}
.flash-success { background: #ecfdf3; border-color: #a6f4c5; color: #054f31; }
.flash-error   { background: #fef3f2; border-color: #fecdca; color: #912018; }
.flash-info    { background: var(--brand-l); border-color: #c7d7fe; color: var(--brand-d); }

/* ---------------------------------------------------------- 通用板块 */
.sec { margin-top: 26px; }

.sec-hd {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.sec-hd h2 {
  font-size: 18px;
  position: relative;
  padding-left: 12px;
}

.sec-hd h2::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), #e8b83f);
}

.sec-hd .sec-sub { font-size: 12.5px; color: var(--ink-4); }
.sec-hd .sec-more { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.sec-hd .sec-more:hover { color: var(--brand); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
}

/* ---------------------------------------------------------- 首页 Hero 统计 */
.hero {
  background: linear-gradient(135deg, #16233f 0%, #21386a 55%, #1a4d8f 100%);
  border-radius: var(--r-lg);
  margin-top: 20px;
  padding: 34px 28px 30px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: -70px; top: -70px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 150, 30, .3), transparent 68%);
}

.hero > * { position: relative; z-index: 1; }

.hero h1 {
  color: #fff;
  font-size: 25px;
  letter-spacing: .4px;
  margin-bottom: 8px;
}

.hero p { color: #b6c6e2; font-size: 14px; max-width: 760px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.hero-stat b {
  display: block;
  font-size: 25px;
  color: #f2c14e;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.hero-stat span { font-size: 12.5px; color: #9db0d0; }

/* ---------------------------------------------------------- 分类卡片 */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 12px;
}

.cat-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 15px 16px;
  transition: .18s;
}

.cat-card:hover {
  border-color: #c7d7fe;
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
  color: inherit;
}

.cat-card-hd { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }

.cat-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand-l);
  color: var(--brand);
  flex: none;
}

.cat-icon svg { width: 17px; height: 17px; }

.cat-card-hd b { font-size: 14.5px; color: var(--ink); }
.cat-card-hd em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-4);
  margin-left: auto;
  background: var(--line-2);
  padding: 1px 7px;
  border-radius: 999px;
}

.cat-card ul { display: flex; flex-wrap: wrap; gap: 5px; }

.cat-card ul li a {
  font-size: 12.5px;
  color: var(--ink-3);
  background: var(--line-2);
  padding: 3px 9px;
  border-radius: 5px;
  transition: .15s;
}

.cat-card ul li a:hover { background: var(--brand); color: #fff; }

/* ---------------------------------------------------------- 站点列表 */
.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 12px;
}

.site-card {
  display: flex;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  transition: .18s;
  align-items: flex-start;
}

.site-card:hover {
  border-color: #c7d7fe;
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
  color: inherit;
}

.ic {
  width: 40px; height: 40px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--line-2);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  overflow: hidden;
  position: relative;
}

.ic img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.site-info { min-width: 0; flex: 1; }

.site-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.site-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-card:hover .site-name { color: var(--brand); }

.site-desc {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.site-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--ink-4);
}

.site-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }

.tag {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--gold-l);
  color: #8a6512;
  border: 1px solid #f0e0b0;
  flex: none;
}

.tag-hot { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.tag-new { background: #ecfdf3; color: #067647; border-color: #a6f4c5; }

/* ---------------------------------------------------------- 首页两栏 */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 22px;
  align-items: start;
}

.side-card { padding: 16px; margin-bottom: 16px; }

.side-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 11px;
  margin-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.side-hd .sec-more { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--ink-4); }

.rank-list li { display: flex; align-items: center; gap: 9px; padding: 6px 0; }

.rank-no {
  width: 19px; height: 19px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--line-2);
  color: var(--ink-3);
  flex: none;
}

.rank-list li:nth-child(1) .rank-no { background: linear-gradient(135deg, #e8b83f, #c8961e); color: #fff; }
.rank-list li:nth-child(2) .rank-no { background: #b8c2d4; color: #fff; }
.rank-list li:nth-child(3) .rank-no { background: #d3a583; color: #fff; }

.rank-list li a {
  flex: 1;
  font-size: 13px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list li em { font-style: normal; font-size: 11.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }

/* 标签云 */
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags a {
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--line-2);
  padding: 4px 11px;
  border-radius: 999px;
  transition: .15s;
}
.tags a:hover { background: var(--brand); color: #fff; }

/* 友链格 */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.link-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12.5px;
  background: var(--card);
  color: var(--ink-2);
  overflow: hidden;
}
.link-item:hover { border-color: var(--brand); color: var(--brand); }
.link-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------- 列表页 */
.crumb { font-size: 13px; color: var(--ink-4); padding: 16px 0 2px; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }
.crumb i { font-style: normal; margin: 0 6px; }

.page-hd {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.page-hd h1 { font-size: 21px; }
.page-hd .cnt { font-size: 13px; color: var(--ink-4); }

.sub-nav { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.sub-nav a {
  font-size: 13px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
}
.sub-nav a:hover { border-color: var(--brand); color: var(--brand); }
.sub-nav a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.sort-bar { display: flex; gap: 4px; margin-left: auto; }
.sort-bar a {
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 6px;
  color: var(--ink-3);
}
.sort-bar a:hover { background: var(--line-2); }
.sort-bar a.on { background: var(--brand-l); color: var(--brand); font-weight: 600; }

/* ---------------------------------------------------------- 详情页 */
.detail-hd {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  flex-wrap: wrap;
}

.detail-hd .ic { width: 58px; height: 58px; font-size: 24px; border-radius: 13px; }
.detail-hd .ic img { padding: 7px; }

.detail-hd-info { flex: 1; min-width: 200px; }
.detail-hd-info h1 { font-size: 21px; margin-bottom: 6px; }
.detail-hd-info .u { font-size: 13px; color: var(--ink-4); word-break: break-all; }

.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--brand), var(--brand-d));
  color: #fff;
  padding: 11px 26px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  transition: .18s;
  flex: none;
}
.btn-visit:hover { color: #fff; box-shadow: 0 6px 18px rgba(26, 86, 219, .35); transform: translateY(-1px); }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.meta-row b { color: var(--ink); font-weight: 600; }

.desc-box { padding: 18px 20px; line-height: 1.8; font-size: 14px; color: var(--ink-2); }

/* ---------------------------------------------------------- 表单 */
.form-card { padding: 24px; max-width: 620px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 6px; font-weight: 500; }
.field label i { font-style: normal; color: var(--up); margin-left: 2px; }
.field .hint { font-size: 12px; color: var(--ink-4); margin-top: 5px; }

.inp, .sel, .txa {
  width: 100%;
  border: 1px solid #d5dbe5;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: 0;
  transition: .15s;
}
.inp:focus, .sel:focus, .txa:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 86, 219, .12); }
.txa { resize: vertical; min-height: 92px; line-height: 1.6; }
.sel { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  cursor: pointer;
  transition: .15s;
  background: var(--brand);
  color: #fff;
}
.btn:hover { background: var(--brand-d); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-ghost { background: #fff; border-color: #d5dbe5; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); border-color: #c0c8d6; }
.btn-danger { background: #d92d20; }
.btn-danger:hover { background: #b42318; }

/* ---------------------------------------------------------- 分页 */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 26px; }
.pg {
  min-width: 34px;
  height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-size: 13px;
  color: var(--ink-2);
}
.pg:hover { border-color: var(--brand); color: var(--brand); }
.pg.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pg.disabled { color: var(--ink-4); background: var(--line-2); cursor: not-allowed; }
.pg.gap { border: 0; background: transparent; color: var(--ink-4); }

/* ---------------------------------------------------------- 空态 */
.empty {
  padding: 62px 20px;
  text-align: center;
  color: var(--ink-4);
}
.empty svg { width: 46px; height: 46px; stroke-width: 1.3; opacity: .45; margin-bottom: 12px; }
.empty p { font-size: 14px; }

/* ---------------------------------------------------------- 页脚 */
.ft {
  background: #16233f;
  color: #93a4c4;
  font-size: 13px;
  margin-top: 44px;
  padding: 34px 0 26px;
}

.ft-cols {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.ft-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.ft-logo .logo-mark { width: 30px; height: 30px; font-size: 15px; border-radius: 7px; }
.ft-logo b { color: #fff; font-size: 15px; }
.ft-col-brand p { line-height: 1.75; font-size: 12.5px; max-width: 330px; }

.ft-col h4 { color: #dbe3f0; font-size: 13.5px; margin-bottom: 10px; }
.ft-col li { margin-bottom: 6px; }
.ft-col a { font-size: 12.5px; color: #93a4c4; }
.ft-col a:hover { color: #f2c14e; }

.ft-bot { padding-top: 20px; text-align: center; }
.ft-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.ft-links a { color: #93a4c4; }
.ft-links a:hover { color: #f2c14e; }
.ft-copy { font-size: 12.5px; margin-bottom: 8px; }
.ft-risk { font-size: 12px; color: #6b7c9c; max-width: 860px; margin: 0 auto; line-height: 1.7; }

/* ---------------------------------------------------------- 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: baseline; line-height: 1.5; }
.tag-cloud-a {
  color: var(--ink-2);
  padding: 2px 8px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.tag-cloud-a:hover { color: var(--brand); background: var(--line-2); }
.tag-cloud-a em {
  font-style: normal;
  font-size: .62em;
  color: var(--ink-4);
  margin-left: 3px;
  vertical-align: super;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
}
.tag-list a:hover { border-color: var(--brand); color: var(--brand); }
.tag-list a .muted { font-size: 12px; color: var(--ink-4); }

/* ---------------------------------------------------------- 评分点评 */
.stars {
  position: relative;
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 1px;
  color: #d8dce5;
}
.stars > span { display: block; }
.stars > b {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #f5a623;
  font-weight: normal;
}
.meta-rate { display: inline-flex; align-items: center; gap: 4px; }
.meta-rate .stars { font-size: 10.5px; letter-spacing: .5px; }
.sec-sub .stars { vertical-align: -1px; margin-right: 4px; }

.rev-list { padding: 4px 20px; }
.rev-item { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.rev-item:last-child { border-bottom: 0; }
.rev-hd { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.rev-hd b { color: var(--ink); font-weight: 600; }
.rev-time { margin-left: auto; font-size: 12px; color: var(--ink-4); }
.rev-txt { margin-top: 7px; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }

.rate-input { position: relative; display: inline-flex; flex-direction: row-reverse; }
.rate-input input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rate-input label {
  font-size: 30px;
  line-height: 1;
  color: #d8dce5;
  cursor: pointer;
  padding: 0 2px;
  transition: color .12s;
}
.rate-input input:checked ~ label,
.rate-input label:hover,
.rate-input label:hover ~ label { color: #f5a623; }

/* ---------------------------------------------------------- 资讯文章 */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item { padding: 18px 20px; }
.news-item h2 { font-size: 17px; line-height: 1.5; }
.news-item h2 a { color: var(--ink); }
.news-item h2 a:hover { color: var(--brand); }
.news-item h2 .tag { vertical-align: 2px; }
.news-sum {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  font-size: 12.5px;
  color: var(--ink-4);
}
.news-meta a { color: var(--brand); }
.news-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }

.art-card { padding: 26px 28px; }
.art-title { font-size: 23px; line-height: 1.5; }
.art-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-4);
}
.art-meta a { color: var(--brand); }
.art-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }
.art-content { padding-top: 18px; font-size: 15px; line-height: 1.9; color: var(--ink-2); overflow-wrap: break-word; }
.art-content p { margin-bottom: 14px; }
.art-content h2 { font-size: 18px; margin: 22px 0 12px; }
.art-content h3 { font-size: 16px; margin: 20px 0 10px; }
.art-content ul, .art-content ol { margin: 0 0 14px; padding-left: 22px; }
.art-content ul { list-style: disc; }
.art-content ol { list-style: decimal; }
.art-content li { margin-bottom: 6px; }
.art-content a { color: var(--brand); text-decoration: underline; }
.art-content blockquote {
  margin: 0 0 14px;
  padding: 10px 16px;
  border-left: 3px solid var(--brand);
  background: var(--line-2);
  border-radius: 0 8px 8px 0;
  color: var(--ink-3);
}
.art-content img { max-width: 100%; height: auto; border-radius: 10px; }
.art-content code {
  padding: 1px 6px;
  background: var(--line-2);
  border-radius: 5px;
  font-size: .92em;
}
.art-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.art-nav em { font-style: normal; color: var(--ink-4); }
.art-nav a { color: var(--ink-2); }
.art-nav a:hover { color: var(--brand); }

.rel-list { padding: 6px 20px; }
.rel-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
  color: var(--ink-2);
}
.rel-item:last-child { border-bottom: 0; }
.rel-item:hover span { color: var(--brand); }
.rel-item em { font-style: normal; font-size: 12px; color: var(--ink-4); flex: none; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.news-card {
  display: block;
  padding: 17px 18px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.news-card:hover { border-color: var(--brand); box-shadow: 0 6px 16px rgba(26, 86, 219, .08); transform: translateY(-1px); }
.news-card h3 {
  font-size: 14.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card p {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .news-meta { margin-top: 10px; }

/* ---------------------------------------------------------- 分享按钮 */
.share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 20px 14px;
  border-top: 1px solid var(--line);
}
.share-label { font-size: 13px; color: var(--ink-3); margin-right: 2px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.share-btn:hover { border-color: var(--brand); color: var(--brand); }
.share-btn.ok { border-color: #12b76a; color: #12b76a; }
.share-btn svg { width: 13px; height: 13px; }
.art-card .share-row { border-top: 0; padding: 18px 0 0; }

/* ---------------------------------------------------------- 搜索联想 */
.hd-in { position: relative; }
.search-sug {
  position: absolute;
  z-index: 80;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, .16);
  padding: 6px;
  max-height: 380px;
  overflow-y: auto;
}
.search-sug[hidden] { display: none; }
.sug-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--ink);
}
.sug-item:hover, .sug-item.on { background: var(--line-2); }
.sug-type {
  flex: none;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-4);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 6px;
}
.sug-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-empty { padding: 12px; font-size: 13px; color: var(--ink-4); text-align: center; }
.sug-all { border-top: 1px solid var(--line-2); border-radius: 0 0 9px 9px; margin-top: 4px; color: var(--brand); }
.sug-all .sug-label { font-weight: 600; }

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1024px) {
  .cols { grid-template-columns: 1fr; }
  .ft-cols { grid-template-columns: 1fr 1fr 1fr; }
  .ft-col-brand { grid-column: 1 / -1; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .hd-in { flex-wrap: wrap; gap: 12px; }
  .hd-search { order: 3; flex-basis: 100%; max-width: none; }
  .hd-toggle { display: flex; margin-left: auto; }

  .hd-nav { display: none; }
  .hd-nav.open { display: block; }
  .hd-nav-in { flex-direction: column; align-items: stretch; padding-top: 6px; padding-bottom: 10px; }
  .nav-item { padding: 11px 6px; border-bottom: 1px solid rgba(255, 255, 255, .07); border-radius: 0; }

  .drop-panel { position: static; box-shadow: none; border-radius: 0; padding: 12px 6px; }
  .nav-drop:hover .drop-panel { display: none; }
  .hd-nav.open .nav-drop:hover .drop-panel { display: block; }

  .hero { padding: 26px 20px 22px; }
  .hero h1 { font-size: 20px; }
  .hero-stats { gap: 22px; }
  .hero-stat b { font-size: 21px; }

  .site-grid, .cat-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .art-card { padding: 18px 16px; }
  .art-title { font-size: 19px; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 18px; }
  .detail-hd { padding: 16px; }
}
