/* 亿企挣设备租赁云南有限公司 · 展示型商城全局样式 */
:root {
  --navy: #1e3a5f;
  --navy-dark: #0f172a;
  --blue: #1d4ed8;
  --orange: #c2410c;
  --price: #c2410c;
  --bg: #f5f6f8;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

main {
  flex: 1;
  padding: 24px 0 48px;
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 10px;
  flex-wrap: wrap;
}

.brand {
  color: var(--white);
  text-decoration: none;
  max-width: 720px;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.95;
}

.brand-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-slogan {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
}

.header-phone {
  font-size: 0.95rem;
  white-space: nowrap;
}

.header-phone a {
  color: #fdba74;
  font-weight: 700;
  text-decoration: none;
}

.header-phone span {
  color: rgba(255, 255, 255, 0.75);
  margin-right: 6px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding: 0 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.nav a.active {
  background: #2563eb;
}

/* Banner — real photo, no rainbow gradient */
.banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  background: var(--navy-dark);
  color: #fff;
}

.banner-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background-color: #1e293b;
  background-size: cover;
  background-position: center;
}

.banner-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
}

.banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
  max-width: 720px;
}

.banner h1 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
}

.banner p {
  margin: 0 0 18px;
  opacity: 0.95;
  font-size: 0.98rem;
}

.banner-actions {
  justify-content: center;
}

.btn-light {
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
  color: var(--navy-dark);
}

.btn-light:hover {
  background: #fff;
  color: var(--navy-dark);
}

/* Sections */
.section {
  margin-bottom: 32px;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 1.25rem;
  color: var(--navy-dark);
}

.section-title a {
  font-size: 0.9rem;
  font-weight: 500;
}

.muted {
  color: var(--muted);
}

/* Category entries */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.category-cover {
  aspect-ratio: 16 / 10;
  background: #e5e7eb;
  overflow: hidden;
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-body {
  padding: 14px 16px 16px;
}

.category-card h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 1.05rem;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-card a.card-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card .body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--navy-dark);
  line-height: 1.4;
}

.product-card .spec {
  font-size: 0.82rem;
  color: var(--muted);
}

.product-card .price {
  margin-top: auto;
  color: var(--price);
  font-weight: 700;
  font-size: 1.05rem;
}

.product-card .price small {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Real product thumbs */
.thumb {
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  position: relative;
  overflow: hidden;
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-fallback {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #6b7280;
  font-weight: 700;
  font-size: 1rem;
}

.thumb-lg {
  min-height: 280px;
  aspect-ratio: 1;
  border-radius: var(--radius);
}

/* Product detail */
.detail {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.detail-gallery {
  min-width: 0;
}

.detail-photo {
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta h1 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  color: var(--navy-dark);
}

.detail-meta .breadcrumb {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.detail-meta .breadcrumb a {
  color: var(--muted);
}

.detail-meta .breadcrumb a:hover {
  color: var(--blue);
}

.detail-meta .spec,
.detail-meta .summary {
  color: var(--muted);
  margin: 0 0 8px;
}

.detail-meta .price {
  color: var(--price);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 12px 0 18px;
}

.detail-meta .price small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.detail-sections {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.detail-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.detail-block h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--navy);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.detail-block p {
  margin: 0 0 10px;
  color: var(--text);
}

.feature-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.feature-list li {
  position: relative;
  padding: 10px 12px 10px 32px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 10px;
  color: #15803d;
  font-weight: 700;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.spec-table th,
.spec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 28%;
  color: var(--muted);
  font-weight: 600;
  background: #f9fafb;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.detail-note p {
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  background: #f1f5f9;
}

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: #9a3412;
  border-color: #9a3412;
  color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* About / contact */
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel h1 {
  margin: 0 0 12px;
  color: var(--navy-dark);
  font-size: 1.45rem;
}

.panel h2 {
  margin: 20px 0 10px;
  font-size: 1.1rem;
  color: var(--navy);
}

.panel p {
  margin: 0 0 10px;
}

.checklist {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.checklist li {
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.promise-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.promise-list li {
  text-align: center;
  padding: 14px 10px;
  background: #eff6ff;
  color: #1e40af;
  border-radius: 8px;
  font-weight: 600;
}

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

.info-list dt {
  font-weight: 700;
  color: var(--navy);
  margin-top: 12px;
}

.info-list dd {
  margin: 4px 0 0;
  color: var(--text);
}

/* Forms */
.form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form label .req {
  color: var(--orange);
}

.form input,
.form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: var(--blue);
}

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

.form-msg {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  display: none;
}

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

.form-msg.ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.form-msg.err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Empty state */
.empty-state {
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-state h2 {
  margin: 0 0 8px;
  color: var(--navy);
}

.empty-state .btn-group {
  justify-content: center;
  margin-top: 16px;
}

/* Filter placeholder */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-bar span {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 0.85rem;
}

.filter-bar span.active {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 600;
}

/* Teaser */
.teaser {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.teaser p {
  margin: 0 0 14px;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #94a3b8;
  padding: 28px 0 20px;
  margin-top: auto;
  font-size: 0.9rem;
  line-height: 1.7;
}

.site-footer .company {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.site-footer a {
  color: #93c5fd;
}

.site-footer .copy {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.82rem;
}

/* Page title row */
.page-head {
  margin-bottom: 16px;
}

.page-head h1 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  color: var(--navy-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .detail,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .banner-content {
    padding: 28px 18px;
  }

  .header-top {
    align-items: flex-start;
  }

  .spec-table th {
    width: 36%;
  }
}
