﻿/* ============================================
   style.css – Frank Hydraulics Global Styles
   Theme: Deep Red & Graphite
   Version: 1.0
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #b22234;
  color: #fff;
  padding: 8px 16px;
  z-index: 999;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* --- Color Variables --- */
:root {
  --ink: #111111;
  --graphite: #2c2c2c;
  --deep-red: #b22234;
  --red-hover: #8b1a1a;
  --soft: #f5f5f5;
  --muted: #6b7280;
  --border: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 6px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

h1 { font-size: 2.25rem; margin-bottom: 0.5em; }
h2 { font-size: 1.875rem; margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }

p { margin-bottom: 1rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--deep-red);
  color: var(--white);
  border-color: var(--deep-red);
}

.btn-primary:hover {
  background-color: var(--red-hover);
  border-color: var(--red-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--deep-red);
  border-color: var(--deep-red);
}

.btn-secondary:hover {
  background-color: var(--deep-red);
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* --- Topbar --- */
.topbar {
  background-color: var(--ink);
  color: #ccc;
  font-size: 0.825rem;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.topbar-links a {
  color: #ccc;
  transition: color 0.2s;
}

.topbar-links a:hover {
  color: var(--white);
}

.email-text {
  color: #ccc;
}

.tel-wechat {
  color: #ccc;
}

/* --- Header / Navigation --- */
.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--deep-red);
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 4px;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}

.logo-name {
  color: var(--deep-red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links > a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--graphite);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links > a:hover,
.nav-links > a.active {
  color: var(--deep-red);
  border-bottom-color: var(--deep-red);
}

.nav-item.has-dropdown {
  position: relative;
}

.nav-caret {
  font-size: 0.7rem;
  margin-left: 4px;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 240px;
  padding: 8px 0;
  z-index: 200;
}

.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--graphite);
  transition: background 0.2s;
}

.nav-dropdown a strong {
  display: block;
  font-weight: 600;
}

.nav-dropdown a span {
  display: block;
  font-size: 0.775rem;
  color: var(--muted);
}

.nav-dropdown a:hover {
  background-color: var(--soft);
}

.nav-item.has-dropdown:hover .nav-dropdown {
  display: block;
}

.nav-item.has-dropdown.dropdown-open .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--graphite);
}

.lang-code {
  font-weight: 600;
}

.lang-label {
  color: var(--muted);
}

.lang-caret {
  font-size: 0.65rem;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 160px;
  z-index: 250;
}

.lang-menu button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--graphite);
  transition: background 0.2s;
}

.lang-menu button:hover {
  background-color: var(--soft);
}

.lang-switch:hover .lang-menu,
.lang-switch:focus-within .lang-menu,
.lang-btn[aria-expanded="true"] + .lang-menu {
  display: block;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

/* --- Hero Section (Home) --- */
.hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--graphite) 70%);
  color: var(--white);
  padding: 72px 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

/* hero-text 是首页实际使用的容器类（与 .hero-content 并存，修正类名错位） */
.hero-text h1 {
  font-size: 2.625rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.0625rem;
  color: #ccc;
  margin-bottom: 24px;
  line-height: 1.7;
}

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

.hero-image img {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* 首页 hero 右侧图片：放大 + 四周羽化，与底层深色板块融合 */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}
.hero-visual img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin-left: auto;
  transform: translateX(-2.5vw);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 52%, transparent 92%);
  mask-image: radial-gradient(ellipse at center, #000 52%, transparent 92%);
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--graphite) 100%);
  color: var(--white);
  padding: 56px 0 48px;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.125rem;
  margin-bottom: 8px;
}

.page-hero p {
  color: #bbb;
  font-size: 1.05rem;
  max-width: 720px;
}

/* --- Sections --- */
.section {
  padding: 56px 0;
}

