/* ============================================================
   卡易信官网样式（复刻 kayixin.com 红白主题模板）
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif; color: #333; background: #fff; font-size: 14px; }
a { text-decoration: none; color: inherit; }
ul,ol,li { list-style: none; }
img { border: 0; vertical-align: middle; max-width: 100%; }
.box { width: 77%; min-width: 1200px; box-sizing: border-box; margin: 0 auto; }
.red { color: #e60012; }

/* ---------- 顶部（复刻原站 2023 UI） ---------- */
.header { background: #fff; border-bottom: 1px solid #f0f0f0; padding: 22px 0; }
.header .box { display: flex; align-items: center; }
.header .logo { padding-right: 15px; margin-right: 15px; border-right: 1px solid #e3e3e6; flex: 0 0 auto; }
.header .logo img { height: 50px; display: block; }
.header .logo-txt { flex: 0 0 auto; }
.header .logo-txt img { height: 52px; display: block; }
.header .nav { margin-left: 30px; flex-shrink: 0; }
.header .nav ul { display: flex; flex-wrap: nowrap; white-space: nowrap; }
.header .nav li a { display: inline-block; padding: 0 15px; border-radius: 30px; font-size: 18px; line-height: 36px; color: #333; transition: all .2s; }
.header .nav li.active a, .header .nav li:hover a { color: #fff; background: linear-gradient(to right,#ff6152,#ff9751); }
.header .right-act { margin-left: auto; display: flex; align-items: center; flex-shrink: 0; }
.header .right-act .tel { padding-left: 30px; line-height: 22px; background: url(/static/images/icon_tel.png) no-repeat left center; background-size: 20px; color: #4b4b4c; font-size: 18px; font-weight: 700; }
.header .right-act .user-login { margin-left: 46px; }
.header .right-act .user-login a { display: inline-block; color: #fff; padding: 0 14px; line-height: 34px; font-size: 16px; background: linear-gradient(to right,#ff4c4c,#ff6b54); border-radius: 5px; transition: all .2s; }
.header .right-act .user-login a:hover { background: linear-gradient(to right,#ee3636,#df462e); }

/* ---------- 页脚（复刻原站） ---------- */
.footer { background: #232326; }
.ft-nav { display: flex; padding: 54px 0 30px; justify-content: space-between; flex-wrap: wrap; }
.ft-nav-list { flex-shrink: 0; min-width: 180px; margin-bottom: 20px; }
.ft-nav-list .tit { font-size: 22px; margin-bottom: 15px; color: #fff; white-space: nowrap; }
.ft-nav-list .ft-nav-item { line-height: 38px; }
.ft-nav-list .ft-nav-item span, .ft-nav-list .ft-nav-item a { color: #7e828c; font-size: 16px; }
.ft-nav-list .ft-nav-item a:hover { text-decoration: underline; color: #fff; }
.ft-ctc-code { text-align: center; flex-shrink: 0; }
.ft-ctc-code img { width: 120px; }
.ft-ctc-code .txt { margin-top: 10px; color: #a1a2a6; font-size: 16px; }
.ft-copyright { padding: 30px 0; border-top: 1px solid #303033; line-height: 28px; font-size: 14px; color: #7e828c; text-align: center; }
.ft-copyright a { color: #7e828c; }
.ft-copyright a:hover { color: #fff; }

/* ---------- 内页通用 ---------- */
.page-banner { background: linear-gradient(120deg,#fff5f5,#ffe3e3); padding: 40px 0; }
.page-banner h2 { font-size: 28px; font-weight: 800; color: #222; }
.page-banner .crumb { margin-top: 10px; font-size: 13px; color: #999; }
.page-banner .crumb a { color: #e60012; }
.page-body { padding: 50px 0 70px; min-height: 400px; }
.article { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid #f0f0f0; border-radius: 16px; padding: 44px 50px; }
.article h1 { font-size: 26px; color: #222; text-align: center; margin-bottom: 14px; }
.article .meta { text-align: center; color: #999; font-size: 13px; margin-bottom: 30px; }
.article h2 { font-size: 20px; color: #e60012; margin: 26px 0 12px; }
.article h3 { font-size: 17px; color: #333; margin: 20px 0 10px; }
.article p { font-size: 15px; line-height: 2; color: #555; margin-bottom: 10px; }
.article ul { padding-left: 20px; }
.article ul li { list-style: disc; font-size: 15px; line-height: 2; color: #555; }
.article table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.article table td, .article table th { border: 1px solid #eee; padding: 10px; font-size: 14px; }

/* ---------- 授权查询 ---------- */
.cert-box { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid #f0f0f0; border-radius: 16px; padding: 44px; text-align: center; }
.cert-box h2 { font-size: 24px; color: #222; margin-bottom: 8px; }
.cert-box .sub { color: #999; font-size: 14px; margin-bottom: 30px; }
.cert-search { display: flex; gap: 0; max-width: 520px; margin: 0 auto; }
.cert-search input { flex: 1; height: 48px; border: 2px solid #e60012; border-right: 0; border-radius: 10px 0 0 10px; padding: 0 16px; font-size: 15px; outline: none; }
.cert-search button { width: 110px; height: 48px; background: #e60012; color: #fff; border: 0; border-radius: 0 10px 10px 0; font-size: 15px; cursor: pointer; }
.cert-feats { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 34px; text-align: left; }
.cert-feats li { background: #fafafa; border-radius: 12px; padding: 18px 20px; border: 1px solid #f0f0f0; }
.cert-feats li h4 { font-size: 15px; color: #e60012; margin-bottom: 6px; }
.cert-feats li p { font-size: 13px; color: #777; line-height: 1.7; }
.cert-result { margin-top: 24px; background: #fff8f8; border: 1px solid #ffdada; border-radius: 12px; padding: 20px; display: none; text-align: left; }
.cert-result .ok { color: #16a34a; font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.cert-result table td { padding: 6px 12px; font-size: 14px; }

/* ---------- 公告列表（仿商户管理中心：紧凑文本标签 + 纯文字列表 + 文本分页） ---------- */
.ann-body { padding: 30px 0 60px; height: 1000px; overflow: hidden; }
.ann-panel { max-width: 1100px; margin: 0 auto; }
.ann-tabs { display: flex; gap: 16px; margin-bottom: 6px; }
.ann-tabs a { font-size: 14px; color: #333; padding: 4px 0; border-bottom: 2px solid transparent; transition: all .2s; }
.ann-tabs a:hover { color: #e60012; }
.ann-tabs a.on { color: #e60012; font-weight: 700; border-bottom-color: #e60012; }
.ann-list { margin-top: 4px; }
.ann-list li { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.ann-list li:hover .a-t { color: #e60012; }
.ann-list .a-t { font-size: 15px; color: #333; max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.ann-list .a-d { font-size: 13px; color: #999; flex: 0 0 auto; }
.empty { text-align: center; color: #aaa; padding: 60px 0; font-size: 15px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; font-size: 15px; }
.pager .p-total { color: #999; margin-right: 8px; font-size: 14px; }
.pager .p-num { color: #333; min-width: 38px; height: 38px; line-height: 38px; text-align: center; padding: 0 10px; border: 1px solid #e8e8e8; border-radius: 8px; font-size: 15px; font-weight: 600; transition: all .2s; }
.pager .p-num:hover { color: #e60012; border-color: #e60012; }
.pager .p-num.on { color: #fff !important; background: #e60012; border-color: #e60012; }
.pager .p-dot { color: #bbb; padding: 0 4px; }
.pager .p-next { color: #333; min-width: 38px; height: 38px; line-height: 36px; text-align: center; padding: 0 10px; border: 1px solid #e8e8e8; border-radius: 8px; font-size: 16px; }
.pager .p-next:hover { color: #e60012; border-color: #e60012; }

/* ---------- 公告详情 ---------- */
.ann-detail { padding: 8px 4px 0; }
.ann-detail .ad-title { font-size: 22px; font-weight: 700; color: #222; line-height: 1.5; }
.ann-detail .ad-meta { color: #999; font-size: 13px; margin: 12px 0 20px; padding-bottom: 16px; border-bottom: 1px dashed #eee; }
.ann-detail .ad-content { font-size: 15px; color: #444; line-height: 2; white-space: pre-line; word-break: break-word; }
.ann-detail .ad-back { margin-top: 26px; }
.ann-detail .ad-back a { color: #e60012; font-size: 14px; }

/* ---------- 安装页 ---------- */
.install-wrap { min-height: 100vh; background: linear-gradient(135deg,#fff5f5,#ffe9e9); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.install-card { width: 560px; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(230,0,18,.12); padding: 40px; }
.install-card .inst-logo { text-align: center; margin-bottom: 26px; }
.install-card .inst-brand { margin-top: 12px; font-size: 19px; font-weight: 700; letter-spacing: 2px; color: #222; }
.install-card h2 { text-align: center; font-size: 22px; color: #222; margin-bottom: 6px; }
.install-card .inst-sub { text-align: center; color: #999; font-size: 13px; margin-bottom: 26px; }
.inst-step { display: flex; justify-content: center; gap: 30px; margin-bottom: 28px; }
.inst-step .step { text-align: center; color: #bbb; font-size: 12px; }
.inst-step .step .n { width: 30px; height: 30px; border-radius: 50%; background: #eee; color: #999; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-weight: 700; }
.inst-step .step.on { color: #e60012; }
.inst-step .step.on .n { background: #e60012; color: #fff; }
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; }
.form-item label b { color: #e60012; }
.form-item input, .form-item textarea, .form-item select { width: 100%; height: 44px; border: 1.5px solid #e5e5e5; border-radius: 10px; padding: 0 14px; font-size: 14px; outline: none; transition: border .2s; background: #fafafa; }
.form-item input:focus, .form-item textarea:focus, .form-item select:focus { border-color: #e60012; background: #fff; }
.form-item textarea { height: 90px; padding: 10px 14px; resize: vertical; }
.btn-main { width: 100%; height: 46px; border: 0; border-radius: 10px; background: linear-gradient(135deg,#ff4444,#e60012); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 20px rgba(230,0,18,.3); }
.btn-main:hover { opacity: .92; }
.btn-main:disabled { opacity: .6; cursor: not-allowed; }
.inst-tip { margin-top: 14px; font-size: 12px; color: #aaa; text-align: center; line-height: 1.8; }
.machine-box { background: #fafafa; border: 1px dashed #ddd; border-radius: 8px; padding: 8px 12px; font-size: 12px; color: #888; word-break: break-all; }

/* 响应式 */
@media (max-width: 1240px) {
  .box { width: auto; margin: 0 20px; }
}
@media (max-width: 900px) {
  .header .nav { display: none; }
  .banner .box { flex-direction: column; padding: 30px 0; }
  .bn-pic { display: none; }
  .web-intro { grid-template-columns: 1fr; }
  .dual .box { flex-direction: column; }
  .dual .art { display: none; }
  .article { padding: 24px 20px; }
  .footer .box { flex-direction: column; }
}
