/* ================================================
   MiaoheCMS v2.0 - Baoshan Metal Industry Template
   Design: Clean, Modern, Industrial Marketing
   ================================================ */

/* ===== CSS Variables ===== */
:root {
  --color-primary: #1a3a5c;
  --color-primary-dark: #0f2540;
  --color-primary-light: #2c5282;
  --color-accent: #e67e22;
  --color-accent-dark: #c0651a;
  --color-accent-light: #f0a04b;
  --color-text: #2d3748;
  --color-text-light: #718096;
  --color-text-muted: #a0aec0;
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafc;
  --color-bg-dark: #1a202c;
  --color-border: #e2e8f0;
  --color-border-dark: #cbd5e0;
  --color-success: #38a169;
  --color-danger: #e53e3e;
  --color-white: #ffffff;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;

  --container-max: 1200px;
  --header-height: 72px;
  --topbar-height: 36px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

a { color: var(--color-primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--color-accent); }

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--color-primary-dark); }

/* ===== Container ===== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 28px; font-size: 15px; font-weight: 600;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-border-dark); }
.btn-outline:hover { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-sm { padding: 6px 16px; font-size: 13px; }

/* ===== Top Bar ===== */
.top-bar {
  background: var(--color-primary-dark); color: rgba(255,255,255,0.85);
  font-size: 13px; height: var(--topbar-height);
  display: flex; align-items: center;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--color-accent-light); }
.top-bar .top-contact { display: flex; gap: 24px; align-items: center; }
.top-bar .top-contact span { display: inline-flex; align-items: center; gap: 4px; }
.top-bar .top-links { display: flex; gap: 16px; }

/* ===== Header ===== */
.header {
  background: #fff; height: var(--header-height);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 44px; width: auto; }
.logo .site-name { font-size: 20px; font-weight: 800; color: var(--color-primary); letter-spacing: -0.5px; }
.logo:hover .site-name { color: var(--color-accent); }

/* Navigation */
.nav { display: flex; align-items: center; }
.nav ul { display: flex; gap: 4px; }
.nav li { position: relative; }
.nav > ul > li > a {
  display: block; padding: 0 18px; line-height: var(--header-height);
  font-size: 16px; font-weight: 600; color: var(--color-text);
  position: relative;
}
.nav > ul > li > a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px; background: var(--color-accent); transition: var(--transition);
}
.nav > ul > li:hover > a { color: var(--color-accent); }
.nav > ul > li:hover > a::after,
.nav > ul > li.active > a::after { width: 60%; }
.nav > ul > li.active > a { color: var(--color-primary); }

/* Dropdown */
.nav .sub-menu {
  display: block; /* 覆盖 .nav ul 的 flex，使下拉项纵向排列（每个栏目一行） */
  position: absolute; top: 100%; left: 0; min-width: 180px;
  background: #fff; box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--transition); z-index: 100;
}
.nav li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .sub-menu a {
  display: block; padding: 10px 18px; font-size: 14px; color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.nav .sub-menu a:hover { background: var(--color-bg-alt); color: var(--color-accent); padding-left: 24px; }
.nav .sub-menu li:last-child a { border-bottom: none; }

/* Mobile menu toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
}
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--color-primary); border-radius: 2px; transition: var(--transition); }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ===== Banner / Slider ===== */
.banner { position: relative; overflow: hidden; }
.banner-slide {
  height: 520px; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.banner-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,58,92,0.85) 0%, rgba(15,37,64,0.7) 50%, rgba(230,126,34,0.3) 100%);
}
.banner-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.banner-content { position: relative; z-index: 2; color: #fff; max-width: 600px; }
.banner-content h1 { font-size: 42px; font-weight: 800; color: #fff; margin-bottom: 16px; line-height: 1.2; }
.banner-content p { font-size: 18px; color: rgba(255,255,255,0.9); margin-bottom: 32px; line-height: 1.6; }
.banner-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Banner dots */
.banner-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.banner-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5);
  background: transparent; cursor: pointer; transition: var(--transition); padding: 0;
}
.banner-dots button.active { background: var(--color-accent); border-color: var(--color-accent); }

/* ===== Section Common ===== */
.section-padding { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: 32px; font-weight: 800; color: var(--color-primary-dark);
  position: relative; display: inline-block; padding-bottom: 16px; margin-bottom: 12px;
}
.section-header h2::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 4px; background: var(--color-accent); border-radius: 2px;
}
.section-header .subtitle { font-size: 16px; color: var(--color-text-light); max-width: 600px; margin: 0 auto; }
.section-header.text-left { text-align: left; }
.section-header.text-left h2::after { left: 0; transform: none; }

