/* 济南盈讯科技有限公司官网 —— 简约大气 · 浅色主题 */
:root {
  --brand: #1f6fe5;
  --brand-deep: #1657b8;
  --brand-soft: #eaf2fd;
  --ink: #14202e;
  --ink-2: #40506a;
  --ink-3: #7a879a;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 26px rgba(20, 40, 80, .07);
  --shadow-lg: 0 18px 50px rgba(20, 40, 80, .11);
  --maxw: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--bg); line-height: 1.75; font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.35; letter-spacing: -.2px; }
p { margin: 0 0 1em; color: var(--ink-2); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { height: 44px; width: 44px; border-radius: 8px; object-fit: contain; background: #fff; }
.brand__txt strong { display: block; font-size: 17.5px; letter-spacing: .4px; }
.brand__txt span { display: block; font-size: 11.5px; color: var(--ink-3); letter-spacing: 2.4px; text-transform: uppercase; }
.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__menu a {
  padding: 9px 15px; border-radius: 8px; font-size: 15px; color: var(--ink-2);
  transition: .18s; font-weight: 500;
}
.nav__menu a:hover { color: var(--brand); background: var(--brand-soft); }
.nav__menu a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ---------- 按钮 ---------- */
.yx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 9px; padding: 10px 20px;
  font-size: 14.5px; font-family: var(--font); font-weight: 600; cursor: pointer;
  transition: .18s; white-space: nowrap; line-height: 1.4;
}
.yx-btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(31, 111, 229, .22); }
.yx-btn--primary:hover { background: var(--brand-deep); transform: translateY(-1px); }
.yx-btn--ghost { background: #fff; color: var(--brand); border-color: #cfe0f8; }
.yx-btn--ghost:hover { background: var(--brand-soft); }
.yx-btn--line { background: #fff; color: var(--ink-2); border-color: var(--line); }
.yx-btn--line:hover { border-color: var(--brand); color: var(--brand); }
.yx-btn--block { width: 100%; }
.yx-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* 登录后的用户区 */
.yx-user { position: relative; display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 30px; border: 1px solid var(--line); cursor: pointer; }
.yx-user:hover { border-color: #cfe0f8; background: var(--brand-soft); }
.yx-user__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; overflow: hidden; }
.yx-user__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.yx-user__name { font-size: 14px; max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yx-user__menu {
  position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-lg); min-width: 148px; padding: 6px; display: none; z-index: 70;
}
.yx-user:hover .yx-user__menu { display: block; }
.yx-user__menu a { display: block; padding: 9px 12px; border-radius: 7px; font-size: 14px; color: var(--ink-2); }
.yx-user__menu a:hover { background: var(--bg-soft); color: var(--brand); }

/* ---------- 通用区块 ---------- */
.sec { padding: 86px 0; }
.sec--soft { background: var(--bg-soft); }
.sec__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.sec__tag {
  display: inline-block; font-size: 12.5px; letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--brand); font-weight: 700; margin-bottom: 12px;
}
.sec__head h2 { font-size: 32px; }
.sec__head p { font-size: 16px; color: var(--ink-3); margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #0f3f8f 0%, #1f6fe5 52%, #3a91f2 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 380px at 88% -8%, rgba(255,255,255,.18), transparent 62%),
              radial-gradient(700px 320px at 4% 108%, rgba(255,255,255,.12), transparent 60%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 104px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 15px;
  border-radius: 30px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); margin-bottom: 22px;
}
.hero h1 { font-size: 44px; color: #fff; letter-spacing: -.5px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #d7e8ff; }
.hero p.lead { color: rgba(255,255,255,.9); font-size: 17px; max-width: 620px; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .yx-btn--primary { background: #fff; color: var(--brand-deep); box-shadow: 0 10px 26px rgba(0,0,0,.16); }
.hero .yx-btn--primary:hover { background: #f0f6ff; }
.hero .yx-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero .yx-btn--ghost:hover { background: rgba(255,255,255,.14); }

.hero__card {
  background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.24);
  border-radius: 18px; padding: 28px; backdrop-filter: blur(8px);
}
.hero__card h3 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hero__stat b { display: block; font-size: 30px; line-height: 1.2; color: #fff; }
.hero__stat span { font-size: 13.5px; color: rgba(255,255,255,.82); }

/* ---------- 数据带 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.stats__item { padding: 30px 22px; text-align: center; border-right: 1px solid var(--line); }
.stats__item:last-child { border-right: 0; }
.stats__item b { display: block; font-size: 31px; color: var(--brand); line-height: 1.25; }
.stats__item span { font-size: 13.5px; color: var(--ink-3); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: .22s; height: 100%;
}
.card:hover { border-color: #c8dcf8; box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--brand);
}
.card__icon svg { width: 25px; height: 25px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14.5px; margin: 0; color: var(--ink-2); }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card ul li { position: relative; padding-left: 19px; font-size: 14px; color: var(--ink-2); margin-bottom: 7px; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .55; }

/* ---------- 服务详情条 ---------- */
.svc { display: grid; grid-template-columns: 82px 1fr; gap: 26px; padding: 34px 0; border-bottom: 1px dashed var(--line); }
.svc:last-child { border-bottom: 0; }
.svc__no { font-size: 40px; font-weight: 800; color: #dbe7f9; line-height: 1; letter-spacing: -1px; }
.svc h3 { font-size: 20px; margin-bottom: 10px; }
.svc p { font-size: 15px; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12.5px; padding: 4px 12px; border-radius: 30px; background: var(--brand-soft); color: var(--brand-deep); font-weight: 500; }

/* ---------- 关于我们 ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: start; }
.quote {
  border-left: 3px solid var(--brand); background: var(--bg-soft); padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); font-size: 15px;
}
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.fact b { display: block; font-size: 15px; margin-bottom: 4px; }
.fact span { font-size: 13.5px; color: var(--ink-3); }

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline__item { position: relative; padding-bottom: 26px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ""; position: absolute; left: -26px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.timeline__item b { display: block; font-size: 15.5px; }
.timeline__item span { font-size: 14px; color: var(--ink-2); }

/* ---------- 联系 ---------- */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.info-item { display: flex; gap: 15px; padding: 17px 0; border-bottom: 1px dashed var(--line); }
.info-item:last-child { border-bottom: 0; padding-bottom: 0; }
.info-item:first-child { padding-top: 0; }
.info-item__ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); }
.info-item__ic svg { width: 20px; height: 20px; }
.info-item b { display: block; font-size: 14px; color: var(--ink-3); font-weight: 500; margin-bottom: 3px; }
.info-item span { font-size: 15.5px; font-weight: 600; color: var(--ink); word-break: break-all; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field > span em { font-style: normal; font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 14.5px; font-family: var(--font); color: var(--ink);
  background: #fff; transition: .16s; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,111,229,.1); }
.field textarea { resize: vertical; min-height: 108px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- 登录弹窗 ---------- */
.yx-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.yx-modal.open { display: flex; }
.yx-modal__mask { position: absolute; inset: 0; background: rgba(14, 28, 48, .5); backdrop-filter: blur(3px); }
.yx-modal__panel {
  position: relative; background: #fff; border-radius: 18px; padding: 34px 32px;
  width: 100%; max-width: 428px; box-shadow: var(--shadow-lg); animation: pop .22s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.yx-modal__x { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--ink-3); cursor: pointer; }
.yx-modal__x:hover { color: var(--ink); }
.yx-modal__title { font-size: 21px; margin-bottom: 6px; }
.yx-modal__sub { font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; }
.yx-modal__foot { font-size: 13.5px; color: var(--ink-3); text-align: center; margin-top: 2px; }
.yx-modal__foot a { color: var(--brand); font-weight: 600; margin-left: 4px; }
.yx-code-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.yx-code-row .yx-field { margin-bottom: 16px; }
.yx-code-row .yx-btn { margin-bottom: 16px; height: 43px; }
.yx-form-err { color: #d64545; font-size: 13.5px; margin: 2px 0 12px; min-height: 20px; }
.yx-field { display: block; margin-bottom: 16px; }
.yx-field > span { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.yx-field > span em { font-style: normal; font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.yx-field input { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14.5px; font-family: var(--font); outline: none; transition: .16s; }
.yx-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,111,229,.1); }

/* ---------- Toast ---------- */
.yx-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
  background: #16233a; color: #fff; padding: 12px 22px; border-radius: 10px;
  font-size: 14.2px; z-index: 300; opacity: 0; pointer-events: none; transition: .26s;
  box-shadow: var(--shadow-lg); max-width: 88vw; text-align: center;
}
.yx-toast.show { opacity: 1; transform: translate(-50%, 0); }
.yx-toast.error { background: #b83a3a; }

/* ---------- 页头（内页） ---------- */
.pagehead { background: linear-gradient(135deg, #0f3f8f, #1f6fe5); color: #fff; padding: 62px 0; }
.pagehead h1 { color: #fff; font-size: 34px; margin-bottom: 8px; }
.pagehead p { color: rgba(255,255,255,.88); margin: 0; font-size: 15.5px; }
.crumb { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 14px; }
.crumb a:hover { color: #fff; }

/* ---------- CTA 带 ---------- */
.cta {
  background: linear-gradient(135deg, #123f8c, #1f6fe5); border-radius: 20px; color: #fff;
  padding: 52px 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta h2 { color: #fff; font-size: 27px; margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,.88); margin: 0; }
.cta .yx-btn--primary { background: #fff; color: var(--brand-deep); }

/* ---------- 页脚 ---------- */
.footer { background: #0f1a2b; color: #9aa8bd; padding: 58px 0 26px; margin-top: 0; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 38px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer a { display: block; padding: 5px 0; color: #9aa8bd; }
.footer a:hover { color: #fff; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand img { height: 42px; width: 42px; border-radius: 8px; background: #fff; object-fit: contain; }
.footer__brand strong { color: #fff; font-size: 16px; display: block; }
.footer__brand span { font-size: 11.5px; letter-spacing: 2.2px; color: #7f8ea6; }
.footer__p { color: #9aa8bd; font-size: 13.5px; line-height: 1.9; }
.footer__bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7f8ea6; }
.footer__bottom a.footer__icp { display: inline; padding: 0; color: #7f8ea6; text-decoration: none; }
.footer__bottom a.footer__icp:hover { color: #fff; text-decoration: underline; }

/* ---------- 会员中心 ---------- */
.member__grid { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel h3 { font-size: 17px; margin-bottom: 18px; }
.member__avatar { width: 66px; height: 66px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.member__meta { font-size: 14px; color: var(--ink-2); }
.member__meta div { padding: 7px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; }
.member__meta div:last-child { border-bottom: 0; }
.member__meta b { color: var(--ink-3); font-weight: 500; }
.msg-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 14px; }
.msg-item__top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.msg-item__top strong { font-size: 15px; }
.msg-item__top time { font-size: 13px; color: var(--ink-3); }
.msg-item p { font-size: 14.2px; margin: 0; }
.badge { font-size: 12px; padding: 3px 11px; border-radius: 30px; font-weight: 600; }
.badge--pending { background: #fff4e0; color: #b8770d; }
.badge--done { background: #e8f5ec; color: #1f8a45; }
.empty { text-align: center; padding: 52px 20px; color: var(--ink-3); font-size: 14.5px; }

/* ---------- 管理后台 ---------- */
.admin__bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 26px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.admin__stat { display: flex; align-items: baseline; gap: 8px; padding-right: 22px; border-right: 1px solid var(--line); }
.admin__stat:last-of-type { border-right: 0; }
.admin__stat b { font-size: 26px; color: var(--brand); font-weight: 700; line-height: 1; }
.admin__stat span { font-size: 13.5px; color: var(--ink-3); }
.admin__who { margin-left: auto; font-size: 13.5px; color: var(--ink-3); }
.admin__who b { color: var(--ink); font-weight: 600; }
.admin__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.admin__head h3 { margin-bottom: 0; }
.msg-item__meta { margin-top: 10px !important; font-size: 13px !important; color: var(--ink-3); line-height: 1.8; }

@media (max-width: 640px) {
  .admin__stat { padding-right: 14px; }
  .admin__stat b { font-size: 21px; }
  .admin__who { margin-left: 0; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__grid, .contact__grid, .member__grid { grid-template-columns: 1fr; gap: 34px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats__item:nth-child(2) { border-right: 0; }
  .stats__item:nth-child(1), .stats__item:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .nav .wrap { height: 66px; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 10px 16px 16px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); display: none; gap: 2px;
  }
  .nav__menu.open { display: flex; }
  .nav__menu a { padding: 12px 14px; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
  .hero h1 { font-size: 31px; }
  .hero p.lead { font-size: 15.5px; }
  .sec { padding: 58px 0; }
  .sec__head h2 { font-size: 25px; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .form__row, .about__facts { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 10px; }
  .cta { padding: 36px 26px; }
  .cta h2 { font-size: 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .yx-modal__panel { padding: 28px 22px; }
}
