:root {
  --red: #C8102E;
  --red-dark: #a00d24;
  --ink: #1c1c1e;
  --gray: #6e6e73;
  --line: #e8e8ec;
  --bg-soft: #f7f7f9;
  --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: #fff; line-height: 1.7; font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: .5px; }
.logo img { height: 40px; width: auto; display: block; }
.main-nav { display: flex; gap: 28px; }
.nav-link { font-size: 15px; color: var(--gray); padding: 6px 0; border-bottom: 2px solid transparent; transition: .2s; }
.nav-link:hover { color: var(--ink); border-color: var(--red); }
.nav-cta { color: #fff !important; background: var(--red); padding: 8px 18px !important; border-radius: 999px; border: none; }
.nav-cta:hover { background: var(--red-dark); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--gray); }
.lang-switch:hover { color: var(--red); border-color: var(--red); }
.menu-btn { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink); }

/* hero (kept for pages that use it) */
.hero {
  background: linear-gradient(135deg, #fff 0%, #fdf5f6 55%, #fbe9ec 100%);
  padding: 110px 0 90px; text-align: center;
}
.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: 1px; }
.hero h1::after { content: ""; display: block; width: 64px; height: 4px; background: var(--red); margin: 22px auto 0; border-radius: 2px; }
.hero p { color: var(--gray); margin-top: 16px; font-size: 17px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; }
.btn { display: inline-block; padding: 12px 32px; border-radius: 999px; font-size: 15px; transition: .2s; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* home slideshow (restored from old WidgetKit banner) */
.slideshow { position: relative; height: 540px; overflow: hidden; background: #111; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease; }
.slide.active { opacity: 1; visibility: visible; z-index: 1; }
.slide-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1);
}
.slide.active .slide-bg { animation: kenburns 8s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.12) translate(-2.5%, -2.5%); }
}
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,0) 100%);
  display: flex; align-items: center;
}
.slide-overlay .wrap { width: 100%; }
.slide-title {
  color: #fff; font-size: 42px; font-weight: 800; line-height: 1.35; letter-spacing: 1px;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
  transform: translateY(24px); opacity: 0;
}
.slide-content {
  color: rgba(255,255,255,.88); font-size: 18px; margin-top: 12px; letter-spacing: 4px;
  transform: translateY(24px); opacity: 0;
}
.slide.active .slide-title, .slide.active .slide-content {
  animation: slideUp .9s .25s ease forwards;
}
.slide.active .slide-content { animation-delay: .45s; }
@keyframes slideUp { to { transform: translateY(0); opacity: 1; } }
.slide-dots {
  position: absolute; bottom: 26px; left: 0; right: 0; display: flex; gap: 10px;
  justify-content: center; z-index: 3;
}
.slide-dot {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
  background: transparent; cursor: pointer; padding: 0; transition: .25s;
}
.slide-dot.active { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: rgba(0,0,0,.25); color: #fff; border: none; font-size: 34px; line-height: 1;
  width: 48px; height: 64px; cursor: pointer; opacity: 0; transition: .25s; border-radius: 4px;
}
.slideshow:hover .slide-arrow { opacity: 1; }
.slide-arrow:hover { background: var(--red); }
.slide-arrow.prev { left: 16px; }
.slide-arrow.next { right: 16px; }
@media (max-width: 900px) {
  .slideshow { height: 340px; }
  .slide-title { font-size: 24px; }
  .slide-content { font-size: 14px; }
  .slide-arrow { display: none; }
}

