:root {
  --brand: #d80c18;
  --accent: #ce7112;
  --ink: #30333b;
  --muted: #70747d;
  --line: #e7e7e7;
  --soft: #f5f5f5;
  --header-height: calc(68px + env(safe-area-inset-top, 0px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: var(--header-height);
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid #eee;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 18px;
}
.site-logo { max-width: 190px; }
.site-logo img { width: auto; max-width: 100%; max-height: 46px; }
.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.menu-toggle span { width: 23px; height: 2px; border-radius: 2px; background: #333; transition: .25s ease; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  background: #fff;
  transition: max-height .3s ease;
}
.menu-open .mobile-nav {
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  visibility: visible;
  pointer-events: auto;
  border-top: 1px solid #eee;
}
.mobile-nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-height: 49px;
  padding: 13px 22px;
  border-bottom: 1px solid #f1f1f1;
  font-size: 15px;
}
.mobile-nav a span { color: #999; font-size: 10px; }
.mobile-nav a[aria-current="page"] { color: var(--brand); font-weight: bold; }
.mobile-nav .mobile-nav__phone { justify-content: center; color: var(--brand); font-weight: bold; }
.menu-mask { position: fixed; z-index: 9998; inset: var(--header-height) 0 0; display: none; background: rgba(0, 0, 0, .45); }
.menu-open .menu-mask { display: block; }
body.menu-open { overflow: hidden; }

.layui-carousel { background: #e8e8e8; }
.layui-carousel img { width: 100%; height: 100%; object-fit: cover; }
.layui-carousel-arrow { display: none !important; }
.layui-carousel-ind { top: -25px !important; }
.layui-carousel-ind ul { background: transparent !important; }
.layui-carousel-ind li { background: rgba(255, 255, 255, .75) !important; }
.layui-carousel-ind .layui-this { background: var(--brand) !important; }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 330px;
  padding: 54px 20px 48px;
  overflow: hidden;
  background: #252a34;
  color: #fff;
}
.hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(24, 28, 36, .94) 0%, rgba(24, 28, 36, .78) 48%, rgba(24, 28, 36, .35) 100%), var(--hero-image, none);
  background-position: center;
  background-size: cover;
  content: "";
}
.hero__inner { position: relative; width: 100%; max-width: 1160px; margin: 0 auto; }
.hero__en { margin: 0 0 10px; color: #f0b7b7; font-family: "Times New Roman", Times, serif; font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: 34px; line-height: 1.25; }
.hero__intro { max-width: 690px; margin: 16px 0 0; color: #e2e2e2; font-size: 15px; line-height: 1.9; }
.hero--detail { min-height: 360px; }
.hero--detail h1 { font-size: 38px; }

.breadcrumbs { padding: 13px 0; border-bottom: 1px solid #eee; background: #fafafa; color: #888; font-size: 12px; }
.breadcrumbs__inner { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 18px; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span { margin: 0 7px; color: #bbb; }

.section { padding: 48px 18px; }
.section--soft { background: var(--soft); }
.section--dark { background: #282c35; color: #fff; }
.section__inner { width: 100%; max-width: 1160px; margin: 0 auto; }
.section-head { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.section-head h2 { margin: 0; font-size: 28px; line-height: 1.35; }
.section-head p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.section-head::after { display: block; width: 48px; height: 3px; margin: 16px auto 0; background: var(--brand); content: ""; }
.section--dark .section-head p { color: #c5c8cf; }

.service-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.service-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, .1); }
.service-card__media { flex: 0 0 37%; min-height: 128px; overflow: hidden; background: #eee; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__body { min-width: 0; padding: 16px; }
.service-card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.4; }
.service-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.service-card__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; color: var(--brand); font-size: 12px; font-weight: bold; }

.overview { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; }
.overview h2 { margin: 0 0 16px; font-size: 27px; }
.overview p { margin: 0; color: var(--muted); font-size: 15px; line-height: 2; }
.overview__visual { overflow: hidden; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); }
.overview__visual img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.stat { padding: 15px 8px; border-radius: 8px; background: #f6f6f6; text-align: center; }
.stat strong { display: block; color: var(--brand); font-size: 22px; }
.stat span { display: block; margin-top: 5px; color: #888; font-size: 11px; }

.feature-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.feature-card { padding: 23px; border: 1px solid #e8e8e8; border-radius: 10px; background: #fff; }
.feature-card__number { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 50%; background: #fdecec; color: var(--brand); font-size: 14px; font-weight: bold; }
.feature-card h3 { margin: 0 0 10px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }

.scenario-list { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.scenario-list li { position: relative; padding: 17px 18px 17px 48px; border-radius: 8px; background: #fff; box-shadow: 0 4px 15px rgba(0, 0, 0, .05); font-size: 14px; line-height: 1.75; }
.scenario-list li::before { position: absolute; top: 18px; left: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; content: "✓"; font-size: 12px; line-height: 18px; text-align: center; }

.process { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: process; }
.process li { position: relative; padding: 20px 20px 20px 62px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 9px; background: rgba(255, 255, 255, .05); counter-increment: process; }
.process li::before { position: absolute; top: 20px; left: 18px; color: #ef8b8b; content: "0" counter(process); font-size: 20px; font-weight: bold; }
.process h3 { margin: 0 0 7px; font-size: 16px; }
.process p { margin: 0; color: #c6c9d0; font-size: 13px; line-height: 1.75; }

.related-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.related-card { display: flex; align-items: center; gap: 14px; padding: 13px; border: 1px solid #e8e8e8; border-radius: 9px; background: #fff; }
.related-card img { flex: 0 0 82px; width: 82px; height: 62px; border-radius: 6px; object-fit: cover; }
.related-card h3 { margin: 0 0 5px; font-size: 15px; }
.related-card p { margin: 0; color: #888; font-size: 12px; line-height: 1.6; }

.faq-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.faq-item { overflow: hidden; border: 1px solid #e5e5e5; border-radius: 9px; background: #fff; }
.faq-item summary { position: relative; padding: 18px 48px 18px 20px; font-size: 15px; font-weight: bold; line-height: 1.6; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 18px; right: 20px; color: var(--brand); content: "+"; font-size: 22px; font-weight: normal; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 20px 20px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.article-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.article-card { overflow: hidden; border-radius: 9px; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .06); }
.article-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-card__body { padding: 16px; }
.article-card h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.55; }
.article-card p { display: -webkit-box; margin: 0; overflow: hidden; color: #777; font-size: 13px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.article-card time { display: block; margin-top: 12px; color: #999; font-size: 11px; }

.article { padding-top: 36px; }
.article__inner { width: 100%; max-width: 860px; margin: 0 auto; }
.article__header { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article__header h1 { margin: 0; font-size: 28px; line-height: 1.45; }
.article__meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 15px; color: #999; font-size: 12px; }
.article__meta span { color: var(--brand); }
.article__cover { margin: 28px 0; }
.article__cover img { width: 100%; border-radius: 10px; }
.article__body { color: #41444c; font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.article__body p { margin: 0 0 20px; }
.article__body h1, .article__body h2, .article__body h3, .article__body h4, .article__body h5, .article__body h6 { margin: 30px 0 16px; color: var(--ink); line-height: 1.5; }
.article__body h1 { font-size: 27px; }
.article__body h2 { font-size: 24px; }
.article__body h3 { font-size: 21px; }
.article__body img { height: auto; max-width: 100%; margin: 24px auto; border-radius: 6px; }
.article__body a { color: var(--brand); text-decoration: underline; }
.article__body blockquote { margin: 24px 0; padding: 16px 20px; border-left: 4px solid var(--brand); background: var(--soft); color: #666; }
.article__body ul, .article__body ol { margin: 0 0 20px; padding-left: 24px; }
.article__body table { display: block; width: 100%; margin: 24px 0; overflow-x: auto; border-collapse: collapse; }
.article__body th, .article__body td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.article__body th { background: var(--soft); }

.cta { padding: 42px 18px; background: linear-gradient(120deg, #b90e1a, #df2a35); color: #fff; text-align: center; }
.cta h2 { margin: 0; font-size: 26px; }
.cta p { margin: 10px auto 22px; color: #ffe2e2; font-size: 14px; line-height: 1.8; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 25px; border: 0; border-radius: 6px; background: #fff; color: var(--brand); font-size: 14px; font-weight: bold; cursor: pointer; }
.btn--dark { background: #282c35; color: #fff; }

.contact { padding: 48px 18px; background: #f7f7f7; }
.contact__inner { width: 100%; max-width: 900px; margin: 0 auto; }
.contact h2 { margin: 0; font-size: 26px; text-align: center; }
.contact__subtitle { margin: 9px 0 26px; color: #999; font-family: "Times New Roman", Times, serif; font-size: 15px; text-align: center; }
.contact-info { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
.contact-info a, .contact-address { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border-radius: 8px; background: #fff; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.contact-info i, .contact-address i { flex: 0 0 auto; color: var(--brand); font-size: 18px; }
.contact-form { padding: 18px; border-radius: 10px; background: #fff; box-shadow: 0 5px 20px rgba(0, 0, 0, .06); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.contact-form .layui-input, .contact-form .layui-textarea { border-color: #d8d8d8; border-radius: 6px; }
.contact-form .layui-textarea { min-height: 110px; }
.contact-submit { width: 100%; height: 45px; margin-top: 5px; border-radius: 6px; background: var(--brand); line-height: 45px; }
.contact-submit[disabled] { opacity: .65; cursor: wait; }
.form-status { min-height: 18px; margin-top: 9px; color: #666; font-size: 12px; line-height: 1.6; text-align: center; }

.custom-form { display: grid; grid-template-columns: 1fr; gap: 15px; }
.custom-form .layui-input, .custom-form .layui-textarea { border-color: #d8d8d8; border-radius: 6px; }
.custom-form .layui-textarea { min-height: 120px; }
.custom-options { display: flex; flex-wrap: wrap; gap: 9px; }
.custom-options label { position: relative; cursor: pointer; }
.custom-options input { position: absolute; opacity: 0; pointer-events: none; }
.custom-options span { display: block; padding: 9px 15px; border: 1px solid #ddd; border-radius: 5px; color: #666; font-size: 13px; }
.custom-options input:checked + span { border-color: var(--brand); background: #fff1f1; color: var(--brand); }

.site-footer { padding: 34px 18px 24px; background: #20232a; color: #fff; }
.site-footer__inner { width: 100%; max-width: 1160px; margin: 0 auto; }
.footer-block { margin-bottom: 25px; }
.footer-block h3 { margin: 0 0 12px; font-size: 15px; }
.footer-company { margin-bottom: 6px; font-size: 16px; font-weight: bold; }
.footer-text, .footer-contact { color: #d2d2d2; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.footer-text a, .footer-contact a { color: #fff; text-decoration: underline; }
.footer-qr { display: flex; gap: 18px; }
.footer-qr figure { width: 96px; margin: 0; text-align: center; }
.footer-qr img { width: 90px; height: 90px; border-radius: 3px; background: #fff; object-fit: contain; }
.footer-qr figcaption { margin-top: 7px; color: #ccc; font-size: 12px; }
.footer-copyright { padding-top: 17px; border-top: 1px solid #3a3d44; color: #aaa; font-size: 12px; line-height: 1.7; text-align: center; }

.back-top { position: fixed; z-index: 9900; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(32, 35, 42, .88); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top i { font-size: 22px; }

@media (min-width: 560px) {
  .service-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenario-list, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .form-full { grid-column: 1 / -1; }
  .contact-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-address { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  .site-logo { max-width: 220px; }
  .site-logo img { max-height: 54px; }
  .hero { min-height: 390px; padding: 70px 30px; }
  .hero h1 { font-size: 46px; }
  .hero__intro { font-size: 16px; }
  .hero--detail h1 { font-size: 48px; }
  .section { padding: 66px 30px; }
  .section-head h2 { font-size: 34px; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .service-card { display: block; }
  .service-card__media { width: 100%; min-height: 0; aspect-ratio: 16 / 10; }
  .service-card__body { padding: 20px; }
  .service-card h3 { font-size: 19px; }
  .overview { grid-template-columns: 1.05fr .95fr; gap: 54px; }
  .overview h2 { font-size: 34px; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .scenario-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact { padding: 64px 30px; }
  .contact-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-form .form-full { grid-column: 1 / -1; }
  .site-footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
  .footer-copyright { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
  :root { --header-height: calc(80px + env(safe-area-inset-top, 0px)); }
  .site-header { display: flex; align-items: center; }
  .site-header__inner { width: auto; max-width: none; height: 80px; margin: 0; padding-right: 0; padding-left: max(20px, calc((100% - 1200px) / 2)); }
  .menu-toggle, .menu-mask { display: none !important; }
  .mobile-nav { display: flex; flex: 1; align-items: center; justify-content: flex-end; max-height: none; padding-right: max(20px, calc((100% - 1200px) / 2)); overflow: visible; visibility: visible; pointer-events: auto; }
  .mobile-nav a { display: block; min-height: 80px; padding: 15px 14px 0; border: 0; text-align: center; font-size: 14px; }
  .mobile-nav a span { display: block; margin-top: 6px; font-size: 9px; }
  .mobile-nav .mobile-nav__phone { min-height: 40px; margin-left: 8px; padding: 10px 18px; border-radius: 4px; background: var(--brand); color: #fff; line-height: 20px; }
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
