/* ============================================================
   翟墨船外机 Dimo Marine — 中文官网样式
   配色：蓝色系（海洋/船舶） + 白色背景
   所有配色集中在 :root 变量中，修改便捷
   ============================================================ */

/* ===== CSS Variables / 配色方案 ===== */
:root {
  /* 主色调 — 深海蓝 */
  --color-primary: #0A2647;
  --color-primary-light: #144272;
  --color-primary-lighter: #205295;
  --color-primary-pale: #2C74B3;

  /* 强调色 — 海蓝 / 行动号召 */
  --color-accent: #E05A2D;
  --color-accent-hover: #C94D24;

  /* 中性色 */
  --color-white: #FFFFFF;
  --color-bg: #F8FAFB;
  --color-bg-alt: #EDF2F7;
  --color-text: #1A202C;
  --color-text-secondary: #4A5568;
  --color-text-muted: #718096;
  --color-border: #E2E8F0;
  --color-border-light: #EDF2F7;

  /* 辅助色 */
  --color-success: #38A169;
  --color-warning: #D69E2E;
  --color-error: #E53E3E;

  /* 排版 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  /* 间距 & 圆角 */
  --container-max: 1200px;
  --section-padding: 80px 0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

  /* 过渡 */
  --transition: 0.3s ease;

  /* 导航高度 */
  --header-height: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.section-padding { padding: var(--section-padding); }

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 16px auto 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* ===== Header / Navigation ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

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

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

/* Nav */
.main-nav .nav-list {
  display: flex;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-light);
  background: rgba(20,66,114,0.06);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--color-primary-light);
  border-radius: 1px;
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  transition: all var(--transition);
}

.lang-switch:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary-light);
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 40%, var(--color-primary-lighter) 100%);
  overflow: hidden;
  text-align: center;
}

/* Decorative background pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* Wave decoration */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C240,80 480,0 720,40 C960,80 1200,0 1440,40 L1440,80 L0,80 Z' fill='%23FFFFFF'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 100%;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,38,71,0.15);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-height);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 20px;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-arrow {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255,255,255,0.6);
  border-bottom: 2px solid rgba(255,255,255,0.6);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0,0); opacity: 0.6; }
  50% { transform: rotate(45deg) translate(6px,6px); opacity: 1; }
}

/* ===== Product Filters ===== */
.product-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary-light);
}

.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-pale);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-card-img .placeholder-icon {
  font-size: 3rem;
  opacity: 0.5;
  color: var(--color-text-muted);
}

.product-card-body {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.product-card-body .product-category {
  font-size: 0.8rem;
  color: var(--color-primary-pale);
  font-weight: 500;
  margin-bottom: 8px;
}

.product-card-body .product-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card-footer .product-tag {
  font-size: 0.78rem;
  background: var(--color-bg-alt);
  color: var(--color-text-secondary);
  padding: 4px 10px;
  border-radius: 50px;
}

.product-card-footer .view-detail {
  font-size: 0.85rem;
  color: var(--color-primary-pale);
  font-weight: 600;
}

/* ===== Product Detail / Exploded View ===== */
.detail-section .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  margin-bottom: 30px;
  transition: all var(--transition);
}

.detail-section .back-btn:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary-light);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.detail-info {
  /* left column */
}