.features-section {
  padding: 48px 0;
  background-color: var(--soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.feature-item {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-item strong {
  display: block;
  font-size: 1.075rem;
  margin-bottom: 8px;
  color: var(--deep-red);
}

.feature-item span {
  font-size: 0.925rem;
  color: var(--graphite);
  line-height: 1.6;
}

/* --- Specs Table --- */
.specs-section {
  padding: 48px 0;
}

.specs-table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.specs-table th {
  background-color: var(--ink);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}

.specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.specs-table tr:nth-child(even) td {
  background-color: #fafafa;
}

.specs-table tr:hover td {
  background-color: #f0f0f0;
}

.specs-table a {
  color: var(--deep-red);
  font-weight: 500;
}

.specs-table a:hover {
  text-decoration: underline;
}

.specs-note {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* --- Series Cards --- */
.series-section {
  padding: 48px 0;
  background-color: var(--soft);
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.series-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.series-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.series-card h3 {
  color: var(--deep-red);
  margin-bottom: 8px;
}

.series-card p {
  font-size: 0.8875rem;
  color: var(--graphite);
  margin-bottom: 12px;
}

.series-link {
  font-size: 0.8625rem;
  font-weight: 500;
  color: var(--deep-red);
}

/* --- Trust Bar (Home) --- */
.trust-bar {
  padding: 40px 0;
  background-color: var(--ink);
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.trust-item {
  padding: 16px;
}

.trust-item img {
  margin: 0 auto 12px;
}

.trust-item h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 4px;
}

.trust-item p {
  color: #aaa;
  font-size: 0.8375rem;
}

/* --- Category Grid (Home) --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.category-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.category-card h3 {
  padding: 16px 16px 8px;
  font-size: 1.025rem;
}

.category-card p {
  padding: 0 16px 16px;
  font-size: 0.84rem;
  color: var(--muted);
}

/* --- Product Categories (Our Products page) --- */
.product-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.product-categories .category-card {
  display: flex;
  border-radius: calc(var(--radius) + 2px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-categories .category-card > a {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.product-categories .category-card img {
  height: 190px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-categories .category-card:hover img {
  transform: scale(1.05);
}

.product-categories .category-card h2 {
  padding: 18px 20px 6px;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--ink);
}

.product-categories .category-card p {
  padding: 0 20px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.product-categories .category-link {
  display: block;
  margin-top: auto;
  padding: 14px 20px 18px;
  font-weight: 600;
  color: var(--deep-red);
  font-size: 0.92rem;
  transition: transform 0.2s ease, color 0.2s;
}

.product-categories .category-card:hover .category-link {
  transform: translateX(3px);
}

[dir="rtl"] .product-categories .category-card:hover .category-link {
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  .product-categories {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }
  .product-categories .category-card h2 {
    font-size: 1rem;
    padding: 14px 14px 4px;
  }
  .product-categories .category-card p {
    padding: 0 14px;
    font-size: 0.8rem;
  }
  .product-categories .category-link {
    padding: 12px 14px 14px;
  }
}

/* --- Brand Cards (Excavator Parts by Brand page) --- */
.brand-grid.brand-cards {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 0;
}

.brand-cards .brand-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-cards .brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(20, 30, 45, 0.14);
}

.brand-cards .brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  padding: 18px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.brand-cards .brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.45s ease;
}

.brand-cards .brand-card:hover .brand-logo img {
  transform: scale(1.05);
}

.brand-cards .brand-card h3 {
  padding: 20px 22px 4px;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand-cards .brand-card p {
  padding: 0 22px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.brand-cards .brand-link {
  display: block;
  margin-top: auto;
  padding: 16px 22px 20px;
  font-weight: 600;
  color: var(--deep-red);
  font-size: 0.93rem;
  transition: transform 0.2s ease, color 0.2s;
}

.brand-cards .brand-card:hover .brand-link {
  transform: translateX(3px);
}

[dir="rtl"] .brand-cards .brand-card:hover .brand-link {
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  .brand-grid.brand-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* --- Home Category Grid Enhancements (Our Product Overview) --- */
.section > .container > h2 {
  margin: 0 0 8px;
}

.category-grid .category-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: calc(var(--radius) + 2px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-grid .category-card img {
  height: 190px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-grid .category-card:hover img {
  transform: scale(1.05);
}

.category-grid .category-card h3 {
  margin: 0;
  padding: 16px 18px 4px;
  font-size: 1.05rem;
  color: var(--ink);
}

.category-grid .category-card p {
  margin: 0;
  padding: 0 18px 14px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.category-grid .category-link {
  display: block;
  margin-top: auto;
  padding: 0 18px 18px;
  font-weight: 600;
  color: var(--deep-red);
  font-size: 0.92rem;
  transition: transform 0.2s ease, color 0.2s;
}

.category-grid .category-card:hover .category-link {
  transform: translateX(3px);
}

[dir="rtl"] .category-grid .category-card:hover .category-link {
  transform: translateX(-3px);
}

/* --- Brand Logos (Home) --- */
.brand-logos {
  padding: 40px 0;
  background-color: var(--soft);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.brand-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(20, 30, 50, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.brand-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(20, 30, 50, 0.10);
  border-color: var(--deep-red, #b22222);
}

.brand-cell img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  opacity: 0.62;
  transition: opacity 0.2s ease;
}

.brand-cell:hover img {
  opacity: 1;
}

@media (max-width: 992px) {
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-cell { height: 80px; }
}

@media (max-width: 420px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-cell { height: 72px; }
}

/* --- CTA Section --- */
.cta-section {
  padding: 56px 0;
  background: linear-gradient(135deg, var(--deep-red) 0%, #8b1a1a 100%);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 1.725rem;
  margin-bottom: 12px;
}

.cta-section p {
  color: #f0d0d0;
  font-size: 1.0375rem;
  max-width: 640px;
  margin: 0 auto 24px;
}

.cta-section .btn-primary {
  background-color: var(--white);
  color: var(--deep-red);
  border-color: var(--white);
}

.cta-section .btn-primary:hover {
  background-color: transparent;
  color: var(--white);
}

/* --- Footer --- */
.footer {
  background-color: var(--ink);
  color: #ccc;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer h3 {
  color: var(--white);
  font-size: 1.0875rem;
  margin-bottom: 12px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer a {
  display: block;
  color: #aaa;
  margin-bottom: 6px;
  font-size: 0.89rem;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--white);
}

.footer p {
  color: #777;
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #666;
}

/* --- News Card --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(20, 30, 45, 0.14);
}

.news-card > a {
  display: block;
  overflow: hidden;
}

.news-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-card:hover img {
  transform: scale(1.05);
}

.news-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 20px;
}

.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.news-body time {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.tag {
  display: inline-block;
  background-color: var(--deep-red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 11px;
  border-radius: 12px;
  margin-inline-start: auto;
  text-transform: uppercase;
}

.news-body h2 {
  font-size: 1.22rem;
  line-height: 1.42;
  margin: 12px 0 10px;
}

.news-body h2 a {
  color: var(--ink);
  transition: color 0.2s;
}

.news-body h2 a:hover {
  color: var(--deep-red);
}

.news-body p {
  font-size: 0.92rem;
  color: var(--graphite);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer {
  margin-top: auto;
  padding-top: 16px;
}

.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--deep-red);
  font-size: 0.92rem;
  transition: transform 0.2s ease, color 0.2s;
}

.read-more:hover {
  transform: translateX(3px);
  text-decoration: none;
}

[dir="rtl"] .read-more:hover {
  transform: translateX(-3px);
}

/* --- Article Page (News detail) --- */
.article-page {
  max-width: 800px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 6px;
}

.article-header h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px;
  color: var(--ink);
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.article-meta time {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-meta .tag {
  margin-inline-start: 0;
  text-transform: uppercase;
}

.article-page > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 22px 0 30px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--graphite);
}

.article-body p {
  margin: 0 0 1.15em;
}

.article-body h2 {
  font-size: 1.45rem;
  line-height: 1.4;
  margin: 1.9em 0 0.65em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.article-body h3 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 1.5em 0 0.5em;
  color: var(--ink);
}

.article-body a {
  color: var(--deep-red);
}

.article-body a:hover {
  text-decoration: underline;
}

.article-body strong {
  color: var(--ink);
}

.related-products {
  margin-top: 36px;
  padding: 22px 24px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.related-products h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: var(--ink);
}

.related-products ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-products li {
  margin-bottom: 8px;
}

.related-products li:last-child {
  margin-bottom: 0;
}

.related-products a {
  color: var(--deep-red);
  font-weight: 500;
}

.article-footer {
  margin-top: 36px;
}

@media (max-width: 768px) {
  .article-page {
    max-width: 100%;
  }
  .article-header h1 {
    font-size: 1.6rem;
  }
}

/* --- Loading Spinner --- */
.loading {
  text-align: center;
  padding: 48px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--deep-red);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--graphite);
}

/* --- Product Detail Layout --- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 32px 0;
}

.product-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-info h2 {
  font-size: 1.425rem;
  margin-bottom: 12px;
}

.product-info ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.product-info ul li {
  margin-bottom: 6px;
  font-size: 0.94rem;
}

/* --- About Page --- */
.about-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.about-team img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.cert-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* --- Contact Page Layout --- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.contact-info,
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--deep-red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.contact-info h2,
.contact-form h2 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.contact-info .company-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 4px;
}

.contact-info .company-address {
  color: var(--muted);
  margin-bottom: 20px;
}

.contact-info h3 {
  font-size: 1.075rem;
  color: var(--ink);
  margin: 22px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.96rem;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list li strong {
  color: var(--graphite);
  min-width: 96px;
}

.contact-list li a {
  color: var(--deep-red);
  font-weight: 500;
}

.contact-list li a:hover {
  text-decoration: underline;
}

.contact-form h2 {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.93rem;
  color: var(--graphite);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.96rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--deep-red);
  box-shadow: 0 0 0 3px rgba(178, 34, 52, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

/* Web3Forms 提交状态提示（js/i18n.js 会给元素加 is-success / is-error） */
.form-status {
  min-height: 1.2em;
  margin: 4px 0 10px;
  font-size: 0.92rem;
  line-height: 1.4;
}
.form-status.is-success {
  color: #1f9d55;
}
.form-status.is-error {
  color: #d64545;
}

/* 提交结果弹窗 toast：顶部居中，3 秒后自动淡出 */
#toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  min-width: 260px;
  max-width: 90vw;
  padding: 14px 22px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast-success { background: #1f9d55; }
.toast-error { background: #d64545; }

@media (max-width: 880px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-image {
    order: -1;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 14px 0 18px;
  }
  .nav-links.open > a,
  .nav-links.open .nav-item.has-dropdown > a {
    padding: 8px 0;
  }
  .nav-links.open .nav-item.has-dropdown {
    width: 100%;
  }
  .menu-toggle {
    display: block;
  }
  .topbar .container {
    flex-direction: column;
    text-align: center;
  }
  .topbar-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .series-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  h1 { font-size: 1.675rem; }
  h2 { font-size: 1.325rem; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  .hero {
    padding: 48px 0;
  }
  .section {
    padding: 36px 0;
  }
}