/* 项目导航站 · 样式（暗色金融风，与数据站同款气质） */
:root {
  --bg: #0b0e14;
  --bg-soft: #11151f;
  --card: #151a26;
  --card-hover: #1a2030;
  --line: #232a3a;
  --text: #e8ecf3;
  --text-dim: #9aa4b5;
  --gold: #d4a017;
  --gold-soft: rgba(212, 160, 23, .12);
  --radius: 14px;
}

/* 维吾尔文字体：与各数据站共用 ilkan.cn 上的 UKIJ Tuz Tom；本机无字体时回退系统维文字体 */
@font-face {
  font-family: "UKIJ Tuz Tom";
  src: url("https://www.ilkan.cn/wp-content/themes/ripro-v5/uyeot/UKIJTuT.woff2") format("woff2"),
       url("https://www.ilkan.cn/wp-content/themes/ripro-v5/uyeot/UKIJTuT.woff") format("woff"),
       url("https://www.ilkan.cn/wp-content/themes/ripro-v5/uyeot/UKIJTuT.ttf") format("truetype");
  font-weight: normal; font-style: normal; font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(212,160,23,.07), transparent 60%),
    radial-gradient(700px 400px at -10% 20%, rgba(61,90,128,.10), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 20, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: .5px; }
.brand .dot {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), #8a6a0e);
  display: grid; place-items: center; font-size: 15px;
}
.lang-switch {
  display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: var(--bg-soft);
}
.lang-switch button,
.lang-switch a {
  border: 0; background: transparent; color: var(--text-dim);
  padding: 6px 16px; font-size: 13px; cursor: pointer; transition: .2s;
  font-family: inherit; text-decoration: none; display: inline-flex; align-items: center;
}
.lang-switch button.active,
.lang-switch a.active { background: var(--gold); color: #14100a; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 72px 0 48px; }
.hero h1 {
  font-size: clamp(24px, 4.5vw, 40px); font-weight: 800; letter-spacing: 1px;
  white-space: nowrap;
}
.hero h1 .gold { color: var(--gold); }
.hero p { color: var(--text-dim); margin-top: 12px; font-size: 15px; }
.hero .ug-sub { display: none; }
html[dir="rtl"] .hero .ug-sub { display: block; }
html[dir="rtl"] .hero .zh-sub { display: none; }

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  padding-bottom: 80px;
}
@media (min-width: 1280px) { .grid { gap: 30px; } }
@media (max-width: 900px) { .grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  background: var(--card-hover);
  border-color: rgba(212, 160, 23, .45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
a.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.shot {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0d1119;
}
.shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  display: block; transition: transform .4s ease;
}
.card:hover .shot img { transform: scale(1.04); }
.shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 78%, rgba(11,14,20,.35));
  pointer-events: none;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid rgba(212, 160, 23, .3);
  color: var(--gold); white-space: nowrap;
}
.badge .live { width: 6px; height: 6px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 6px #2ecc71; }
.badge.soon { color: var(--text-dim); background: rgba(255,255,255,.04); border-color: var(--line); }
.badge.soon .live { background: var(--text-dim); box-shadow: none; }

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  display: flex; align-items: flex-start; gap: 8px; font-size: 17px; font-weight: 700;
  justify-content: space-between;
}
.card-title .name { display: flex; align-items: center; gap: 9px; }
.card-title .em { font-size: 19px; }
.card-title .badge { margin-top: 3px; flex: none; }
.card-desc { color: var(--text-dim); font-size: 13.5px; margin: 10px 0 16px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 11.5px; color: var(--gold);
  background: var(--gold-soft); border: 1px solid rgba(212, 160, 23, .28);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  unicode-bidi: plaintext;
}
.visit {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--gold);
}
.card:hover .visit .arrow { transform: translateX(4px); }
.visit .arrow { transition: transform .25s ease; }

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--text-dim); font-size: 13px;
  text-align: center;
}
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.beian-row {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px 0;
}
.beian-links { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.beian-plain { color: var(--text-dim); }
.risk-note { margin-top: 10px; font-size: 12.5px; line-height: 1.7; }
html[dir="rtl"] .risk-note { font-size: 14px; line-height: 2; }

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  .hero { padding: 44px 0 32px; }
  .hero p { font-size: 14px; }
  .nav { height: 56px; }
  .card-body { padding: 16px 16px 18px; }
}
.card[data-nolink] { cursor: default; }
.nav-empty {
  grid-column: 1 / -1; text-align: center; color: var(--text-dim);
  padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius);
}

/* ---------- 维吾尔文 RTL ---------- */
html[dir="rtl"] body {
  font-family: "UKIJ Tuz Tom", "Microsoft Uighur", "Noto Naskh Arabic", Tahoma, sans-serif;
  font-size: 16px; line-height: 1.9;
}
/* 阿拉伯字母连写不能被字间距打断 */
html[dir="rtl"] .brand,
html[dir="rtl"] .hero h1 { letter-spacing: 0; }
html[dir="rtl"] .hero h1 {
  white-space: normal; line-height: 1.75;
  font-size: clamp(21px, 4vw, 34px);
}
html[dir="rtl"] .hero p { font-size: 15px; line-height: 2; }
html[dir="rtl"] .lang-switch button,
html[dir="rtl"] .lang-switch a { padding: 6px 14px; font-size: 14px; }
html[dir="rtl"] .card-title { font-size: 17px; line-height: 1.8; }
html[dir="rtl"] .card-desc { font-size: 14px; line-height: 2.05; }
html[dir="rtl"] .tag,
html[dir="rtl"] .badge { font-size: 14px; line-height: 1.9; }
html[dir="rtl"] .visit { font-size: 14px; line-height: 1.9; }
html[dir="rtl"] .card:hover .visit .arrow { transform: translateX(-4px); }
html[dir="rtl"] footer { font-size: 14px; line-height: 1.9; }

@media (max-width: 640px) {
  html[dir="rtl"] .hero h1 { font-size: clamp(19px, 5.3vw, 26px); }
  html[dir="rtl"] .hero p { font-size: 14px; }
  html[dir="rtl"] .card-desc { font-size: 13.5px; }
}
