/*
Theme Name: Astra Child - Chemicals
Template: astra
Version: 1.1.0
Author: CSY
Description: Child theme for the chemical B2B trade site (TradeHub-inspired blue/green style).
Requires at least: 5.0
Tested up to: 6.0
*/

/* ============ 品牌设计（TradeHub 蓝白 + 绿色按钮） ============ */
:root{
  --brand:#2563EB;
  --brand-dark:#1D4ED8;
  --brand-deep:#0B1B4D;
  --green:#22C55E;
  --green-dark:#16A34A;
  --ink:#1E293B;
  --muted:#64748B;
  --bg:#ffffff;
  --bg-soft:#F1F5F9;
  --line:#E2E8F0;
  --accent:#2563EB;
}
body{font-family:'Inter','Segoe UI',system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--bg);}
h1,h2,h3,h4,.site-title,.ast-site-header-wrap,.ast-site-identity,
.th-hero h1,.th-h2,.th-prod-card h3,.th-why-card h3,.th-trust b{font-family:'Plus Jakarta Sans','Inter',system-ui,sans-serif;}

/* ---------- 导航（蓝白） ---------- */
.ast-primary-header-bar{background:#fff;border-bottom:1px solid var(--line);}
.main-header-menu .menu-link{color:var(--ink)!important;font-weight:500;font-size:14px;letter-spacing:normal;}
.main-header-menu > .menu-item.current-menu-item > .menu-link,
.main-header-menu > .menu-item > .menu-link:hover{color:var(--brand)!important;}
.main-header-menu > .menu-item a.menu-link{padding:10px 16px;}
.site-title a,.site-title{color:var(--brand)!important;font-weight:700;}
/* 导航最后一个菜单项做成绿色 Get Quote 按钮 */
.main-header-menu > .menu-item:last-child > .menu-link{background:var(--green);color:#fff!important;border-radius:6px;padding:9px 18px;font-weight:600;}
.main-header-menu > .menu-item:last-child > .menu-link:hover{background:var(--green-dark);color:#fff!important;}

/* ---------- 按钮（绿色主按钮） ---------- */
.th-btn,.btn,.woocommerce .button,.add-request-quote-button,.ast-button{
  display:inline-block;padding:12px 26px;border-radius:8px;font-weight:600;text-decoration:none;
  border:none;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;text-align:center;
}
.th-btn-green{background:var(--green);color:#fff!important;}
.th-btn-green:hover{background:var(--green-dark);color:#fff!important;transform:translateY(-1px);box-shadow:0 6px 16px rgba(34,197,94,.35);}
.th-btn-ghost{background:transparent;color:#fff!important;border:2px solid rgba(255,255,255,.9);}
.th-btn-ghost:hover{background:rgba(255,255,255,.14);color:#fff!important;}
.th-btn-lg{padding:14px 34px;font-size:15px;}

/* ---------- 首页通栏 ---------- */
body.page-id-30 .ast-container,
body.home .ast-container{max-width:100% !important;padding-left:0 !important;padding-right:0 !important;}
body.page-id-30 .site-content .ast-container,
body.home .site-content .ast-container{width:100%;max-width:100%;}

/* ============ Hero（贸易插画背景 + 渐变叠加 + 搜索栏） ============ */
.th-hero{background-image:url('https://wp.csyindu.cn/wp-content/uploads/2026/09/hero-trade.jpg');background-size:cover;background-position:center;color:#fff;text-align:center;padding:72px 24px 80px;position:relative;overflow:hidden;}
.th-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,#2563EB 0%,rgba(29,78,216,.60) 50%,rgba(11,27,77,.05) 100%);pointer-events:none;}
.th-hero::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 85% 15%,rgba(255,255,255,.14),transparent 42%),radial-gradient(circle at 12% 90%,rgba(255,255,255,.10),transparent 45%);pointer-events:none;}
.th-hero-inner{position:relative;max-width:1000px;margin:0 auto;}
.th-hero h1{font-size:clamp(30px,5vw,48px);line-height:1.15;font-weight:800;margin:0 0 18px;color:#fff;}
.th-hero p{font-size:clamp(15px,1.9vw,19px);color:rgba(255,255,255,.92);max-width:720px;margin:0 auto 30px;line-height:1.6;}
.th-hero-btns{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-bottom:40px;}
/* 快速询价栏（白色卡片） */
.th-quick-form{background:#fff;border-radius:12px;padding:8px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;max-width:900px;margin:0 auto;box-shadow:0 18px 40px rgba(11,27,77,.28);}
.th-quick-form input,.th-quick-form select{flex:1 1 150px;min-width:0;padding:13px 14px;border:1px solid var(--line);border-radius:8px;font-size:14px;color:var(--ink);background:#fff;font-family:'Inter',sans-serif;}
.th-quick-form input::placeholder{color:var(--muted);}
.th-quick-form .th-btn-green{flex:0 0 auto;padding:13px 26px;}

/* ============ 通用区块 ============ */
.th-container{max-width:1180px;margin:0 auto;padding:60px 24px;}
.th-h2{font-size:clamp(24px,3.4vw,34px);font-weight:800;color:var(--ink);text-align:center;margin:0 0 40px;}
.th-h2-white{color:#fff;}
.th-sub{text-align:center;color:var(--muted);max-width:620px;margin:-24px auto 34px;font-size:16px;}

/* ---------- Why Choose（4 优势卡） ---------- */
.th-why{background:#fff;}
.th-why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;}
.th-why-card{background:var(--bg-soft);border:1px solid var(--line);border-radius:12px;padding:28px 22px;text-align:center;}
.th-why-card .th-ic{width:52px;height:52px;border-radius:12px;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;margin:0 auto 16px;}
.th-why-card h3{font-size:16px;font-weight:600;margin:0 0 10px;color:var(--ink);}
.th-why-card p{font-size:13px;color:var(--muted);margin:0;line-height:1.6;}

/* ---------- Products You May Need ---------- */
.th-products{background:var(--bg-soft);}
.th-prod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:22px;}
.th-prod-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;text-align:center;text-decoration:none;color:var(--ink);
  transition:transform .15s,box-shadow .15s;display:block;}
.th-prod-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(37,99,235,.12);}
.th-prod-card .th-thumb{display:block;width:100%;aspect-ratio:1/1;overflow:hidden;background:#eef2ff;}
.th-prod-card .th-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.th-prod-card h3{font-size:15px;font-weight:600;margin:14px 12px 4px;color:var(--ink);}
.th-prod-card .th-price{display:block;font-size:13px;color:var(--green-dark);font-weight:600;margin:0 12px 14px;}
.th-prod-card .th-btn-green{display:inline-block;margin:0 auto 16px;padding:9px 26px;font-size:13px;}

/* ---------- Trusted by Global Buyers ---------- */
.th-trusted{background:linear-gradient(120deg,#0B1B4D,#1D4ED8);color:#fff;text-align:center;}
.th-trust-grid{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px;max-width:1080px;margin:0 auto;padding:0 24px;}
.th-trust{flex:1;min-width:200px;padding:8px 12px;}
.th-trust b{display:block;font-size:40px;font-weight:800;color:#fff;margin-bottom:6px;}
.th-trust span{font-size:15px;color:rgba(255,255,255,.85);}

/* ---------- Get a Fast Quotation ---------- */
.th-quote{background:#fff;}
.th-quote-form{max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:14px;}
.th-quote-form input,.th-quote-form textarea{padding:14px 16px;border:1px solid var(--line);border-radius:8px;font-size:14px;font-family:'Inter',sans-serif;color:var(--ink);background:var(--bg-soft);}
.th-quote-form textarea{min-height:110px;resize:vertical;}
.th-quote-form .th-btn-green{align-self:flex-start;}

/* ============ 页脚蓝白 ============ */
footer.ast-site-footer{background:var(--brand-deep);color:#cbd5e1;}
footer.ast-site-footer a{color:#e2e8f0;}
footer.ast-site-footer .widget-title{color:#fff;}
.ast-footer-widget-area{background:var(--brand-deep);}
.site-footer-section .ast-footer-widget-area{background:var(--brand-deep);}

/* ---------- 产品页属性表 ---------- */
.woocommerce table.shop_attributes{border:1px solid var(--line);border-radius:10px;overflow:hidden;width:100%;}
.woocommerce table.shop_attributes th{background:var(--bg-soft);color:var(--brand);font-weight:600;width:38%;padding:12px 16px;}
.woocommerce table.shop_attributes td{padding:12px 16px;}

/* ---------- 响应式 ---------- */
@media (max-width:600px){
  .th-hero{padding:48px 18px 56px;}
  .th-container{padding:44px 18px;}
  .th-quick-form{flex-direction:column;}
  .th-quick-form input,.th-quick-form select,.th-quick-form .th-btn-green{width:100%;flex:1 1 auto;}
  .th-trust-grid{justify-content:center;gap:24px;}
}
