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

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #f7f9fb;
  --text: #1f2a37;
  --text-light: #5b6675;
  --muted: #8d99a8;
  --line: #dbe1e8;
  --primary: #1f4b7a;
  --primary-deep: #16385b;
  --accent: #c59b5a;
  --shadow: 0 12px 30px rgba(19, 38, 58, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1200px;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.7;
}

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

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

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

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

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

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.topbar {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.875rem;
}

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

.topbar-text,
.topbar-contact span {
  margin: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(15, 30, 45, 0.04);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
}

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

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  font-size: 1.375rem;
  font-weight: 700;
}

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

.logo-text strong {
  font-size: 1.3rem;
  color: var(--primary-deep);
  line-height: 1.2;
}

.logo-text em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus {
  background: rgba(31, 75, 122, 0.08);
  color: var(--primary);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 100%);
  min-width: 220px;
}

.site-search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  color: var(--text);
  outline: none;
  min-width: 0;
}

.site-search input:focus {
  border-color: var(--primary);
}

.site-search button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-search button,
.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(31, 75, 122, 0.18);
}

.btn-outline:hover {
  background: rgba(31, 75, 122, 0.06);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(31, 75, 122, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--primary-deep);
  border-radius: 2px;
}

.site-main {
  padding: 24px 0 48px;
}

.hero-section {
  padding: 10px 0 18px;
}

.hero-banner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: stretch;
  padding: 34px;
  border-radius: 20px;
  background: linear-gradient(135deg, #edf3f8, #ffffff);
  box-shadow: var(--shadow);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-subtitle,
.section-en {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.hero-desc {
  max-width: 680px;
  margin-bottom: 22px;
  color: var(--text-light);
  font-size: 1rem;
}

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

.hero-media {
  overflow: hidden;
  border-radius: 18px;
  min-height: 320px;
  background: #e8edf2;
}

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

.section-block {
  padding: 18px 0;
}

.section-alt {
  background: transparent;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--primary-deep);
}

.small-head h2 {
  font-size: 1.35rem;
}

.news-grid,
.product-grid,
.faq-grid,
.article-grid,
.related-grid {
  display: grid;
  gap: 20px;
}

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

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

.faq-grid,
.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.news-card,
.product-card,
.faq-card,
.article-card,
.related-card,
.side-box,
.about-card,
.info-card {
  background: var(--surface);
  border: 1px solid rgba(219, 225, 232, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(18, 31, 45, 0.04);
}

.news-card,
.product-card,
.article-card,
.related-card {
  overflow: hidden;
}

.news-thumb,
.product-thumb,
.article-thumb,
.related-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #ecf1f5;
}

.news-thumb,
.article-thumb {
  aspect-ratio: 16 / 10;
}

.product-thumb,
.related-thumb {
  aspect-ratio: 4 / 3;
}

.news-thumb img,
.product-thumb img,
.article-thumb img,
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body,
.product-body,
.article-body,
.related-body,
.faq-card {
  padding: 18px;
}

.meta-line,
.article-footer,
.faq-meta,
.article-meta,
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.meta-line,
.article-meta,
.faq-meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(31, 75, 122, 0.08);
  color: var(--primary);
}

.news-body h3,
.product-body h3,
.faq-card h3,
.article-body h2,
.related-body h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-body p,
.product-body p,
.faq-card p,
.article-body p,
.related-body p,
.side-box li a,
.about-content p {
  color: var(--text-light);
}

.news-body p,
.product-body p,
.faq-card p,
.article-body p,
.related-body p {
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.more-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--primary);
  font-weight: 600;
}

.about-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.about-strip h2,
.about-strip p,
.about-strip .section-en {
  color: #fff;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--text-light);
}

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

.content-area {
  min-width: 0;
}

.sidebar {
  min-width: 0;
}

.page-header {
  padding: 24px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(219, 225, 232, 0.8);
}

