/* ============ DYTOYS Theme Main Stylesheet ============ */
:root {
  --navy: #0d2242;
  --navy-light: #16325c;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --slate: #475569;
  --slate-light: #94a3b8;
  --bg-light: #f8fafc;
  --border: #f1f5f9;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #334155;
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #fff; font-size: 12px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 16px; }
.topbar .socials { display: flex; gap: 12px; }
.topbar .socials a { opacity: .8; transition: .2s; font-size: 13px; }
.topbar .socials a:hover { opacity: 1; color: var(--orange); }
.topbar .contact { display: flex; gap: 18px; align-items: center; }
.topbar .contact a:hover { color: var(--orange); }
@media (max-width: 768px) { .topbar .contact .tb-mail { display: none; } }

/* ---------- Header / Nav ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.admin-bar .site-header { top: 32px; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-badge {
  width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f97316, #dc2626); color: #fff; font-weight: 900; font-size: 20px;
  box-shadow: 0 2px 6px rgba(249,115,22,.4);
}
.logo-text .brand { font-size: 24px; font-weight: 900; color: var(--navy); letter-spacing: -.5px; line-height: 1.1; }
.logo-text .brand span { color: var(--orange); }
.logo-text .tagline { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--slate-light); }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: 4px; font-size: 14px; font-weight: 600; color: var(--navy); transition: .2s;
}
.main-nav a:hover { background: #f1f5f9; color: var(--orange); }
.main-nav a.active, .main-nav li.current-menu-item > a, .main-nav li.current_page_item > a { background: var(--orange); color: #fff; }
.main-nav li { list-style: none; }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--navy); cursor: pointer; }
@media (max-width: 1024px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 16px; border-top: 1px solid var(--border); box-shadow: 0 8px 16px rgba(0,0,0,.08); }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
}

/* ---------- Hero slider ---------- */
.hero { position: relative; height: 560px; overflow: hidden; }
@media (max-width: 768px) { .hero { height: 420px; } }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide .overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(13,34,66,.92), rgba(13,34,66,.5), transparent); display: flex; align-items: center; }
.hero-content { max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; }
.hero-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 4px; color: #fb923c; margin-bottom: 12px; }
.hero-title { font-size: 48px; font-weight: 900; color: #fff; line-height: 1.15; max-width: 640px; }
@media (max-width: 768px) { .hero-title { font-size: 30px; } }
.hero-sub { margin-top: 16px; color: #e2e8f0; font-size: 18px; max-width: 560px; }
@media (max-width: 768px) { .hero-sub { font-size: 14px; } }
.hero-btns { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 4px; font-size: 14px; font-weight: 700; transition: .2s; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 12px rgba(249,115,22,.4); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--orange); color: #fff; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.2); color: #fff;
  border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 22px; cursor: pointer; backdrop-filter: blur(4px); transition: .2s; z-index: 5;
}
.hero-arrow:hover { background: rgba(255,255,255,.4); }
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: rgba(255,255,255,.6); cursor: pointer; transition: .3s; }
.hero-dots button.active { width: 32px; background: var(--orange); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-dark { background: var(--navy); color: #fff; }
.section-light { background: var(--bg-light); }
.sec-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 5px; color: var(--orange); text-align: center; }
.section-dark .sec-kicker { color: #fb923c; }
.sec-title { font-size: 30px; font-weight: 900; color: var(--navy); text-align: center; margin-top: 8px; }
.section-dark .sec-title { color: #fff; }
.sec-sub { max-width: 640px; margin: 12px auto 0; text-align: center; font-size: 14px; color: var(--slate); }
.section-dark .sec-sub { color: #cbd5e1; }
.sec-head { margin-bottom: 40px; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat .num { font-size: 46px; font-weight: 900; color: #fff; }
.stat .num em { font-style: normal; color: #fb923c; }
.stat .lbl { margin-top: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #fff; }
.stat .sub { font-size: 12px; color: #cbd5e1; }

/* ---------- Cards / grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); transition: .3s; border: 1px solid var(--border); }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.12); }
.card .thumb { height: 208px; overflow: hidden; background: var(--bg-light); }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; transition: .5s; }
.card:hover .thumb img { transform: scale(1.05); }
.card .thumb.cover img { object-fit: cover; }
.card .thumb.cover:hover img { transform: scale(1.1); }
.card .body { padding: 18px; }
.card .body h3 { font-size: 15px; font-weight: 800; color: var(--navy); }
.card .body h3 a:hover { color: var(--orange); }
.card .body p { margin-top: 6px; font-size: 12px; color: var(--slate); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--orange); }
.link-more:hover { gap: 8px; }
.badge-hot { position: absolute; top: 12px; left: 12px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; z-index: 2; }
.rel { position: relative; }

/* ---------- Services ---------- */
.service-card { background: rgba(255,255,255,.06); border-radius: 8px; padding: 32px; text-align: center; transition: .2s; }
.service-card:hover { background: rgba(255,255,255,.12); }
.service-card .icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 12px rgba(249,115,22,.4); }
.service-card h3 { font-size: 18px; font-weight: 900; color: #fff; }
.service-card p { margin-top: 10px; font-size: 13px; color: #cbd5e1; }

/* ---------- News cards ---------- */
.news-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.05); transition: .3s; display: block; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.1); }
.news-date { display: flex; align-items: flex-end; gap: 8px; color: var(--navy); }
.news-date .d { font-size: 36px; font-weight: 900; color: var(--orange); line-height: 1; }
.news-date .m { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--slate-light); line-height: 1.3; padding-bottom: 3px; }
.news-card h3 { margin-top: 14px; font-size: 14px; font-weight: 800; color: var(--navy); line-height: 1.4; }
.news-card:hover h3 { color: var(--orange); }
.news-card p { margin-top: 8px; font-size: 12px; color: var(--slate); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: 72px 0; overflow: hidden; }
.cta-band .bg { position: absolute; inset: 0; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .bg::after { content: ""; position: absolute; inset: 0; background: rgba(13,34,66,.86); }
.cta-band .inner { position: relative; text-align: center; max-width: 760px; margin: 0 auto; }
.cta-band h2 { font-size: 36px; font-weight: 900; color: #fff; }
@media (max-width: 768px) { .cta-band h2 { font-size: 26px; } }
.cta-band p { margin-top: 14px; color: #e2e8f0; font-size: 15px; }

/* ---------- Page banner ---------- */
.page-banner { position: relative; overflow: hidden; }
.page-banner .bg { position: absolute; inset: 0; }
.page-banner .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-banner .bg::after { content: ""; position: absolute; inset: 0; background: rgba(13,34,66,.86); }
.page-banner .inner { position: relative; padding: 72px 0; }
.page-banner h1 { font-size: 38px; font-weight: 900; color: #fff; }
.page-banner .crumb { margin-top: 10px; font-size: 13px; color: #cbd5e1; }
.page-banner .crumb a:hover { color: #fb923c; }
.page-banner .crumb .sep { margin: 0 8px; color: #fb923c; }

/* ---------- About page ---------- */
.check-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #334155; margin-bottom: 10px; }
.check-list li::before { content: "✓"; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 12px; flex-shrink: 0; }
.cert-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.cert-badges span { border: 1px solid #fed7aa; background: #fff; color: #ea580c; font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 8px 20px; border-radius: 99px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 1024px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
.process-step { background: rgba(255,255,255,.06); border-radius: 8px; padding: 16px; text-align: center; transition: .2s; }
.process-step:hover { background: rgba(249,115,22,.25); }
.process-step .n { width: 32px; height: 32px; margin: 0 auto 8px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 13px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.process-step p { font-size: 12px; font-weight: 700; color: #fff; }

/* ---------- Products page ---------- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.filter-bar a { padding: 8px 20px; border-radius: 99px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; background: #f1f5f9; color: var(--slate); transition: .2s; }
.filter-bar a:hover { background: #e2e8f0; }
.filter-bar a.active { background: var(--orange); color: #fff; box-shadow: 0 2px 8px rgba(249,115,22,.4); }
.cat-intro { display: grid; grid-template-columns: 1fr 2fr; background: var(--bg-light); border-radius: 8px; overflow: hidden; margin-bottom: 40px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
@media (max-width: 900px) { .cat-intro { grid-template-columns: 1fr; } }
.cat-intro img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.cat-intro .txt { padding: 32px; }
.cat-intro h2 { font-size: 24px; font-weight: 900; color: var(--navy); }
.cat-intro p { margin-top: 10px; font-size: 14px; color: var(--slate); }

/* ---------- Single product ---------- */
.single-product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .single-product { grid-template-columns: 1fr; } }
.single-product .pic { background: var(--bg-light); border-radius: 8px; padding: 24px; }
.single-product .pic img { width: 100%; border-radius: 6px; }
.single-product h1 { font-size: 30px; font-weight: 900; color: var(--navy); }
.meta-cat { display: inline-block; background: #fff7ed; color: #ea580c; font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 4px 12px; border-radius: 4px; margin-bottom: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 48px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-item { display: flex; gap: 14px; margin-bottom: 22px; font-size: 14px; }
.info-item .ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 8px; background: #ffedd5; color: #ea580c; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.info-item h3 { font-weight: 900; color: var(--navy); font-size: 14px; }
.info-item p, .info-item a { color: var(--slate); margin-top: 2px; display: block; }
.info-item a:hover { color: var(--orange); }
.form-box { background: var(--bg-light); border: 1px solid var(--border); border-radius: 8px; padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 4px; background: #fff; font-size: 14px; outline: none; transition: .2s; font-family: inherit;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: #fb923c; box-shadow: 0 0 0 3px #ffedd5; }
.form-note { margin-top: 14px; font-size: 12px; color: var(--slate-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cbd5e1; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 56px 0; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 8px; font-size: 13px; }
.site-footer ul li a:hover { color: #fb923c; }
.site-footer p { font-size: 13px; }
.footer-socials { display: flex; gap: 12px; margin-top: 16px; }
.footer-socials a { color: #94a3b8; transition: .2s; font-size: 15px; }
.footer-socials a:hover { color: #fb923c; }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin-bottom: 12px; }
.footer-contact .ic { color: #fb923c; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: 12px; color: #94a3b8; }

/* ---------- Floating contact ---------- */
.float-contact { position: fixed; right: 16px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.float-contact a, .float-contact span {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 99px;
  font-size: 13px; font-weight: 700; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.2); transition: .2s; cursor: pointer;
}
.float-wa { background: #22c55e; } .float-wa:hover { background: #16a34a; }
.float-mail { background: var(--orange); } .float-mail:hover { background: var(--orange-dark); }
.float-wechat { background: var(--navy); } .float-wechat:hover { background: var(--navy-light); }

/* ---------- Posts (News / Knowledge) ---------- */
.post-list article { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.05); transition: .3s; }
.post-list article:hover { box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.post-list h2 { font-size: 18px; font-weight: 800; color: var(--navy); }
.post-list h2 a:hover { color: var(--orange); }
.post-list .post-meta { font-size: 12px; color: var(--slate-light); margin: 6px 0 10px; }
.post-list .entry-summary { font-size: 13px; color: var(--slate); }
.single-post-content { max-width: 800px; margin: 0 auto; font-size: 15px; color: #334155; }
.single-post-content h1 { font-size: 30px; font-weight: 900; color: var(--navy); margin-bottom: 12px; }
.single-post-content .post-meta { font-size: 13px; color: var(--slate-light); margin-bottom: 24px; }
.single-post-content p { margin-bottom: 16px; }
.single-post-content img { border-radius: 8px; margin: 16px 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination .page-numbers { padding: 8px 16px; border-radius: 4px; background: #f1f5f9; color: var(--slate); font-size: 13px; font-weight: 700; }
.pagination .page-numbers.current { background: var(--orange); color: #fff; }

/* ---------- Video cards ---------- */
.video-card { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.video-card img { width: 100%; height: 288px; object-fit: cover; transition: .5s; }
.video-card:hover img { transform: scale(1.05); }
.video-card .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,34,66,.95), rgba(13,34,66,.3), transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.video-card .play { font-size: 42px; color: #fb923c; margin-bottom: 10px; }
.video-card h3 { font-size: 17px; font-weight: 900; color: #fff; }
.video-card p { font-size: 12px; color: #cbd5e1; margin-top: 4px; }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-6 { margin-top: 24px; } .mt-10 { margin-top: 40px; }
.about-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-imgs img { border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.1); width: 100%; }
.about-imgs img:nth-child(2n) { margin-top: 28px; }
.partner-logo-box { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.partner-logo-box img { max-width: 900px; margin: 0 auto; width: 100%; }
.notice { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 14px 18px; font-size: 13px; color: #92400e; margin-bottom: 24px; }
