/* ===== CSS Variables ===== */
:root {
  --primary: #c8102e;
  --primary-dark: #a00d24;
  --primary-light: #e8324a;
  --secondary: #1a1a2e;
  --accent: #f5a623;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #0f0f1a;
  --border: #e8e8e8;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --header-height: 72px;
  --container-max: 1600px;
  --container-padding: 24px;
  --video-card-min: 280px;
  --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition);
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
}

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

.btn-outline-dark {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-outline-dark:hover {
  background: var(--secondary);
  color: #fff;
}

/* ===== Section Common ===== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-footer {
  text-align: center;
  margin-top: 50px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--transition), background var(--transition);
  overflow: visible;
}

.header.scrolled {
  background: #fff;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  overflow: visible;
}

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: var(--secondary);
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.logo strong {
  color: var(--primary);
}

.nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 100%;
  overflow: visible;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  height: 40px;
  line-height: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-item.has-children > .nav-link::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
  opacity: 0.55;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.nav-item.has-children:hover > .nav-link::after,
.nav-item.has-children.sub-open > .nav-link::after {
  transform: rotate(180deg);
}

/* 悬停桥接区，避免移向下拉时菜单消失 */
.nav-item.has-children::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

.nav-item.has-children {
  width: max-content;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  width: max-content;
  min-width: unset;
  transform: translateX(-50%) translateY(8px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 3100;
}

.nav-item.has-children:hover > .nav-dropdown,
.nav-item.has-children.sub-open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-sublink {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: all var(--transition);
}

.nav-sublink:hover,
.nav-sublink.active {
  color: var(--primary);
  background: rgba(200, 16, 46, 0.06);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(200, 16, 46, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.header-phone svg {
  width: 18px;
  height: 18px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Banner ===== */
.banner {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 800px;
  margin-top: var(--header-height);
  overflow: hidden;
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.banner-slide.active {
  opacity: 1;
  z-index: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 15, 26, 0.75) 0%, rgba(200, 16, 46, 0.35) 100%);
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  width: 100%;
  padding: 0 20px;
}

.banner-tag {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-size: 14px;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
}

.banner-content h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-content p {
  font-size: 18px;
  max-width: 650px;
  margin: 0 auto 30px;
  opacity: 0.9;
  line-height: 1.8;
}

.banner-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.banner-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.banner-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid transparent;
  transition: all var(--transition);
}

.banner-dots .dot.active {
  background: #fff;
  transform: scale(1.2);
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(5px);
}

.banner-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.banner-arrow svg {
  width: 24px;
  height: 24px;
}

.banner-prev {
  left: 30px;
}

.banner-next {
  right: 30px;
}

/* ===== Products ===== */
.products {
  background: var(--bg-light);
}

.product-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  background: #fff;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

a.tab-btn {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

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

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
}

.product-card.hidden {
  display: none;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.08);
}

.product-name {
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card:hover .product-name {
  color: var(--primary);
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-grid--text-only {
  grid-template-columns: 1fr;
  max-width: 960px;
  margin: 0 auto;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.about-content .section-tag,
.about-content .section-title {
  text-align: left;
}

.about-text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-features {
  margin: 30px 0;
}

.feature-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(200, 16, 46, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-light);
}

.about-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.number-item {
  text-align: center;
}

.number-item strong {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.number-item strong::after {
  content: '+';
  font-size: 20px;
}

.number-item span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Videos ===== */
.videos {
  background: var(--bg-dark);
  color: #fff;
}

.videos .section-tag {
  color: var(--accent);
}

.videos .section-title {
  color: #fff;
}

.videos .section-desc {
  color: rgba(255, 255, 255, 0.6);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--video-card-min), 1fr));
  gap: 24px;
}

.video-grid.collapsed .video-card.is-hidden {
  display: none;
}

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.video-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2;
}

.play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.video-card:hover .play-btn {
  background: var(--primary);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.video-info {
  padding: 16px 20px 20px;
}

.video-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.videos .section-footer {
  margin-top: 40px;
}

.btn-video-more {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-video-more:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  z-index: 1;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 32px;
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.video-modal-close:hover {
  transform: scale(1.2);
}

.video-modal-body {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-modal-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ===== News ===== */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.news-column-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

.news-category {
  display: inline-block;
  width: fit-content;
  padding: 2px 8px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  padding: 12px;
}

.news-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.news-item-img {
  flex-shrink: 0;
  width: 120px;
  border-radius: var(--radius);
  overflow: hidden;
}

.news-item-img img {
  width: 120px;
  height: 85px;
  object-fit: cover;
}

.news-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-item-body .news-category {
  margin-bottom: 4px;
}

.news-item-body time {
  font-size: 12px;
  color: var(--text-muted);
}

.news-item-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
  margin-top: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-body h4 a:hover {
  color: var(--primary);
}

/* ===== Footer ===== */
.footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  padding: 60px 0 40px;
}

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

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
}

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

.footer-bottom a:hover {
  color: var(--primary-light);
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  :root {
    --container-padding: 20px;
  }

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

  .about-numbers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
    --video-card-min: 260px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex: none;
    height: auto;
    display: block;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 20px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    z-index: 2999;
    overflow: visible;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
    height: auto;
  }

  .nav-item {
    height: auto;
    display: block;
  }

  .nav-item.has-children::before {
    display: none;
  }

  .nav-item.has-children > .nav-link::after {
    margin-left: auto;
  }

  .nav-dropdown {
    position: static;
    left: auto;
    min-width: 0;
    transform: none !important;
    border: none;
    box-shadow: none;
    padding: 0 0 4px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    background: transparent;
  }

  .nav-item.has-children.sub-open > .nav-dropdown {
    display: block;
  }

  .nav-sublink {
    padding: 10px 16px 10px 28px;
    border-radius: var(--radius);
    background: transparent;
  }

  .nav-link {
    width: 100%;
    height: auto;
    padding: 12px 16px;
  }

  .menu-toggle {
    display: flex;
  }

  .header-phone {
    display: none;
  }

  .banner-content h1 {
    font-size: 32px;
  }

  .banner-content p {
    font-size: 15px;
  }

  .banner-arrow {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image img {
    min-height: 280px;
  }

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

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

@media (max-width: 480px) {
  :root {
    --video-card-min: 100%;
  }

  .banner-content h1 {
    font-size: 26px;
  }

  .banner-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 260px;
  }

  .about-numbers {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .number-item strong {
    font-size: 24px;
  }
}

/* ===== Inner Pages ===== */
.page-banner {
  margin-top: var(--header-height);
  padding: 60px 0;
  background: linear-gradient(135deg, var(--secondary) 0%, #2a2a4a 100%);
  color: #fff;
  text-align: center;
}

.page-banner h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span:last-child {
  color: rgba(255, 255, 255, 0.9);
}

.page-content {
  padding: 60px 0 80px;
}

.page-content.bg-light {
  background: var(--bg-light);
}

.page-banner-sm {
  padding: 40px 0;
}

.page-banner-sm h1 {
  font-size: 28px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

/* ===== Product Detail ===== */
.product-detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.product-detail-gallery {
  position: sticky;
  top: calc(var(--header-height) + 80px);
  align-self: start;
}

.product-detail-main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.product-detail-main-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.product-detail-thumbs {
  display: flex;
  gap: 10px;
}

.product-detail-thumbs button {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all var(--transition);
  padding: 0;
}

.product-detail-thumbs button.active,
.product-detail-thumbs button:hover {
  border-color: var(--primary);
  opacity: 1;
}

.product-detail-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.product-detail-info {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.product-detail-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(200, 16, 46, 0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 12px;
}

.product-detail-info h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.product-detail-summary {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.product-spec-table {
  width: 100%;
  margin-bottom: 28px;
}

.product-spec-table tr {
  border-bottom: 1px solid var(--border);
}

.product-spec-table tr:last-child {
  border-bottom: none;
}

.product-spec-table td {
  padding: 12px 0;
  font-size: 14px;
}

.product-spec-table td:first-child {
  color: var(--text-muted);
  width: 120px;
}

.product-spec-table td:last-child {
  color: var(--secondary);
  font-weight: 500;
}

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

.product-detail-actions .btn {
  flex: 1;
  min-width: 140px;
}

.product-detail-body {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  margin-bottom: 50px;
}

.product-detail-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.product-detail-body p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 16px;
}

.product-detail-body ul {
  margin: 16px 0;
  padding-left: 20px;
}

.product-detail-body li {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 8px;
  list-style: disc;
}

.detail-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 24px;
}

a.product-card {
  display: block;
  color: inherit;
}

/* ===== News Detail ===== */
.news-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.news-detail-article {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

.news-detail-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
}

.news-detail-meta time {
  font-size: 14px;
  color: var(--text-muted);
}

.news-detail-summary {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: var(--bg-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.news-detail-summary p {
  margin: 0;
  text-indent: 0;
}

.news-detail-summary p + p {
  margin-top: 10px;
}

.news-detail-article h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.4;
  margin-bottom: 24px;
}

.news-detail-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}

.news-detail-cover img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.news-detail-content p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 18px;
  text-indent: 2em;
}

.news-detail-content p:first-child {
  text-indent: 0;
}

.news-detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.news-detail-nav a {
  font-size: 14px;
  color: var(--text-light);
  max-width: 45%;
  line-height: 1.5;
}

.news-detail-nav a:hover {
  color: var(--primary);
}

.news-detail-nav a strong {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.news-detail-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 80px);
}

.sidebar-block {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.sidebar-block h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.sidebar-news-item {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-news-item time {
  font-size: 12px;
  color: var(--text-muted);
}

.sidebar-news-item h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  margin-top: 4px;
  line-height: 1.4;
}

.sidebar-news-item:hover h4 {
  color: var(--primary);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: all var(--transition);
}

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

.pagination .active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* About Page Sections */
.about-page-section {
  margin-bottom: 60px;
}

.about-page-section:last-child {
  margin-bottom: 0;
}

.about-page-section .section-title {
  text-align: left;
  font-size: 28px;
  margin-bottom: 24px;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-year {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.timeline-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.culture-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.culture-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.culture-card .culture-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(200, 16, 46, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.culture-card .culture-icon svg {
  width: 32px;
  height: 32px;
}

.culture-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 10px;
}

.culture-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.honors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.honor-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.honor-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 12px;
}

.honor-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 4px;
}

.honor-item p {
  font-size: 12px;
  color: var(--text-muted);
}

/* About Page Tabs */
.about-tabs-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: var(--header-height);
  z-index: 100;
}

.about-page-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.about-page-body {
  min-height: 500px;
}

.about-tab-panel {
  display: none;
}

.about-tab-panel.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.about-profile-text {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 24px;
}

.about-profile-text .section-title {
  text-align: left;
  font-size: 24px;
  margin-bottom: 20px;
}

.about-profile-text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 16px;
}

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

.about-profile-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-profile-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .about-profile-text {
    padding: 24px 20px;
  }

  .about-profile-image img {
    aspect-ratio: 16 / 10;
  }

  .about-page-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 12px 0;
    -webkit-overflow-scrolling: touch;
  }

  .about-page-tabs .tab-btn {
    flex-shrink: 0;
  }
}

