/* 卓益工作台 主样式 - 客户端（手机端优先 / 深蓝 #1E3A5F + 亮蓝 #0099FF） */
* { box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent; }
:root {
  --primary:#1E3A5F; --primary-deep:#17304E; --primary-soft:#2A4E7A;
  --accent:#0099FF; --accent-deep:#0077D4; --accent-soft:rgba(0,153,255,.10);
  --bg:#F4F7FB; --card:#fff; --text:#1E3A5F; --muted:#7C8DA3;
  --border:#E7EDF5; --radius:14px;
  --shadow:0 4px 16px rgba(23,46,74,.07), 0 1px 3px rgba(23,46,74,.04);
}
html, body {
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Helvetica Neue",sans-serif;
  color:var(--text); background:var(--bg); -webkit-font-smoothing:antialiased;
}
a { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; }
.muted { color:var(--muted); }
.center { text-align:center; }
.hidden { display:none !important; }
.divider { height:1px; background:var(--border); margin:12px 0; }

/* ============ 顶栏 ============ */
.topbar {
  position:sticky; top:0; z-index:20;
  padding:calc(14px + env(safe-area-inset-top)) 16px 14px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  color:#fff;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(0,153,255,.42) 0%, rgba(0,153,255,0) 62%),
    linear-gradient(135deg,var(--primary) 0%,var(--primary-soft) 100%);
  box-shadow:0 3px 14px rgba(23,46,74,.18);
}
.topbar .title { font-size:17.5px; font-weight:800; letter-spacing:.4px; }
.topbar .sub { font-size:11.5px; color:rgba(255,255,255,.78); margin-top:3px; }
.topbar .share-btn {
  flex-shrink:0; border:1px solid rgba(255,255,255,.24);
  background:rgba(255,255,255,.16); color:#fff;
  padding:7px 13px; border-radius:20px; font-size:12.5px; font-weight:600;
  transition:background .15s ease, transform .12s ease;
}
.topbar .share-btn:active { background:rgba(255,255,255,.3); transform:scale(.96); }

.page { padding:16px 16px calc(96px + env(safe-area-inset-bottom)); max-width:640px; margin:0 auto; }
.card {
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:14px; margin-bottom:12px;
}

