/* ========================================
   选矿设备外贸网站 - Mineral Processing
   ======================================== */

:root {
  --primary: #1a3c5e;
  --primary-light: #2a5a8a;
  --secondary: #c8962e;
  --secondary-light: #e0b04a;
  --accent: #e85d3a;
  --dark: #1a1a2e;
  --gray: #6c757d;
  --light-gray: #f4f6f9;
  --white: #ffffff;
  --text: #333333;
  --bg-dark: #0f1b2d;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

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

/* ===== Header Top Bar ===== */
.top-bar {
  background: var(--bg-dark);
  color: #ccc;
  font-size: 13px;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: #ccc; margin-left: 16px; }
.top-bar a:hover { color: var(--secondary); }
.top-bar .lang-switch a { color: var(--secondary); font-weight: 600; }

/* ===== Header / Nav ===== */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 22px;
  font-weight: 900;
}
nav { display: flex; align-items: center; gap: 8px; }
nav a {
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  transition: var(--transition);
}
nav a:hover, nav a.active {
  background: var(--primary);
  color: var(--white);
}
.mobile-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20 80 L40 30 L60 50 L80 10 L90 20" stroke="rgba(255,255,255,0.05)" stroke-width="2" fill="none"/><circle cx="40" cy="30" r="3" fill="rgba(200,150,46,0.3)"/><circle cx="60" cy="50" r="3" fill="rgba(200,150,46,0.3)"/><circle cx="80" cy="10" r="3" fill="rgba(200,150,46,0.3)"/></svg>') repeat;
  background-size: 200px 200px;
  opacity: 0.5;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 700px; }
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--secondary); }
.hero p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.9;
}
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary {
  background: var(--secondary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,150,46,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  margin-left: 12px;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}
.btn-dark {
  background: var(--primary);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ===== Stats ===== */
.stats {
  background: var(--white);
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-item h3 {
  font-size: 36px;
  color: var(--primary);
  font-weight: 800;
}
.stat-item p {
  color: var(--gray);
  font-size: 14px;
  margin-top: 4px;
}

/* ===== Section Common ===== */
section { padding: 80px 0; }
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}
.section-title p {
  color: var(--gray);
  max-width: 600px;
  margin: 12px auto 0;
  font-size: 16px;
}
.section-subtitle {
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 8px;
}

/* ===== Products Grid ===== */
.featured-products { background: var(--light-gray); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.product-card-img {
  height: 220px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: var(--primary-light);
  position: relative;
}
.product-card-img .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.product-card-body {
  padding: 24px;
}
.product-card-body h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
}
.product-card-body p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-body .specs {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 14px;
}
.product-card-body .specs span i { margin-right: 4px; }
.view-more {
  color: var(--secondary);
  font-weight: 600;
  font-size: 14px;
}
.view-more:hover { color: var(--accent); }

/* ===== Product Categories ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.category-card {
  background: var(--white);
  border: 2px solid #e8ecf0;
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--secondary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.category-card .icon {
  font-size: 42px;
  margin-bottom: 12px;
}
.category-card h4 {
  font-size: 16px;
  color: var(--primary);
}
.category-card p {
  font-size: 13px;
  color: var(--gray);
  margin-top: 6px;
}

/* ===== Why Us ===== */
.why-us { background: var(--light-gray); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}
.feature-card {
  text-align: center;
  padding: 30px 20px;
}
.feature-card .icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: var(--white);
}
.feature-card h4 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--gray);
}

/* ===== About Preview ===== */
.about-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  height: 400px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 100px;
}

/* ===== Contact ===== */
.contact-section { background: var(--bg-dark); color: var(--white); }
.contact-section .section-title h2 { color: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--secondary);
}
.contact-info p {
  margin-bottom: 10px;
  opacity: 0.85;
  font-size: 15px;
}
.contact-info .item { margin-bottom: 24px; }
.contact-info .item strong { color: var(--secondary); display: block; margin-bottom: 4px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
  transition: var(--transition);
  font-family: inherit;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.5);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(255,255,255,0.1);
}
.contact-form textarea {
  height: 140px;
  resize: vertical;
}
.contact-form select option { color: var(--text); }

/* ===== Footer ===== */
footer {
  background: #0a1422;
  color: #8899aa;
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
footer h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 16px;
}
footer p { font-size: 14px; line-height: 1.8; }
footer ul li { margin-bottom: 8px; }
footer ul li a { font-size: 14px; }
footer ul li a:hover { color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* ===== Products Page Specific ===== */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark), var(--primary));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { font-size: 40px; font-weight: 700; }
.page-hero p { opacity: 0.85; margin-top: 8px; font-size: 16px; }
.breadcrumb {
  margin-bottom: 14px;
  font-size: 14px;
  opacity: 0.7;
}
.breadcrumb a:hover { color: var(--secondary); opacity: 1; }

/* ===== Product Detail ===== */
.product-detail { padding: 50px 0; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.product-detail-img {
  height: 380px;
  border-radius: var(--radius);
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  color: var(--primary-light);
}
.product-detail-info h1 {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 16px;
}
.product-detail-info .desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.spec-table th, .spec-table td {
  padding: 10px 14px;
  border: 1px solid #e8ecf0;
  font-size: 14px;
}
.spec-table th {
  background: var(--primary);
  color: var(--white);
  text-align: left;
  font-weight: 600;
}
.spec-table tr:nth-child(even) { background: var(--light-gray); }
.inquiry-form-box {
  background: var(--light-gray);
  padding: 30px;
  border-radius: var(--radius);
  margin-top: 30px;
}
.inquiry-form-box h3 {
  color: var(--primary);
  margin-bottom: 16px;
}
.inquiry-form-box input,
.inquiry-form-box textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 12px;
  font-family: inherit;
}
.inquiry-form-box input:focus,
.inquiry-form-box textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* ===== About Page ===== */
.about-page-content { padding: 50px 0; }
.about-page-content .container {
  max-width: 860px;
}
.about-page-content h2 {
  color: var(--primary);
  margin: 30px 0 12px;
}

/* ===== Contact Page ===== */
.contact-page { padding: 50px 0; }
.map-placeholder {
  height: 300px;
  background: var(--light-gray);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--gray);
  margin-top: 30px;
}

/* ===== Inquiry Success / Toast ===== */
.toast {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #2d8a4e;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: var(--shadow-hover);
  z-index: 9999;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero h1 { font-size: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-section .container { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  header .container { padding: 10px 16px; }
  .mobile-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  nav.open { display: flex; }
  nav a { padding: 12px; width: 100%; }
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item h3 { font-size: 28px; }
  section { padding: 50px 0; }
  .section-title h2 { font-size: 28px; }
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