.detail-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.detail-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.detail-desc {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-item {
  padding: 12px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}

.spec-item .spec-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.spec-item .spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

/* Exploded View Placeholder */
.detail-exploded {
  min-height: 400px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
}

.exploded-placeholder {
  text-align: center;
  padding: 40px;
  color: var(--color-text-muted);
}

.exploded-placeholder .exploded-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.exploded-placeholder h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.exploded-placeholder p {
  font-size: 0.9rem;
  max-width: 300px;
  margin: 0 auto 8px;
  line-height: 1.6;
}

.exploded-hint {
  font-size: 0.8rem !important;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 12px !important;
}

/* ===== Advantages ===== */
.advantages-section {
  background: var(--color-bg);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.advantage-card {
  background: var(--color-white);
  padding: 36px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.advantage-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}

.advantage-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== About ===== */
.about-section {
  background: var(--color-white);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-paragraph {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 36px;
  margin-top: 28px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary-light);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.about-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Contact ===== */
.contact-section {
  background: var(--color-bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.contact-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

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

.contact-form h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 24px;
}

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

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.required { color: var(--color-error); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(20,66,114,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

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

/* ===== Footer ===== */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.7);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-links ul li { margin-bottom: 8px; }

.footer-links ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

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

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

.footer-icp a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-icp a:hover {
  color: rgba(255,255,255,0.7);
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

/* ========== Responsive ========== */

/* Tablet < 992px */
@media (max-width: 991px) {
  :root {
    --section-padding: 60px 0;
  }

  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.6rem; }

  .detail-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-link { padding: 8px 12px; font-size: 0.9rem; }
}

/* Mobile < 768px */
@media (max-width: 767px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    padding: 12px 20px;
    border-radius: 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border-light);
  }

  .nav-link.active::after { display: none; }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-subtitle br { display: none; }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .product-filters { gap: 6px; }
  .filter-btn { padding: 8px 16px; font-size: 0.82rem; }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-stats { gap: 20px; }
  .stat-number { font-size: 1.6rem; }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

/* Small Mobile < 480px */
@media (max-width: 479px) {
  .hero-title { font-size: 1.5rem; }
  .section-title { font-size: 1.35rem; }
  .section-padding { padding: 40px 0; }

  .hero-cta { flex-direction: column; }
  .btn { width: 100%; }

  .logo-img { height: 32px; }
  :root { --header-height: 60px; }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Intersection Observer — reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Contact Form Success Message ===== */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show { display: block; }

.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.form-success p {
  font-size: 1rem;
  color: var(--color-success);
}

/* ==================== 零件查询区 (B方案) ==================== */
.parts-section { background: #f4f8fb; }
.parts-search-box {
  display: flex; gap: 12px; max-width: 640px; margin: 24px auto 12px;
}
.parts-search-input {
  flex: 1; padding: 14px 18px; font-size: 1.05rem; border: 2px solid #c8d6e4;
  border-radius: 8px; outline: none; background: #fff; color: #1a3a5c;
  transition: border-color .2s;
}
.parts-search-input:focus { border-color: #1a6bb0; }
.parts-search-btn { white-space: nowrap; width: 52px; padding: 10px 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.parts-search-hint {
  text-align: center; color: #7a8ea0; font-size: .85rem; margin-bottom: 20px;
}
.parts-results {
  display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin: 0 auto;
}
.ps-card {
  background: #fff; border: 1px solid #e2ebf3; border-radius: 10px;
  padding: 18px 20px; box-shadow: 0 2px 8px rgba(26,58,92,.06);
}
.ps-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ps-code {
  font-family: 'Consolas', 'Menlo', monospace; font-weight: 700; font-size: 1.05rem;
  color: #1a6bb0; letter-spacing: .3px;
}
.ps-name-ja { color: #5a7a9a; font-size: .95rem; }
.ps-name-en { color: #333; font-size: .95rem; margin-top: 4px; }
.ps-models { margin-top: 8px; font-size: .88rem; color: #444; }
.ps-figs { margin-top: 4px; font-size: .85rem; color: #7a8ea0; }
.ps-actions { margin-top: 12px; }
.ps-btn {
  display: inline-block; padding: 8px 16px; background: #1a6bb0; color: #fff;
  border-radius: 6px; font-size: .9rem; text-decoration: none; transition: background .2s;
}
.ps-btn:hover { background: #155a94; }
.ps-empty { text-align: center; color: #7a8ea0; padding: 30px 0; }
.ps-exploded-note {
  max-width: 860px; margin: 20px auto 0; padding: 14px 18px; background: #fff8e6;
  border: 1px solid #f0d48a; border-radius: 8px; color: #6b5b2e; font-size: .9rem;
  text-align: center;
}

/* ===== 两级分类筛选：子分类第二行 ===== */
.product-subfilters {
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -24px;
  margin-bottom: 40px;
}
.product-subfilters .filter-btn.sub-filter-btn {
  background: var(--color-bg-alt);
  border-color: transparent;
}
.product-subfilters .filter-btn.sub-filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ===== 整机详情：实物大图 ===== */
.detail-exploded:has(.detail-outboard-img) {
  border-style: solid;
  border-color: var(--color-border-light);
  background: #fff;
  padding: 24px;
}
.detail-outboard-img {
  width: 100%;
}
.detail-outboard-img img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: 10px;
}
