/* =========================================================
   Doppelmayr Group Chinese Homepage Stylesheet
   Brand Colors: Doppelmayr Red (#E30613), Alpine Slate (#111827)
   ========================================================= */

:root {
  --brand-red: #E30613;
  --brand-red-dark: #B8040F;
  --dark-900: #0F172A;
  --dark-800: #1E293B;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748B;
  --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;
  --gray-50: #F8FAFC;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --transition: all 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--dark-900);
  background-color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--brand-red-dark);
  transform: translateY(-1px);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--dark-900);
}

.btn-outline-dark {
  border-color: var(--dark-900);
  color: var(--dark-900);
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-outline-dark:hover {
  background: var(--dark-900);
  color: var(--white);
}

.btn-text {
  color: var(--brand-red);
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-text:hover {
  color: var(--brand-red-dark);
}

/* Top Utility Bar */
.top-bar {
  background-color: var(--dark-900);
  color: #CBD5E1;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.divider {
  opacity: 0.35;
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
}

.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--white);
  color: var(--dark-900);
  min-width: 150px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  z-index: 1000;
  border: 1px solid var(--gray-200);
}

.lang-selector.open .lang-dropdown {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 7px 14px;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.lang-dropdown a:hover, .lang-dropdown a.active {
  background-color: var(--gray-100);
  color: var(--brand-red);
  font-weight: 600;
}

/* Main Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo img {
  height: 46px;
  width: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--dark-900);
  padding: 26px 0;
  display: inline-block;
  position: relative;
}

.nav-link:hover {
  color: var(--brand-red);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--brand-red);
  transition: width 0.25s ease;
}

.nav-item:hover .nav-link::after {
  width: 100%;
}

/* Mega Menu */
.mega-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  padding: 36px 0;
}

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

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 280px;
  gap: 32px;
}

.mega-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-red);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.mega-col li {
  margin-bottom: 9px;
}

.mega-col a {
  font-size: 0.92rem;
  color: var(--gray-700);
}

.mega-col a:hover {
  color: var(--brand-red);
  padding-left: 4px;
}

.mega-highlight {
  background: var(--gray-50);
  padding: 22px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand-red);
}

.mega-highlight .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-red);
  background: rgba(227, 6, 19, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.mega-highlight h5 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.mega-highlight p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 14px;
}

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

.search-toggle {
  background: var(--gray-100);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

.search-toggle:hover {
  background: var(--gray-200);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2.5px;
  background: var(--dark-900);
}

/* Search Bar */
.search-bar {
  display: none;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 16px 0;
}

.search-bar.open {
  display: block;
}

.search-bar-inner {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-bar input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.search-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--gray-500);
  padding: 6px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 19, 43, 0.90) 0%, rgba(11, 19, 43, 0.62) 55%, rgba(11, 19, 43, 0.30) 100%);
}

.hero-badge {
  display: inline-block;
  background: rgba(227, 6, 19, 0.9);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  max-width: 640px;
  font-size: 1.1rem;
  color: #E2E8F0;
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.stat-num::after {
  content: "+";
  color: var(--brand-red);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.875rem;
  color: #CBD5E1;
  margin-top: 6px;
}

/* General Sections */
.section {
  padding: 88px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  gap: 20px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 10px;
}

.section-eyebrow.light {
  color: #FCA5A5;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark-900);
  line-height: 1.25;
}

.section-desc {
  color: var(--gray-600);
  margin-top: 12px;
  font-size: 1.02rem;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.tab-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

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

.tab-btn.active {
  background: var(--dark-900);
  color: var(--white);
  border-color: var(--dark-900);
}

/* Product Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

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

.card-media {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--brand-red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.badge-blue { background: #0284C7; }
.badge-amber { background: #D97706; }
.badge-green { background: #059669; }

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: var(--dark-900);
}

.card-body p {
  font-size: 0.92rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.spec-list {
  background: var(--gray-50);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--gray-700);
  margin-bottom: 18px;
  margin-top: auto;
}

.spec-list li + li {
  margin-top: 4px;
}

.card-link {
  color: var(--brand-red);
  font-weight: 700;
  font-size: 0.92rem;
}

.card-link:hover {
  color: var(--brand-red-dark);
}

/* References Section */
.references-section {
  background: var(--gray-50);
}

.ref-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}

.ref-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.ref-featured {
  background: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
  color: var(--white);
  border: none;
}

.ref-featured p {
  color: #CBD5E1;
}

.ref-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: 12px;
}

.ref-featured .ref-tag {
  color: #FCA5A5;
}

.ref-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.ref-card p {
  font-size: 0.93rem;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.ref-meta {
  font-size: 0.82rem;
  color: var(--gray-500);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

/* Innovation Section */
.innovation-section {
  background: var(--dark-900);
  color: var(--white);
}

.innovation-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.innovation-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 18px;
  line-height: 1.25;
}

.innovation-text > p {
  color: #CBD5E1;
  margin-bottom: 28px;
  font-size: 1.02rem;
}

.feature-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pillar {
  background: rgba(255, 255, 255, 0.05);
  padding: 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-red);
}

.pillar strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.pillar span {
  font-size: 0.88rem;
  color: #94A3B8;
}

.panel-card {
  background: var(--white);
  color: var(--dark-900);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.panel-card h4 {
  font-size: 1.3rem;
  color: var(--brand-red);
  margin-bottom: 10px;
}

.panel-card p {
  font-size: 0.94rem;
  color: var(--gray-600);
}

.panel-card hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 20px 0;
}

.service-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.service-contact .label {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: var(--transition);
}

.news-card:hover {
  border-color: var(--brand-red);
  box-shadow: var(--shadow-md);
}

.news-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: 10px;
}

.news-card h3 {
  font-size: 1.12rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}

/* Contact Section */
.contact-section {
  background: var(--gray-100);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--gray-600);
  margin-bottom: 24px;
}

.contact-details li {
  margin-bottom: 10px;
  font-size: 0.94rem;
  color: var(--gray-700);
}

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-size: 1.35rem;
  margin-bottom: 22px;
}

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

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

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.94rem;
}

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

.form-feedback {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #059669;
}

/* Footer */
.site-footer {
  background: #0B1120;
  color: #94A3B8;
  padding-top: 64px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img {
  height: 44px;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

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

.footer-links h4 {
  color: var(--white);
  font-size: 0.96rem;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
  font-size: 0.88rem;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  font-size: 0.84rem;
}

.legal-links {
  display: flex;
  gap: 20px;
}

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  color: var(--white);
  padding: 16px 0;
  z-index: 1200;
  border-top: 2px solid var(--brand-red);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-inner p {
  font-size: 0.88rem;
  color: #E2E8F0;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .ref-grid, .innovation-grid, .contact-grid, .footer-top {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar-left {
    display: none;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .nav-link {
    padding: 6px 0;
  }
  .mega-menu {
    position: static;
    box-shadow: none;
    padding: 12px 0 0 12px;
  }
  .mega-grid {
    grid-template-columns: 1fr;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .news-grid, .feature-pillars, .form-row, .footer-links {
    grid-template-columns: 1fr;
  }
  .cookie-inner, .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
