/* assets/style.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f4f6f8;
  --white: #ffffff;
  --text: #1f2f3d;
  --muted: #667788;
  --line: #d8e0e8;
  --line-deep: #c6d1db;
  --primary: #1f4c78;
  --primary-deep: #173a5c;
  --accent: #b58f5a;
  --soft: #eef3f7;
  --shadow: 0 12px 32px rgba(14, 32, 52, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  min-width: 320px;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .25s ease, opacity .25s ease, border-color .25s ease, background .25s ease;
}

a:hover {
  color: var(--primary-deep);
}

input,
button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
}

.container {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

.site-main {
  overflow: hidden;
}

/* header */
.topbar {
  background: #0f2740;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}

.topbar-text {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-contact {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.header-main {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-main-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 84px;
}

.site-brand {
  min-width: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px 4px 14px 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  flex: 0 0 44px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--primary-deep);
}

.brand-domain {
  color: var(--muted);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  justify-self: end;
  width: 100%;
  max-width: 360px;
}

.site-search,
.search-inline-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.site-search input,
.search-inline-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 16px;
  height: 46px;
  color: var(--text);
}

.site-search button,
.search-inline-form button {
  border: 0;
  min-width: 96px;
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.site-nav {
  background: linear-gradient(180deg, #fafbfd, #f0f4f8);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  flex-wrap: wrap;
}

.nav-list li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: var(--text);
  font-weight: 600;
  border-radius: 999px;
}

.nav-list li a:hover,
.nav-list li a:focus {
  background: var(--primary);
  color: #fff;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* common blocks */
.page-section {
  padding: 40px 0 64px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head .section-en {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.25;
  color: var(--primary-deep);
}

.section-head-leftline {
  padding-left: 18px;
  border-left: 4px solid var(--accent);
}

.section-head-center {
  text-align: center;
}

.section-head-solid {
  padding: 16px 20px;
  background: linear-gradient(135deg, #edf3f8, #ffffff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-head-double {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  background: var(--primary-deep);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border-color: var(--line-deep);
}

.btn-secondary:hover {
  background: var(--soft);
}

.btn-block {
  width: 100%;
}

.text-link {
  font-weight: 700;
}

.page-banner {
  position: relative;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(15, 39, 64, 0.95), rgba(31, 76, 120, 0.88)),
    linear-gradient(180deg, #1b3654, #274f76);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner-inner {
  padding: 56px 0 48px;
}

.page-banner-about {
  padding: 64px 0 54px;
}

.page-banner-article {
  padding: 42px 0 34px;
}

.page-banner-en {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.18em;
  font-size: 0.8125rem;
}

.page-banner h1 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.2;
}

.page-banner-desc {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: #fff;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
}

/* hero */
.hero {
  padding: 28px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.hero-copy {
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 42px;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(181, 143, 90, 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
}

.hero-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  color: var(--primary-deep);
}

.hero-desc {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-image-wrap {
  height: 100%;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  max-width: 260px;
}

.hero-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-deep);
  font-size: 1.125rem;
}

.hero-card span {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}

/* home intro */
.home-intro,
.home-news,
.home-product,
.home-faq {
  padding: 18px 0 34px;
}

.intro-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.intro-text,
.intro-meta,
.news-list-card,
.contact-box,
.side-card,
.article-content,
.about-card,
.feature-box,
.contact-item,
.search-box-inline,
.empty-tip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-text {
  padding: 28px;
}

.intro-meta {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.meta-item {
  padding: 18px;
  background: var(--soft);
  border-radius: 14px;
}

.meta-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.875rem;
}

.meta-item strong {
  display: block;
  color: var(--primary-deep);
  font-size: 1rem;
  word-break: break-word;
}

/* cards */
.news-list-card {
  padding: 18px;
}

.news-row-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.news-row-card:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.news-row-card-compact {
  grid-template-columns: 1fr;
}

.news-thumb,
.product-thumb,
.list-card-thumb,
.related-thumb {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #e9eff5;
}

.news-thumb img,
.product-thumb img,
.list-card-thumb img,
.related-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-body,
.product-body,
.list-card-body,
.related-body,
.search-item-content {
  min-width: 0;
}

.news-meta,
.list-card-meta,
.search-item-meta,
.faq-info,
.product-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.news-tag,
.list-cat,
.product-cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(31, 76, 120, 0.08);
  color: var(--primary);
  border-radius: 999px;
  font-weight: 700;
}

.news-body h3,
.product-body h3,
.list-card-body h3,
.related-body h3,
.search-item h3,
.faq-item h3 {
  margin: 12px 0 10px;
  font-size: 1.2rem;
  line-height: 1.4;
}

.news-body h3 a,
.product-body h3 a,
.list-card-body h3 a,
.related-body h3 a,
.search-item h3 a,
.faq-item h3 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-body p,
.product-body p,
.list-card-body p,
.related-body p,
.search-item p,
.faq-item p,
.side-contact p,
.about-card p,
.feature-box p,
.contact-item p,
.empty-tip p {
  color: var(--muted);
  margin-bottom: 0;
  word-break: break-word;
}

.news-body p,
.product-body p,
.list-card-body p,
.related-body p,
.search-item p,
.faq-item p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card,
.related-card,
.list-card,
.search-item,
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-card {
  overflow: hidden;
}

.product-body {
  padding: 18px;
}

.product-foot {
  justify-content: space-between;
  margin-top: 16px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-item {
  padding: 22px;
}

.contact-box,
.side-card {
  padding: 22px;
}

.contact-box h3,
.side-title h3,
.feature-box h3,
.contact-item h3 {
  margin-bottom: 12px;
  font-size: 1.125rem;
  color: var(--primary-deep);
}

.contact-box ul,
.side-contact ul,
.footer-contact,
.footer-links {
  display: grid;
  gap: 10px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.list-cards {
  display: grid;
  gap: 20px;
}

.list-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  overflow: hidden;
}

.list-card-body {
  padding: 20px 20px 20px 0;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-list li {
  min-width: 0;
}

.side-list li a {
  display: block;
  color: var(--text);
  word-break: break-word;
}

.side-list li a:hover {
  color: var(--primary);
}

.side-list li span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.875rem;
}

.side-list-lines li {
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.side-list-lines li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.side-list-dots li {
  position: relative;
  padding-left: 16px;
}

.side-list-dots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.side-card-highlight {
  background: linear-gradient(180deg, #ffffff, #f6f9fc);
}

/* article */
.article-main {
  min-width: 0;
}

.article-content {
  padding: 28px;
  overflow: hidden;
}

.article-content img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.article-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-content pre,
.article-content code {
  white-space: pre-wrap;
  word-break: break-word;
}

.article-content * {
  max-width: 100%;
}

.related-section {
  margin-top: 26px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.related-card {
  overflow: hidden;
}

.related-body {
  padding: 16px;
}

/* search */
.search-box-inline {
  padding: 18px;
  margin-bottom: 22px;
}

.search-result-list {
  display: grid;
  gap: 16px;
}

.search-item {
  padding: 22px;
}

.empty-tip {
  margin-top: 20px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #fff, #f7fafc);
}

/* about */
.about-block + .about-block {
  margin-top: 26px;
}

.about-card-large {
  padding: 26px;
}

.about-feature-grid,
.about-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-box,
.contact-item {
  padding: 20px;
}

/* pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}

.page-num:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* footer */
.site-footer {
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(180deg, #142c44, #0f2438);
}

.footer-main {
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 1fr;
  gap: 24px;
}

.footer-title {
  margin-bottom: 16px;
  font-size: 1.5rem;
  color: #fff;
}

.footer-subtitle {
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: #fff;
}

.footer-desc,
.footer-note p,
.footer-contact li,
.footer-links li a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-links li a:hover,
.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
}

/* 404 */
.notfound-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(181, 143, 90, 0.16), transparent 30%),
    linear-gradient(180deg, #f5f7fa, #edf2f6);
}

.notfound-box {
  width: min(620px, 100%);
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 42px 28px;
  box-shadow: var(--shadow);
}

.notfound-code {
  display: inline-block;
  margin-bottom: 16px;
  font-size: clamp(4rem, 10vw, 6rem);
  line-height: 1;
  font-weight: 800;
  color: var(--primary);
}

.notfound-box h1 {
  margin-bottom: 14px;
  color: var(--primary-deep);
}

.notfound-box p {
  color: var(--muted);
}

.notfound-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* responsive */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .intro-panel,
  .faq-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .content-side {
    order: 2;
  }

  .content-main,
  .article-main {
    order: 1;
  }

  .hero-image-wrap {
    min-height: 340px;
  }
}

@media (max-width: 860px) {
  .topbar {
    display: none;
  }

  .header-main-inner {
    grid-template-columns: 1fr auto;
    min-height: 74px;
  }

  .header-actions {
    grid-column: 1 / -1;
    max-width: none;
  }

  .mobile-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-inner {
    padding: 10px 0 16px;
  }

  .nav-list {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nav-list li a {
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
  }

  .hero-copy {
    padding: 28px 22px;
  }

  .news-row-card,
  .list-card {
    grid-template-columns: 1fr;
  }

  .list-card-body {
    padding: 0 18px 18px;
  }

  .list-card-thumb {
    border-radius: 16px 16px 0 0;
  }

  .related-grid,
  .about-feature-grid,
  .about-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(var(--maxw), calc(100% - 24px));
  }

  .hero {
    padding-top: 18px;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-actions,
  .footer-bottom-inner,
  .product-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .site-search input,
  .search-inline-form input {
    padding: 0 14px;
  }

  .site-search button,
  .search-inline-form button {
    min-width: 84px;
  }

  .news-thumb img,
  .product-thumb img,
  .list-card-thumb img,
  .related-thumb img {
    aspect-ratio: 16 / 9;
  }

  .article-content {
    padding: 20px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    padding-top: 38px;
  }

  .page-banner-inner,
  .page-banner-about {
    padding: 44px 0 38px;
  }

  .search-item,
  .faq-item,
  .contact-box,
  .side-card,
  .search-box-inline,
  .empty-tip {
    padding: 16px;
  }

  .page-num {
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 1.15rem;
  }

  .brand-domain {
    font-size: 0.75rem;
  }

  .hero-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .notfound-box {
    padding: 34px 20px;
  }
}