/*
Theme Name: SHANYUAN Child
Template: kadence
Version: 1.0.0
Description: SHANYUAN laminated busbar manufacturer — child theme for Kadence. Brand styling + B2B quote-mode customizations.
Author: SHANYUAN
*/

/* ========== 品牌设计令牌 ========== */
:root {
  --sy-navy: #0a2540;        /* 主深蓝（LOGO 蓝） */
  --sy-navy-2: #123a63;      /* 次级蓝 */
  --sy-silver: #c9d4e0;      /* 银灰 */
  --sy-accent: #1f6fd6;      /* 亮蓝强调 */
  --sy-whatsapp: #25d366;    /* WhatsApp 品牌绿 */
  --sy-ink: #1d2733;         /* 正文 */
  --sy-muted: #5b6b7c;       /* 弱文字 */
}

/* ========== 基础 ========== */
body { color: var(--sy-ink); }
h1, h2, h3, h4 { letter-spacing: -0.01em; }
a { transition: color .15s ease; }

/* ========== 英雄区 ========== */
.sy-hero { position: relative; }
.sy-hero .wp-block-cover { min-height: 520px; }
.sy-hero h1 { font-weight: 800; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.sy-hero .sy-hero-sub { font-size: 1.15rem; line-height: 1.6; opacity: .95; max-width: 760px; }

/* ========== 区块节奏 ========== */
.sy-section { padding: 72px 24px; }
.sy-section-tight { padding: 48px 24px; }
.sy-band-navy { background: var(--sy-navy); color: #fff; }
.sy-band-navy h2, .sy-band-navy h3 { color: #fff; }
.sy-band-light { background: #f5f8fb; }
.sy-band-silver { background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 100%); }

/* ========== 卡片 ========== */
.sy-card {
  background: #fff;
  border: 1px solid #e4eaf1;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.sy-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(10,37,64,.12); }
.sy-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.sy-card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.sy-card-body h3 { font-size: 1.2rem; margin: 0 0 8px; }
.sy-card-body h3 a { color: var(--sy-navy); text-decoration: none; }
.sy-card-body p { color: var(--sy-muted); font-size: .95rem; margin: 0 0 16px; flex: 1; }
.sy-card-link { color: var(--sy-accent); font-weight: 600; text-decoration: none; font-size: .92rem; }
.sy-card-link::after { content: " →"; }
.sy-card-link:hover { text-decoration: underline; }

/* ========== 按钮 ========== */
.sy-btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  transition: filter .15s ease, transform .15s ease;
}
.sy-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.sy-btn-primary { background: var(--sy-accent); color: #fff; }
.sy-btn-whatsapp { background: var(--sy-whatsapp); color: #fff; }
.sy-btn-outline { border: 2px solid rgba(255,255,255,.85); color: #fff; }

/* ========== 信任条 ========== */
.sy-trust { background: #fff; border-bottom: 1px solid #e4eaf1; padding: 26px 24px; }
.sy-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1200px; margin: 0 auto; }
.sy-trust-item { text-align: center; }
.sy-trust-item strong { display: block; font-size: 1.05rem; color: var(--sy-navy); }
.sy-trust-item span { font-size: .88rem; color: var(--sy-muted); }
@media (max-width: 767px) { .sy-trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ========== 表格 ========== */
.wp-block-table table, .sy-spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.wp-block-table td, .wp-block-table th,
.sy-spec-table td, .sy-spec-table th { border: 1px solid #dde5ee; padding: 10px 14px; text-align: left; }
.wp-block-table th, .sy-spec-table th { background: #f0f4f9; color: var(--sy-navy); font-weight: 700; }

/* ========== WooCommerce 询价模式 ========== */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price { display: none !important; }
.woocommerce ul.products li.product .button { display: none !important; }
.woocommerce ul.products li.product {
  border: 1px solid #e4eaf1; border-radius: 12px; overflow: hidden;
  padding-bottom: 14px; background: #fff; transition: box-shadow .18s ease;
}
.woocommerce ul.products li.product:hover { box-shadow: 0 12px 30px rgba(10,37,64,.10); }
.woocommerce ul.products li.product a img { border-bottom: 1px solid #eef2f7; }
.sy-quote-btn {
  display: inline-block; margin-top: 8px; padding: 9px 20px; border-radius: 6px;
  background: var(--sy-accent); color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none;
}
.sy-quote-btn:hover { filter: brightness(1.1); color: #fff; }
.woocommerce div.product .product_meta { border-top: 1px dashed #dde5ee; padding-top: 12px; }

/* 询盘按钮（商品页） */
.sy-product-cta { margin: 18px 0 26px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ========== 页脚 ========== */
.site-footer .footer-widget-area { background: var(--sy-navy); }
.site-footer, .site-footer a { color: rgba(255,255,255,.82); }
.site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; }
.site-footer a:hover { color: #fff; }

/* ========== 移动端 ========== */
@media (max-width: 767px) {
  .sy-section { padding: 48px 18px; }
  .sy-hero .wp-block-cover { min-height: 420px; }
}

/* ========== 页面全宽化（覆盖 Kadence boxed 默认） ========== */
body.content-style-boxed .content-container.site-container { max-width: none; padding: 0; }
body.content-style-boxed .entry-content-wrap { padding: 0; }
body.content-style-boxed .entry.single-entry { box-shadow: none; background: transparent; }
body.content-style-boxed .content-area { margin-top: 0; margin-bottom: 0; }

/* 首页隐藏页面标题 hero（首页用 cover 英雄区） */
.home .entry-hero { display: none; }

/* 子页面标题 hero 深蓝带 */
.entry-hero.page-hero-section { background: var(--sy-navy); }
.entry-hero.page-hero-section .entry-title { color: #fff; font-size: 2rem; }
.entry-hero.page-hero-section .kadence-breadcrumbs, .entry-hero.page-hero-section .kadence-breadcrumbs a { color: rgba(255,255,255,.75); }
.entry-hero.page-hero-section .entry-hero-container-inner { padding-top: 44px; padding-bottom: 44px; }

