/* ============================================================
   佛山市丰加元信息科技有限公司 — PC 官网样式
   设计：深蓝科技 + 青色点缀 + 暖橙行动色，现代专业风
   ============================================================ */

:root {
  --brand: #1b3a8c;          /* 主品牌深蓝 */
  --brand-2: #2f5fd0;        /* 辅助蓝 */
  --cyan: #18b6c9;           /* 青色点缀 */
  --accent: #ff7a18;         /* 行动暖橙 */
  --accent-2: #ffb454;
  --ink: #1a2233;            /* 主文字 */
  --ink-2: #5a6478;          /* 次文字 */
  --ink-3: #8a93a6;          /* 弱文字 */
  --line: #e6e9f2;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --bg-deep: #0e1c44;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 40, 90, .08);
  --shadow-lg: 0 20px 50px rgba(20, 40, 90, .14);
  --maxw: 1200px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部条 ---------- */
.topbar {
  background: var(--bg-deep);
  color: #c9d3ee;
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a:hover { color: #fff; }
.topbar .left span { margin-right: 18px; }
.topbar .right a { margin-left: 16px; }

/* ---------- 头部导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; height: var(--header-h); gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--brand); }
.logo .mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 900;
  box-shadow: 0 6px 16px rgba(27,58,140,.3);
}
.logo small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 500; letter-spacing: 1px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 16px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 15px;
  transition: .2s;
}
.nav a:hover, .nav a.active { color: var(--brand); background: var(--bg-soft); }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 999px; font-weight: 700; cursor: pointer; border: none;
  transition: .2s; font-size: 14px;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px rgba(47,95,208,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47,95,208,.45); }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 20px rgba(255,122,24,.35); }
.btn-accent:hover { transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-ghost.on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,.14); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.cart-link { position: relative; margin-left: 18px; }
.cart-link .badge {
  position: absolute; top: -8px; right: -10px; background: var(--accent); color: #fff;
  font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}

/* ---------- 通用区块 ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--cyan); font-weight: 700; letter-spacing: 3px; font-size: 13px; text-transform: uppercase; }
.section-head h2 { font-size: 34px; margin: 10px 0 12px; color: var(--ink); }
.section-head p { color: var(--ink-2); font-size: 16px; margin: 0; }
.bg-soft { background: var(--bg-soft); }
.bg-deep { background: var(--bg-deep); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(24,182,201,.25), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(47,95,208,.25), transparent 60%),
    linear-gradient(160deg, #0e1c44, #142a66);
  color: #fff;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 70px; padding-bottom: 80px; }
.hero h1 { font-size: 46px; line-height: 1.2; margin: 18px 0; font-weight: 800; }
.hero h1 .hl { color: var(--accent-2); }
.hero p.lead { font-size: 18px; color: #c7d2f0; max-width: 520px; }
.hero .cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .stats { display: flex; gap: 32px; margin-top: 40px; }
.hero .stats .num { font-size: 30px; font-weight: 800; color: #fff; }
.hero .stats .lbl { font-size: 13px; color: #9fb0dc; }
.hero-visual {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 26px; box-shadow: var(--shadow-lg); backdrop-filter: blur(6px);
}
.hero-visual .row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,.14); }
.hero-visual .row:last-child { border-bottom: none; }
.hero-visual .ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(24,182,201,.2); display: grid; place-items: center; font-size: 20px; }
.hero-visual .t { font-weight: 700; }
.hero-visual .s { font-size: 12px; color: #9fb0dc; }

/* ---------- 客户 logo 条 ---------- */
.logos { padding: 30px 0; background: var(--bg-soft); }
.logos .container { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; align-items: center; }
.logos .item { color: var(--ink-3); font-weight: 700; font-size: 16px; opacity: .8; letter-spacing: 1px; }

/* ---------- 优势卡片 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: .25s; box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cdd6ee; }
.card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, var(--brand), var(--cyan)); color: #fff; margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- 产品分类 + 网格 ---------- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.cat-tabs button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); padding: 9px 20px;
  border-radius: 999px; cursor: pointer; font-weight: 600; transition: .2s; font-size: 14px;
}
.cat-tabs button:hover { border-color: var(--brand-2); color: var(--brand); }
.cat-tabs button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .25s; box-shadow: var(--shadow);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .top { padding: 22px 22px 16px; background: linear-gradient(160deg, #f3f7ff, #fff); border-bottom: 1px solid var(--line); }
.product-card .cat { font-size: 12px; color: var(--cyan); font-weight: 700; letter-spacing: 1px; }
.product-card .icon { font-size: 34px; margin: 8px 0; }
.product-card h3 { margin: 0; font-size: 19px; }
.product-card .en { font-size: 12px; color: var(--ink-3); }
.product-card .body { padding: 18px 22px; flex: 1; }
.product-card .tagline { color: var(--ink); font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.product-card .desc { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; }
.product-card .feats { list-style: none; padding: 0; margin: 0 0 14px; }
.product-card .feats li { font-size: 13px; color: var(--ink-2); padding-left: 20px; position: relative; margin-bottom: 5px; }
.product-card .feats li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 800; }
.product-card .price-line { font-size: 13px; color: var(--ink-3); border-top: 1px dashed var(--line); padding-top: 12px; }
.product-card .price-line b { color: var(--accent); font-size: 20px; }
.product-card .foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.product-card .foot .btn { flex: 1; justify-content: center; }

/* ---------- 解决方案 ---------- */
.solution { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.solution .left { padding: 40px; background: linear-gradient(160deg, var(--brand), var(--bg-deep)); color: #fff; }
.solution .left h3 { font-size: 26px; margin: 0 0 14px; }
.solution .left ul { list-style: none; padding: 0; margin: 0; }
.solution .left li { padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.15); }
.solution .left li b { color: var(--accent-2); }
.solution .right { padding: 40px; background: #fff; }
.solution .right .step { display: flex; gap: 14px; margin-bottom: 20px; }
.solution .right .step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.solution .right .step h4 { margin: 0 0 2px; font-size: 16px; }
.solution .right .step p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- 流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow .step { text-align: center; position: relative; }
.flow .step .n { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-size: 22px; font-weight: 800; box-shadow: var(--shadow); border: 2px solid var(--cyan); }
.flow .step h4 { margin: 0 0 4px; font-size: 16px; }
.flow .step p { margin: 0; font-size: 13px; color: #aeb9d6; }

/* ---------- 数据/案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.case .quote { font-size: 15px; color: var(--ink-2); }
.case .who { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.case .avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--cyan)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.case .who b { display: block; font-size: 14px; }
.case .who span { font-size: 12px; color: var(--ink-3); }

/* ---------- 关于/联系 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.about-grid h2 { font-size: 32px; margin-top: 0; }
.about-grid p { color: var(--ink-2); }
.milestone { display: flex; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.milestone .m { flex: 1; min-width: 120px; }
.milestone .m .n { font-size: 28px; font-weight: 800; color: var(--brand); }
.milestone .m .t { font-size: 13px; color: var(--ink-3); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info .item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-info a.item { cursor: pointer; border-radius: 12px; padding: 4px 10px; margin: -4px -10px 16px; transition: .2s; }
.contact-info a.item:hover { background: var(--bg-soft); transform: translateX(2px); }
.contact-info a.item:hover .ic { background: var(--brand); color: #fff; }
.contact-info .item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; font-size: 20px; color: var(--brand); }
.contact-info .item b { display: block; font-size: 15px; }
.contact-info .item span { font-size: 14px; color: var(--ink-2); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form h3 { margin: 0 0 18px; }
.form .field { margin-bottom: 16px; }
.form label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.form input, .form textarea, .form select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; transition: .2s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(47,95,208,.12); }
.form textarea { resize: vertical; min-height: 90px; }
.map-box { height: 320px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(135deg, #eaf0ff, #f5f9ff); display: grid; place-items: center; color: var(--ink-3); margin-top: 16px; }

/* ---------- CTA 条 ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--cyan)); color: #fff; border-radius: 20px; padding: 46px; text-align: center; }
.cta-band h2 { margin: 0 0 10px; font-size: 30px; }
.cta-band p { margin: 0 0 24px; color: #e8f3ff; }
.cta-band .btn-light { background: #fff; color: var(--brand); }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-deep); color: #aeb9d6; padding: 56px 0 0; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer ul li a:hover { color: #fff; }
.footer .brand-blurb { font-size: 14px; line-height: 1.8; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 22px 0; text-align: center; font-size: 13px; color: #8493b8; }
.footer .bottom a { color: #8493b8; }
.footer .bottom a:hover { color: #fff; }

/* ---------- 购物车页 ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr .8fr; gap: 28px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cart-table th, .cart-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart-table th { background: var(--bg-soft); color: var(--ink-2); font-weight: 700; }
.cart-table td .pname { font-weight: 700; }
.cart-table td .ptier { font-size: 12px; color: var(--ink-3); }
.cart-table .qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cart-table .qty button { width: 30px; height: 30px; border: none; background: var(--bg-soft); cursor: pointer; font-size: 16px; color: var(--ink); }
.cart-table .qty input { width: 44px; height: 30px; border: none; text-align: center; font-size: 14px; }
.cart-table .line-price { font-weight: 800; color: var(--accent); }
.cart-table .del { color: var(--ink-3); cursor: pointer; border: none; background: none; font-size: 13px; }
.cart-table .del:hover { color: #e23; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: sticky; top: 100px; }
.summary h3 { margin: 0 0 18px; }
.summary .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.summary .row.total { border-top: 1px dashed var(--line); padding-top: 14px; font-size: 18px; color: var(--ink); font-weight: 800; }
.summary .row.total b { color: var(--accent); }
.summary .btn { width: 100%; justify-content: center; margin-top: 8px; }
.empty-cart { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty-cart .big { font-size: 60px; margin-bottom: 12px; }

/* ---------- 支付弹窗 ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(8,16,40,.6); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.overlay.show { display: flex; }
.pay-modal { background: #fff; border-radius: 18px; width: 460px; max-width: 100%; padding: 30px; box-shadow: var(--shadow-lg); animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pay-modal h3 { margin: 0 0 6px; text-align: center; }
.pay-modal .amount { text-align: center; font-size: 30px; font-weight: 800; color: var(--accent); margin: 6px 0 20px; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.pay-method { border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: .2s; }
.pay-method:hover { border-color: var(--brand-2); }
.pay-method.active { border-color: var(--brand); background: #f3f7ff; }
.pay-method .pic { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-size: 20px; }
.pay-method .pn { font-weight: 700; font-size: 14px; }
.pay-method .pd { font-size: 11px; color: var(--ink-3); }
.pay-modal .actions { display: flex; gap: 12px; }
.pay-modal .actions .btn { flex: 1; justify-content: center; }
.pay-progress { text-align: center; padding: 30px 10px; }
.pay-progress .spinner { width: 56px; height: 56px; border: 5px solid var(--line); border-top-color: var(--brand); border-radius: 50%; margin: 0 auto 18px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-success { text-align: center; padding: 20px 10px; }
.pay-success .check { width: 72px; height: 72px; border-radius: 50%; background: #e8f9ef; color: #1fae5a; display: grid; place-items: center; font-size: 40px; margin: 0 auto 16px; }
.pay-success .order-no { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

/* ---------- 面包屑 ---------- */
.crumb { font-size: 13px; color: var(--ink-3); padding: 18px 0; }
.crumb a:hover { color: var(--brand); }

/* ---------- 响应式（PC 端在窄屏自适应） ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .grid-4, .grid-3, .grid-2, .product-grid, .solution, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .section-head h2 { font-size: 26px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .pay-methods { grid-template-columns: 1fr; }
}
