/* ==========================================================
   DaiYang Electronic Technology — B2B Industrial Static Site
   Theme: high-end industrial tech minimal
   ========================================================== */

:root {
  --ink: #1a1a22;          /* deep charcoal */
  --blue: #1677ff;         /* tech blue */
  --blue-dark: #0e5fd8;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --text: #2b2b33;
  --muted: #6b6b76;
  --line: #e6e8ee;
  --radius: 10px;
  --maxw: 1180px;
  --shadow: 0 8px 30px rgba(26, 26, 34, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-name { font-weight: 700; color: var(--ink); font-size: 18px; letter-spacing: 0.3px; }
.brand-sub { font-size: 12px; color: var(--muted); }

.main-nav ul { display: flex; gap: 28px; list-style: none; }
.main-nav a { color: var(--ink); font-size: 15px; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); }

.lang-switch { display: flex; gap: 8px; align-items: center; }
.lang-switch a {
  font-size: 13px; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 6px; color: var(--muted);
}
.lang-switch a.active { color: #fff; background: var(--ink); border-color: var(--ink); }

.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--ink); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all .2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb858; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--ink) 0%, #232330 60%, #103a7a 100%);
  color: #fff; padding: 96px 0;
}
.hero .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 42px; line-height: 1.25; font-weight: 700; margin-bottom: 20px; }
.hero h1 .accent { color: #4c9aff; }
.hero p.lead { font-size: 18px; color: #cfd3dc; margin-bottom: 32px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 28px; min-height: 280px;
  display: flex; align-items: center; justify-content: center; color: #9aa1b0;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head .eyebrow {
  color: var(--blue); font-weight: 600; font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: 30px; color: var(--ink); margin-bottom: 14px; }
.section-head p { color: var(--muted); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media {
  aspect-ratio: 4/3; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  font-size: 14px; border-bottom: 1px solid var(--line);
}
.card-body { padding: 24px; }
.card-body h3 { font-size: 18px; color: var(--ink); margin-bottom: 10px; }
.card-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }

/* Advantage tiles */
.tile { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tile .icon {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(22,119,255,0.1);
  color: var(--blue); display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.tile h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 14.5px; }

/* ---------- Page banner ---------- */
.page-banner { background: var(--ink); color: #fff; padding: 56px 0; }
.page-banner h1 { font-size: 32px; margin-bottom: 10px; }
.page-banner p { color: #cfd3dc; max-width: 620px; }
.breadcrumb { font-size: 13px; color: #9aa1b0; margin-bottom: 14px; }
.breadcrumb a { color: #cfd3dc; }

/* ---------- Tables (specs) ---------- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14.5px;
}
.spec-table th { width: 32%; color: var(--muted); font-weight: 500; background: var(--bg-soft); }

/* ---------- Video ---------- */
.site-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
}

/* ---------- Feature list ---------- */
.feature-list { list-style: none; }
.feature-list li { padding: 10px 0 10px 28px; position: relative; }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700;
}

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 15px; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue);
}
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.form-success {
  display: none; margin-top: 18px; padding: 16px 18px; border-radius: 8px;
  background: #eef9f1; color: #1e7a3c; border: 1px solid #b7e8c4;
}
.form-success.show { display: block; }

/* ---------- Contact info ---------- */
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item .icon { width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgba(22,119,255,0.1); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.contact-item h4 { font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.contact-item p { font-size: 15.5px; color: var(--ink); }

/* Certificate placeholder */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-box {
  aspect-ratio: 3/4; border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--bg-soft); display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center; color: var(--muted); font-size: 13px; text-align: center; padding: 16px;
}

/* ---------- Blog ---------- */
.blog-meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.article-body { max-width: 760px; }
.article-body h2 { font-size: 24px; color: var(--ink); margin: 32px 0 14px; }
.article-body p { margin-bottom: 16px; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9bec9; padding: 64px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; font-size: 14px; }
.site-footer a { color: #b9bec9; }
.site-footer a:hover { color: #4c9aff; }
.footer-brand img { width: 60px; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 6px 20px rgba(37,211,102,0.4); z-index: 60;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 16px 24px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 16px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2, .cert-grid, .form-row { grid-template-columns: 1fr; }
  .hero { padding: 64px 0; }
  .hero h1 { font-size: 30px; }
  .section { padding: 56px 0; }
}
