/* 微光未来 工业计算软件站 · 工程蓝主题 */
:root {
  --blue: #1a5fb4; --blue-d: #124a8f; --ink: #1c2733; --gray: #5b6b7b;
  --line: #dde5ec; --bg: #f5f7fa; --card: #ffffff; --accent: #e8f0fa;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.7; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

/* 顶栏 */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 20px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo-mark { background: var(--blue); color: #fff; width: 32px; height: 32px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.logo small { font-size: 12px; color: var(--gray); font-weight: 400; margin-left: 2px; }
.topbar nav a { margin-left: 26px; color: var(--gray); font-size: 15px; padding: 6px 2px; }
.topbar nav a.on, .topbar nav a:hover { color: var(--blue); text-decoration: none; font-weight: 600; }

/* 首页 */
.hero { background: linear-gradient(135deg, var(--blue-d), var(--blue) 55%, #3b82d4); color: #fff; padding: 72px 0; text-align: center; }
.hero h1 { font-size: 38px; letter-spacing: 2px; }
.hero .sub { margin-top: 14px; font-size: 17px; opacity: .92; }
.hero-cta { margin-top: 28px; }
.btn { display: inline-block; background: #fff; color: var(--blue-d); font-weight: 600; padding: 11px 30px; border-radius: 6px; font-size: 16px; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); margin-left: 12px; }
.btn.buy { background: var(--blue); color: #fff; display: block; text-align: center; }
.btn.buy:hover { background: var(--blue-d); }
.section { padding: 36px 0 8px; }
h2 { font-size: 24px; margin-bottom: 20px; }
h2 small { font-size: 14px; color: var(--gray); font-weight: 400; margin-left: 8px; }
.page-h1 { font-size: 28px; margin: 26px 0 18px; }
.page-h1 small { font-size: 15px; color: var(--gray); font-weight: 400; }

/* 类目卡片 */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; transition: .15s; }
.cat-card:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(26,95,180,.12); text-decoration: none; }
.cat-num { color: var(--blue); font-size: 13px; font-weight: 700; opacity: .55; }
.cat-name { font-size: 17px; font-weight: 700; margin: 4px 0 2px; color: var(--ink); }
.cat-count { font-size: 13px; color: var(--gray); }

/* 产品卡片 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; padding-bottom: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: .15s; display: block; }
.card:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(26,95,180,.14); text-decoration: none; }
.thumb { background: #eef2f6; aspect-ratio: 4/3; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 12px 14px 14px; }
.card-cat { font-size: 12px; color: var(--blue); }
.card-title { font-size: 15px; font-weight: 600; color: var(--ink); margin: 3px 0 6px; }
.card-price { font-size: 15px; color: #d33; font-weight: 700; }
.card-price.muted, .price.muted { color: var(--gray); font-size: 13px; font-weight: 400; }

/* 为什么选我们 */
.why { background: var(--accent); margin-top: 30px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding-bottom: 20px; }
.why-grid b { display: block; font-size: 16px; margin-bottom: 4px; }
.why-grid span { color: var(--gray); font-size: 14px; }

/* 面包屑/分类导航 */
.crumbs { color: var(--gray); font-size: 13px; margin: 18px 0 4px; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.cat-nav a { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 4px 16px; font-size: 14px; color: var(--gray); }
.cat-nav a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.home-nav { margin-bottom: 6px; }
.home-nav a { font-size: 16px; padding: 8px 22px; border-radius: 24px; color: var(--ink); }
.home-nav a small { color: var(--gray); font-size: 12px; margin-left: 4px; }
.home-nav a:hover { background: var(--accent); }
.back { padding: 10px 0 30px; }

/* 产品详情页 */
.product { display: grid; grid-template-columns: 1fr 300px; gap: 30px; padding-bottom: 20px; }
.p-main h1 { font-size: 26px; }
.p-meta { margin: 10px 0 14px; }
.tag { display: inline-block; background: var(--accent); color: var(--blue); font-size: 12px; border-radius: 4px; padding: 2px 10px; margin-right: 6px; }
.tag.ghost { background: #fff; border: 1px solid var(--line); color: var(--gray); }
.p-desc { color: #37475a; margin-bottom: 8px; }
.p-main h2 { font-size: 19px; margin: 26px 0 12px; }
.feats { list-style: none; }
.feats li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; }
.feats li b { display: block; font-size: 15px; }
.feats li span { font-size: 13.5px; color: var(--gray); }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shot { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.shot figcaption { text-align: center; font-size: 12px; color: var(--gray); padding-top: 6px; }

/* 侧栏购买盒 */
.p-side { position: sticky; top: 80px; align-self: start; }
.buy-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.buy-box .price { font-size: 30px; color: #d33; font-weight: 800; margin-bottom: 12px; }
.buy-box .price span { font-size: 14px; font-weight: 400; color: var(--gray); }
.wx { font-size: 13px; color: var(--gray); margin-top: 14px; text-align: center; }
.wx img { width: 130px; display: block; margin: 6px auto 0; border: 1px solid var(--line); border-radius: 6px; }
.assure { list-style: none; margin-top: 14px; font-size: 13px; color: var(--gray); }
.assure li { padding: 3px 0; }

/* FAQ */
.faq { margin-top: 30px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin-bottom: 8px; }
.faq q { font-weight: 600; }
.faq p { color: var(--gray); font-size: 14px; margin-top: 6px; }

/* 关于页 */
.about-list { list-style: none; }
.about-list li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
.about-list b { color: var(--blue); }
.wx-big { width: 180px; border: 1px solid var(--line); border-radius: 8px; }
.muted { color: var(--gray); }

/* 页脚 */
footer { background: var(--ink); color: #9fb0c0; margin-top: 50px; padding: 34px 0; font-size: 13px; }
.f-brand { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.f-note { line-height: 1.9; }
.f-copy { margin-top: 12px; opacity: .6; }

/* 浮动客服 */
.contact-float { position: fixed; right: 24px; bottom: 24px; z-index: 99; text-align: center; }
.cf-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.3; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(26,95,180,.35); transition: .15s; }
.contact-float:hover .cf-btn { background: var(--blue-d); transform: scale(1.05); }
.cf-pop { position: absolute; right: 66px; bottom: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; width: 170px; box-shadow: 0 8px 24px rgba(0,0,0,.15); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.contact-float:hover .cf-pop { opacity: 1; visibility: visible; transform: translateY(0); }
.cf-pop img { width: 100%; border-radius: 6px; display: block; }
.cf-pop p { font-size: 12px; color: var(--gray); margin-top: 6px; }

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .p-side { position: static; }
  .hero h1 { font-size: 28px; }
  .shots { grid-template-columns: 1fr; }
}