/* News Page Tabs */
.news-page-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.news-page-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.news-page-list.hidden {
  display: none;
}

.news-page-list .news-item {
  flex-direction: column;
  padding: 0;
  gap: 0;
  border-radius: var(--radius-lg);
}

.news-page-list .news-item:hover {
  transform: translateY(-4px);
}

.news-page-list .news-item-img {
  width: 100%;
  border-radius: 0;
}

.news-page-list .news-item-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
}

.news-page-list .news-item-body {
  padding: 16px 18px 20px;
}

.news-page-list .news-item-body time {
  display: block;
  margin-top: 6px;
}

.news-page-list .news-item-body h4 {
  font-size: 15px;
  margin-top: 8px;
  -webkit-line-clamp: 2;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(200, 16, 46, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-card-icon svg {
  width: 24px;
  height: 24px;
}

.contact-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.contact-map {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-map img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.video-grid.full-grid .video-card.is-hidden {
  display: block;
}

.videos-page {
  padding-top: 60px;
  padding-bottom: 80px;
}

@media (max-width: 1024px) {
  .culture-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .page-banner {
    padding: 40px 0;
  }

  .page-banner h1 {
    font-size: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

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

  .product-detail-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-detail-gallery {
    position: static;
  }

  .news-detail-layout {
    grid-template-columns: 1fr;
  }

  .news-detail-sidebar {
    position: static;
  }
}

/* Rich text content from CMS */
.banner-desc {
  font-size: 18px;
  max-width: 650px;
  margin: 0 auto 30px;
  opacity: 0.9;
  line-height: 1.8;
}

.banner-desc p { margin: 0 0 12px; }

.about-profile-html,
.culture-body,
.footer-desc,
.news-detail-content,
.product-detail-desc {
  line-height: 1.8;
  color: var(--text-secondary, #4b5563);
}

.about-profile-html p,
.culture-body p,
.footer-desc p,
.news-detail-content p,
.product-detail-desc p {
  margin-bottom: 12px;
}

.about-profile-html img,
.news-detail-content img,
.product-detail-desc img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
