:root {
  --ink: #17313a;
  --blue: #17657a;
  --teal: #0b7a68;
  --green: #2f6b45;
  --accent: #c56a16;
  --danger: #b42318;
  --line: #d7e0e2;
  --muted: #f2f6f5;
  --paper: #fff;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; color: var(--ink); font: 16px/1.65 Arial, "Microsoft YaHei", sans-serif; background: var(--paper); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1120px, calc(100% - 32px)); margin: auto; }
.topline { padding: 7px 0; color: #dce9ed; background: #102a33; font-size: 13px; }
.header-main { display: flex; min-height: 86px; align-items: center; gap: 28px; }
.brand { display: flex; min-width: 280px; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; }
.brand img { width: auto; max-width: 145px; max-height: 58px; object-fit: contain; }
.site-search { display: flex; height: 40px; margin-left: auto; border: 1px solid var(--line); }
.site-search input { min-width: 170px; padding: 0 11px; border: 0; outline: 0; font: inherit; }
.site-search button,
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 16px; border: 0; border-radius: 4px; color: #fff; background: var(--teal); cursor: pointer; font: inherit; }
.site-search button:hover,
.button:hover { background: var(--green); }
.phone { font-size: 13px; white-space: nowrap; }
.phone strong { display: block; color: var(--accent); font-size: 16px; }
.main-nav { background: var(--blue); }
.main-nav .container { display: flex; overflow-x: auto; scrollbar-width: none; }
.main-nav .container::-webkit-scrollbar { display: none; }
.main-nav a { flex: 0 0 auto; padding: 14px 24px; color: #fff; white-space: nowrap; }
.main-nav a:hover,
.main-nav a.active { background: var(--teal); }

.hero { display: grid; min-height: 330px; align-items: center; background: #e7f0f2 url("legacy/images/ts_bj.6d7e870a697c.png") center/cover; }
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 45px 0; }
.hero h1 { margin: 6px 0; font-size: 36px; }
.hero p { max-width: 600px; }
.hero img { max-width: 240px; max-height: 150px; object-fit: contain; }
.eyebrow { margin: 0; color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.section { padding: 58px 0; }
.muted { background: var(--muted); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: 26px; }
.section-heading a,
.text-link,
.back-link { color: var(--teal); font-weight: 700; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; transition: border-color .15s, transform .15s, box-shadow .15s; }
.product-card:hover { border-color: var(--teal); box-shadow: 0 8px 20px rgba(23, 49, 58, .08); transform: translateY(-2px); }
.product-card img,
.image-placeholder { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #e9eff0; }
.image-placeholder { display: grid; place-items: center; color: #60747b; }
.product-card > div:last-child { padding: 15px; }
.product-card h3 { margin: 0 0 7px; overflow-wrap: anywhere; font-size: 17px; }
.product-card p { margin: 0; color: #60747b; font-size: 14px; }
.split-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; }
.split-layout h2 { margin: 4px 0 14px; }
.news-panel { padding: 25px; border-top: 3px solid var(--teal); background: #fff; }
.news-row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.news-row time,
.article-meta { color: #71848b; font-size: 13px; }

.page-banner { padding: 50px 0; background: #e8f2f3; }
.page-banner.compact { padding: 32px 0; }
.page-banner h1 { margin: 3px 0 0; font-size: 32px; }
.page-layout { display: grid; grid-template-columns: 230px 1fr; gap: 32px; padding: 42px 0; }
.sidebar { align-self: start; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.sidebar h2 { margin: 0; padding: 15px; border-bottom: 1px solid var(--line); font-size: 17px; }
.sidebar a { display: block; padding: 10px 15px; border-bottom: 1px solid var(--line); }
.sidebar a:last-child { border-bottom: 0; }
.sidebar a.active,
.sidebar a:hover { color: var(--teal); background: var(--muted); font-weight: 700; }
.content-area { min-width: 0; }
.list-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.list-title h2 { margin: 0; }

.article { max-width: 900px; padding: 42px 0 65px; }
.article > h1 { margin-bottom: 5px; overflow-wrap: anywhere; font-size: 30px; }
.back-link { display: inline-block; margin-bottom: 20px; }
.product-hero { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.product-hero img { width: 100%; max-height: 380px; object-fit: contain; background: var(--muted); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 4px; color: var(--green); background: #e5f1eb; font-size: 13px; }
.rich-content { overflow-wrap: anywhere; }
.rich-content img { max-width: 100%; height: auto; }
.rich-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.rich-content td,
.rich-content th { padding: 8px; border: 1px solid var(--line); }
.detail-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.detail-nav a { display: flex; min-width: 0; flex-direction: column; padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere; }
.detail-nav a:last-child { text-align: right; }
.detail-nav a:hover { border-color: var(--teal); color: var(--teal); }
.detail-nav small { color: #71848b; }
.related-list { border-top: 1px solid var(--line); }
.related-list a { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.related-list time { flex: 0 0 auto; color: #71848b; }

.article-list { padding: 30px 0 65px; }
.article-row { display: grid; grid-template-columns: 100px 1fr 50px; gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.article-row h2 { margin: 0 0 8px; font-size: 20px; }
.article-row p { margin: 0; color: #60747b; }
.article-row > span { color: var(--teal); font-size: 13px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 32px; }
.pagination a { padding: 8px 13px; border: 1px solid var(--line); border-radius: 4px; color: var(--teal); font-weight: 700; }
.pagination a:hover { border-color: var(--teal); }

.jobs,
.contact-layout { padding: 42px 0 65px; }
.job { padding: 24px 0; border-bottom: 1px solid var(--line); }
.job h2 { margin: 0; }
.job p { color: #60747b; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-links { display: grid; gap: 10px; margin-top: 24px; }
.contact-links a { display: flex; flex-direction: column; padding: 12px 14px; border-left: 3px solid var(--teal); background: var(--muted); overflow-wrap: anywhere; }
.contact-links small { color: #60747b; }
.contact-form { padding: 24px; border-radius: 6px; background: var(--muted); }
.contact-form h2 { margin-top: 0; }
.contact-form label { display: block; margin: 12px 0; }
.contact-form input,
.contact-form textarea { display: block; width: 100%; margin-top: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font: inherit; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--teal); outline: 2px solid rgba(11, 122, 104, .15); }
.error { color: var(--danger); }
.empty { color: #60747b; }
.empty-state { grid-column: 1 / -1; display: flex; min-height: 180px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1px dashed var(--line); color: #60747b; text-align: center; }
.empty-state a { color: var(--teal); font-weight: 700; }
.messages { padding-top: 14px; }
.message { margin: 0; padding: 11px 14px; border-left: 4px solid var(--teal); background: #e9f5f1; }
.error-page { min-height: 55vh; padding: 80px 0; text-align: center; }
.error-page > strong { display: block; color: var(--accent); font-size: 64px; line-height: 1; }
.error-page h1 { margin: 18px 0 8px; font-size: 30px; }
.error-page p { color: #60747b; }
.error-page .text-link { margin-left: 18px; }

.site-footer { padding-top: 34px; color: #dce9ed; background: #102a33; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 35px; }
.footer-grid p { margin: 7px 0; font-size: 14px; }
.footer-grid a { color: #fff; }
.copyright { margin-top: 24px; padding: 13px 16px; border-top: 1px solid #31505a; text-align: center; font-size: 13px; }

@media (max-width: 760px) {
  .header-main { flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .brand { min-width: 0; flex: 1; }
  .brand span { display: none; }
  .site-search { order: 3; width: 100%; margin: 0; }
  .site-search input { min-width: 0; flex: 1; }
  .phone { display: none; }
  .main-nav a { padding: 12px 16px; }
  .hero { min-height: 260px; }
  .hero-inner { padding: 34px 0; }
  .hero h1 { font-size: 27px; }
  .hero img { display: none; }
  .section { padding: 40px 0; }
  .product-grid { grid-template-columns: 1fr; }
  .split-layout,
  .page-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { display: flex; overflow-x: auto; border-radius: 0; scrollbar-width: none; }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar h2 { display: none; }
  .sidebar a { flex: 0 0 auto; border-right: 1px solid var(--line); border-bottom: 0; white-space: nowrap; }
  .product-hero { grid-template-columns: 1fr; gap: 20px; }
  .article-row { grid-template-columns: 1fr; gap: 5px; }
  .article-row > span { display: none; }
  .detail-nav { grid-template-columns: 1fr; }
  .detail-nav a:last-child { text-align: left; }
  .related-list a { align-items: flex-start; flex-direction: column; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 12px; }
  .error-page { padding: 60px 0; }
}
