/* ========== 基础重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #f5f7fa;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
input, button, select, textarea { font-family: inherit; outline: none; }
.container { width: 1200px; max-width: 92%; margin: 0 auto; }

/* ========== 顶部联系条 ========== */
.topbar {
  background: linear-gradient(90deg, #0f86e0, #1296f3);
  color: #fff;
  font-size: 13px;
  height: 38px;
  line-height: 38px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; gap: 28px; }
.topbar-left span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-left .ico { font-size: 14px; }
.topbar-left a:hover { text-decoration: underline; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar-right a { opacity: .95; }
.topbar-right a:hover { text-decoration: underline; opacity: 1; }
.topbar-right .sep { opacity: .55; }
#userBox .uname { color: #ffe66d; }
#userBox .logout { margin-left: 10px; cursor: pointer; text-decoration: underline; }

/* ========== 导航 ========== */
.header {
  background: #fff;
  box-shadow: 0 2px 14px rgba(15, 134, 224, .08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 50px; height: 50px; border-radius: 12px;
  background: linear-gradient(135deg, #0f86e0, #0a5fb8);
  color: #fff; font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 134, 224, .35);
}
.logo-text .cn { font-size: 22px; font-weight: 700; color: #1a1a1a; letter-spacing: 2px; }
.logo-text .en { font-size: 11px; color: #8a97a8; letter-spacing: 3px; margin-top: -2px; }
.nav ul { display: flex; gap: 38px; }
.nav a {
  font-size: 16px; color: #444; padding: 6px 2px;
  position: relative; transition: .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 3px; border-radius: 2px;
  background: #1296f3; transition: .25s;
}
.nav a:hover, .nav a.active { color: #1296f3; }
.nav a:hover::after, .nav a.active::after { width: 100%; }

/* ========== 首页轮播 ========== */
.banner { position: relative; height: 460px; overflow: hidden; background: #0b2a4a; }
.slides { height: 100%; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s ease;
  display: flex; align-items: center;
}
.slide.active { opacity: 1; }
.slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 30, 58, .72) 0%, rgba(6, 30, 58, .35) 55%, rgba(6, 30, 58, .15) 100%);
}
.slide-inner { position: relative; z-index: 2; color: #fff; }
.slide-inner .sub-tag {
  display: inline-block; font-size: 14px; letter-spacing: 4px;
  border: 1px solid rgba(255,255,255,.6); padding: 5px 16px; border-radius: 20px;
  margin-bottom: 22px;
}
.slide-inner h1 { font-size: 54px; font-weight: 700; letter-spacing: 4px; text-shadow: 0 4px 18px rgba(0,0,0,.35); }
.slide-inner p { font-size: 21px; margin-top: 18px; letter-spacing: 2px; color: #eaf4ff; }
.slide-inner .btn {
  display: inline-block; margin-top: 34px;
  background: #1296f3; color: #fff; font-size: 16px;
  padding: 13px 42px; border-radius: 30px;
  box-shadow: 0 8px 22px rgba(18,150,243,.45);
  transition: .25s;
}
.slide-inner .btn:hover { background: #0f86e0; transform: translateY(-2px); }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.25); color: #fff;
  border: none; font-size: 22px; cursor: pointer; z-index: 5;
  transition: .2s;
}
.banner-arrow:hover { background: rgba(18,150,243,.85); }
.banner-arrow.prev { left: 26px; }
.banner-arrow.next { right: 26px; }
.dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.dots button {
  width: 22px; height: 5px; border-radius: 3px; border: none;
  background: rgba(255,255,255,.45); cursor: pointer; transition: .25s;
}
.dots button.active { background: #fff; width: 38px; }

/* ========== 通用区块标题 ========== */
.section { padding: 64px 0; }
.section.gray { background: #fff; }
.section-title { text-align: center; margin-bottom: 46px; }
.section-title h2 { font-size: 32px; color: #1a1a1a; letter-spacing: 3px; display: inline-block; position: relative; padding-bottom: 16px; }
.section-title h2::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 56px; height: 4px; border-radius: 2px; background: #1296f3;
}
.section-title p { color: #8a97a8; font-size: 15px; margin-top: 12px; letter-spacing: 2px; }

/* ========== 企业介绍 ========== */
.about-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.about-img { border-radius: 14px; overflow: hidden; box-shadow: 0 18px 44px rgba(20, 60, 110, .18); }
.about-img img { width: 100%; height: 400px; object-fit: cover; }
.about-text h3 { font-size: 26px; color: #163a5f; margin-bottom: 8px; letter-spacing: 1px; }
.about-text .en-name { color: #1296f3; font-size: 13px; letter-spacing: 2px; margin-bottom: 20px; display: block; }
.about-text p { color: #555; font-size: 15px; margin-bottom: 14px; text-align: justify; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
.about-tags span {
  background: #eef6fe; color: #0f86e0; border: 1px solid #cfe6fb;
  padding: 6px 16px; border-radius: 18px; font-size: 13px;
}
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; background: #f5f9fe; border-radius: 10px; padding: 18px 6px; }
.stat b { display: block; font-size: 24px; color: #1296f3; }
.stat small { color: #7a8798; font-size: 13px; }

/* ========== 服务优势条 ========== */
.features { background: #fff; padding: 30px 0; border-top: 1px solid #eef1f5; border-bottom: 1px solid #eef1f5; }
.features .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { display: flex; align-items: center; gap: 14px; justify-content: center; }
.feature .fi {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: #eaf4fe; color: #1296f3; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.feature b { display: block; font-size: 16px; color: #263445; }
.feature small { color: #8a97a8; font-size: 13px; }

/* ========== 产品分类与卡片 ========== */
.cat-block { margin-bottom: 58px; }
.cat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.cat-head h3 {
  font-size: 23px; color: #1a1a1a; padding-left: 14px;
  border-left: 5px solid #1296f3; letter-spacing: 2px;
}
.cat-head .more { font-size: 14px; color: #1296f3; }
.cat-head .more:hover { text-decoration: underline; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid #edf1f5; cursor: pointer;
  transition: .25s; display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(18, 90, 160, .14); border-color: #cfe6fb; }
.pcard .pimg { height: 240px; overflow: hidden; background: #f7f9fc; }
.pcard .pimg img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: .35s; }
.pcard:hover .pimg img { transform: scale(1.06); }
.pbody { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pbody h4 {
  font-size: 15px; font-weight: 600; color: #2b3440; line-height: 1.55;
  height: 46px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.price { color: #e8442e; font-size: 21px; font-weight: 700; }
.price small { font-size: 12px; font-weight: 400; color: #97a2b0; margin-left: 2px; }
.cart-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: #eaf4fe; color: #1296f3; font-size: 17px; cursor: pointer;
  transition: .2s;
}
.cart-btn:hover { background: #1296f3; color: #fff; transform: scale(1.1); }

/* ========== 页脚 ========== */
.footer { background: #16263a; color: #b9c6d6; padding: 54px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 44px; padding-bottom: 40px; }
.footer h5 { color: #fff; font-size: 17px; margin-bottom: 20px; letter-spacing: 1px; }
.footer .f-about p { margin-bottom: 10px; color: #93a5bb; }
.footer .f-contact li { margin-bottom: 12px; display: flex; gap: 10px; }
.footer .f-contact .fi { color: #1296f3; }
.footer .f-nav { display: flex; flex-direction: column; gap: 10px; }
.footer .f-nav a:hover { color: #fff; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center; padding: 18px 0; font-size: 13px; color: #7788a0;
}

/* ========== 面包屑 ========== */
.crumb { background: #fff; font-size: 13px; color: #8a97a8; padding: 14px 0; border-bottom: 1px solid #eef1f5; }
.crumb a:hover { color: #1296f3; }
.crumb span { margin: 0 8px; color: #c3ccd8; }

/* ========== 产品详情/下单页 ========== */
.detail-card { background: #fff; border-radius: 14px; padding: 30px; margin: 26px 0; display: grid; grid-template-columns: 460px 1fr; gap: 40px; box-shadow: 0 8px 26px rgba(20,60,110,.06); }
.detail-img { background: #f7f9fc; border-radius: 12px; overflow: hidden; height: 400px; }
.detail-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.detail-info h1 { font-size: 26px; color: #1d2b3a; line-height: 1.4; margin-bottom: 14px; }
.detail-desc { color: #6a7787; font-size: 14px; margin-bottom: 22px; }
.price-box { background: linear-gradient(135deg, #f2f8fe, #e8f3fd); border-radius: 10px; padding: 20px 24px; margin-bottom: 24px; }
.price-box .pl { color: #8a97a8; font-size: 13px; }
.price-box .pv { color: #e8442e; font-size: 38px; font-weight: 700; }
.price-box .pv small { font-size: 14px; font-weight: 400; color: #e8442e; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-bottom: 26px; }
.spec-list li { font-size: 14px; color: #5b6878; }
.spec-list li b { color: #2b3440; }
.buy-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.qty { display: flex; align-items: center; border: 1px solid #d7dfe9; border-radius: 8px; overflow: hidden; }
.qty button { width: 42px; height: 42px; border: none; background: #f4f7fa; font-size: 18px; cursor: pointer; color: #566273; }
.qty button:hover { background: #e6eef7; color: #1296f3; }
.qty input { width: 60px; height: 42px; border: none; text-align: center; font-size: 16px; border-left: 1px solid #d7dfe9; border-right: 1px solid #d7dfe9; }
.btn-primary, .btn-plain {
  height: 46px; padding: 0 34px; border-radius: 24px; font-size: 16px; cursor: pointer; border: none; transition: .2s;
}
.btn-primary { background: #e8442e; color: #fff; box-shadow: 0 8px 20px rgba(232,68,46,.3); }
.btn-primary:hover { background: #d33520; }
.btn-plain { background: #1296f3; color: #fff; box-shadow: 0 8px 20px rgba(18,150,243,.3); }
.btn-plain:hover { background: #0f86e0; }

.order-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; margin-bottom: 30px; }
.panel { background: #fff; border-radius: 14px; padding: 26px 28px; box-shadow: 0 8px 26px rgba(20,60,110,.06); }
.panel h3 { font-size: 19px; color: #1d2b3a; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #eef1f5; }
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 13px; color: #5b6878; margin-bottom: 7px; }
.form-item label em { color: #e8442e; font-style: normal; margin-right: 3px; }
.form-item input, .form-item textarea {
  width: 100%; border: 1px solid #d7dfe9; border-radius: 8px;
  padding: 11px 14px; font-size: 14px; transition: .2s; background: #fff;
}
.form-item input:focus, .form-item textarea:focus { border-color: #1296f3; box-shadow: 0 0 0 3px rgba(18,150,243,.12); }
.form-item textarea { resize: vertical; min-height: 74px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 购物车清单 */
.cart-line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed #e6ebf2; }
.cart-line:last-of-type { border-bottom: none; }
.cart-line img { width: 64px; height: 64px; object-fit: contain; background: #f7f9fc; border-radius: 8px; padding: 4px; }
.cart-line .ci-name { flex: 1; font-size: 14px; color: #2b3440; }
.cart-line .ci-name small { display: block; color: #97a2b0; font-size: 12px; }
.cart-line .mini-qty { display: flex; align-items: center; border: 1px solid #d7dfe9; border-radius: 6px; }
.cart-line .mini-qty button { width: 26px; height: 26px; border: none; background: #f4f7fa; cursor: pointer; color: #566273; }
.cart-line .mini-qty span { width: 40px; text-align: center; font-size: 14px; }
.cart-line .ci-sub { width: 92px; text-align: right; color: #e8442e; font-weight: 600; font-size: 15px; }
.cart-line .ci-del { background: none; border: none; color: #b3becb; cursor: pointer; font-size: 17px; }
.cart-line .ci-del:hover { color: #e8442e; }
.cart-empty { text-align: center; color: #97a2b0; padding: 40px 0; font-size: 14px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 18px; border-top: 2px solid #eef1f5; }
.cart-total .tv { color: #e8442e; font-size: 26px; font-weight: 700; }
.btn-submit {
  width: 100%; height: 50px; margin-top: 16px; border: none; border-radius: 10px;
  background: linear-gradient(90deg, #ff7a18, #e8442e); color: #fff;
  font-size: 18px; letter-spacing: 4px; cursor: pointer;
  box-shadow: 0 10px 24px rgba(232,68,46,.3); transition: .2s;
}
.btn-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.tip-login {
  display: none; background: #fff8e6; border: 1px solid #ffe2a8; color: #a07012;
  border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-top: 12px;
}
.tip-login a { color: #1296f3; text-decoration: underline; }

/* ========== 弹窗 ========== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 30, 50, .55);
  display: none; align-items: center; justify-content: center; z-index: 1000;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 16px; width: 400px; max-width: 92%;
  padding: 34px 34px 28px; position: relative;
  animation: pop .25s ease;
}
@keyframes pop { from { transform: translateY(24px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal .m-close { position: absolute; right: 16px; top: 12px; border: none; background: none; font-size: 22px; color: #a9b5c4; cursor: pointer; }
.modal .m-icon { width: 58px; height: 58px; border-radius: 50%; background: #eaf4fe; color: #1296f3; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.modal h3 { text-align: center; font-size: 21px; color: #1d2b3a; margin-bottom: 8px; }
.modal .m-desc { text-align: center; color: #8a97a8; font-size: 13px; margin-bottom: 22px; }
.modal .form-item input { padding: 12px 14px; }
.modal .btn-login {
  width: 100%; height: 46px; border: none; border-radius: 24px; cursor: pointer;
  background: #1296f3; color: #fff; font-size: 16px; margin-top: 6px;
}
.modal .btn-login:hover { background: #0f86e0; }
.modal .m-foot { text-align: center; margin-top: 16px; font-size: 13px; color: #8a97a8; }
.modal .m-foot a { color: #1296f3; }
.modal .demo { background: #f5f9fe; border-radius: 8px; font-size: 12px; color: #6a7787; padding: 9px 14px; margin-bottom: 16px; text-align: center; }
.success-icon { background: #e8f9ee !important; color: #1aad52 !important; }

/* ========== 登录页 ========== */
.auth-page { min-height: 100vh; background: linear-gradient(135deg, #0b5fb0 0%, #1296f3 60%, #54b6f7 100%); display: flex; flex-direction: column; }
.auth-bar { color: #fff; padding: 18px 40px; font-size: 14px; display: flex; justify-content: space-between; }
.auth-bar a { opacity: .9; }
.auth-bar a:hover { text-decoration: underline; opacity: 1; }
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { background: #fff; border-radius: 18px; width: 420px; max-width: 100%; padding: 40px 38px 32px; box-shadow: 0 24px 60px rgba(0, 30, 70, .3); }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.auth-logo .logo-mark { width: 44px; height: 44px; font-size: 22px; }
.auth-logo .cn { font-size: 20px; font-weight: 700; }
.auth-tabs { display: flex; margin: 24px 0 22px; border-bottom: 1px solid #eef1f5; }
.auth-tabs button { flex: 1; background: none; border: none; padding: 12px; font-size: 16px; color: #8a97a8; cursor: pointer; position: relative; }
.auth-tabs button.on { color: #1296f3; font-weight: 600; }
.auth-tabs button.on::after { content: ""; position: absolute; bottom: -1px; left: 25%; right: 25%; height: 3px; background: #1296f3; border-radius: 2px; }
.auth-card .btn-login { width: 100%; height: 48px; border: none; border-radius: 25px; background: #1296f3; color: #fff; font-size: 16px; cursor: pointer; margin-top: 8px; }
.auth-card .btn-login:hover { background: #0f86e0; }
.auth-card .demo { margin-top: 18px; }
.auth-error { color: #e8442e; font-size: 13px; min-height: 20px; margin-bottom: 6px; }
.auth-back { text-align: center; margin-top: 18px; font-size: 13px; }
.auth-back a { color: #1296f3; }

/* ========== Toast 提示 ========== */
.toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: rgba(29, 43, 58, .92); color: #fff; font-size: 14px;
  padding: 12px 26px; border-radius: 26px; z-index: 2000;
  opacity: 0; pointer-events: none; transition: .3s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 返回顶部 */
.back-top {
  position: fixed; right: 26px; bottom: 60px; width: 44px; height: 44px;
  border-radius: 50%; background: #1296f3; color: #fff; border: none; font-size: 20px;
  cursor: pointer; opacity: 0; pointer-events: none; transition: .25s; z-index: 90;
  box-shadow: 0 8px 20px rgba(18,150,243,.4);
}
.back-top.show { opacity: 1; pointer-events: auto; }

/* ========== 响应式 ========== */
@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { grid-template-columns: 1fr; }
  .detail-card { grid-template-columns: 1fr; }
  .detail-img { height: 320px; }
  .order-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar-left { gap: 12px; font-size: 12px; }
  .topbar-left .mail { display: none; }
  .nav ul { gap: 18px; }
  .nav a { font-size: 14px; }
  .logo-text .cn { font-size: 18px; }
  .banner { height: 340px; }
  .slide-inner h1 { font-size: 32px; }
  .slide-inner p { font-size: 15px; }
  .product-grid { grid-template-columns: 1fr; }
  .features .container { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .form-2 { grid-template-columns: 1fr; }
}
