/* ============================================================
   四川雷诺天泽建筑工程有限公司 - 公共样式
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "微软雅黑", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #333; background: #fff; line-height: 1.6; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color .3s; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; border: none; outline: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 600; line-height: 1.3; }

/* ---------- CSS Variables ---------- */
:root {
  --primary: #2a6cb6;
  --primary-light: #e0efff;
  --accent: #4a9eff;
  --accent-dark: #3580d8;
  --accent-gradient: linear-gradient(135deg, #4a9eff 0%, #7ec8ff 100%);
  --text: #333;
  --text-light: #555;
  --text-lighter: #888;
  --bg: #ffffff;
  --bg-light: #f0f6ff;
  --bg-dark: #f0f6ff;
  --border: #d0e2f5;
  --shadow: 0 4px 24px rgba(42,108,182,.08);
  --shadow-lg: 0 12px 48px rgba(42,108,182,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1600px;
  --nav-height: 80px;
  --transition: .3s ease;
}

/* ---------- Typography ---------- */
.section-title {
  font-size: 2.5rem; font-weight: 700; color: var(--primary);
  text-align: center; margin-bottom: 1rem; position: relative;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--accent-gradient); margin: 16px auto 0; border-radius: 2px;
}
.section-subtitle {
  font-size: 1.1rem; color: var(--text-light); text-align: center;
  max-width: 640px; margin: 0 auto 3rem;
}
.section-padding { padding: 100px 0; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 36px; border-radius: 50px; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); letter-spacing: .5px;
}
.btn-primary {
  background: var(--accent-gradient); color: #fff;
  box-shadow: 0 4px 20px rgba(74,158,255,.3);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 30px rgba(74,158,255,.4);
}
.btn-outline {
  border: 2px solid var(--accent); color: var(--accent); background: transparent;
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-outline-dark {
  border: 2px solid var(--accent); color: var(--accent); background: transparent;
}
.btn-outline-dark:hover { background: var(--accent); color: #fff; }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  height: var(--nav-height); display: flex; align-items: center;
  transition: all .4s ease;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(42,108,182,.1);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px; color: var(--primary); font-weight: 700;
  font-size: 1.35rem; letter-spacing: 1px;
  transition: color var(--transition);
}
.nav-logo .logo-icon {
  width: 44px; height: 44px; object-fit: contain;
}
.nav-logo .brand-name {
  font-size: 1.35rem; font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: #555; font-size: 1.05rem; font-weight: 500;
  padding: 8px 18px; border-radius: 8px; transition: all var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent); background: rgba(74,158,255,.08);
}
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; background: var(--accent); border-radius: 1px;
}
.nav-right { display: flex; align-items: center; gap: 16px; }

/* Language Switch */
.lang-switch {
  display: flex; align-items: center; background: rgba(74,158,255,.1);
  border-radius: 20px; overflow: hidden; font-size: .9rem;
}
.lang-switch button {
  padding: 6px 14px; color: #666; background: transparent;
  cursor: pointer; transition: all var(--transition); font-weight: 500;
}
.lang-switch button.active {
  background: var(--accent); color: #fff;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; padding: 4px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: #555; border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Page Header (Sub-pages) ---------- */
.page-header {
  height: 400px; background: linear-gradient(135deg, #e8f2ff 0%, #d0e6ff 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(232,242,255,.95) 0%, rgba(208,230,255,.9) 100%);
}
.page-header::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 80px;
  background: linear-gradient(to top, #fff, transparent);
}
.page-header-content { position: relative; z-index: 1; }
.page-header h1 {
  font-size: 3rem; color: var(--primary); margin-bottom: 12px; font-weight: 700;
}
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; }
.breadcrumb a, .breadcrumb span { color: #555; font-size: .95rem; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .separator { color: #999; }

/* ---------- Footer ---------- */
.footer {
  background: #f0f6ff; color: #555; padding: 80px 0 0;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px; margin-bottom: 60px;
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 12px; color: var(--primary);
  font-size: 1.3rem; font-weight: 700; margin-bottom: 20px;
}
.footer-brand .footer-logo .logo-icon {
  width: 40px; height: 40px; object-fit: contain;
}
.footer-brand p { font-size: .95rem; line-height: 1.8; margin-bottom: 20px; }
.footer h4 {
  color: var(--primary); font-size: 1.1rem; margin-bottom: 24px;
  position: relative; padding-bottom: 12px;
}
.footer h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 2px; background: var(--accent);
}
.footer-links a {
  display: block; padding: 6px 0; font-size: .95rem;
  color: #555; transition: all var(--transition);
}
.footer-links a:hover { color: var(--accent); padding-left: 6px; }
.footer-contact p {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 14px; font-size: .95rem;
}
.footer-contact .icon {
  width: 20px; text-align: center; color: var(--accent); flex-shrink: 0;
  margin-top: 2px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0; text-align: center; font-size: .85rem;
  color: #888;
}
.footer-icp {
  display: inline-block; margin-top: 6px;
  color: #888; font-size: .85rem;
  transition: color var(--transition);
}
.footer-icp:hover {
  color: var(--accent);
}

/* ---------- Placeholder Images ---------- */
.placeholder-img {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #dceeff 0%, #c0dbf5 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(42,108,182,.4); font-size: .9rem; text-align: center;
  padding: 20px;
}
.placeholder-img.light {
  background: linear-gradient(135deg, #e8f2ff 0%, #d5e8ff 100%);
  color: rgba(42,108,182,.3);
}

/* ---------- Cards ---------- */
.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
}
.card-img {
  width: 100%; height: 220px; overflow: hidden;
}
.card-img .placeholder-img { transition: transform .5s ease; }
.card:hover .card-img .placeholder-img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-body h3 {
  font-size: 1.2rem; color: var(--primary); margin-bottom: 10px;
}
.card-body p { font-size: .95rem; color: var(--text-light); line-height: 1.7; }

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed; bottom: 40px; right: 40px; width: 48px; height: 48px;
  background: var(--accent-gradient); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem; cursor: pointer;
  opacity: 0; visibility: hidden; transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(74,158,255,.3); z-index: 999;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); }

