/* Explorer King — ATV/UTV export site */
:root {
  --primary: #ff7a1a;
  --primary-dark: #e05e00;
  --bg: #121417;
  --bg-soft: #1a1d22;
  --bg-card: #1f232a;
  --text: #f0f2f5;
  --text-dim: #9aa3ad;
  --border: #2c313a;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5vw; transition: all .3s;
}
.navbar.scrolled { background: rgba(18,20,23,.92); backdrop-filter: blur(10px); padding: 12px 5vw; box-shadow: 0 2px 20px rgba(0,0,0,.4); }
.nav-logo { font-size: 1.4rem; font-weight: 800; letter-spacing: 1px; color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { font-size: .95rem; color: var(--text); opacity: .9; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.lang-toggle { display: flex; gap: 4px; background: rgba(255,255,255,.06); border-radius: 8px; padding: 3px; }
.lang-btn {
  border: none; background: transparent; color: var(--text-dim); cursor: pointer;
  padding: 5px 10px; border-radius: 6px; font-size: .82rem; font-weight: 600; transition: all .2s;
}
.lang-btn.active { background: var(--primary); color: #fff; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; z-index: 101; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: all .3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1d22 0%, #121417 100%);
  background-size: cover; background-position: center;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,20,23,.55) 0%, rgba(18,20,23,.75) 100%); }
.hero-content { position: relative; z-index: 2; padding: 0 20px; max-width: 900px; animation: fadeUp 1s ease; }
.hero-title { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 900; letter-spacing: 3px; margin-bottom: 14px; }
.hero-title span { color: var(--primary); }
.hero-subtitle { font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: var(--text); opacity: .95; margin-bottom: 10px; font-weight: 600; }
.hero-desc { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 34px; }
.hero-cta {
  display: inline-block; background: var(--primary); color: #fff; font-weight: 700;
  padding: 15px 42px; border-radius: 50px; font-size: 1.05rem; transition: all .25s;
  box-shadow: 0 6px 24px rgba(255,122,26,.35);
}
.hero-cta:hover { background: var(--primary-dark); transform: translateY(-2px); }
.scroll-indicator { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; text-align: center; color: var(--text-dim); font-size: .78rem; }
.scroll-indicator .arrow { width: 16px; height: 16px; border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim); transform: rotate(45deg); margin: 6px auto 0; animation: bounce 1.8s infinite; }
@keyframes bounce { 0%,100% { transform: rotate(45deg) translate(0,0);} 50% { transform: rotate(45deg) translate(6px,6px);} }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px);} to { opacity: 1; transform: translateY(0);} }

/* ===== Sections ===== */
.section { padding: 90px 5vw; max-width: 1500px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 46px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.section-subtitle { color: var(--text-dim); margin-top: 10px; }
.section-divider { width: 64px; height: 4px; background: var(--primary); border-radius: 2px; margin: 18px auto 0; }

/* ===== Products ===== */
.brand-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.brand-btn {
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-dim);
  padding: 9px 22px; border-radius: 50px; cursor: pointer; font-size: .92rem; font-weight: 600; transition: all .2s;
}
.brand-btn:hover { border-color: var(--primary); color: var(--text); }
.brand-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all .3s; animation: fadeUp .5s ease backwards;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(255,122,26,.5); box-shadow: var(--shadow); }
.product-image { height: 210px; background: var(--bg-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.placeholder-icon { font-size: 3.2rem; opacity: .4; }
.product-info { padding: 18px 20px 20px; }
.product-brand { color: var(--primary); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 4px; }
.product-name { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; }
.product-desc { color: var(--text-dim); font-size: .86rem; min-height: 56px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.product-price { font-size: 1.12rem; font-weight: 800; color: var(--primary); }
.product-price.inquire { font-size: .92rem; color: var(--text-dim); font-weight: 600; }
.product-detail-btn {
  border: 1px solid var(--primary); color: var(--primary); background: transparent;
  padding: 8px 18px; border-radius: 50px; cursor: pointer; font-size: .85rem; font-weight: 600; transition: all .2s;
}
.product-detail-btn:hover { background: var(--primary); color: #fff; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(4px);
  z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  max-width: 960px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative;
  display: grid; grid-template-columns: 1.1fr 1fr;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5; background: rgba(0,0,0,.45); color: #fff;
  border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem;
}
.modal-image { background: var(--bg); display: flex; align-items: center; justify-content: center; min-height: 320px; }
.modal-image img { width: 100%; height: 100%; max-height: 480px; object-fit: contain; }
.modal-gallery { display: flex; gap: 8px; padding: 10px 14px; flex-wrap: wrap; grid-column: 1; }
.modal-gallery img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; opacity: .7; transition: all .2s; }
.modal-gallery img.active, .modal-gallery img:hover { border-color: var(--primary); opacity: 1; }
.modal-body { padding: 30px 28px; }
.modal-brand { color: var(--primary); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; }
.modal-name { font-size: 1.7rem; font-weight: 800; margin: 6px 0 10px; }
.modal-price { font-size: 1.25rem; font-weight: 800; color: var(--primary); margin-bottom: 14px; }
.modal-price.inquire { font-size: 1rem; color: var(--text-dim); }
.modal-desc { color: var(--text-dim); font-size: .94rem; margin-bottom: 20px; }
.modal-specs h3 { font-size: 1rem; margin-bottom: 10px; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.spec-list { list-style: none; }
.spec-list li { padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.07); font-size: .88rem; color: var(--text-dim); }
.spec-list li b { color: var(--text); }
.modal-inquire {
  display: inline-block; margin-top: 18px; background: var(--primary); color: #fff; font-weight: 700;
  padding: 12px 30px; border-radius: 50px; transition: all .2s; border: none; cursor: pointer; font-size: .95rem;
}
.modal-inquire:hover { background: var(--primary-dark); }

/* ===== About ===== */
.about-content { max-width: 860px; margin: 0 auto; text-align: center; }
.about-text { color: var(--text-dim); font-size: 1.02rem; white-space: pre-line; }
.about-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 50px; }
.about-feature { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 22px; text-align: center; transition: all .3s; }
.about-feature:hover { transform: translateY(-4px); border-color: rgba(255,122,26,.5); }
.about-feature .icon { font-size: 2.2rem; margin-bottom: 12px; }
.about-feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.about-feature p { color: var(--text-dim); font-size: .88rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.contact-item .label { color: var(--text-dim); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-item .value { font-size: 1.05rem; font-weight: 600; }
.contact-item .value a:hover { color: var(--primary); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  padding: 13px 16px; border-radius: 10px; font-size: .95rem; font-family: inherit; outline: none; transition: border .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { min-height: 110px; resize: vertical; }
.submit-btn {
  background: var(--primary); color: #fff; border: none; padding: 14px; border-radius: 10px;
  font-size: 1rem; font-weight: 700; cursor: pointer; transition: all .2s;
}
.submit-btn:hover { background: var(--primary-dark); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 36px 5vw; text-align: center; color: var(--text-dim); font-size: .88rem; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--primary); }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg-card); border: 1px solid var(--primary); color: var(--text);
  padding: 12px 26px; border-radius: 50px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Scroll animation ===== */
.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: all .7s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .modal-content { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-image { min-height: 240px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    position: fixed; top: 0; right: -280px; width: 260px; height: 100vh;
    background: var(--bg-soft); flex-direction: column; align-items: flex-start;
    padding: 90px 28px; gap: 20px; transition: right .3s; box-shadow: var(--shadow);
  }
  .nav-links.open { right: 0; }
  .section { padding: 64px 5vw; }
}
