/* Rushan Dongsheng Alloy Co., Ltd. - Corporate Official Website Styling */
:root {
  --primary: #0f2942;
  --primary-dark: #0a1b2d;
  --primary-blue: #1e3a8a;
  --accent-blue: #2563eb;
  --accent-amber: #d97706;
  --bg-slate: #f8fafc;
  --border-color: #e2e8f0;
}

body {
  color: #1e293b;
  background-color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Subtle clean corporate card elevation */
.corporate-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.corporate-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(15, 41, 66, 0.08), 0 8px 10px -6px rgba(15, 41, 66, 0.04);
  transform: translateY(-2px);
}

/* Corporate Hero clean background (Zero dot elements) */
.hero-pattern {
  background-color: #f8fafc;
  background-image: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Custom Scrollbar for professional feel */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Table styling for specs */
.spec-table th {
  background-color: #f8fafc;
  color: #334155;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.spec-table tr:hover td {
  background-color: #f8fafc;
}

/* Modal transitions */
.modal-overlay {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

/* CAD Blueprint Engineering Placeholder (Authentic Drafting Grid, Zero Dots) */
.cad-blueprint-box {
  background-color: #f8fafc;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.8) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.8) 1px, transparent 1px);
  background-size: 28px 28px;
  position: relative;
}

.cad-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #94a3b8;
}
.cad-corner-tl { top: 8px; left: 8px; border-top: 2px solid; border-left: 2px solid; }
.cad-corner-tr { top: 8px; right: 8px; border-top: 2px solid; border-right: 2px solid; }
.cad-corner-bl { bottom: 8px; left: 8px; border-bottom: 2px solid; border-left: 2px solid; }
.cad-corner-br { bottom: 8px; right: 8px; border-bottom: 2px solid; border-right: 2px solid; }

/* Quick Contact Floating Dock */
.quick-dock {
  box-shadow: 0 12px 30px -4px rgba(15, 41, 66, 0.2), 0 6px 12px -4px rgba(15, 41, 66, 0.12);
}

/* Dark CAD Blueprint Drafting Canvas for Cross-Section Anatomy (Zero Dots) */
.cad-blueprint-dark {
  background-color: #0b1523;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  position: relative;
}

/* Technical Interactive CAD Hotspot Pin (Architectural rounded-lg, zero circular dots) */
.cad-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1.5px solid;
}

.cad-pin-inactive {
  background-color: #0f2942;
  border-color: #38bdf8;
  color: #e0f2fe;
}
.cad-pin-inactive:hover {
  background-color: #0284c7;
  border-color: #bae6fd;
  color: #ffffff;
  transform: scale(1.1);
}

.cad-pin-active {
  background-color: #0284c7;
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.7);
  transform: scale(1.15);
}

/* FAQ Accordion Styling */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}
.faq-item.active .faq-content {
  max-height: 500px;
  opacity: 1;
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* Bulletproof Navigation Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 50;
}
.group:hover .nav-dropdown,
.group:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Engineering Catalog Spec Table View */
.catalog-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow-x: auto;
  background: #ffffff;
}
.catalog-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.catalog-table th {
  background-color: #f8fafc;
  color: #334155;
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}
.catalog-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.catalog-table tr:hover td {
  background-color: #f8fafc;
}

/* Floating RFQ Basket Dock (Architectural rounded-xl, zero dots) */
.basket-dock {
  box-shadow: 0 10px 25px -5px rgba(15, 41, 66, 0.25), 0 8px 10px -6px rgba(15, 41, 66, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.basket-dock:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(15, 41, 66, 0.3);
}

/* Technical Data Sheet Spec Matrix */
.tds-matrix td {
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
}
.tds-matrix th {
  padding: 8px 12px;
  background-color: #f8fafc;
  font-size: 11px;
  font-family: monospace;
  font-weight: 700;
  border-bottom: 2px solid #e2e8f0;
}