/* ---------- Loading Overlay ---------- */
.page-loader {
  position: fixed; inset: 0; background: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity .5s ease, visibility .5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-spinner {
  width: 48px; height: 48px; border: 3px solid rgba(74,158,255,.15);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Product Detail Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .3s ease;
  padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  position: relative;
  background: #fff; border-radius: var(--radius); max-width: 800px;
  width: 100%; max-height: 90vh; overflow-y: auto;
  transform: translateY(30px); transition: transform .3s ease;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff; font-size: 1.2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition); border: none;
}
.modal-close:hover { background: rgba(0,0,0,.8); }
.modal-body { padding: 36px; }
.modal-body h2 {
  font-size: 1.6rem; color: var(--primary); margin-bottom: 16px;
}
.modal-body p {
  font-size: 1rem; color: var(--text-light); line-height: 1.9; margin-bottom: 24px;
}
.modal-features {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}
.modal-features span {
  padding: 8px 20px; background: rgba(74,158,255,.08);
  color: var(--accent); border-radius: 50px; font-size: .9rem; font-weight: 500;
}
.modal-cta { display: flex; gap: 16px; }

/* ---------- News Detail Modal ---------- */
.news-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .3s ease; padding: 20px;
}
.news-modal-overlay.active { opacity: 1; visibility: visible; }
.news-modal {
  background: #fff; border-radius: var(--radius); max-width: 700px;
  width: 100%; max-height: 85vh; overflow-y: auto;
  transform: translateY(30px); transition: transform .3s ease;
  box-shadow: var(--shadow-lg);
}
.news-modal-overlay.active .news-modal { transform: translateY(0); }
.news-modal-header {
  padding: 32px 32px 0; position: relative;
}
.news-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-light); color: var(--text); font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); transition: all var(--transition);
}
.news-modal-close:hover { background: var(--border); }
.news-modal-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.news-modal-meta .date { font-size: .9rem; color: var(--accent); font-weight: 600; }
.news-modal-meta .tag {
  font-size: .8rem; padding: 3px 12px; border-radius: 20px;
  background: rgba(74,158,255,.08); color: var(--accent);
}
.news-modal-body { padding: 0 32px 32px; }
.news-modal-body h2 { font-size: 1.5rem; color: var(--primary); margin-bottom: 20px; line-height: 1.5; }
.news-modal-body p { font-size: 1rem; color: var(--text-light); line-height: 2; margin-bottom: 16px; }

/* ---------- Detail Modal Carousel ---------- */
.modal-carousel-area,
.news-modal-carousel {
  position: relative; overflow: hidden; height: 420px;
  background: var(--bg-light);
}
.detail-carousel {
  position: relative; width: 100%; height: 100%; overflow: hidden;
}
.dcarousel-track {
  display: flex; height: 100%;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.dcarousel-slide {
  flex: 0 0 100%; height: 100%; cursor: pointer;
}
.dcarousel-slide img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  padding: 12px;
}
.dcarousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.85); border: none;
  color: var(--accent); font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.dcarousel-prev { left: 12px; }
.dcarousel-next { right: 12px; }
.dcarousel-arrow:hover {
  background: var(--accent); color: #fff;
  transform: translateY(-50%) scale(1.1);
}
.dcarousel-counter {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.5); color: #fff;
  padding: 4px 12px; border-radius: 20px;
  font-size: .8rem; letter-spacing: 1px; z-index: 5;
}

