/* Chixin Roll Forming Machine — Global Site */
:root {
  --blue: #1565c0;
  --blue-dark: #0d47a1;
  --steel: #2c3e50;
  --text: #333;
  --light: #f5f7fa;
  --border: #e0e5ec;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Segoe UI", Arial, "Microsoft YaHei", sans-serif; color: var(--text); line-height: 1.65; background: #fff; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 700; font-size: 18px; color: var(--blue-dark); text-decoration: none; }
.logo span { color: var(--steel); font-weight: 400; font-size: 13px; display: block; line-height: 1.2; }
nav a { color: var(--steel); text-decoration: none; margin-left: 22px; font-size: 15px; }
nav a:hover, nav a.active { color: var(--blue); }
nav a.cta { background: var(--blue); color: #fff; padding: 8px 16px; border-radius: 5px; }
nav a.cta:hover { background: var(--blue-dark); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 70%); color: #fff; padding: 70px 0; }
.hero h1 { font-size: 38px; max-width: 720px; line-height: 1.25; }
.hero p { margin-top: 16px; font-size: 18px; max-width: 640px; opacity: .92; }
.hero .btn-row { margin-top: 28px; }
.btn { display: inline-block; padding: 12px 26px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 16px; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-outline { border: 2px solid #fff; color: #fff; margin-left: 12px; }
.btn-outline:hover { background: rgba(255,255,255,.12); }

/* Stats */
.stats { background: var(--light); padding: 32px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { font-size: 34px; color: var(--blue); display: block; }
.stat span { font-size: 14px; color: #667; }

/* Sections */
section { padding: 56px 0; }
.section-title { text-align: center; font-size: 30px; color: var(--steel); margin-bottom: 8px; }
.section-sub { text-align: center; color: #777; margin-bottom: 40px; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.product-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow .2s; }
.product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.product-card img { width: 100%; height: 230px; object-fit: cover; display: block; }
.product-card .body { padding: 18px; }
.product-card h3 { font-size: 18px; color: var(--steel); margin-bottom: 6px; }
.product-card .en { color: var(--blue); font-size: 14px; margin-bottom: 10px; }
.product-card p { font-size: 14px; color: #555; margin-bottom: 12px; }
.product-card a { color: var(--blue); font-weight: 600; text-decoration: none; font-size: 14px; }

/* Spec table */
table.spec { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
table.spec th, table.spec td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
table.spec th { width: 220px; background: var(--light); color: var(--steel); }

/* About / content blocks */
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: start; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.badge { background: #e8f1fb; color: var(--blue-dark); padding: 6px 14px; border-radius: 20px; font-size: 13.5px; font-weight: 600; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 30px; }
.contact-card { border: 1px solid var(--border); border-radius: 8px; padding: 24px; text-align: center; }
.contact-card b { display: block; color: var(--steel); margin-bottom: 8px; font-size: 15px; }
.contact-card a { color: var(--blue); text-decoration: none; font-size: 15px; }

/* Footer */
footer { background: var(--steel); color: #cfd8dc; padding: 36px 0 20px; font-size: 14px; }
footer a { color: #fff; text-decoration: none; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 24px; }
footer .copy { border-top: 1px solid #46586a; padding-top: 16px; text-align: center; color: #90a4ae; }

/* Floating WhatsApp */
.float-wa { position: fixed; right: 22px; bottom: 22px; background: #25d366; color: #fff; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.25); z-index: 200; }
.float-wa svg { width: 30px; height: 30px; }

/* Product detail */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; padding: 48px 0; }
.product-hero img { width: 100%; border-radius: 8px; border: 1px solid var(--border); }
.back-link { display: inline-block; margin: 20px 0 0; color: var(--blue); text-decoration: none; font-size: 14px; }

@media (max-width: 820px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .product-hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  footer .cols { grid-template-columns: 1fr; }
  nav a { margin-left: 12px; font-size: 13.5px; }
}
