/*
Theme Name: 创盈盛
Theme URI: https://cyszn.cn
Author: 元宝
Description: 创盈盛智能（深圳）有限公司官网主题（产品展示 + 客户LOGO墙 + 留言）
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: chuangyingsheng
*/

/* ============ 基础样式 ============ */
:root {
  --brand: #0a4c8a;
  --brand-dark: #06335c;
  --accent: #e8a13a;
  --text: #2c3e50;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --border: #e1e8ef;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ============ 顶部 ============ */
.site-header {
  background: var(--bg);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky; top: 0; z-index: 100;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { height: 44px; width: auto; }
.site-logo .site-title {
  font-size: 19px; font-weight: 700; color: var(--brand-dark); line-height: 1.2;
}
.site-logo .site-title small { display:block; font-size: 12px; color:#7a8ba0; font-weight:400; }
.main-nav ul { list-style: none; display: flex; gap: 28px; }
.main-nav a {
  font-size: 15px; font-weight: 500; color: var(--text); padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--brand); border-bottom-color: var(--accent); }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; padding: 88px 0;
}
.hero h1 { font-size: 40px; font-weight: 800; line-height: 1.25; margin-bottom: 18px; }
.hero p { font-size: 18px; opacity: .92; max-width: 680px; }
.hero .btn {
  display: inline-block; margin-top: 26px; background: var(--accent);
  color: #fff; padding: 13px 30px; border-radius: 6px; font-weight: 600;
}
.hero .btn:hover { background: #d58e25; color: #fff; }

/* ============ 区块标题 ============ */
.section { padding: 70px 0; }
.section.soft { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 46px; }
.section-title h3 { font-size: 28px; color: var(--brand-dark); font-weight: 800; }
.section-title p { color: #7a8ba0; margin-top: 8px; }

/* ============ 产品网格 ============ */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.prod {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.prod:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(10,76,138,.12); }
.prod .thumb { aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden; }
.prod .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-body { padding: 18px; }
.prod-body h4 { font-size: 17px; color: var(--brand-dark); margin-bottom: 6px; }
.prod-body p { font-size: 14px; color: #667; }

@media (max-width: 900px) { .prod-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .prod-grid { grid-template-columns: 1fr; } }

/* ============ 客户 LOGO 墙 ============ */
.client-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.client {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 16px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; min-height: 110px;
  transition: border-color .2s;
}
.client:hover { border-color: var(--brand); }
.client .client-logo { max-height: 46px; max-width: 80%; object-fit: contain; }
.client span { font-size: 13px; color: var(--brand-dark); font-weight: 600; text-align:center; }

@media (max-width: 900px) { .client-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 560px) { .client-grid { grid-template-columns: repeat(2,1fr); } }

/* ============ 关于 / 联系 ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.contact-form label { display:block; font-size:14px; margin-bottom:14px; font-weight:500; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 15px; margin-top: 6px; font-family: inherit;
}
.contact-form textarea { min-height: 120px; }
.contact-form button {
  background: var(--brand); color:#fff; border:none; padding: 13px 32px;
  border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.contact-form button:hover { background: var(--brand-dark); }

/* ============ 页脚 ============ */
.site-footer {
  background: var(--brand-dark); color: #c7d6e8; padding: 40px 0 24px;
  font-size: 14px;
}
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: #c7d6e8; }
.site-footer a:hover { color: #fff; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 18px; text-align:center; width:100%; }
