/* iPaiLab 产品展示页 —— 极简样式（无框架、无外链字体） */

:root {
  --ink: #14161c;
  --muted: #6b7280;
  --line: #e6e9f0;
  --bg: #ffffff;
  --alt: #f6f8fc;
  --accent: #2b5cff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 22, 28, .05), 0 10px 28px rgba(20, 22, 28, .06);
  --max: 1180px;
}

* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: .2px; }
.brand .dot { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, var(--accent), #7aa2ff); }

.lang-pick select {
  font: inherit; font-size: 14px; padding: 6px 30px 6px 12px; cursor: pointer;
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236b7280' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.lang-pick select:hover { border-color: #cfd6e6; }
.lang-pick select:focus { outline: 2px solid rgba(43, 92, 255, .35); outline-offset: 1px; }

/* ---------- 主体 ---------- */
main { flex: 1 0 auto; padding-top: 30px; padding-bottom: 60px; }

.status { margin: 40px 0 0; text-align: center; color: var(--muted); font-size: 15px; }
.status.error { color: #c0392b; }
.status[hidden] { display: none; }

.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 540px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 840px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1120px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20, 22, 28, .13); }
.card .thumb { aspect-ratio: 3 / 2; background: linear-gradient(135deg, #e9edf7, #dfe6f5); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 15px 17px 19px; }
.card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.45; font-weight: 600; }
.card .intro { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.more { text-align: center; margin-top: 30px; }
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 600; transition: .16s;
}
.btn:hover { border-color: #cfd6e6; transform: translateY(-1px); }
.btn[hidden] { display: none; }

/* ---------- 页脚 ---------- */
.foot { flex: 0 0 auto; border-top: 1px solid var(--line); background: var(--alt); padding: 22px 0 26px; }
.foot .contact { margin: 0 0 6px; font-size: 14px; color: var(--ink); }
.foot .contact a { color: var(--accent); }
.foot .sep { color: #c3c9d6; margin: 0 8px; }
.foot .coy { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ---------- RTL（阿拉伯语） ---------- */
[dir="rtl"] .lang-pick select { background-position: left 12px center; padding: 6px 12px 6px 30px; }
