/* =====================================================================
   武汉东之林科技有限公司 · 企业官网
   全站样式（经典 ASP 静态页面）
   ===================================================================== */

:root {
  --c-primary: #0b3d91;
  --c-primary-dark: #082f6f;
  --c-accent: #1f7ae0;
  --c-ink: #1c2430;
  --c-muted: #616c7a;
  --c-line: #e4e9f0;
  --c-bg: #f5f8fc;
  --c-white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(16, 42, 84, .06);
  --shadow-md: 0 10px 30px rgba(16, 42, 84, .10);
  --radius: 12px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.75;
  font-size: 15px;
}

a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-primary); }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ----------------------- 顶部导航 ----------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--c-ink); }
.brand-logo { width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-cn { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.brand-en { font-size: 11px; color: var(--c-muted); letter-spacing: .5px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 16px; border-radius: 8px; color: var(--c-ink);
  font-size: 15px; font-weight: 500; transition: all .2s;
}
.nav-link:hover { background: var(--c-bg); color: var(--c-primary); }
.nav-link.active { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-sm); }

.nav-toggle {
  display: none; font-size: 22px; line-height: 1; cursor: pointer;
  background: none; border: 0; color: var(--c-ink); padding: 6px 10px;
}

/* ----------------------- 通用区块 ----------------------- */
.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 28px; margin: 0 0 10px; color: var(--c-primary-dark); }
.section-title::after {
  content: ""; display: block; width: 56px; height: 4px; margin: 14px auto 0;
  background: linear-gradient(90deg, var(--c-accent), var(--c-primary)); border-radius: 2px;
}
.section-sub { color: var(--c-muted); margin: 0; }

.page-hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff; padding: 56px 0 48px;
}
.page-hero h1 { margin: 0 0 10px; font-size: 30px; }
.page-hero p { margin: 0; opacity: .9; }
.breadcrumb { font-size: 13px; opacity: .8; margin-top: 10px; }
.breadcrumb a { color: #cfe0ff; }

/* ----------------------- 按钮 ----------------------- */
.btn {
  display: inline-block; padding: 11px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: all .2s;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary); color: #fff; }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-light:hover { background: #fff; color: var(--c-primary); }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ----------------------- 首页 Hero ----------------------- */
.hero {
  background: linear-gradient(135deg, #0b3d91 0%, #123a7a 55%, #0a2b64 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(63,140,255,.42), transparent 42%);
}
.hero-inner { position: relative; z-index: 2; padding: 88px 20px 96px; max-width: 820px; }
.hero h1 { font-size: 40px; margin: 0 0 16px; letter-spacing: 1px; }
.hero-slogan { font-size: 20px; color: #bcd4ff; margin: 0 0 14px; letter-spacing: 2px; }
.hero-desc { font-size: 16px; color: #dce8ff; margin: 0 0 34px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ----------------------- 板块轮播 ----------------------- */
.slider { position: relative; }
.slide {
  display: none;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
  overflow: hidden; grid-template-columns: 1.05fr 1fr; align-items: stretch;
}
.slide.is-active { display: grid; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.slide-media { background: linear-gradient(135deg, #eaf1fb, #d8e6fa); min-height: 320px; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; }
.slide-body { padding: 44px 42px; }
.slide-body h3 { font-size: 24px; margin: 0 0 10px; color: var(--c-primary-dark); }
.slide-intro { color: var(--c-muted); margin: 0 0 18px; }
.slide-points { list-style: none; margin: 0 0 22px; padding: 0; }
.slide-points li { position: relative; padding-left: 24px; margin-bottom: 9px; }
.slide-points li::before {
  content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--c-accent);
}
.slide-tags { font-size: 13px; color: var(--c-primary); background: var(--c-bg); display: inline-block; padding: 5px 14px; border-radius: 999px; margin: 0; }

.slider-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 26px; }
.slider-dots { display: flex; gap: 10px; }
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer;
  background: #c3d2e6; transition: all .2s; padding: 0;
}
.slider-dot.is-active { background: var(--c-primary); width: 26px; border-radius: 6px; }
.slider-arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--c-line);
  background: #fff; color: var(--c-primary); cursor: pointer; font-size: 16px; line-height: 1;
  transition: all .2s;
}
.slider-arrow:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ----------------------- 首页入口卡片 ----------------------- */
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.entry-card {
  display: block; background: #fff; border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--c-line); color: var(--c-ink);
  transition: all .22s;
}
.entry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0ff; }
.entry-card .icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
  color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center;
}
.entry-card h3 { margin: 0 0 8px; font-size: 18px; }
.entry-card p { margin: 0; color: var(--c-muted); font-size: 14px; }

