/* =========================================================
   广州网润贸易有限公司 - 官网公共样式
   ========================================================= */
:root {
  --primary: #E60012;
  --primary-dark: #C00010;
  --primary-light: #FFE8EA;
  --accent: #1A1A1A;
  --bg: #FFFFFF;
  --surface: #F7F7F7;
  --surface-alt: #EEEEEE;
  --text: #111111;
  --text-secondary: #666666;
  --border: #EAEAEA;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ========== Header ========== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo-img {
  width: 40px; height: 40px; border-radius: 8px; object-fit: cover;
}
.site-logo-text { font-size: 18px; font-weight: 700; color: var(--text); }
.site-logo-text b { color: #1B2A4A; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: color 0.2s;
  padding: 8px 14px; border-radius: 8px;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a.active { color: var(--primary); font-weight: 600; background: var(--primary-light); }

.site-header-actions { display: flex; align-items: center; gap: 10px; }
.btn-admin {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  padding: 8px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  transition: background 0.2s, transform 0.15s;
}
.btn-admin:hover { background: #333; transform: translateY(-1px); }
.btn-admin svg { width: 15px; height: 15px; }
.mobile-menu-btn { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; }
.mobile-menu-btn svg { width: 22px; height: 22px; color: var(--text); }

/* ========== Page Header (内页 Hero) ========== */
.page-hero {
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
  color: #fff; padding: 64px 24px 56px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(230,0,18,0.2), transparent 60%);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 6px; }
.page-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.page-hero p { font-size: 15px; color: rgba(255,255,255,0.6); max-width: 600px; }

/* ========== Section common ========== */
.section { padding: 64px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--surface); }

/* ========== Buttons ========== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 12px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(230,0,18,0.3); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  padding: 11px 26px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ========== Footer ========== */
.site-footer { background: #1A1A1A; color: #fff; padding: 48px 24px 24px; }
.site-footer-inner { max-width: 1200px; margin: 0 auto; }
.site-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer-brand p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; margin-top: 12px; max-width: 300px; }
.site-footer h4 { font-size: 14px; font-weight: 600; margin-bottom: 14px; color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer li a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.site-footer li a:hover { color: #fff; }
.site-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 12px;
}
.site-footer-bottom a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.site-footer-bottom a:hover { color: #fff; }
.site-footer-bottom-links { display: flex; gap: 16px; }

/* ========== Product card (列表通用) ========== */
.product-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block; cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img-wrap {
  background: linear-gradient(135deg, #f8f8f8, #eee);
  padding: 20px; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; position: relative;
}
.product-img-wrap img { max-height: 100%; max-width: 80%; object-fit: contain; }
.product-series-tag {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 4px; letter-spacing: 0.5px;
}
.tag-x { background: var(--primary); color: #fff; }
.tag-prime { background: #1A1A1A; color: #fff; }
.tag-m1 { background: #C8A86E; color: #fff; }
.tag-m3 { background: #4A90D9; color: #fff; }
.tag-m5 { background: #5BA55B; color: #fff; }
.tag-atf { background: #8B5CF6; color: #fff; }
.tag-gear { background: #F59E0B; color: #fff; }
.tag-coolant { background: #0EA5E9; color: #fff; }
.tag-diesel { background: #374151; color: #fff; }
.tag-moto { background: #EC4899; color: #fff; }
.tag-ev { background: #10B981; color: #fff; }
.product-body { padding: 16px; }
.product-body h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.product-body .product-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.5; }
.product-specs { display: flex; flex-wrap: wrap; gap: 4px; }
.product-spec {
  font-size: 11px; padding: 2px 8px;
  background: var(--surface-alt); border-radius: 4px;
  color: var(--text-secondary);
}

/* ========== Category tabs ========== */
.cat-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.cat-tab {
  padding: 10px 20px; border-radius: 24px;
  font-size: 14px; font-weight: 500;
  background: #fff; color: var(--text-secondary);
  border: 1px solid var(--border); cursor: pointer; transition: all 0.2s;
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ========== Grids ========== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

/* ========== Detail Page ========== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-detail-gallery {
  background: linear-gradient(135deg, #f8f8f8, #eee);
  border-radius: 16px; padding: 40px; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1;
}
.product-detail-gallery img { max-width: 80%; max-height: 80%; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15)); }
.product-detail-info h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.product-detail-series {
  display: inline-block; padding: 4px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.5px;
}
.product-detail-tagline { font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.7; }
.product-detail-meta {
  background: var(--surface); border-radius: 12px; padding: 20px; margin-bottom: 24px;
}
.product-detail-meta-row {
  display: flex; justify-content: space-between; padding: 8px 0;
  font-size: 14px; border-bottom: 1px solid var(--border);
}
.product-detail-meta-row:last-child { border-bottom: none; }
.product-detail-meta-label { color: var(--text-secondary); }
.product-detail-meta-value { font-weight: 600; color: var(--text); }
.product-detail-features h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.feature-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; font-size: 14px; color: var(--text); line-height: 1.7;
}
.feature-check {
  width: 20px; height: 20px; min-width: 20px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.feature-check svg { width: 12px; height: 12px; }
.product-detail-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-secondary); font-size: 14px; margin-bottom: 24px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--primary); }
.back-link svg { width: 16px; height: 16px; }

/* ========== News card ========== */
.news-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
  display: block; box-shadow: var(--shadow);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  background: linear-gradient(135deg, #ddd, #bbb);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 32px; font-weight: 800;
}
.news-card-body { padding: 20px; }
.news-card-date { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.news-card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; color: var(--text); }
.news-card-body p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ========== About page ========== */
.about-text h2 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.about-text p { font-size: 15px; color: var(--text-secondary); line-height: 1.9; margin-bottom: 16px; }
.about-image { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.value-card {
  background: #fff; padding: 28px; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.value-card:hover { transform: translateY(-4px); }
.value-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
}
.value-icon svg { width: 28px; height: 28px; }
.value-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.value-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ========== Racing/Sponsorship ========== */
.race-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr;
}
.race-card-img {
  aspect-ratio: 16/10; background: linear-gradient(135deg, #333, #111);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 48px; font-weight: 900;
}
.race-card-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.race-card-body h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.race-meta { display: flex; gap: 16px; margin-bottom: 12px; font-size: 13px; color: var(--text-secondary); }
.race-meta-item { display: flex; align-items: center; gap: 5px; }
.race-meta-item svg { width: 14px; height: 14px; }
.race-card-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }

/* ========== Contact info (内页) ========== */
.contact-info-card {
  background: #fff; padding: 28px; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow);
}
.contact-info-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
}
.contact-info-icon svg { width: 26px; height: 26px; }
.contact-info-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.contact-info-card p { font-size: 14px; color: var(--text-secondary); }

/* ========== Toast ========== */
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: #1A1A1A; color: #fff;
  padding: 12px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #10B981; }
.toast.error { background: #EF4444; }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .race-card { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .site-nav { display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 16px; gap: 4px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 12px 14px; }
  .mobile-menu-btn { display: flex; }
  .btn-admin span { display: none; }
  .page-hero { padding: 40px 20px; }
  .page-hero h1 { font-size: 26px; }
  .section { padding: 40px 20px; }
  .site-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .grid-4 { gap: 12px; }
}
