:root {
  --navy: #1e3a5f;
  --blue: #4a90e2;
  --deep-blue: #0052d9;
  --orange: #ff6b35;
  --muted: #f9fafb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; color: #0a0a0a; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; line-height: 1.5; background: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: min(100%, 1280px); margin: 0 auto; padding-inline: 32px; }

.site-header { position: sticky; z-index: 50; top: 0; background: white; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
.header-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center; background: var(--blue); color: white; font-size: 20px; font-weight: 700; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { color: var(--navy); font-size: 20px; }
.brand-copy small { color: #6b7280; font-size: 12px; margin-top: 2px; font-weight: 400; }
.desktop-nav { display: flex; align-items: center; gap: 0; margin: 0; }
.desktop-nav a { color: #374151; font-size: 18px; line-height: 20px; font-weight: 500; padding: 8px 16px; border-radius: 4px; transition: .2s; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a.on { color: var(--blue); background: #eff6ff; }
.header-phone { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: var(--orange); font-size: 18px; font-weight: 700; white-space: nowrap; }
.header-phone .phone-main { display: flex; align-items: center; gap: 3px; }
.header-phone svg { width: 30px; height: 30px; fill: currentColor; }
.header-phone small { font-size: 18px; line-height: 18px; color: #6b7280; font-weight: 400; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: #374151; margin: 5px 0; transition: .2s; }
.mobile-nav { border-top: 1px solid #e5e7eb; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: max-height .35s ease, opacity .3s ease, visibility .3s ease, padding .3s ease; }
.mobile-nav.open { max-height: 600px; opacity: 1; visibility: visible; padding: 8px 20px 16px; }
.mobile-nav a { display: flex; align-items: center; color: #374151; padding: 14px 12px; border-bottom: 1px solid #f3f4f6; font-size: 15px; min-height: 48px; }
.mobile-nav .mobile-phone { color: var(--orange); font-weight: 700; }
.mobile-nav .mobile-phone svg { width: 18px; height: 18px; margin-right: 6px; }

.hero { position: relative; height: 600px; overflow: hidden; }
.hero > img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(30 58 95 / .8), rgb(74 144 226 / .6)); }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: white; padding: 0 16px; }
.hero h1 { margin: 0 0 16px; font-size: 48px; line-height: 1; font-weight: 700; text-shadow: 0 10px 15px rgb(0 0 0 / .25); }
.hero p { margin: 0; font-size: 24px; color: #dbeafe; text-shadow: 0 1px 2px rgb(0 0 0 / .25); }

.section { padding-block: 64px; }
.muted { background: var(--muted); }
.center-title { color: var(--navy); text-align: center; font-size: 30px; line-height: 36px; margin: 0 0 16px; }
.center-lead { color: var(--gray-600); text-align: center;  margin: 0 auto 48px; font-size: 16px; }
.advantage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.advantage-card { border-radius: 8px; padding: 32px; text-align: center; background: var(--muted); transition: box-shadow .25s, transform .25s; }
.advantage-card:hover { box-shadow: 0 10px 22px rgb(0 0 0 / .1); transform: translateY(-2px); }
.icon-box { width: 80px; height: 80px; margin: 0 auto 16px; background: #fff; border-radius: 8px; display: grid; place-items: center; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.icon-box svg { width: 48px; height: 48px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.advantage-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 18px; }
.advantage-card p { margin: 0; color: var(--gray-600); font-size: 14px;  }

.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.about-copy { background: white; border-radius: 8px; box-shadow: var(--shadow); padding: 32px; }
.about-copy h2 { margin: 0 0 24px; color: var(--navy); font-size: 30px; line-height: 36px; }
.about-copy p { margin: 0 0 16px; color: var(--gray-700); font-size: 14px; line-height: 1.625; }
.about-copy p:nth-of-type(2) { margin-bottom: 24px; }
.primary-button { display: inline-block; color: #fff; background: var(--blue); border-radius: 999px; padding: 10px 24px; font-size: 14px; font-weight: 500; transition: background .2s; }
.primary-button:hover { background: var(--navy); }
.about-image { height: 320px; background: #f3f4f6; border-radius: 8px; overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: 24px; line-height: 32px; }
.section-heading a { color: var(--blue); font-size: 14px; line-height: 20px; font-weight: 500; }
.section-heading a:hover { color: var(--navy); }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.media-card { background: white; border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.media-card:hover { box-shadow: 0 18px 28px rgb(0 0 0 / .13); transform: translateY(-3px); }
.media-card > img { width: 350px; height: auto; object-fit: cover; background: #f3f4f6; }
.media-card > div { padding: 16px; }
.media-card h3 { margin: 0 0 4px; color: var(--navy); font-size: 16px; }
.media-card p { margin: 0; color: var(--gray-600); font-size: 12px; line-height: 16px; }

.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-card { display: flex; min-height: 160px; background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s; }
.article-card:hover { box-shadow: 0 18px 28px rgb(0 0 0 / .13); transform: translateY(-2px); }
.article-card > img { width: 256px; flex: 0 0 256px; object-fit: cover; }
.article-card[href^="/news/"] { min-height: 160px; height: 160px; }
.article-card[href^="/news/"] > img { height: 160px; }
.article-copy { min-width: 0; padding: 16px; display: flex; flex-direction: column; justify-content: center; }
.meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.meta span { color: var(--blue); background: #dbeafe; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.meta time { color: #6b7280; font-size: 12px; }
.article-copy h3 { color: var(--navy); font-size: 16px; margin: 0 0 8px; line-height: 1.45; }
.article-copy p { color: var(--gray-600); font-size: 14px; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

footer { background: #d6e9fc; padding: 64px 0 32px; }
.footer-cta { text-align: center; margin-bottom: 48px; }
.footer-cta h2 { color: var(--deep-blue); font-size: 36px; line-height: 40px; margin: 0 0 16px; }
.footer-cta p { color: #1f2937; font-size: 20px; line-height: 28px; margin: 0; }
.footer-rule { border-top: 1px solid #9ca3af; margin-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-grid h3 { color: var(--deep-blue); font-size: 20px; line-height: 28px; margin: 0 0 20px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.footer-links a { color: #1f2937; font-size: 16px; }
.footer-links a:hover { color: var(--deep-blue); }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-list p { display: flex; align-items: flex-start; gap: 12px; margin: 0; color: #1f2937; font-size: 16px; }
.contact-list p span:nth-child(2) { white-space: nowrap; }
.contact-list a:hover { color: var(--deep-blue); }
.contact-icon { width: 20px; height: 20px; color: var(--deep-blue); fill: currentColor; flex: 0 0 20px; }
.qr-block { display: flex; flex-direction: column; align-items: flex-start; }
.qr-box { width: 112px; height: 112px; background: white; border-radius: 8px; display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; }
.qr-box img { width: 112px; height: 112px; object-fit: cover; }
.qr-block p { color: #4b5563; font-size: 14px; margin: 0; }
.footer-grid + .footer-rule { margin-bottom: 24px; }
.copyright { color: #4b5563; text-align: center; font-size: 14px; line-height: 20px; margin: 0; }
.pagesize a {
  background: #fff;
  color: #666;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: inline-block;
  height: 34px;
  vertical-align: middle;
  line-height: 34px;
  width: 34px;
  margin: 5px;
}
.pagesize a.prev {
  background-image: url(../img/icon10.png);
  background-position: center center;
  background-repeat: no-repeat;
}
.pagesize a.next {
  background-image: url(../img/icon10-1.png);
  background-position: center center;
  background-repeat: no-repeat;
}
.pagesize a:hover, .pagesize a.on {
  background-color: #ffdb60;
  color: #000
}

.pagesize {
  text-align: center;
  padding: 30px 0;
}

.lc-pagination {
  text-align: center;
}
.lc-pagination ul {
  display: inline-block;
  list-style: none;
  overflow: hidden;
  margin: 10px;
}
.lc-pagination ul li {
  display: inline-block;
  float: left;
  margin: 10px 5px;
}
.lc-pagination ul li a {
  text-decoration: none;
  display: inline-block;
  padding: 2px 5px;
  color: #ccc;
  background-color: white;
}
.lc-pagination ul li i {
  padding-top: 8px;
  display: inline-block;
}
.lc-pagination ul li a:hover,
.lc-pagination ul li.current a {
  background-color: #4a90e2;
  color: white;
}

.pagesize a {
  background: #fff;
  color: #666;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: inline-block;
  height: 34px;
  vertical-align: middle;
  line-height: 34px;
  width: 34px;
  margin: 5px;
}
.pagesize a.prev {
  background-image: url(../img/icon10.png);
  background-position: center center;
  background-repeat: no-repeat;
}
.pagesize a.next {
  background-image: url(../img/icon10-1.png);
  background-position: center center;
  background-repeat: no-repeat;
}
.pagesize a:hover, .pagesize a.on {
  background-color: #348ff0;
  color: #000
}


@media (max-width: 1180px) {
  .desktop-nav a { padding-inline: 10px; }
  .desktop-nav { margin-right: 16px; }
  .header-phone { font-size: 16px; }
  .header-phone small { font-size: 11px; line-height: 14px; }
}

@media (max-width: 1023px) {
  .container { padding-inline: 24px; }
  .desktop-nav { display: none; }
  .header-phone { display: flex; margin-left: auto; margin-right: 28px; }
  .menu-toggle { display: block; }
  .mobile-nav.open { display: block; }
  .header-inner { height: 80px; }
  .advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .header-inner { position: relative; }
  .header-phone { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
  .menu-toggle { margin-left: auto; }
  .mobile-nav { padding: 8px 24px 16px; }
  .mobile-nav a { padding: 14px 16px; font-size: 16px; line-height: 24px; }
  .mobile-nav a.on { color: #fff; border-radius: 8px; background: var(--blue); }
  .mobile-nav .mobile-phone { margin-top: 12px; border: 0; border-radius: 8px; background: #fff7ed; }
}

@media (max-width: 1023px) {
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 767px) {
  .header-phone .phone-main { display: flex; align-items: center; gap: 6px; }
  html { scroll-padding-top: 64px; }
  .container { padding-inline: 16px; }
  .header-inner { height: 64px; }
  .header-phone { font-size: 13px; gap: 1px; }
  .header-phone svg { width: 18px; height: 18px; }
  .header-phone small { font-size: 13px; line-height: 12px; }
  .header-phone:after {
    content: "";
    display: inline-block;
    position: absolute;
    left: 10px;
    top:10px;
    height: 40px;
  }
  .brand { gap: 8px; }
  .brand-mark { width: 40px; height: 40px; font-size: 18px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { display: none; }
  .hero { max-height: 380px; height: 180px; }
  .hero > img { object-position: center; }
  .hero h1 { font-size: 32px; line-height: 1.15; }
  .hero p { font-size: 18px; }
  .section { padding-block: 20px; }
  .center-title, .about-copy h2 { font-size: 24px; line-height: 32px; }
  .center-lead { font-size: 14px; line-height: 20px; margin-bottom: 32px; }
  #training .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; }
  .about-grid, .footer-grid { grid-template-columns: 1fr; }
  #certificates .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; }
  .advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; }
  .advantage-card { padding: 20px; }
  .icon-box { width: 64px; height: 64px; margin-bottom: 12px; }
  .icon-box svg { width: 40px; height: 40px; }
  .advantage-card h3 { font-size: 16px; line-height: 24px; }
  .advantage-card p { font-size: 12px; line-height: 16px; }
  .advantage-card p { white-space: normal; }
  .about-grid { gap: 32px; }
  .about-copy { padding: 24px; }
  .about-copy h2 { margin-bottom: 16px; }
  .primary-button { line-height: 20px; }
  .primary-button { min-height: 44px; padding: 12px 24px; font-size: 15px; display: inline-flex; align-items: center; }
  .about-image { height: 160px; }
  .section-heading { gap: 8px; margin-bottom: 20px; }
  .section-heading h2 { font-size: 18px; line-height: 26px; white-space: nowrap; }
  .section-heading a { flex-shrink: 0; white-space: nowrap; }
  .card-grid { gap: 16px; }
  .media-card > img { height: auto;width: 100%; }
  .media-card > div { padding: 12px; }
  .media-card h3 { font-size: 14px; line-height: 20px; }
  .article-card { flex-direction: column; }
  .article-card[href^="/news/"] { height: auto; min-height: 0; }
  .article-card > img { width: 100%; height: 160px; flex-basis: 160px; }
  #qna .article-card { flex-direction: row; min-height: 0; }
  #qna .article-card > img { width: 150px; height: 90px; flex: 0 0 150px; align-self: stretch; object-fit: cover; }
  #qna .article-copy { padding: 12px 8px; justify-content: center; }
  #news .article-card { flex-direction: row; min-height: 0; }
  #news .article-card > img { width: 150px; height: 90px; flex: 0 0 150px; align-self: stretch; object-fit: cover; }
  #news .article-copy { padding: 12px 16px; justify-content: center; }
  .article-list { gap: 12px; }
  .article-copy { padding: 12px; }
  .article-copy .meta { height: 20px; margin-bottom: 8px; gap: 0px}
  .article-copy .meta span { padding: 2px 4px; line-height: 16px; }
  .article-copy .meta time { line-height: 16px; }
  .article-copy h3 { margin-bottom: 0; font-size: 13px; line-height: 18px; }
  .article-copy p { display: none; }
  .lc-pagination.pagesize { padding: 5px 0; }
  .lc-pagination ul { margin: 5px; }
  .lc-pagination ul li { margin: 5px 3px; }
  .lc-pagination ul li a { padding: 2px 4px; }
  footer { padding: 32px 0 24px; }
  .footer-cta { margin-bottom: 24px; }
  .footer-cta h2 { font-size: 20px; line-height: 28px; }
  .footer-cta p { font-size: 14px; line-height: 20px; }
  .footer-rule { margin-bottom: 20px; }
  .footer-grid { gap: 20px; margin-bottom: 20px; }
  .footer-grid h3 { font-size: 16px; margin-bottom: 12px; color: var(--deep-blue); font-weight: 600; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
  .footer-links a, .contact-list p { font-size: 13px; line-height: 18px; }
  .footer-links a { min-height: auto; display: inline-flex; align-items: center; }
  .contact-list { gap: 8px; }
  .contact-list p { gap: 8px; }
  .contact-list p span:nth-child(2) { white-space: normal; }
  .contact-icon { width: 18px; height: 18px; flex: 0 0 18px; display: inline-flex; align-items: center; justify-content: center; }
  .qr-block { align-items: center; }
  .qr-box, .qr-box img { width: 96px; height: 96px; }
  .qr-block p { font-size: 12px; line-height: 16px; }
  .footer-grid + .footer-rule { margin-bottom: 16px; }
  .copyright { font-size: 12px; line-height: 16px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 30px; line-height: 36px; }
  .hero p { font-size: 18px; }
}

/* 横屏手机适配 */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { height: 240px; }
  .hero h1 { font-size: 24px; line-height: 30px; }
  .hero p { font-size: 16px; margin-top: 4px; }
  .header-inner { height: 52px; }
  .section { padding-block: 28px; }
  .mobile-nav.open { max-height: calc(100vh - 52px); overflow-y: auto; }
}

/* 触摸设备禁用 hover 粘滞效果 */
@media (hover: none) {
  .certificate-list-card:hover,
  .training-list-card:hover,
  .media-card:hover,
  .article-card:hover { transform: none; box-shadow: var(--shadow); }
}

/* 移动端防溢出 */
@media (max-width: 767px) {
  img { max-width: 100%; height: auto; }
  table { display: block; width: 100%; overflow-x: auto; }
  iframe { max-width: 100%; }
  pre, code { white-space: pre-wrap; word-wrap: break-word; }
  input, select, textarea { font-size: 16px !important; }
}

/* ========================================
   图片点击查看大图弹窗 (Lightbox)
   ======================================== */
.shw-big { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lightbox.active { display: flex; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  display: block;
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: -4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.35); }

@media (max-width: 767px) {
  .lightbox { padding: 8px; }
  .lightbox-content, .lightbox-img { max-width: 96vw; max-height: 96vh; }
  .lightbox-close {
    width: 44px;
    height: 44px;
    top: -52px;
    right: 0;
    font-size: 28px;
  }
}
