/* Nova 外贸站样式 —— 零依赖，无外部字体与框架 */

:root {
  --nv-primary: #0b5ed7;
  --nv-primary-dark: #0847a6;
  --nv-accent: #ff6b35;
  --nv-accent-dark: #e8571f;
  --nv-text: #1f2937;
  --nv-text-muted: #6b7280;
  --nv-border: #e5e7eb;
  --nv-bg: #ffffff;
  --nv-bg-alt: #f5f7fa;
  --nv-radius: 10px;
  --nv-shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --nv-shadow-lg: 0 10px 30px rgba(16, 24, 40, .08);
  --nv-container: 1200px;
}

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

body.nv-site,
body.nv-install {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--nv-text);
  background: var(--nv-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 600; }

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

/* ---------- 按钮 ---------- */
.nv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border: 1px solid transparent; border-radius: var(--nv-radius);
  font-size: 15px; font-weight: 500; cursor: pointer; transition: all .18s ease;
  background: var(--nv-bg-alt); color: var(--nv-text); white-space: nowrap;
}
.nv-btn:hover { transform: translateY(-1px); }
.nv-btn.is-primary { background: var(--nv-accent); color: #fff; }
.nv-btn.is-primary:hover { background: var(--nv-accent-dark); }
.nv-btn.is-outline { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.nv-btn.is-outline:hover { background: rgba(255, 255, 255, .12); }
.nv-btn.is-sm { padding: 8px 16px; font-size: 14px; }
.nv-btn.is-block { display: flex; width: 100%; margin-top: 8px; }

/* ---------- 头部 ---------- */
.nv-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--nv-border); }
.nv-header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.nv-logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; flex-shrink: 0; }
.nv-logo-mark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--nv-primary); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
}
.nv-logo-text { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nv-nav { display: flex; gap: 26px; margin-left: auto; }
.nv-nav-link { font-size: 15px; color: var(--nv-text-muted); padding: 6px 0; border-bottom: 2px solid transparent; transition: all .18s ease; }
.nv-nav-link:hover { color: var(--nv-primary); }
.nv-nav-link.is-active { color: var(--nv-primary); border-bottom-color: var(--nv-primary); }

.nv-header-tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nv-nav { margin-left: 0; }
.nv-header-inner > .nv-nav { margin-left: auto; }

/* 语言切换 */
.nv-lang-switch { position: relative; }
.nv-lang-current {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius); background: #fff; cursor: pointer; font-size: 14px; color: var(--nv-text);
}
.nv-lang-globe { width: 14px; height: 14px; border: 1.5px solid var(--nv-text-muted); border-radius: 50%; display: inline-block; }
.nv-lang-list {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 140px; background: #fff;
  border: 1px solid var(--nv-border); border-radius: var(--nv-radius); box-shadow: var(--nv-shadow-lg);
  list-style: none; padding: 6px; display: none; z-index: 60;
}
.nv-lang-list.is-open { display: block; }
.nv-lang-list a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14px; color: var(--nv-text-muted); }
.nv-lang-list a:hover { background: var(--nv-bg-alt); color: var(--nv-text); }
.nv-lang-list a.is-active { color: var(--nv-primary); font-weight: 500; }

.nv-nav-toggle { display: none; flex-direction: column; gap: 4px; width: 40px; height: 36px;
  align-items: center; justify-content: center; background: none; border: 1px solid var(--nv-border);
  border-radius: 8px; cursor: pointer; }
.nv-nav-toggle span { width: 18px; height: 2px; background: var(--nv-text); display: block; }