/* ----------------------- 经典案例 ----------------------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 28px 28px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: all .2s;
}
.case-card:hover { box-shadow: var(--shadow-md); border-color: #cfe0ff; }
.case-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.case-no { color: var(--c-accent); font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.case-card h3 { margin: 4px 0 6px; font-size: 20px; color: var(--c-primary-dark); }
.case-sub { color: var(--c-accent); font-size: 13px; font-weight: 600; margin: 0 0 14px; }
.case-intro { color: var(--c-muted); margin: 0 0 14px; }
.case-points { list-style: none; margin: 0 0 18px; padding: 0; flex: 1; }
.case-points li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 14px; }
.case-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--c-accent); font-weight: 700;
}
.case-shots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.shot-tag {
  font-size: 12px; color: var(--c-muted); background: var(--c-bg);
  border: 1px dashed var(--c-line); padding: 4px 12px; border-radius: 6px;
}
a.shot-tag { text-decoration: none; }
.shot-link { color: var(--c-primary); border-style: solid; background: #fff; cursor: pointer; transition: all .2s; }
.shot-link:hover { border-color: var(--c-accent); background: var(--c-bg); color: var(--c-primary-dark); }

/* ----------------------- 案例截图画廊 ----------------------- */
.shot-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.shot-gallery-phone { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.shot-gallery-phone .shot-figure { max-width: 190px; justify-self: center; }
.shot-figure {
  margin: 0; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.shot-figure img { width: 100%; height: auto; display: block; }
.shot-back { text-align: center; margin-top: 34px; }
.case-trial {
  font-size: 13px; color: #8a6d1b; background: #fff8e6; border: 1px solid #ffe6a8;
  padding: 10px 14px; border-radius: 8px; margin: 0 0 16px;
}
.case-trial.online { color: #0d6b3f; background: #eafaf1; border-color: #b8ebcf; }
.case-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ----------------------- 系统试用列表 ----------------------- */
.trial-list { display: grid; gap: 20px; max-width: 860px; margin: 0 auto; }
.trial-item {
  display: flex; align-items: stretch; overflow: hidden;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); color: var(--c-ink); transition: all .2s;
}
.trial-item:hover { border-color: #cfe0ff; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.trial-thumb {
  width: 260px; flex: none; min-height: 160px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #eaf1fb, #d8e6fa);
  display: flex; align-items: center; justify-content: center;
}
.trial-thumb img { width: 100%; height: 100%; object-fit: cover; }
.trial-thumb.no-img::after { content: "图片占位"; color: var(--c-muted); font-size: 13px; }
.trial-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 28px 34px; }
.trial-name { font-size: 20px; font-weight: 700; color: var(--c-primary-dark); }
.trial-enter { color: var(--c-accent); font-weight: 600; font-size: 14px; }
.trial-item:hover .trial-name { color: var(--c-primary); }
.trial-desc { color: var(--c-muted); font-size: 14px; line-height: 1.7; }
.contact-trial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.contact-trial-item {
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 10px;
  padding: 14px 18px; text-align: center; font-weight: 600; color: var(--c-ink);
}

/* ----------------------- 表单 ----------------------- */
.form-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.form-card, .aside-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.form-row label .req { color: #d33; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1px solid var(--c-line); border-radius: 8px;
  font-size: 15px; font-family: inherit; background: #fbfcfe; transition: border .2s;
}
.form-control:focus { outline: none; border-color: var(--c-accent); background: #fff; box-shadow: 0 0 0 3px rgba(31,122,224,.12); }
.form-inline { display: flex; gap: 10px; }
.form-inline .form-control { flex: 1; }
.captcha-btn {
  white-space: nowrap; padding: 0 18px; border: 1px solid var(--c-accent); background: #fff;
  color: var(--c-accent); border-radius: 8px; cursor: pointer; font-size: 14px; font-family: inherit;
}
.captcha-btn:disabled { color: var(--c-muted); border-color: var(--c-line); cursor: not-allowed; }
.form-actions { margin-top: 26px; }

.notice {
  border-radius: 10px; padding: 16px 18px; font-size: 14px; margin-bottom: 16px;
}
.notice h4 { margin: 0 0 8px; font-size: 15px; }
.notice p, .notice ul { margin: 0 0 6px; }
.notice ul { padding-left: 20px; }
.notice-info { background: #eef5ff; border: 1px solid #cfe0ff; color: #14487f; }
.notice-warn { background: #fff8e6; border: 1px solid #ffe6a8; color: #7a5b0a; }
.notice-ok { background: #eafaf1; border: 1px solid #b8ebcf; color: #0d6b3f; }

/* ----------------------- 联系我们 ----------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px dashed var(--c-line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k { width: 96px; color: var(--c-muted); flex: none; }
.contact-list .v { color: var(--c-ink); font-weight: 500; }

/* 联系微信二维码 */
.wechat-box {
  display: flex; gap: 20px; align-items: center;
  margin-top: 22px; padding: 18px; border-radius: 12px;
  background: #f5f8fc; border: 1px solid var(--c-line);
}
.wechat-qr {
  width: 110px; height: 110px; flex: none; background: #fff; border: 1px solid var(--c-line);
  border-radius: 10px; padding: 6px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.wechat-qr img { width: 100%; height: 100%; object-fit: contain; }
.wechat-qr.no-img::after { content: "微信二维码"; color: var(--c-muted); font-size: 13px; }
.wechat-text h4 { margin: 0 0 8px; color: var(--c-primary-dark); }
.wechat-text p { margin: 0 0 6px; color: var(--c-muted); }
.wechat-text .wechat-tip { font-size: 13px; color: #9aa9bd; }
.map-frame { border: 0; width: 100%; min-height: 380px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.map-placeholder {
  min-height: 380px; border-radius: var(--radius); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 30px;
  background: repeating-linear-gradient(45deg, #eef2f8, #eef2f8 12px, #e6ecf6 12px, #e6ecf6 24px);
  color: var(--c-muted); border: 1px dashed #c3d2e6;
}
.map-note { margin: 12px 0 0; font-size: 13px; color: var(--c-muted); line-height: 1.9; }
.map-amap { height: 420px; overflow: hidden; }
/* 地图套进卡片后去掉内层阴影，避免“框里套框” */
.form-card .map-frame, .form-card .map-placeholder { box-shadow: none; }

/* ----------------------- 关于/历程/资质 ----------------------- */
.about-text p { margin: 0 0 18px; text-indent: 2em; }
.timeline { position: relative; margin: 0; padding: 0 0 0 26px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--c-line); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 3px solid var(--c-accent);
}
.timeline .tl-year { font-weight: 700; color: var(--c-primary); }
.qual-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.qual-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 18px; text-align: center; box-shadow: var(--shadow-sm);
}
.qual-card .thumb {
  position: relative; height: 180px; border-radius: 8px; background: linear-gradient(135deg, #eaf1fb, #d8e6fa);
  display: flex; align-items: center; justify-content: center; color: var(--c-muted);
  overflow: hidden; margin-bottom: 14px; font-size: 13px; text-align: center; gap: 6px;
}
.qual-card .thumb-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 10px; line-height: 1.5; }
.qual-card .thumb img { position: static; flex: 1 1 0; min-width: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; cursor: zoom-in; }
.qual-card h4 { margin: 0; font-size: 15px; }

/* ----------------------- 资质证书放大查看 ----------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 44px 24px;
  background: rgba(8, 18, 34, .86);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 86vh; border-radius: 6px; background: #fff;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .5); cursor: default;
}
.lightbox-close {
  position: absolute; top: 16px; right: 22px; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .32); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 30px; line-height: 1; cursor: pointer; transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .32); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 14px; background: rgba(255, 255, 255, .16);
  padding: 3px 12px; border-radius: 999px;
}

/* ----------------------- 证书水印（叠加显示） ----------------------- */
.qual-card .thumb::after,
.lightbox-stage::after {
  content: "武汉东之林科技有限公司\A 仅供展示，翻版必究";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-28deg);
  z-index: 3; pointer-events: none; white-space: pre; text-align: center;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 700; letter-spacing: 1px;
  color: rgba(11, 61, 145, .18);
}
.qual-card .thumb::after { font-size: 15px; }
.lightbox-stage { position: relative; display: flex; }
.lightbox-stage::after { font-size: 40px; color: rgba(11, 61, 145, .22); text-shadow: 0 1px 2px rgba(255, 255, 255, .5); }

/* ----------------------- 页脚 ----------------------- */
.site-footer { background: #0c243f; color: #b9c6d6; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; padding: 52px 20px 34px; }
.footer-col h4 { color: #fff; margin: 0 0 16px; font-size: 16px; }
.footer-col p { margin: 0 0 10px; font-size: 14px; }
.footer-col a { color: #b9c6d6; }
.footer-col a:hover { color: #fff; }
.footer-en { font-size: 12px; letter-spacing: .5px; opacity: .7; }
.footer-qr { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.footer-qr img { width: 60px; height: 60px; flex: none; border-radius: 8px; background: #fff; padding: 3px; object-fit: contain; }
.footer-qr span { font-size: 13px; line-height: 1.5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; }
.footer-bottom p { margin: 4px 0; }
.footer-bottom a { color: #b9c6d6; }
.footer-bottom a:hover { color: #fff; }

/* ----------------------- 响应式 ----------------------- */
@media (max-width: 960px) {
  .slide { grid-template-columns: 1fr; }
  .slide-media { min-height: 220px; }
  .form-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .entry-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .qual-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
    border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .hero h1 { font-size: 28px; }
  .hero-slogan { font-size: 16px; }
  .hero-inner { padding: 56px 20px 64px; }
  .slide-body { padding: 28px 24px; }
  .section { padding: 44px 0; }
  .wechat-box { flex-direction: column; align-items: flex-start; }
  .wechat-qr { width: 96px; height: 96px; }
  .trial-item { flex-direction: column; }
  .trial-thumb { width: 100%; min-height: 190px; }
}
