* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --bg:#f5f8ff; --bg2:#ffffff; --card:#ffffff; --line:#e2e8f0; --txt:#0f172a; --mut:#64748b; --acc:#2563eb; --acc2:#3b82f6; --soft:#eef2ff; }
/* 全站默认: 维吾尔文 UKIJ Ekran, 回退到系统 */
@font-face { font-family:'UKIJ Ekran'; src:url('/fontfile/ukij_ekran.ttf') format('truetype'); font-display:swap; }
body { font-family:'UKIJ Ekran','Microsoft Uyghur','Segoe UI','Noto Sans Arabic',system-ui,sans-serif; background:var(--bg); color:var(--txt); min-height:100vh; line-height:1.6; }
a { color:inherit; text-decoration:none; }
.wrap { max-width:1120px; margin:0 auto; padding:20px 18px; }

/* RTL (维吾尔语) */
html[dir="rtl"] body { direction:rtl; text-align:right; }
html[dir="rtl"] .ltr { direction:ltr; text-align:left; }
html[dir="rtl"] table th, html[dir="rtl"] table td { text-align:start; }

/* 顶部导航 */
.navtop { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.brand { display:flex; align-items:center; gap:10px; font-weight:800; font-size:19px; color:#0f172a; }
.brand .logo { width:40px; height:40px; border-radius:12px; background:linear-gradient(135deg,var(--acc),var(--acc2)); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; }
.brand small { color:var(--mut); font-weight:500; font-size:12px; }
.navmenu { display:flex; gap:16px; margin-left:22px; }
.navmenu a { color:var(--mut); font-weight:600; font-size:14px; }
.navmenu a:hover { color:var(--acc); }
.right { display:flex; gap:10px; align-items:center; }

/* 按钮 */
.btn { display:inline-flex; align-items:center; gap:6px; padding:10px 20px; border-radius:11px; background:linear-gradient(135deg,var(--acc),var(--acc2)); color:#fff; font-weight:700; font-size:14px; border:0; cursor:pointer; box-shadow:0 4px 14px rgba(37,99,235,.22); }
.btn:hover { filter:brightness(1.06); }
.btn.ghost { background:#fff; border:1px solid var(--line); color:var(--txt); box-shadow:none; }
.btn.ghost:hover { border-color:var(--acc); color:var(--acc); }
.btn.sm { padding:7px 14px; font-size:13px; box-shadow:none; }
.btn.red { background:transparent; border:1px solid #ff5c5c; color:#ff5c5c; box-shadow:none; }
.btn.red:hover { background:#ff5c5c; color:#fff; }
.btn.white { background:#fff; color:var(--acc); box-shadow:none; }
.btn.white:hover { background:#f1f5ff; }

/* 表单 */
input.inp, select.inp { background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px 13px; color:var(--txt); font-size:14px; outline:none; }
input.inp:focus, select.inp:focus { border-color:var(--acc); box-shadow:0 0 0 3px rgba(37,99,235,.12); }

h1.title { font-size:28px; font-weight:800; margin-bottom:8px; color:#0f172a; }
.muted { color:var(--mut); font-size:13.5px; }
.searchbar { display:flex; gap:10px; margin:18px 0 20px; flex-wrap:wrap; align-items:center; }
.searchbar input { flex:1; min-width:220px; }
.cats { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px; }
.chip { padding:7px 16px; border-radius:999px; background:#fff; border:1px solid var(--line); font-size:13px; font-weight:600; color:var(--txt); }
.chip.on, .chip:hover { background:var(--acc); border-color:var(--acc); color:#fff; }

/* Hero 横幅区: 左banner 右用户信息 */
.hero { display:flex; direction:ltr; gap:22px; align-items:stretch; margin-bottom:26px; }
.hero-banner { flex:1.5; border-radius:20px; padding:38px 34px; color:#fff; background:linear-gradient(120deg,#2563eb 0%,#3b82f6 55%,#60a5fa 100%); position:relative; overflow:hidden; display:flex; flex-direction:column; justify-content:center; }
.hero-banner::after { content:''; position:absolute; width:240px; height:240px; border-radius:50%; background:rgba(255,255,255,.15); top:-60px; right:-50px; }
.hero-banner .tag { display:inline-block; background:rgba(255,255,255,.22); padding:5px 13px; border-radius:999px; font-size:12.5px; font-weight:700; width:fit-content; margin-bottom:16px; }
.hero-banner h2 { font-size:34px; font-weight:900; line-height:1.25; margin-bottom:12px; }
.hero-banner p { font-size:15px; opacity:.95; margin-bottom:20px; max-width:420px; }
.hero-side { flex:1; display:flex; }
.hero-user { flex:1; background:#fff; border:1px solid var(--line); border-radius:20px; padding:26px; display:flex; flex-direction:column; justify-content:center; box-shadow:0 6px 24px rgba(15,23,42,.05); }
.hero-user .viprow { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; }
.hero-user .big { font-size:40px; font-weight:900; color:var(--acc); line-height:1.1; margin:8px 0 4px; }
.hero-user .nick { font-size:17px; font-weight:800; }

/* 区块标题 */
.section-title { display:flex; align-items:center; justify-content:space-between; margin:30px 0 16px; }
.section-title h2 { font-size:22px; font-weight:800; color:#0f172a; }
.section-title a.small { font-size:13px; color:var(--acc); font-weight:600; }

/* 字体卡片 */
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:16px; }
.fontcard { background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden; transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease; }
.fontcard:hover { transform:translateY(-4px); border-color:var(--acc); box-shadow:0 10px 28px rgba(37,99,235,.12); }
.fontcard .prev { height:120px; display:flex; align-items:center; justify-content:center; font-size:34px; background:var(--soft); border-bottom:1px solid var(--line); color:#2563eb; padding:0 12px; overflow:hidden; }
.fontcard .body { padding:13px; }
.fontcard .name { font-weight:800; font-size:15px; color:#0f172a; }
.fontcard .meta { color:var(--mut); font-size:12px; margin-top:3px; }
.badge { display:inline-block; margin-top:9px; padding:4px 10px; border-radius:999px; font-size:11px; font-weight:700; }
.badge.free { background:#d1fae5; color:#047857; }
.badge.vip { background:#fef3c7; color:#b45309; }
.badge.commercial { background:#fee2e2; color:#b91c1c; }

/* 大字体展示 (UKIJ Ekran 主打) */
.hero-font { background:linear-gradient(120deg,#eef2ff,#ffffff); border:1px solid var(--line); border-radius:20px; padding:30px; text-align:center; margin-bottom:8px; }
.hero-font .sample { font-size:52px; color:#0f172a; line-height:1.2; }
.hero-font .fname { font-size:15px; font-weight:800; color:var(--acc); margin-top:8px; }

.card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:22px; box-shadow:0 4px 18px rgba(15,23,42,.04); }
.previewbar { background:var(--soft); border-radius:14px; padding:26px; font-size:40px; color:#0f172a; text-align:center; margin-bottom:18px; border:1px solid var(--line); }
.vipbox { text-align:center; padding:30px; }
.vipbox .price { font-size:40px; font-weight:800; color:var(--acc); }
.vipbox .price small { font-size:16px; color:var(--mut); }
.qr { width:220px; height:220px; margin:18px auto; display:block; }
.err { color:#dc2626; font-size:13px; margin-bottom:10px; }

table { width:100%; border-collapse:collapse; }
table th, table td { text-align:left; padding:9px 10px; border-bottom:1px solid var(--line); font-size:13.5px; }
table th { color:var(--mut); font-weight:600; }
.mono { font-family:Consolas,Menlo,monospace; font-size:12.5px; }
footer { margin-top:46px; text-align:center; color:var(--mut); font-size:12.5px; padding-bottom:20px; }

/* 套餐卡片 */
.pkg-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:16px; }
.pkgcard { background:#fff; border:1px solid var(--line); border-radius:18px; padding:24px; display:flex; flex-direction:column; }
.pkgcard .pkg-price { font-size:32px; font-weight:900; color:var(--acc); }
.pkgcard .pkg-price small { font-size:14px; color:var(--mut); font-weight:600; }
.pkgcard .pkg-name { font-size:17px; font-weight:800; margin-top:2px; }
.pkgcard .pkg-desc { color:var(--mut); font-size:13px; margin:8px 0 14px; flex:1; }
.pkgcard .btn { align-self:flex-start; }

/* 后台 */
.admin { display:flex; gap:20px; }
.sidebar { width:200px; flex-shrink:0; }
.side-nav a { display:block; padding:11px 14px; border-radius:10px; color:var(--mut); margin-bottom:4px; font-size:14px; }
.side-nav a.on, .side-nav a:hover { background:var(--soft); color:var(--acc); }
.admin-main { flex:1; min-width:0; }
.page-head { margin-bottom:18px; }
.pill { padding:3px 10px; border-radius:999px; font-size:11px; }
.pill.green { background:#d1fae5; color:#047857; }
.pill.amber { background:#fef3c7; color:#b45309; }
.pill.gray { background:#e2e8f0; color:#475569; }
.grid4 { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:14px; }
.grid4 .card .big { font-size:30px; font-weight:900; color:#0f172a; }
.grid4 .card .big.amber { color:#b45309; }
.grid4 .card .big.green { color:#047857; }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
