/*
Theme Name: ONLEAD
Theme URI: https://waimao.u9ai.cn
Author: u9ai
Description: ONLEAD office furniture B2B export site - modern enterprise product showcase. Recreates the en.onlead.com.cn layout.
Version: 1.0.2
License: GNU General Public License v2 or later
Text Domain: onlead
*/

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #222; background: #fff; line-height: 1.6; font-size: 16px;
}
a { color: #1e4f8a; text-decoration: none; }
a:hover { color: #163a63; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 30px; font-weight: 700; color: #1e4f8a; letter-spacing: .5px; }
.section-head p { color: #666; max-width: 640px; margin: 10px auto 0; }

/* ===== 顶部导航(透明覆盖 hero) ===== */
.site-header {
  position: absolute; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(30,79,138,.92); padding: 14px 0;
}
.site-header .nav { display: flex; align-items: center; justify-content: space-between; }
.site-header .logo a {
  font-size: 26px; font-weight: 800; color: #fff; letter-spacing: 2px;
}
.site-header .logo small { display:block; font-size: 11px; font-weight: 400; color: #cfe0f2; letter-spacing: 1px; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 26px; }
.main-nav a { color: #fff; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: #fff; color: #fff; }
.quote-btn {
  background: #fff; color: #1e4f8a !important; font-weight: 700;
  padding: 9px 22px !important; border-radius: 30px; border-bottom: none !important;
  margin-left: 12px;
}
.quote-btn:hover { background: #eaf1f8; }

/* ===== Hero 全屏 ===== */
.hero {
  position: relative; height: 92vh; min-height: 620px; overflow: hidden;
  display: flex; align-items: center;
}
.hero .hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.hero .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,46,88,.78) 0%, rgba(20,46,88,.35) 55%, rgba(20,46,88,.1) 100%);
}
.hero-overlay-light {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,46,88,.5) 0%, rgba(20,46,88,.25) 50%, rgba(20,46,88,0) 100%);
}
.hero-bottom {
  position: absolute; left: 0; right: 0; bottom: 42px; z-index: 3;
}
.hero .hero-content { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.hero h1 { font-size: 46px; line-height: 1.15; font-weight: 800; letter-spacing: 1px; }
.hero .hero-sub { margin-top: 14px; font-size: 18px; color: #eaf1f8; }
.hero .hero-actions { margin-top: 30px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-learn {
  background: #fff; color: #1e4f8a; font-weight: 700; padding: 13px 34px; border-radius: 30px; font-size: 15px;
}
.hero .btn-outline {
  border: 2px solid #fff; color: #fff; padding: 11px 30px; border-radius: 30px; font-size: 15px; font-weight: 600;
}
.hero .btn-outline:hover { background: rgba(255,255,255,.15); }

/* ===== 四空间分类 ===== */
.spaces-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.space-card { position: relative; overflow: hidden; border-radius: 6px; height: 300px; display:block; }
.space-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.space-card:hover img { transform: scale(1.05); }
.space-card .space-tag {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 1px;
}

/* ===== 产品网格 ===== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { border: 1px solid #e7edf4; border-radius: 6px; overflow: hidden; background: #fff; transition: box-shadow .3s, transform .3s; }
.product-card:hover { box-shadow: 0 10px 30px rgba(30,79,138,.12); transform: translateY(-4px); }
.product-card .p-img { aspect-ratio: 4/3; overflow: hidden; background: #f2f5f9; }
.product-card .p-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .p-info { padding: 14px 16px 18px; text-align: center; }
.product-card .p-name { font-size: 15px; font-weight: 600; color: #1e4f8a; }
.product-card .p-series { font-size: 12px; color: #8a97a6; margin-top: 4px; letter-spacing: .5px; }

/* ===== 品牌故事 ===== */
.story { background: #f4f8fc; }
.story-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.story h2 { font-size: 28px; color: #1e4f8a; margin-bottom: 18px; }
.story p { color: #4a5560; margin-bottom: 14px; }
.btn-more { display:inline-block; background:#1e4f8a; color:#fff; padding: 12px 30px; border-radius:30px; font-weight:600; margin-top:6px; }
.btn-more:hover { background:#163a63; color:#fff; }

/* ===== 询盘表单 ===== */
.quote-section { background: #1e4f8a; color: #fff; }
.quote-section h2 { color: #fff; }
.quote-form { max-width: 680px; margin: 0 auto; }
.quote-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form input, .quote-form textarea, .quote-form select {
  width: 100%; padding: 13px 16px; border: 1px solid rgba(255,255,255,.4); border-radius: 6px;
  background: rgba(255,255,255,.12); color: #fff; font-size: 14px; margin-bottom: 16px;
}
.quote-form input::placeholder, .quote-form textarea::placeholder { color: #cfe0f2; }
.quote-form textarea { min-height: 120px; resize: vertical; }
.quote-form button {
  width: 100%; background: #fff; color: #1e4f8a; border: none; padding: 14px; border-radius: 6px;
  font-size: 16px; font-weight: 700; cursor: pointer;
}
.quote-form button:hover { background: #eaf1f8; }
.quote-success { text-align: center; padding: 20px; font-size: 17px; background: rgba(255,255,255,.15); border-radius: 6px; }

/* ===== Footer ===== */
.site-footer { background: #132a45; color: #b8c6d6; padding: 44px 0 24px; }
.site-footer .foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: #b8c6d6; display: block; margin-bottom: 8px; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; text-align: center; font-size: 13px; }

/* ===== 单产品页 ===== */
.single-hero { background: #1e4f8a; color: #fff; padding: 120px 0 50px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 60px 0; }
.product-detail .p-main-img { border-radius: 8px; overflow: hidden; }
.product-detail h1 { color: #1e4f8a; font-size: 32px; }
.product-detail .series-tag { display: inline-block; background: #eaf1f8; color: #1e4f8a; padding: 5px 14px; border-radius: 20px; font-size: 13px; margin-top: 10px; }
.product-detail p { color: #4a5560; margin: 18px 0; font-size: 16px; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .spaces-grid { grid-template-columns: repeat(2, 1fr); }
  .story-inner, .product-detail { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 600px) {
  .products-grid, .spaces-grid, .quote-form .row { grid-template-columns: 1fr; }
  .site-header .nav { flex-wrap: wrap; }
  .main-nav ul { gap: 12px; flex-wrap: wrap; }
}