/* ===== Features / Advantages ===== */
.features-section { background: var(--color-bg-alt); }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.feature-card {
  background: #fff; padding: 32px 24px; border-radius: var(--radius-md);
  text-align: center; transition: var(--transition);
  border: 1px solid var(--color-border);
}
.feature-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-md); color: #fff; font-size: 28px;
}
.feature-card:hover .feature-icon { background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light)); }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--color-text-light); line-height: 1.6; }

/* ===== Product Grid ===== */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.product-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  border: 1px solid var(--color-border);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .card-img {
  position: relative; overflow: hidden; aspect-ratio: 1/1; background: var(--color-bg-alt);
}
.product-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .card-img img { transform: scale(1.08); }
.product-card .card-img .card-overlay {
  position: absolute; inset: 0; background: rgba(26,58,92,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.product-card:hover .card-img .card-overlay { opacity: 1; }
.product-card .card-overlay a {
  width: 48px; height: 48px; border: 2px solid #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; transition: var(--transition);
}
.product-card .card-overlay a:hover { background: var(--color-accent); border-color: var(--color-accent); }
.product-card .card-body { padding: 16px; text-align: center; }
.product-card .card-body h3 { font-size: 15px; margin-bottom: 0; }
.product-card .card-body h3 a { color: var(--color-text); }
.product-card .card-body h3 a:hover { color: var(--color-accent); }

/* ===== About Section ===== */
.about-section { background: #fff; }
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-img { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; height: 400px; object-fit: cover; }
.about-img::after {
  content: ''; position: absolute; bottom: -20px; right: -20px;
  width: 120px; height: 120px; background: var(--color-accent);
  border-radius: var(--radius-md); z-index: -1;
}
.about-text h2 { font-size: 30px; margin-bottom: 20px; }
.about-text p { color: var(--color-text-light); margin-bottom: 16px; line-height: 1.8; }
.about-list { margin: 24px 0; }
.about-list li { padding: 8px 0; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.about-list li::before { content: '\2714'; color: var(--color-accent); font-weight: bold; font-size: 18px; }

/* ===== Stats Section ===== */
.stats-section {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: 48px 0; color: #fff;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item .stat-icon { font-size: 32px; margin-bottom: 8px; }
.stat-item .stat-number { font-size: 40px; font-weight: 800; color: var(--color-accent-light); }
.stat-item .stat-label { font-size: 15px; color: rgba(255,255,255,0.8); margin-top: 4px; }

/* ===== News / Article List ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  border: 1px solid var(--color-border);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card .card-img { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--color-bg-alt); }
.news-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.news-card:hover .card-img img { transform: scale(1.05); }
.news-card .card-body { padding: 20px; }
.news-card .card-body h3 { font-size: 17px; margin-bottom: 8px; }
.news-card .card-body h3 a { color: var(--color-text); }
.news-card .card-body h3 a:hover { color: var(--color-accent); }
.news-card .card-desc { font-size: 14px; color: var(--color-text-light); line-height: 1.6; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .card-meta { font-size: 13px; color: var(--color-text-muted); display: flex; gap: 16px; }

/* ===== Case Grid ===== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition); cursor: pointer;
}
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.case-card img { width: 100%; height: 260px; object-fit: cover; transition: var(--transition); }
.case-card:hover img { transform: scale(1.08); }
.case-card .case-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(26,58,92,0.9));
  padding: 24px 20px 16px; color: #fff;
}
.case-card .case-overlay h3 { color: #fff; font-size: 16px; margin-bottom: 4px; }
.case-card .case-overlay p { font-size: 13px; color: rgba(255,255,255,0.8); }

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  padding: 56px 0; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(230,126,34,0.15), transparent 70%);
}
.cta-section h2 { font-size: 30px; color: #fff; margin-bottom: 12px; }
.cta-section p { font-size: 16px; color: rgba(255,255,255,0.85); margin-bottom: 28px; }

/* ===== Partner Logos ===== */
.partners-section { background: var(--color-bg-alt); }
.partner-logos {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center;
}
.partner-logos a {
  padding: 12px 24px; background: #fff; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border); font-size: 14px; color: var(--color-text-light);
  transition: var(--transition);
}
.partner-logos a:hover { border-color: var(--color-accent); color: var(--color-accent); box-shadow: var(--shadow-sm); }

/* ===== Footer ===== */
.footer { background: var(--color-bg-dark); color: rgba(255,255,255,0.7); padding: 56px 0 0; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; font-weight: 600; }
.footer-col p { font-size: 14px; line-height: 1.8; margin-bottom: 12px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-col ul li a:hover { color: var(--color-accent-light); padding-left: 4px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; font-size: 14px; }
.footer-contact li .icon { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
  text-align: center; font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--color-accent-light); }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-primary); color: #fff; border: none;
  font-size: 20px; cursor: pointer; z-index: 999;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: var(--transition); box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-accent); }

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 16px 0; font-size: 14px; color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border); margin-bottom: 32px;
}
.breadcrumb a { color: var(--color-text-light); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span { color: var(--color-text); }

/* ===== Page Banner (inner pages) ===== */
.page-banner {
  height: 240px; background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  display: flex; align-items: center; justify-content: center; text-align: center;
  position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background: url('') center/cover; opacity: 0.1;
}
.page-banner h1 { color: #fff; font-size: 32px; position: relative; z-index: 2; }
.page-banner p { color: rgba(255,255,255,0.8); font-size: 15px; margin-top: 8px; position: relative; z-index: 2; }

/* ===== Main Content Layout ===== */
.main { padding: 0 0 64px; }
.content-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 32px; margin-top: 0; }
.content-wrap.no-sidebar { grid-template-columns: 1fr; }

/* ===== Article List ===== */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-item {
  display: flex; gap: 20px; padding: 20px; background: #fff;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  transition: var(--transition);
}
.article-item:hover { box-shadow: var(--shadow-md); border-color: var(--color-border-dark); transform: translateX(4px); }
.article-item .thumb { flex-shrink: 0; width: 200px; height: 140px; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-bg-alt); }
.article-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.article-item:hover .thumb img { transform: scale(1.05); }
.article-item .article-info { flex: 1; display: flex; flex-direction: column; }
.article-item .article-info h3 { font-size: 18px; margin-bottom: 8px; }
.article-item .article-info h3 a { color: var(--color-text); }
.article-item .article-info h3 a:hover { color: var(--color-accent); }
.article-item .desc { font-size: 14px; color: var(--color-text-light); line-height: 1.6; margin-bottom: auto;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-item .meta { font-size: 13px; color: var(--color-text-muted); display: flex; gap: 16px; margin-top: 12px; }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px; }
.widget h3 { font-size: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--color-accent); }
.widget-search form { display: flex; gap: 8px; }
.widget-search input { flex: 1; padding: 8px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; }
.widget-search button { padding: 8px 16px; background: var(--color-primary); color: #fff; border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; transition: var(--transition); }
.widget-search button:hover { background: var(--color-accent); }
.widget-list li { padding: 8px 0; border-bottom: 1px solid var(--color-border); display: flex; align-items: center; gap: 8px; }
.widget-list li:last-child { border-bottom: none; }
.widget-list li .num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--color-bg-alt); color: var(--color-text-light); font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.widget-list li:nth-child(1) .num { background: var(--color-accent); color: #fff; }
.widget-list li:nth-child(2) .num { background: var(--color-primary-light); color: #fff; }
.widget-list li:nth-child(3) .num { background: var(--color-primary); color: #fff; }
.widget-list li a { font-size: 14px; color: var(--color-text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget-list li a:hover { color: var(--color-accent); }

/* Contact widget */
.widget-contact .contact-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.widget-contact .contact-item:last-child { border-bottom: none; }
.widget-contact .contact-item .icon { font-size: 24px; color: var(--color-accent); }
.widget-contact .contact-item .info { font-size: 13px; }
.widget-contact .contact-item .info strong { display: block; color: var(--color-text); font-size: 15px; }

/* ===== Article Detail ===== */
.article-detail { background: #fff; border-radius: var(--radius-md); padding: 32px; border: 1px solid var(--color-border); }
.article-title { font-size: 26px; margin-bottom: 16px; line-height: 1.4; }
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--color-text-muted); padding-bottom: 20px; border-bottom: 1px solid var(--color-border); margin-bottom: 24px; }
.article-content { font-size: 15px; line-height: 2; color: var(--color-text); }
.article-content p { margin-bottom: 16px; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 16px 0; }
.article-content h2, .article-content h3, .article-content h4 { margin: 24px 0 12px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-content table th, .article-content table td { border: 1px solid var(--color-border); padding: 8px 12px; font-size: 14px; }
.article-content table th { background: var(--color-bg-alt); }
.article-content ul, .article-content ol { margin: 16px 0; padding-left: 24px; }
.article-content ul li { list-style: disc; margin-bottom: 6px; }
.article-content ol li { list-style: decimal; margin-bottom: 6px; }
.article-content a { color: var(--color-accent); text-decoration: underline; }
.article-content pre { background: var(--color-bg-dark); color: #e2e8f0; padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; margin: 16px 0; font-size: 14px; }

.article-tags { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-border); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.article-tags span { font-size: 14px; color: var(--color-text-light); }
.article-tags a { padding: 4px 12px; background: var(--color-bg-alt); border-radius: var(--radius-full); font-size: 13px; color: var(--color-text); transition: var(--transition); }
.article-tags a:hover { background: var(--color-accent); color: #fff; }

/* Article nav (prev/next) */
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 20px; background: var(--color-bg-alt); border-radius: var(--radius-md); }
.article-nav a { font-size: 14px; color: var(--color-text); display: flex; align-items: center; gap: 6px; }
.article-nav a:hover { color: var(--color-accent); }

/* Related */
.related-section { margin-top: 32px; }
.related-section h3 { font-size: 20px; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-item { padding: 12px 16px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); transition: var(--transition); }
.related-item:hover { border-color: var(--color-accent); box-shadow: var(--shadow-sm); }
.related-item a { font-size: 14px; color: var(--color-text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-item a:hover { color: var(--color-accent); }
.related-meta { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }

/* ===== Single Page ===== */
.page-detail { background: #fff; border-radius: var(--radius-md); padding: 32px; border: 1px solid var(--color-border); }
.page-detail .article-title { text-align: center; margin-bottom: 24px; }

/* ===== Pagination ===== */
.pagination { margin-top: 32px; text-align: center; }
.pagination ul {
  display: inline-flex; justify-content: center; align-items: center;
  gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0;
}
.pagination li { display: block; margin: 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--color-text); transition: var(--transition);
}
.pagination a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.pagination li.active span,
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ===== Empty State ===== */
.empty { text-align: center; padding: 60px 20px; color: var(--color-text-muted); font-size: 16px; }
.empty::before { content: '\1F4ED'; font-size: 48px; display: block; margin-bottom: 12px; }

/* ===== Contact Form ===== */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--color-text); }
.form-control {
  width: 100%; padding: 10px 14px; border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm); font-size: 15px; font-family: inherit;
  transition: var(--transition-fast);
}
.form-control:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(230,126,34,0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .about-wrap { grid-template-columns: 1fr; }
  .about-img img { height: 300px; }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .container { padding: 0 16px; }

  .top-bar { font-size: 12px; height: 32px; }
  .top-bar .top-contact { gap: 12px; }
  .top-bar .top-links { display: none; }

  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-height); left: 0; right: 0;
    background: #fff; box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    z-index: 999;
  }
  .nav.open { max-height: 80vh; overflow-y: auto; }
  .nav ul { flex-direction: column; width: 100%; padding: 8px 0; }
  .nav > ul > li > a { line-height: 48px; padding: 0 20px; border-bottom: 1px solid var(--color-border); }
  .nav > ul > li > a::after { display: none; }
  .nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; min-width: 0; }
  .nav .sub-menu a { padding-left: 40px; }

  .header-right { display: none; }

  .banner-slide { height: 360px; }
  .banner-content h1 { font-size: 26px; }
  .banner-content p { font-size: 15px; margin-bottom: 20px; }
  .banner-btns .btn { padding: 8px 20px; font-size: 14px; }

  .section-padding { padding: 40px 0; }
  .section-header h2 { font-size: 24px; }
  .section-header .subtitle { font-size: 14px; }

  .features-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .news-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item .stat-number { font-size: 32px; }

  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .footer { padding-top: 40px; }

  .article-item { flex-direction: column; }
  .article-item .thumb { width: 100%; height: 180px; }
  .article-detail, .page-detail { padding: 20px; }
  .article-title { font-size: 22px; }
  .article-content { font-size: 14px; line-height: 1.8; }
  .related-grid { grid-template-columns: 1fr; }
  .article-nav { flex-direction: column; gap: 8px; }

  .page-banner { height: 180px; }
  .page-banner h1 { font-size: 24px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .banner-content h1 { font-size: 22px; }
  .section-header h2 { font-size: 20px; }
  .back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}