/* solutions: new topic cards */
.page-lead { color: var(--gray); margin-top: 14px; max-width: 720px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.topic-img { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--bg-soft); }
.topic-img img { width: 100%; height: 165px; object-fit: cover; display: block; transition: .35s; }
.topic-card:hover .topic-img img { transform: scale(1.04); }
.topic-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.topic-card { overflow: hidden; padding: 0; }
.sol-card .sol-card-img { height: 110px; overflow: hidden; border-radius: 6px; background: var(--bg-soft); }
.sol-card .sol-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sol-card { min-height: 0; padding: 0; overflow: hidden; }
.sol-card h3 { padding: 10px 12px 12px; font-size: 15px; }
.sol-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; background: var(--bg-soft); }
.sol-hero img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.topic-card {
  display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: .25s;
}
.topic-card:hover { border-color: var(--red); box-shadow: 0 12px 28px rgba(200,16,46,.10); transform: translateY(-3px); }
.topic-card h3 { font-size: 17px; line-height: 1.45; }
.topic-card p { font-size: 13.5px; color: var(--gray); line-height: 1.65; }
.t-icon {
  width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(200,16,46,.07); color: var(--red);
}
.t-icon svg { width: 22px; height: 22px; }
.t-icon.big { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 22px; }
.t-icon.big svg { width: 30px; height: 30px; }
.sol-card .t-icon { background: transparent; }
.sol-card:hover .t-icon { background: rgba(200,16,46,.07); }
.sol-detail { max-width: 780px; }
.sol-desc { font-size: 17px; color: #444; line-height: 1.8; margin: 18px 0 8px; }
.sol-sub { font-size: 20px; margin: 36px 0 16px; }
.sol-points { margin: 0; padding: 0; list-style: none; }
.sol-points li {
  position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line);
  font-size: 15.5px; color: #333;
}
.sol-points li::before {
  content: ""; position: absolute; left: 6px; top: 20px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--red);
}
.sol-cta { margin-top: 36px; }