/* ---------- Detail Lightbox ---------- */
.detail-lightbox {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .3s ease;
}
.detail-lightbox.active { opacity: 1; visibility: visible; }
.dlb-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.9); cursor: pointer;
}
.dlb-body {
  position: relative; display: flex; align-items: center;
  gap: 20px; max-width: 85vw; z-index: 1;
}
.dlb-img {
  max-width: 70vw; max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  object-fit: contain; display: block;
}
.dlb-close {
  position: absolute; top: -52px; right: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none;
  color: #fff; font-size: 1.6rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.dlb-close:hover {
  background: rgba(255,255,255,.25); transform: scale(1.1);
}
.dlb-arrow {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2);
  color: #fff; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.dlb-arrow:hover {
  background: rgba(255,255,255,.25); transform: scale(1.1);
}
.dlb-counter {
  position: absolute; bottom: -44px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: .9rem;
  letter-spacing: 2px;
}

/* ---------- About Media (Image / Video) ---------- */
.media-about-wrap {
  position: relative; width: 100%; height: 100%; cursor: pointer;
}
.media-about-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.media-about-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s ease; pointer-events: none;
}
.media-about-play::after {
  content: ''; display: block;
  width: 0; height: 0; margin-left: 4px;
  border-left: 22px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}
.media-about-wrap:hover .media-about-play {
  background: rgba(74,158,255,.75); transform: translate(-50%, -50%) scale(1.1);
}

/* ---------- Video Lightbox ---------- */
.video-lightbox {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .3s ease;
}
.video-lightbox.active { opacity: 1; visibility: visible; }
.vl-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.92); cursor: pointer;
}
.vl-body {
  position: relative; width: 70vw; max-width: 960px; z-index: 1;
}
.vl-video {
  width: 100%; border-radius: var(--radius);
  background: #000; display: block;
}
.vl-close {
  position: absolute; top: -52px; right: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .3s ease;
}
.vl-close:hover {
  background: rgba(255,255,255,.25); transform: scale(1.1);
}

/* ---------- Product Specs Table ---------- */
.modal-specs-table {
  margin-top: 24px; margin-bottom: 24px;
}
.modal-specs-table h3 {
  font-size: 1.15rem; color: var(--primary); margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 2px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.modal-specs-table h3::before {
  content: ''; display: inline-block; width: 4px; height: 18px;
  background: var(--accent-gradient); border-radius: 2px;
}
.specs-table {
  width: 100%; border-collapse: collapse; font-size: .92rem;
}
.specs-table th,
.specs-table td {
  padding: 12px 16px; text-align: left; border: 1px solid var(--border);
}
.specs-table th {
  background: var(--bg-light); color: var(--primary);
  font-weight: 600; width: 35%; white-space: nowrap;
}
.specs-table td {
  color: var(--text-light); line-height: 1.6;
}
.specs-table tr:hover td {
  background: rgba(74,158,255,.04);
}
.specs-table tr:nth-child(even) td {
  background: rgba(74,158,255,.02);
}
.specs-table tr:nth-child(even):hover td {
  background: rgba(74,158,255,.06);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .section-title { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .specs-table th,
  .specs-table td { padding: 10px 12px; font-size: .85rem; }
  .specs-table th { width: 38%; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: #fff; flex-direction: column;
    padding: 100px 32px 40px; gap: 4px; transition: right .4s ease;
    box-shadow: -4px 0 20px rgba(42,108,182,.1);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; padding: 12px 16px; width: 100%; }
  .nav-toggle { display: flex; }
  .section-padding { padding: 60px 0; }
  .page-header { height: 300px; }
  .page-header h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .modal-carousel-area,
  .news-modal-carousel { height: 280px; }
  .modal-body { padding: 24px; }
  .modal-body h2 { font-size: 1.3rem; }
  .news-modal-header { padding: 24px 24px 0; }
  .news-modal-body { padding: 0 24px 24px; }
  .news-modal-body h2 { font-size: 1.2rem; }
  .dcarousel-arrow { width: 34px; height: 34px; font-size: .9rem; }
  .dlb-body { max-width: 95vw; gap: 10px; }
  .dlb-img { max-width: 80vw; max-height: 70vh; }
  .dlb-arrow { width: 40px; height: 40px; font-size: 1.1rem; }
  .vl-body { width: 90vw; }
  .media-about-play { width: 60px; height: 60px; }
  .media-about-play::after {
    border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px;
  }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section-title { font-size: 1.6rem; }
  .btn { padding: 12px 28px; font-size: .9rem; }
  .modal-carousel-area,
  .news-modal-carousel { height: 220px; }
  .dlb-img { max-width: 90vw; max-height: 60vh; }
  .dlb-arrow { width: 36px; height: 36px; }
  .vl-body { width: 95vw; }
  .vl-close { top: -46px; width: 36px; height: 36px; font-size: 1.2rem; }
  .media-about-play { width: 52px; height: 52px; }
  .media-about-play::after {
    border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px;
  }
}