.page-header h1 {
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1.25;
  color: var(--primary-deep);
  word-break: break-word;
}

.page-header p,
.search-tip {
  color: var(--text-light);
}

.search-tip {
  margin-bottom: 18px;
  padding: 16px 18px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(219, 225, 232, 0.8);
  word-break: break-all;
}

.article-footer {
  justify-content: space-between;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

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

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

.side-box {
  padding: 20px;
  margin-bottom: 20px;
}

.side-box h2 {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
  color: var(--primary-deep);
}

.side-list li + li {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.side-list a {
  display: block;
  line-height: 1.65;
  word-break: break-word;
}

.article-detail {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(219, 225, 232, 0.8);
}

.article-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.35;
  color: var(--primary-deep);
  word-break: break-word;
}

.article-content {
  font-size: 1rem;
  color: var(--text);
  overflow: hidden;
}

.article-content * {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.article-content img {
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

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

.article-content iframe,
.article-content video {
  width: 100%;
  max-width: 100%;
}

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

.about-header {
  margin-bottom: 20px;
}

.about-card {
  padding: 24px;
  margin-bottom: 20px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

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

.info-card {
  padding: 22px;
}

.info-card h2 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: var(--primary-deep);
}

.empty-box {
  display: none;
  padding: 28px 24px;
  margin-top: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  text-align: center;
}

.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62vh;
}

.not-found-box {
  width: min(680px, 100%);
  padding: 40px 28px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid rgba(219, 225, 232, 0.8);
  box-shadow: var(--shadow);
  text-align: center;
}

.not-found-code {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1;
  font-weight: 700;
}

.not-found h1 {
  margin-bottom: 12px;
  color: var(--primary-deep);
}

.not-found-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.site-footer {
  margin-top: 20px;
  background: #182634;
  color: rgba(255, 255, 255, 0.82);
}

.footer-main {
  padding: 40px 0 24px;
}

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

.footer-col h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1.15rem;
}

.footer-col p,
.footer-col li {
  color: rgba(255, 255, 255, 0.76);
}

.footer-links li + li,
.footer-contact li + li {
  margin-top: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

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

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

.footer-bottom-inner {
  justify-content: space-between;
  min-height: 58px;
}

.footer-bottom-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 1100px) {
  .header-main {
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 0;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

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

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

@media (max-width: 860px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 0;
  }

  .header-main {
    position: relative;
    min-height: auto;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .header-actions {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 10px;
  }

  .site-header.is-open .header-actions {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .site-nav a {
    justify-content: flex-start;
    border-radius: 10px;
    padding: 0 14px;
    background: rgba(31, 75, 122, 0.04);
  }

  .site-search {
    width: 100%;
    min-width: 0;
  }

  .hero-banner,
  .page-layout,
  .footer-grid,
  .about-info-grid,
  .news-grid,
  .product-grid,
  .faq-grid,
  .article-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    padding: 22px;
  }

  .hero-media {
    min-height: 240px;
  }

  .about-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .sidebar {
    order: 2;
  }

  .content-area {
    order: 1;
  }
}

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

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

  .site-main {
    padding: 18px 0 38px;
  }

  .logo-text strong {
    font-size: 1.15rem;
  }

  .logo-text em {
    max-width: 180px;
  }

  .site-search {
    flex-direction: row;
  }

  .site-search input {
    min-width: 0;
  }

  .page-header,
  .article-detail,
  .about-card,
  .side-box,
  .faq-card,
  .news-body,
  .product-body,
  .article-body,
  .related-body,
  .info-card {
    padding: 16px;
  }

  .section-head h2 {
    font-size: 1.45rem;
  }

  .page-header h1,
  .article-header h1 {
    font-size: 1.55rem;
  }

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

  .article-footer,
  .faq-meta,
  .article-meta,
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-contact {
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
  }

  .not-found-box {
    padding: 30px 18px;
  }
}