/* home sections */
.home-sec { padding: 72px 0 20px; }
.home-sec h2 { text-align: center; font-size: 28px; margin-bottom: 36px; }
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sol-card {
  background: var(--bg-soft); border-radius: var(--radius); overflow: hidden;
  padding: 26px 22px; text-align: center; border: 1px solid transparent; transition: .25s;
  display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 150px; justify-content: center;
}
.sol-card img { max-height: 90px; object-fit: contain; }
.sol-card h3 { font-size: 17px; }
.sol-card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(200,16,46,.10); }
.home-brands { padding-bottom: 60px; }
.brand-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.brand-tag {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 22px;
  color: var(--gray); font-size: 15px; transition: .2s;
}
.brand-tag:hover { border-color: var(--red); color: var(--red); }
/* partner & client logo marquees (restored from old slider widgets) */
.home-logos { padding: 48px 0 12px; }
.home-logos h2 { text-align: center; font-size: 24px; margin-bottom: 28px; }
.home-clients { background: var(--bg-soft); padding: 48px 0; margin-top: 28px; }
.logo-marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; align-items: center; gap: 56px; width: max-content; animation: marquee 30s linear infinite; padding: 6px 28px; }
.home-clients .logo-track { animation-duration: 40s; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-item { height: 64px; width: auto; max-width: 150px; object-fit: contain; flex: 0 0 auto; filter: grayscale(20%); transition: .25s; }
.home-clients .logo-item { height: 64px; }
.logo-item:hover { filter: none; transform: scale(1.08); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.home-news { background: var(--bg-soft); padding: 64px 0; }
.news-list { display: grid; gap: 0; }
.news-item { display: flex; align-items: baseline; gap: 24px; padding: 18px 8px; border-bottom: 1px solid var(--line); transition: .2s; }
.news-item:hover { background: #fff; padding-left: 16px; }
.news-item time { color: var(--red); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.news-item h3 { font-size: 16px; font-weight: 500; }

/* listing */
.page { padding: 56px 0 80px; }
.page-head h1 { font-size: 32px; margin-bottom: 8px; }
.page-head::after { content: ""; display: block; width: 48px; height: 3px; background: var(--red); border-radius: 2px; margin: 14px 0 0; }
.cat-title { font-size: 22px; margin: 44px 0 20px; color: var(--ink); }
.cat-block:first-of-type .cat-title { margin-top: 36px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-banner { margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.cat-banner img { width: 100%; height: 230px; object-fit: cover; display: block; }

.card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .25s; background: #fff;
}
.card:hover { border-color: var(--red); box-shadow: 0 12px 28px rgba(0,0,0,.08); transform: translateY(-3px); }
.card-img { height: 170px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img img { max-height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 16px; line-height: 1.5; }
.card-body p { font-size: 13.5px; color: var(--gray); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-more { margin-top: auto; color: var(--red); font-size: 13.5px; }

/* article */
.article .crumbs { color: var(--gray); font-size: 13.5px; margin-bottom: 22px; }
.article .crumbs a:hover { color: var(--red); }
.a-title { font-size: 30px; line-height: 1.4; }
.a-meta { color: var(--gray); font-size: 13.5px; margin: 12px 0 30px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.a-content { font-size: 16px; }
.a-content img { border-radius: 8px; margin: 14px 0; }
.a-content p { margin: 12px 0; }
.a-content h1, .a-content h2, .a-content h3 { margin: 26px 0 12px; }
.a-content ul, .a-content ol { margin: 12px 0 12px 24px; }
.a-content table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.a-content td, .a-content th { border: 1px solid var(--line); padding: 8px 12px; font-size: 14.5px; }
.a-back { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.a-back a { color: var(--red); font-size: 14.5px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 40px; }
/* contact page (old-site style: office cards) */
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
.office-card {
  border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: var(--radius); padding: 22px 24px; background: #fff;
}
.office-card h3 { font-size: 17px; margin-bottom: 12px; }
.office-card p { font-size: 14px; color: var(--gray); margin: 6px 0; }
.office-card strong { color: var(--ink); }
.office-card a:hover { color: var(--red); }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-form-card { margin-top: 8px; max-width: 640px; }
.contact-form-card h3 { margin-bottom: 18px; }
.contact-card p { margin: 8px 0; color: var(--gray); }
.contact-card strong { color: var(--ink); }
.contact-form { display: grid; gap: 14px; }
.contact-form input, .contact-form textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 15px;
  font-family: inherit; outline: none; transition: .2s; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--red); }
.contact-form button { border: none; cursor: pointer; justify-self: start; }

/* footer */
.site-footer { background: #16161a; color: #b9b9c0; margin-top: 40px; padding: 56px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 40px; padding-bottom: 44px; }
.f-logo { margin-bottom: 12px; }
.f-logo img { height: 40px; width: auto; }
.f-logo em { font-style: normal; color: var(--red); }
.site-footer h4 { color: #fff; font-size: 14.5px; margin: 16px 0 6px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2a2a30; padding: 20px 24px; font-size: 13px; color: #7c7c85; }
.footer-bottom p { margin: 4px 0; }
.footer-bottom a { color: #9a9aa3; transition: .2s; }
.footer-bottom a:hover { color: #fff; }
.beian { height: 14px; vertical-align: -2px; margin: 0 4px 0 8px; opacity: .85; }

/* decorative images restored from old site */
.slideshow.mini { height: 260px; margin-bottom: 28px; border-radius: var(--radius); }
.contact-banner {
  height: 240px; border-radius: var(--radius); margin: 32px 0 8px;
  background-size: cover; background-position: center;
}
.form-icon { height: 26px; vertical-align: -6px; margin-right: 8px; border-radius: 50%; }
.beian { height: 14px; vertical-align: -2px; margin-right: 6px; opacity: .8; }

/* responsive */
@media (max-width: 900px) {
  .slideshow.mini { height: 160px; }
  .contact-banner { height: 150px; }
}

/* responsive */
@media (max-width: 900px) {
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; padding: 10px 24px 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(0,0,0,.06);
  }
  .main-nav.open { display: flex; }
  .main-nav .nav-link { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 14px; text-align: center; }
  .menu-btn { display: block; }
  .sol-grid, .grid, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== news (WeChat album feed) ===== */
.year-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.year-chip {
  font-size: 13px; padding: 6px 14px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--gray); transition: .2s;
}
.year-chip:hover { border-color: var(--ink); color: var(--ink); }
.year-chip.active { background: var(--red); border-color: var(--red); color: #fff; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 24px; }
.news-card { display: block; }
.news-cover {
  aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-soft); margin-bottom: 12px;
}
.news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: .4s; }
.news-card:hover .news-cover img { transform: scale(1.04); }
.news-card-body time { font-size: 13px; color: var(--gray); letter-spacing: .3px; }
.news-card-body h3 {
  font-size: 16px; font-weight: 600; line-height: 1.55; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card:hover h3 { color: var(--red); }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 44px 0 0; }
.pager a, .pager span.pager-num, .pager .pager-gap {
  font-size: 14px; min-width: 36px; text-align: center; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 8px; color: var(--gray); transition: .2s;
}
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager .pager-num.active { background: var(--red); border-color: var(--red); color: #fff; }
.pager .pager-arrow { padding: 7px 14px; }
.pager .pager-arrow.disabled { opacity: .4; }
.pager .pager-gap { border: 0; }
.news-count { margin-top: 16px; font-size: 13px; color: var(--gray); }

.na-cover { border-radius: var(--radius); overflow: hidden; margin: 24px 0 30px; background: var(--bg-soft); }
.na-cover img {
  width: 100%; max-height: 580px; object-fit: contain; display: block;
  background: var(--bg-soft);
}
.na-body { font-size: 16.5px; line-height: 1.95; color: #2c2c2e; }
.na-body p { margin: 0 0 18px; }
.na-body figure { margin: 26px 0; }
.na-body figure img { width: 100%; border-radius: 8px; display: block; }
.na-source {
  margin: 34px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--gray);
}
.na-source a { color: var(--red); }
.na-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0 0; }
.na-nav a {
  display: block; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 14px; line-height: 1.6; transition: .2s;
}
.na-nav a:hover { border-color: var(--red); color: var(--red); }
.na-nav a span { display: block; font-size: 12px; color: var(--gray); margin-bottom: 4px; }
.na-next { text-align: right; }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .na-nav { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ===== 首页解决方案：两排轮循（每排可见 3 个） ===== */
.sol-marquee {
  margin-top: 28px; display: grid; gap: 22px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.sol-track {
  display: flex; gap: 20px; width: max-content; padding-right: 20px;
  animation: marquee 78s linear infinite;
}
.sol-track-b { animation-duration: 96s; }
.sol-marquee:hover .sol-track { animation-play-state: paused; }
.sol-track .sol-card {
  flex: 0 0 344px; aspect-ratio: 1.618 / 1;      /* 黄金分割横矩形 */
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; overflow: hidden; transition: .25s;
}
.sol-track .sol-card:hover {
  border-color: var(--red); box-shadow: 0 12px 26px rgba(200,16,46,.10);
  transform: translateY(-3px);
}
.sol-track .sol-card-img { flex: 1 1 auto; min-height: 0; height: auto; }
.sol-track .sol-card-img img { height: 100%; }
.sol-track .sol-card h3 {
  flex: 0 0 auto; font-size: 15px; line-height: 1.45; padding: 10px 14px 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .sol-track .sol-card { flex-basis: 258px; aspect-ratio: 1.5 / 1; }
  .sol-track .sol-card h3 { font-size: 14px; padding: 8px 12px 10px; }
  .sol-marquee { gap: 16px; }
}

/* 解决方案详情：长文正文 */
.sol-body { margin: 8px 0 4px; max-width: 820px; }
.sol-body p {
  font-size: 16.5px; line-height: 1.95; color: #333; margin-bottom: 18px;
  text-align: justify;
}
.sol-body .sol-sub { margin-top: 26px; }
@media (max-width: 900px) {
  .sol-body p { font-size: 15.5px; line-height: 1.85; text-align: left; }
}