/* ---------- Hero ---------- */
.nv-hero { background: linear-gradient(135deg, #0b3d91 0%, #0b5ed7 100%); color: #fff; padding: 84px 0 76px; }
.nv-hero-inner { text-align: center; }
.nv-hero-title { font-size: 42px; margin-bottom: 14px; letter-spacing: -.5px; }
.nv-hero-tagline { font-size: 18px; opacity: .92; max-width: 720px; margin: 0 auto 30px; }
.nv-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 区块 ---------- */
.nv-section { padding: 64px 0; }
.nv-section.is-alt { background: var(--nv-bg-alt); }
.nv-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.nv-section-title { font-size: 28px; margin-bottom: 6px; }
.nv-section-desc { color: var(--nv-text-muted); }
.nv-link-more { color: var(--nv-primary); font-size: 15px; }
.nv-link-more:hover { text-decoration: underline; }

/* 分类卡 */
.nv-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.nv-cat-card {
  display: flex; align-items: center; justify-content: space-between; padding: 20px 22px;
  background: #fff; border: 1px solid var(--nv-border); border-radius: var(--nv-radius); transition: all .18s ease;
}
.nv-cat-card:hover { border-color: var(--nv-primary); box-shadow: var(--nv-shadow); transform: translateY(-2px); }
.nv-cat-name { font-weight: 500; }
.nv-cat-arrow { color: var(--nv-primary); }

/* ---------- 产品网格 ---------- */
.nv-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.nv-product-card {
  background: #fff; border: 1px solid var(--nv-border); border-radius: var(--nv-radius);
  overflow: hidden; transition: all .2s ease; display: flex; flex-direction: column;
}
.nv-product-card:hover { transform: translateY(-3px); box-shadow: var(--nv-shadow-lg); border-color: #d1d5db; }
.nv-product-thumb { aspect-ratio: 4 / 3; background: var(--nv-bg-alt); overflow: hidden; }
.nv-product-thumb.is-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #eef2f7, #dfe7f1); }
.nv-thumb-initial { font-size: 46px; font-weight: 700; color: #94a3b8; text-transform: uppercase; }
.nv-product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nv-product-name { font-size: 17px; }
.nv-product-summary { color: var(--nv-text-muted); font-size: 14px; flex: 1; }
.nv-product-more { color: var(--nv-primary); font-size: 14px; font-weight: 500; }

/* ---------- CTA ---------- */
.nv-cta-band { background: var(--nv-primary); color: #fff; padding: 46px 0; }
.nv-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.nv-cta-title { font-size: 24px; margin-bottom: 4px; }
.nv-cta-desc { opacity: .9; }

/* ---------- 内页 ---------- */
.nv-page-head { background: var(--nv-bg-alt); border-bottom: 1px solid var(--nv-border); padding: 40px 0; }
.nv-page-title { font-size: 30px; }
.nv-page-meta { color: var(--nv-text-muted); margin-top: 6px; }
.nv-page-body { padding: 40px 0 64px; }

.nv-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.nv-filter-chip {
  padding: 8px 18px; border: 1px solid var(--nv-border); border-radius: 999px;
  font-size: 14px; color: var(--nv-text-muted); background: #fff; transition: all .18s ease;
}
.nv-filter-chip:hover { border-color: var(--nv-primary); color: var(--nv-primary); }
.nv-filter-chip.is-active { background: var(--nv-primary); border-color: var(--nv-primary); color: #fff; }

/* 面包屑 */
.nv-breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--nv-text-muted); margin-bottom: 24px; }
.nv-breadcrumb a:hover { color: var(--nv-primary); }
.nv-breadcrumb .nv-sep { opacity: .5; }
.nv-breadcrumb .nv-current { color: var(--nv-text); }

/* ---------- 产品详情 ---------- */
.nv-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; margin-bottom: 44px; }
.nv-detail-thumb { aspect-ratio: 4 / 3; border-radius: var(--nv-radius); overflow: hidden;
  background: linear-gradient(135deg, #eef2f7, #dfe7f1); display: grid; place-items: center; }
.nv-gallery { display: flex; flex-direction: column; gap: 12px; }
.nv-gallery img { border-radius: var(--nv-radius); width: 100%; }
.nv-detail-title { font-size: 30px; margin-bottom: 12px; }
.nv-detail-summary { color: var(--nv-text-muted); font-size: 17px; margin-bottom: 24px; }
.nv-detail-actions { display: flex; gap: 12px; }

.nv-block { margin-bottom: 40px; }
.nv-block-title { font-size: 20px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--nv-border); }

.nv-spec-table { width: 100%; border-collapse: collapse; }
.nv-spec-table th, .nv-spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--nv-border); text-align: left; font-size: 15px; }
.nv-spec-table th { width: 40%; font-weight: 500; color: var(--nv-text-muted); background: var(--nv-bg-alt); }
.nv-spec-table tr:last-child th, .nv-spec-table tr:last-child td { border-bottom: none; }

.nv-rich-text p { margin-bottom: 14px; }
.nv-rich-text p:last-child { margin-bottom: 0; }
.nv-text-muted { color: var(--nv-text-muted); }

/* ---------- 关于 ---------- */
.nv-about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.nv-side-card { background: var(--nv-bg-alt); border-radius: var(--nv-radius); padding: 24px; position: sticky; top: 88px; }
.nv-side-card h3 { font-size: 17px; margin-bottom: 16px; }
.nv-contact-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.nv-contact-list > div { display: flex; flex-direction: column; gap: 2px; }
.nv-contact-list dt { font-size: 13px; color: var(--nv-text-muted); }
.nv-contact-list dd { font-size: 15px; margin: 0; }

/* ---------- 联系 ---------- */
.nv-contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.nv-form { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.nv-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.nv-field { display: flex; flex-direction: column; gap: 7px; }
.nv-field-label { font-size: 14px; font-weight: 500; }
.nv-field-label b { color: var(--nv-accent); }
.nv-input, .nv-textarea, .nv-select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--nv-border); border-radius: var(--nv-radius);
  font-size: 15px; font-family: inherit; color: var(--nv-text); background: #fff; transition: border-color .18s ease;
}
.nv-input:focus, .nv-textarea:focus, .nv-select:focus { outline: none; border-color: var(--nv-primary); }
.nv-input.is-error, .nv-textarea.is-error { border-color: #dc2626; }
.nv-textarea { resize: vertical; min-height: 110px; }
.nv-field-error { font-size: 13px; color: #dc2626; }
.nv-field-hint { font-size: 13px; color: var(--nv-text-muted); }
.nv-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.nv-alert { padding: 13px 16px; border-radius: var(--nv-radius); font-size: 15px; margin-bottom: 18px; }
.nv-alert.is-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.nv-alert.is-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- 提示态 ---------- */
.nv-empty-state { text-align: center; padding: 60px 20px; color: var(--nv-text-muted); display: flex;
  flex-direction: column; align-items: center; gap: 18px; }

.nv-license-error { max-width: 560px; margin: 60px auto; text-align: center; padding: 48px 32px;
  border: 1px solid var(--nv-border); border-radius: var(--nv-radius); }
.nv-license-icon { width: 60px; height: 60px; margin: 0 auto 20px; position: relative; }
.nv-lock-body { position: absolute; bottom: 0; left: 8px; width: 44px; height: 34px;
  background: var(--nv-accent); border-radius: 6px; }
.nv-lock-shackle { position: absolute; top: 0; left: 19px; width: 22px; height: 24px;
  border: 5px solid var(--nv-accent); border-bottom: none; border-radius: 11px 11px 0 0; }
.nv-license-title { font-size: 24px; margin-bottom: 10px; }
.nv-license-message { color: var(--nv-text-muted); margin-bottom: 8px; }
.nv-license-hint { font-size: 14px; color: var(--nv-text-muted); }

/* ---------- 页脚 ---------- */
.nv-footer { background: #111827; color: #d1d5db; padding: 52px 0 0; margin-top: 20px; }
.nv-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.nv-footer-brand { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.nv-footer-tagline { font-size: 14px; max-width: 380px; }
.nv-footer-col { display: flex; flex-direction: column; gap: 9px; }
.nv-footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 5px; }
.nv-footer-col a, .nv-footer-col span { font-size: 14px; }
.nv-footer-col a:hover { color: #fff; }
.nv-footer-bottom { border-top: 1px solid #1f2937; padding: 18px 0; font-size: 13px; color: #9ca3af; }

/* ---------- 安装向导 ---------- */
body.nv-install { background: var(--nv-bg-alt); }
.nv-install-wrap { max-width: 640px; margin: 0 auto; padding: 48px 20px 64px; }
.nv-install-head { text-align: center; margin-bottom: 28px; }
.nv-install-logo { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--nv-primary); color: #fff; font-weight: 700; font-size: 20px; margin-bottom: 14px; }
.nv-install-head h1 { font-size: 26px; margin-bottom: 6px; }
.nv-install-sub { color: var(--nv-text-muted); }

.nv-card { background: #fff; border: 1px solid var(--nv-border); border-radius: var(--nv-radius);
  padding: 24px; margin-bottom: 18px; box-shadow: var(--nv-shadow); }
.nv-install-step { font-size: 16px; margin-bottom: 16px; }

.nv-check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.nv-check-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.nv-check-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.is-ok .nv-check-dot { background: #16a34a; }
.is-bad .nv-check-dot { background: #dc2626; }
.is-warn .nv-check-dot { background: #f59e0b; }
.nv-check-label { flex: 1; }
.nv-check-detail { color: var(--nv-text-muted); font-size: 13px; }

.nv-install-form, .nv-form { margin-top: 4px; }
.nv-install-block { border-color: #fecaca; background: #fef2f2; }
.nv-install-block h2 { color: #991b1b; font-size: 16px; margin-bottom: 6px; }
.nv-install-block p { color: #991b1b; font-size: 14px; }

.nv-install-done { text-align: center; }
.nv-install-ok { font-size: 20px; font-weight: 600; color: #16a34a; margin-bottom: 10px; }
.nv-install-done p { color: var(--nv-text-muted); margin-bottom: 20px; }
.nv-install-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; text-align: left;
  background: var(--nv-bg-alt); border-radius: 8px; padding: 14px 16px; }
.nv-install-meta > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.nv-install-meta dt { color: var(--nv-text-muted); }
.nv-install-meta dd { margin: 0; word-break: break-all; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nv-detail { grid-template-columns: 1fr; gap: 24px; }
  .nv-about-layout, .nv-contact-layout { grid-template-columns: 1fr; }
  .nv-side-card { position: static; }
  .nv-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nv-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; padding: 8px 20px 16px; border-bottom: 1px solid var(--nv-border);
    box-shadow: var(--nv-shadow-lg);
  }
  .nv-nav.is-open { display: flex; }
  .nv-nav-link { padding: 12px 0; border-bottom: 1px solid var(--nv-border); }
  .nv-nav-link.is-active { border-bottom-color: var(--nv-border); color: var(--nv-primary); }
  .nv-nav-toggle { display: flex; }
  .nv-header-cta { display: none; }
  .nv-hero { padding: 56px 0 48px; }
  .nv-hero-title { font-size: 30px; }
  .nv-hero-tagline { font-size: 16px; }
  .nv-field-row { grid-template-columns: 1fr; }
  .nv-section { padding: 44px 0; }
  .nv-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nv-detail-title { font-size: 24px; }
  .nv-spec-table th { width: 45%; }
}
