/* ============================================
   琼海订购 — Component Styles (Part 1)
   Layout, Navigation, Buttons, Hero, Cards
   Naming: hyphenated (e.g., section-title, product-grid)
   ============================================ */

/* ---- Navigation ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--qh-nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--qh-border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--qh-max-width);
  margin-inline: auto;
  padding-inline: var(--qh-space-5);
}

.nav-brand {
  font-family: var(--qh-font-display);
  font-size: var(--qh-text-xl);
  font-weight: 700;
  color: var(--qh-primary);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: var(--qh-space-6);
  align-items: center;
}

.nav-links a {
  font-size: var(--qh-text-sm);
  font-weight: 500;
  color: var(--qh-text-secondary);
  padding: var(--qh-space-2) 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--qh-primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--qh-primary);
  transition: width var(--qh-duration-base) var(--qh-ease);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--qh-space-2);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--qh-text);
  margin: 5px 0;
  transition: transform var(--qh-duration-base) var(--qh-ease);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--qh-space-2);
  padding: 10px 24px;
  font-family: var(--qh-font-body);
  font-size: var(--qh-text-sm);
  font-weight: 600;
  border-radius: var(--qh-radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--qh-duration-fast) var(--qh-ease);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--qh-primary);
  color: var(--qh-text-on-primary);
}

.btn-primary:hover {
  background: var(--qh-primary-hover);
  box-shadow: var(--qh-shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--qh-primary);
  border: 1px solid var(--qh-primary);
}

.btn-outline:hover {
  background: var(--qh-bg-tint);
}

.btn-sm { padding: 6px 16px; font-size: var(--qh-text-xs); }
.btn-lg { padding: 14px 32px; font-size: var(--qh-text-base); }

/* ---- Section Layout ---- */
.page-section {
  padding: var(--qh-space-16) 0;
}

.page-section:nth-child(even) {
  background: var(--qh-bg-muted);
}

.section-label {
  display: inline-block;
  font-size: var(--qh-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--qh-primary);
  margin-bottom: var(--qh-space-3);
}

.section-title {
  font-size: var(--qh-text-3xl);
  font-weight: 700;
  margin-bottom: var(--qh-space-4);
}

.section-desc {
  font-size: var(--qh-text-lg);
  color: var(--qh-text-muted);
  max-width: 640px;
  line-height: var(--qh-leading-relaxed);
}

.section-header {
  text-align: center;
  margin-bottom: var(--qh-space-10);
}

.section-header .section-desc {
  margin-inline: auto;
}

/* ---- Hero: Product Grid ---- */
.hero-area {
  padding-top: calc(var(--qh-nav-height) + var(--qh-space-12));
  padding-bottom: var(--qh-space-16);
  background:
    linear-gradient(168deg, rgba(255,255,255,0.92) 60%, rgba(244,250,248,0.88) 100%),
    url('../assets/images/hero-bg.jpg') center/cover no-repeat;
}

.hero-top {
  text-align: center;
  margin-bottom: var(--qh-space-10);
}

.hero-title {
  font-size: var(--qh-text-4xl);
  font-weight: 700;
  margin-bottom: var(--qh-space-4);
  color: var(--qh-text);
}

.hero-subtitle {
  font-size: var(--qh-text-lg);
  color: var(--qh-text-muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--qh-space-6);
  line-height: var(--qh-leading-relaxed);
}

.hero-actions {
  display: flex;
  gap: var(--qh-space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--qh-space-4);
}

/* ---- Product Card ---- */
.product-card {
  background: var(--qh-card);
  border-radius: var(--qh-radius-md);
  border: 1px solid var(--qh-border);
  overflow: hidden;
  transition: box-shadow var(--qh-duration-base) var(--qh-ease),
              transform var(--qh-duration-base) var(--qh-ease);
}

.product-card:hover {
  box-shadow: var(--qh-shadow-md);
  transform: translateY(-2px);
}

.product-card-img {
  aspect-ratio: 1 / 1;
  background: var(--qh-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-img svg {
  width: 48px;
  height: 48px;
  color: var(--qh-neutral-300);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: var(--qh-space-4);
}

.product-card-name {
  font-family: var(--qh-font-display);
  font-size: var(--qh-text-base);
  font-weight: 600;
  margin-bottom: var(--qh-space-1);
}

.product-card-tag {
  font-size: var(--qh-text-xs);
  color: var(--qh-text-muted);
}

/* ---- Trust Strip ---- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--qh-space-4);
  padding: var(--qh-space-6) 0;
  border-top: 1px solid var(--qh-border);
  border-bottom: 1px solid var(--qh-border);
  margin-top: var(--qh-space-10);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--qh-space-3);
  justify-content: center;
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--qh-radius-sm);
  background: var(--qh-bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qh-primary);
  flex-shrink: 0;
}

.trust-text {
  font-size: var(--qh-text-sm);
  font-weight: 600;
  color: var(--qh-text-secondary);
}

/* ---- Company Intro ---- */
.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--qh-space-10);
  align-items: center;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--qh-space-4);
  margin-top: var(--qh-space-6);
}

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

.stat-num {
  font-family: var(--qh-font-display);
  font-size: var(--qh-text-2xl);
  font-weight: 700;
  color: var(--qh-primary);
}

.stat-label {
  font-size: var(--qh-text-xs);
  color: var(--qh-text-muted);
  margin-top: var(--qh-space-1);
}

.intro-visual {
  background: var(--qh-bg-tint);
  border-radius: var(--qh-radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qh-neutral-300);
}

/* ---- Ordering Flow ---- */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--qh-space-6);
  margin-bottom: var(--qh-space-8);
}

.flow-step {
  text-align: center;
  padding: var(--qh-space-6);
  background: var(--qh-card);
  border-radius: var(--qh-radius-md);
  border: 1px solid var(--qh-border);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--qh-primary);
  color: var(--qh-text-on-primary);
  font-weight: 700;
  font-size: var(--qh-text-lg);
  margin-bottom: var(--qh-space-4);
}

.step-title {
  font-family: var(--qh-font-display);
  font-size: var(--qh-text-lg);
  font-weight: 600;
  margin-bottom: var(--qh-space-2);
}

.step-desc {
  font-size: var(--qh-text-sm);
  color: var(--qh-text-muted);
  line-height: var(--qh-leading-relaxed);
}

.mode-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--qh-space-6);
}

.mode-card {
  padding: var(--qh-space-6);
  border-radius: var(--qh-radius-md);
  border: 1px solid var(--qh-border);
  background: var(--qh-card);
}

.mode-card-header {
  display: flex;
  align-items: center;
  gap: var(--qh-space-3);
  margin-bottom: var(--qh-space-4);
}

.mode-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--qh-radius-sm);
  font-size: var(--qh-text-xs);
  font-weight: 600;
  background: var(--qh-bg-tint);
  color: var(--qh-primary);
}

.mode-card h4 {
  font-size: var(--qh-text-lg);
  font-weight: 600;
}

.mode-card ul {
  display: flex;
  flex-direction: column;
  gap: var(--qh-space-3);
}

.mode-card li {
  font-size: var(--qh-text-sm);
  color: var(--qh-text-secondary);
  padding-left: 20px;
  position: relative;
}

.mode-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--qh-secondary);
}
