/* =========================================================
   MOTOGRIP GLOBAL - Industrial Dark Theme
   Shared styles for catalog-preview.html & catalog-full.html
   ========================================================= */

:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #1a1a1a;
  --bg-card: #1e2125;
  --bg-card-hover: #262626;
  --accent: #e8b400;
  --accent-hover: #e6951a;
  --accent-dim: rgba(245, 166, 35, 0.15);
  --text-primary: #f0f0f0;
  --text-secondary: #9a9a9a;
  --text-muted: #6a6a6a;
  --border: #2a2a2a;
  --border-strong: #3a3a3a;
  --success: #4caf50;
  --error: #e53935;
  --warning: #ff9800;
  --input-bg: #161616;
  --radius: 6px;
  --radius-lg: 10px;
}

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

html, body {
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container { max-width: 1400px; margin: 0 auto; padding: 0 18px; }

/* ===================== HEADER ===================== */
.header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.05em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #000;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

.logo .accent { color: var(--accent); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--text-primary); }

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

/* ===================== LANGUAGE SWITCHER ===================== */
.lang-switcher {
  display: flex;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.lang-btn:hover { color: var(--text-primary); }
.lang-btn.active { background: var(--accent); color: #000; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

/*var(--accent-hover);*/

.btn-primary:hover {
  background: rgb(255,210,0);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.25);
}

.btn-primary:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 15px; }

/* ===================== PAGE SECTIONS ===================== */
.page-section {
  padding: 64px 0;
}

.section-eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--font-display);
  font-size: 16px;
  max-width: 720px;
  margin-bottom: 40px;

}

/* ===================== PRODUCT CARDS =====================  product-card: border-radius: var(--radius-lg);*/
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px;

}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius:2px;
  padding: 24px;
  position: relative;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.product-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 40px rgba(245, 166, 35, 0.08);
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 6px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.product-category {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.product-image {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: var(--radius);
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.product-prscard{
  position:absolute;
  width:86%;
  bottom:0;
  background-color:rgb(20,30,40);
  opacity:0.91;
  left:50%
  transform: translateX(-50%);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-image-placeholder {
  font-size: 48px;
  opacity: 0.25;
  color: var(--accent);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.spec-row:last-of-type { border-bottom: none; }

.spec-label {
  color: var(--text-secondary);
  font-size: 13px;
}

.spec-value {
  color: var(--text-primary);
  font-weight: 600;
  text-align:right;
  color:rgb(240,255,210)
}

.blurred {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.product-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Quantity input on full catalog cards color: var(--text-secondary);*/
.qty-control {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  background-color:var(--bg-card);;
  opacity:1;
}

.qty-control label {

  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex: 1;
}

.qty-input {
  width: 90px;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  font-family: inherit;
}

.qty-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-secondary);
}

/* ===================== FORMS ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(18px, 3vw, 56px);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; position:relative;left:50px;top:60px}
.cinfo-item {
  display: flex;
  gap: 16px;
}
.cinfo-item strong {
  display: block;
  font-family: var(--font-cond);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.cinfo-item p { color: var(--text-muted); font-size: 0.95rem; }
.cinfo-item a { color: var(--text-muted); transition: color var(--trans); }
.cinfo-item a:hover { color: var(--white); }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 20px;
}

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

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-label .req { color: var(--accent); margin-left: 4px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-secondary);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-select optgroup {
  background: var(--bg-primary);
  color: var(--accent);
  font-weight: 700;
}

/* Verification code input */
.code-input-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0;
}

.code-digit {
  width: 52px;
  height: 60px;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: var(--radius);
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  font-family: inherit;
}

.code-digit:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

/* ===================== ALERTS ===================== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

.alert.show { display: block; }

.alert-success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: var(--success);
}

.alert-error {
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.3);
  color: var(--error);
}

.alert-info {
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--accent);
}

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

/* ===================== TOOLBAR (full catalog) ===================== */
.toolbar {
  position: sticky;
  top: 76px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  z-index: 50;
  flex-wrap: wrap;
}

.toolbar-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.toolbar-info strong {
  color: var(--accent);
  font-weight: 800;
}

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

.sectionxpl{
    margin-left:40px;
    font-size:10pt;
    font-weight:600;
    font-style: italic;
}

/* ===================== INQUIRY PANEL ===================== */
.inquiry-section {
  margin-top: 64px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.inquiry-list {
  background: var(--input-bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
  max-height: 240px;
  overflow-y: auto;
}

.inquiry-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.inquiry-item:last-child { border-bottom: none; }

.inquiry-item-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
  font-style: italic;
  font-size: 14px;
}

/* ===================== FOOTER ===================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 80px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ===================== UTILITIES ===================== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .toolbar { top: 70px; }
  .contact-grid {grid-template-columns: 1fr;}
  .contact-info {left:0;top:0;}
}




/*新加的*/
/* ── REVEAL ANIMATION ── */
.reveal-down {
    opacity:0;
    transform:translateY(-24px);
    transition: opacity 3s ease, transform 3s ease;
}
.reveal-down.visible {
  opacity: 1;
  transform: none;
}

/* ── SECTION ── */
.section { padding: clamp(56px, 7vw, 100px) 0; }
.section-dark { background: var(--bg2); }
.containerf { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
/* ── SECTION HEADERS ── */
.section-label {
  display: inline-block; font-family: var(--font-cond); font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.section-titlex {
  font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px);
  letter-spacing: 0.04em; line-height: 1; color: var(--text); margin-bottom: 12px;
}
/* ── PREVIEW PRODUCTS GRID ── */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  margin-bottom: 2px;
}
.prod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px 28px;
  position: relative;
  transition: background var(--trans), border-color var(--trans);
}
.prod-card:hover { background: #252830; border-color: rgba(232,180,0,0.25); }
.prod-card.featured { background: rgba(232,180,0,0.05); border-color: rgba(232,180,0,0.35); }
.prod-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 3px 9px; background: var(--accent); color: #000;
  font-family: var(--font-cond); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; border-radius: 2px;
}
.prod-cat {
  font-family: var(--font-cond); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 8px;
}
.prod-name {
  font-family: var(--font-cond); font-size: 1.3rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--white);
  margin-bottom: 16px;
}
.prod-specs {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px;
}
.spec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0; border-bottom: 1px solid var(--border);
  font-size: 0.7rem;
}
.spec-label { color: var(--text-dim); font-family: var(--font-cond); letter-spacing: 0.05em; font-weight: 600; }
.spec-val { color: var(--text-muted); }
.prod-locked {
  margin-top: 18px; padding: 10px 14px;
  background: rgba(255,255,255,0.03); border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-cond); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim);
}
.lock-icon { font-size: 0.85rem; }



/* ===================== CATEGORY SECTIONS ===================== */
.category-section {
  margin-bottom: 48px;
}

.cat-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.cat-title {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.cat-count {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.cat-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.cat-expand-btn,
.cat-collapse-btn {
  font-size: 13px;
  padding: 8px 18px;
}

.cat-pager {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.pager-btn {
  font-size: 13px;
  padding: 8px 16px;
  min-width: 80px;
}

.pager-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pager-info {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 48px;
  text-align: center;
}

/* catalog-sections: vertical stack of category blocks */
.catalog-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
}