/* ============ 首页数据条 ============ */
.stats {
  position:relative; overflow:hidden; color:#fff;
  border-radius:16px; padding:18px 12px; margin-bottom:14px;
  display:flex; justify-content:space-around; text-align:center;
  background:linear-gradient(135deg,var(--primary) 0%,#2A4E7A 100%);
  box-shadow:0 8px 22px rgba(23,46,74,.20);
}
.stats::after {
  content:""; position:absolute; right:-40px; top:-52px; width:150px; height:150px;
  border-radius:50%; background:rgba(0,153,255,.28); filter:blur(2px);
}
.stats > div { position:relative; z-index:1; }
.stats > div + div { position:relative; }
.stats > div + div::before {
  content:""; position:absolute; left:-24px; top:6px; bottom:6px; width:1px;
  background:rgba(255,255,255,.16);
}
.stats .num { font-size:23px; font-weight:800; letter-spacing:.3px; font-variant-numeric:tabular-nums; }
.stats .lbl { font-size:11px; color:rgba(255,255,255,.72); margin-top:5px; }

/* ============ 首页四宫格 ============ */
.entries { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:20px; }
.entries .entry {
  display:flex; flex-direction:column; align-items:center; gap:8px;
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:14px 4px 12px;
  font-size:12px; font-weight:600; color:var(--text);
  transition:transform .12s ease, box-shadow .15s ease;
}
.entries .entry:active { transform:scale(.96); box-shadow:0 2px 8px rgba(23,46,74,.08); }
.entries .entry .icon {
  width:38px; height:38px; border-radius:12px; background:var(--accent-soft);
  display:flex; align-items:center; justify-content:center; font-size:20px; margin:0;
}

/* 区块标题 */
.h { position:relative; padding-left:10px; }
.h::before {
  content:""; position:absolute; left:0; top:3px; bottom:3px; width:3px;
  border-radius:2px; background:var(--accent);
}

/* ============ 分类条 ============ */
.cat-bar {
  white-space:nowrap; overflow-x:auto; padding:2px 0 12px; margin-bottom:4px;
  -webkit-overflow-scrolling:touch; scrollbar-width:none;
}
.cat-bar::-webkit-scrollbar { display:none; }
.cat-bar .chip {
  display:inline-flex; align-items:center; height:32px; padding:0 15px; margin-right:8px;
  background:#fff; border:1px solid var(--border); border-radius:20px;
  font-size:12.5px; color:#41546E;
}
.cat-bar .chip.active {
  background:linear-gradient(135deg,var(--accent),var(--accent-deep));
  color:#fff; border-color:transparent; box-shadow:0 3px 10px rgba(0,153,255,.30);
}

/* ============ 案例列表 ============ */
.case-list { display:grid; gap:12px; }
.case-list .case {
  display:flex; overflow:hidden; background:var(--card);
  border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow); transition:transform .12s ease, box-shadow .15s ease;
}
.case-list .case:active { transform:scale(.985); box-shadow:0 2px 8px rgba(23,46,74,.08); }
.case-list .case .cover { width:124px; height:94px; flex-shrink:0; background:#E3EAF3; position:relative; }
.case-list .case .cover img { width:100%; height:100%; object-fit:cover; }
.case-list .case .cover .play-icon {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:32px; height:32px; border-radius:50%; background:rgba(0,0,0,.45);
  color:#fff; font-size:13px; display:flex; align-items:center; justify-content:center;
  backdrop-filter:blur(2px);
}
.case-list .case .info { flex:1; min-width:0; padding:11px 12px; display:flex; flex-direction:column; justify-content:center; }
.case-list .case .info .t {
  font-size:15px; font-weight:700; line-height:1.35; color:var(--text);
  overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
}
.case-list .case .info .m { font-size:11.5px; color:var(--muted); margin-top:5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.case-list .case .info .tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:7px; }
.case-list .case .info .tag {
  height:20px; padding:0 8px; border-radius:7px; font-size:10.5px; font-weight:600;
  display:inline-flex; align-items:center; background:var(--accent-soft); color:#0077C8;
}
.case-list .case .info .tag.done  { background:rgba(31,157,85,.12); color:#1F9D55; }
.case-list .case .info .tag.doing { background:rgba(224,138,30,.14); color:#E08A1E; }
.case-list .case .info .tag.dev   { background:rgba(124,141,163,.14); color:#6B7C92; }

/* ============ 案例详情 ============ */
.detail-hero {
  position:relative; margin:-16px -16px 16px; padding-top:56.25%;
  background:#0B1826; overflow:hidden;
}
.detail-hero video, .detail-hero img {
  position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:#0B1826;
}
.detail-title { font-size:20px; font-weight:800; line-height:1.4; letter-spacing:.2px; margin-bottom:10px; }
.detail-meta { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:14px; }
.detail-meta .chip {
  display:inline-flex; align-items:center; height:26px; padding:0 10px;
  border-radius:9px; font-size:11.5px; background:#EAF3FE; color:#2C5A86;
}
.detail-meta .chip.status.done  { background:rgba(31,157,85,.12); color:#1F9D55; }
.detail-meta .chip.status.doing { background:rgba(224,138,30,.14); color:#E08A1E; }
.detail-meta .chip.status.dev   { background:rgba(124,141,163,.14); color:#6B7C92; }
.detail-desc { font-size:14.5px; line-height:1.85; color:#34495E; white-space:pre-wrap; }
.detail-imgs { display:grid; grid-template-columns:repeat(2,1fr); gap:9px; margin-top:14px; }
.detail-imgs img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:10px; cursor:zoom-in; background:#E3EAF3; }

/* ============ 底部按钮 ============ */
.bottom-actions {
  position:sticky; bottom:0; z-index:15;
  display:flex; gap:10px; padding:10px 16px calc(14px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.95); backdrop-filter:blur(10px);
  border-top:1px solid var(--border);
}
.btn {
  flex:1; display:flex; align-items:center; justify-content:center; gap:4px;
  height:44px; border:none; border-radius:12px; cursor:pointer;
  font-size:14px; font-weight:700; font-family:inherit;
  transition:transform .12s ease, opacity .15s ease;
}
.btn:active { transform:scale(.97); opacity:.92; }
.btn-primary { background:linear-gradient(135deg,var(--accent),var(--accent-deep)); color:#fff; box-shadow:0 5px 14px rgba(0,153,255,.30); }
.btn-accent  { background:var(--accent); color:#fff; }
.btn-ghost   { background:#EDF4FC; color:var(--primary); }

/* ============ 底部 Tab ============ */
.tabbar {
  position:fixed; left:0; right:0; bottom:0; z-index:25;
  display:flex; padding:7px 0 calc(7px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.96); backdrop-filter:blur(10px);
  border-top:1px solid var(--border);
}
.tabbar .tab {
  flex:1; display:flex; flex-direction:column; align-items:center; gap:2px;
  font-size:10.5px; color:var(--muted); position:relative; padding-top:2px;
}
.tabbar .tab .ic { font-size:21px; line-height:1; display:block; }
.tabbar .tab.active { color:var(--accent); font-weight:700; }
.tabbar .tab.active::before {
  content:""; position:absolute; top:-7px; width:20px; height:3px;
  border-radius:2px; background:var(--accent);
}

/* ============ 产品中心 ============ */
.prod-list { display:grid; gap:10px; }
.prod-list .prod {
  display:flex; align-items:center; padding:12px;
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.prod-list .prod .thumb {
  width:82px; height:82px; flex-shrink:0; border-radius:12px; overflow:hidden;
  background:#EAF2FB; display:flex; align-items:center; justify-content:center; font-size:30px;
}
.prod-list .prod .thumb img { width:100%; height:100%; object-fit:cover; }
.prod-list .prod .info { flex:1; min-width:0; padding-left:12px; }
.prod-list .prod .info .n { font-size:15px; font-weight:700; color:var(--text); }
.prod-list .prod .info .d {
  font-size:11.5px; color:var(--muted); line-height:1.6; margin-top:4px;
  overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
}
.prod-list .prod .info .p { font-size:13.5px; font-weight:800; color:var(--accent); margin-top:7px; }

/* ============ 关于我们 ============ */
.about-banner {
  position:relative; overflow:hidden; color:#fff;
  border-radius:16px; padding:26px 18px; margin-bottom:14px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(0,153,255,.45) 0%, rgba(0,153,255,0) 62%),
    linear-gradient(135deg,var(--primary) 0%,#2A4E7A 100%);
  box-shadow:0 8px 22px rgba(23,46,74,.18);
}
.about-banner .big { font-size:22px; font-weight:800; letter-spacing:.5px; }
.about-banner .slogan { font-size:12.5px; color:rgba(255,255,255,.8); margin-top:8px; line-height:1.7; }
.about-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:14px; }
.about-stats .item {
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:14px 8px; text-align:center;
}
.about-stats .item .n { font-size:20px; font-weight:800; color:var(--accent); }
.about-stats .item .l { font-size:11px; color:var(--muted); margin-top:4px; }
.about-list .item { display:flex; gap:10px; align-items:flex-start; padding:12px 0; border-bottom:1px solid var(--border); }
.about-list .item:last-child { border-bottom:none; }
.about-list .item .ic { font-size:19px; line-height:1.3; }
.about-list .item .n { font-size:13.5px; font-weight:700; color:var(--text); }
.about-list .item .d { font-size:12px; color:var(--muted); line-height:1.7; margin-top:3px; }

/* ============ 联系我们 / 表单 ============ */
.contact-card {
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:4px 14px; margin-bottom:14px;
}
.contact-card .row { display:flex; align-items:center; gap:12px; padding:13px 0; border-bottom:1px dashed var(--border); }
.contact-card .row:last-child { border-bottom:none; }
.contact-card .row .ic {
  width:32px; height:32px; flex-shrink:0; border-radius:10px; background:var(--accent-soft);
  display:flex; align-items:center; justify-content:center; font-size:16px;
}
.contact-card .row .k { font-size:11.5px; color:var(--muted); }
.contact-card .row .v { font-size:14.5px; font-weight:600; color:var(--text); margin-top:1px; }
.form label { display:block; font-size:12px; font-weight:600; color:#41546E; margin:12px 0 6px; }
.form label:first-child { margin-top:0; }
.form input[type=text], .form input[type=tel], .form input[type=password],
.form input[type=date], .form input[type=number], .form select, .form textarea {
  width:100%; padding:11px 12px; border:1px solid var(--border); border-radius:11px;
  font-size:15px; background:#fff; color:var(--text); outline:none;
  font-family:inherit; -webkit-appearance:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color:var(--accent); box-shadow:0 0 0 3px rgba(0,153,255,.12);
}
.form textarea { min-height:96px; resize:vertical; line-height:1.7; }

/* ============ 分享面板 / 海报 ============ */
.mask { position:fixed; inset:0; z-index:50; background:rgba(10,22,38,.55); display:none; }
.mask.show { display:block; animation:fadeIn .2s ease; }
.sheet {
  position:fixed; left:0; right:0; bottom:0; z-index:51;
  background:#fff; border-radius:18px 18px 0 0;
  padding:20px 16px calc(24px + env(safe-area-inset-bottom));
  display:none; max-height:88vh; overflow-y:auto;
}
.sheet.show { display:block; animation:slideUp .26s cubic-bezier(.22,1,.36,1); }
@keyframes slideUp { from { transform:translateY(100%);} to { transform:translateY(0);} }
@keyframes fadeIn { from { opacity:0;} to { opacity:1;} }
.sheet .h { text-align:center; font-size:16px; font-weight:800; margin-bottom:14px; padding-left:0; }
.sheet .h::before { content:none; }
.sheet .close { position:absolute; top:12px; right:14px; font-size:20px; color:var(--muted); }
.sheet .opt {
  display:flex; align-items:center; gap:12px; padding:14px 12px;
  background:#F6FAFE; border:1px solid var(--border); border-radius:12px; margin-bottom:10px;
  transition:background .15s ease, transform .12s ease;
}
.sheet .opt:active { background:#EDF5FE; transform:scale(.99); }
.sheet .opt .ic { font-size:22px; }
.sheet .opt .n { font-size:14px; font-weight:700; color:var(--text); }
.sheet .opt .d { font-size:11px; color:var(--muted); margin-top:2px; }
.poster-wrap { text-align:center; padding:8px 0; }
.poster-wrap img, .poster-wrap canvas { max-width:100%; border-radius:12px; box-shadow:0 8px 26px rgba(10,22,38,.22); }
.poster-hint { font-size:12px; color:var(--muted); margin-top:10px; text-align:center; }
.toast {
  position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); z-index:100;
  background:rgba(23,48,78,.94); color:#fff; padding:10px 20px; border-radius:22px;
  font-size:13px; pointer-events:none; opacity:0; transition:opacity .2s ease;
}
.toast.show { opacity:1; }

/* 无障碍：减少动效 */
@media (prefers-reduced-motion: reduce) {
  * { animation:none !important; transition:none !important; }
}
