
:root{--orange:#ff6a00;--blue:#12356b;--dark:#0f172a;--muted:#64748b;--bg:#f5f7fb}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,"Microsoft YaHei",sans-serif;background:var(--bg);color:#111827}
a{color:inherit;text-decoration:none}.container{max-width:1200px;margin:auto;padding:0 20px}
.topbar{background:#111827;color:#fff;font-size:13px}.topbar .container{display:flex;justify-content:space-between;gap:20px;padding-top:8px;padding-bottom:8px;flex-wrap:wrap}
.header{position:sticky;top:0;z-index:50;background:#fff;box-shadow:0 1px 14px rgba(15,23,42,.08)}.header .container{max-width:1500px}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;gap:18px}.header-social-left{display:flex;align-items:center;gap:12px;min-width:120px}.header-social-btn{display:inline-flex;width:34px;height:34px;border-radius:0;background:transparent;border:0;align-items:center;justify-content:center;box-shadow:none;transition:.2s;padding:0}.header-social-btn:hover{transform:translateY(-2px);background:transparent}.header-social-btn img{width:30px;height:30px;object-fit:contain;display:block}.brand{display:flex;align-items:center;gap:0;min-width:360px}.brand img{display:none;width:0;height:0}.brand-text{display:flex;flex-direction:column;line-height:1.12}.brand-title{font-weight:900;font-size:22px}.brand-cn{font-size:18px;color:#334155;margin-top:4px;font-weight:700}.brand-sub{font-size:15px;color:var(--muted);margin-top:4px}
.search{flex:0 0 380px;max-width:380px;min-width:380px}.search input{width:100%;border:1px solid #e5e7eb;border-radius:999px;padding:14px 22px;font-size:15px}
.actions{display:flex;align-items:center;gap:10px}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;padding:11px 18px;font-weight:800;cursor:pointer;background:var(--orange);color:#fff}.btn.secondary{background:#fff;color:#111827;border:1px solid #e5e7eb}.btn.green{background:#20b15a}.btn.small{padding:8px 12px;font-size:12px}
.hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#0f172a,#12356b);color:#fff}.hero .container{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:center;padding-top:56px;padding-bottom:56px}
.badge{display:inline-flex;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:8px 14px;font-size:13px;margin-bottom:16px}.hero h1{font-size:52px;line-height:1.05;margin:0 0 18px;font-weight:900}.hero p{font-size:18px;line-height:1.7;color:#dbeafe;margin:0 0 24px}.hero-buttons{display:flex;gap:12px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:26px}.stat{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.13);border-radius:20px;padding:16px}.stat b{display:block;color:#ffbf80;font-size:24px}
.hero-media{border-radius:30px;overflow:hidden;background:#000;box-shadow:0 20px 60px rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.15)}.hero-media video,.hero-media img{width:100%;height:420px;object-fit:cover;display:block}
.features{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:28px 0}.feature{background:#fff;border-radius:22px;padding:22px;box-shadow:0 8px 24px rgba(15,23,42,.06)}.feature b{display:block;margin-bottom:6px}.feature span{font-size:14px;color:var(--muted)}
.layout{display:grid;grid-template-columns:250px 1fr;gap:28px;margin-bottom:50px}.sidebar{background:#fff;border-radius:24px;padding:20px;height:max-content;box-shadow:0 8px 24px rgba(15,23,42,.06)}.sidebar h3{margin:0 0 14px}.cat{display:flex;justify-content:space-between;width:100%;border:0;background:#f1f5f9;border-radius:16px;margin:8px 0;padding:13px 14px;cursor:pointer;text-align:left;font-weight:700}.cat.active,.cat:hover{background:var(--orange);color:#fff}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:16px}.section-head h2{font-size:32px;margin:0}.section-head p{color:var(--orange);font-weight:800;text-transform:uppercase;letter-spacing:.08em;margin:0 0 4px;font-size:13px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 8px 24px rgba(15,23,42,.06);transition:.25s}.card:hover{transform:translateY(-4px);box-shadow:0 16px 36px rgba(15,23,42,.12)}
.media{height:240px;background:#e5e7eb;position:relative}.media img,.media video{width:100%;height:100%;object-fit:cover;display:block}.media.contain-media img{object-fit:contain;background:#fff;padding:10px}.thumbs{display:flex;gap:6px;padding:10px;overflow:auto;background:#fff}.thumb{width:54px;height:48px;border:2px solid transparent;border-radius:10px;overflow:hidden;cursor:pointer;flex:0 0 auto}.thumb.active{border-color:var(--orange)}.thumb img,.thumb video{width:100%;height:100%;object-fit:cover}
.card-body{padding:18px}.card h3{font-size:17px;margin:0 0 8px;line-height:1.35}.desc{font-size:14px;color:var(--muted);line-height:1.55;min-height:44px}.meta{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #eef2f7;margin-top:14px;padding-top:14px}.price{color:var(--orange);font-weight:900}.label{font-size:12px;color:#94a3b8}.edit-product{margin-top:14px;width:100%}
.about{background:#fff;padding:54px 0}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.contact-box{background:#f8fafc;border-radius:24px;padding:24px}.contact-box a{display:block;margin:12px 0;color:#334155}.footer{background:#0f172a;color:#fff;padding:28px 0}.footer .container{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.social a{display:inline-flex;width:46px;height:46px;border-radius:999px;background:rgba(255,255,255,.08);align-items:center;justify-content:center;margin-left:10px;overflow:hidden;transition:.2s}.social a:hover{transform:translateY(-2px);background:rgba(255,255,255,.14)}.social a img{width:34px;height:34px;object-fit:contain;display:block}
.editor{position:fixed;right:18px;top:88px;width:390px;max-height:calc(100vh - 110px);overflow:auto;background:rgba(255,255,255,.98);border:1px solid #e5e7eb;border-radius:26px;box-shadow:0 30px 80px rgba(15,23,42,.28);z-index:100;padding:18px}.editor h2{margin:0 0 12px}.panel{background:#f8fafc;border-radius:18px;padding:14px;margin-bottom:14px}.field{display:block;margin:10px 0}.field span{display:block;font-size:12px;color:#475569;font-weight:800;margin-bottom:5px}.field input,.field textarea,.field select{width:100%;border:1px solid #e2e8f0;border-radius:12px;padding:10px;font-size:14px;background:#fff}.field textarea{min-height:72px}.upload{display:block;border:2px dashed #cbd5e1;border-radius:16px;padding:14px;text-align:center;cursor:pointer;background:#fff;color:#475569}.upload input{display:none}.mini-media{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:10px}.mini{position:relative;height:60px;border-radius:10px;overflow:hidden;background:#e2e8f0}.mini img,.mini video{width:100%;height:100%;object-fit:cover}.mini button{position:absolute;right:2px;top:2px;border:0;border-radius:999px;background:#fff;cursor:pointer}.hide{display:none!important}
@media(max-width:900px){.hero .container,.layout,.about-grid{grid-template-columns:1fr}.grid,.features{grid-template-columns:repeat(2,1fr)}.search{display:none}.hero h1{font-size:38px}.editor{left:10px;right:10px;width:auto}.hero-media video,.hero-media img{height:300px}}
@media(max-width:560px){.grid,.features,.stats{grid-template-columns:1fr}.brand-sub{display:none}.brand-title{font-size:18px}.brand-cn{font-size:13px}.hero h1{font-size:32px}.topbar{display:none}.header-social-left{display:none}}

.price-link{display:inline-block;text-decoration:underline;text-underline-offset:3px}.price-link:hover{color:#16a34a}
.hero-video-gallery{background:#000}.hero-video-thumbs{display:flex;gap:8px;padding:10px;background:rgba(15,23,42,.92);overflow:auto}.hero-video-thumb{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.1);color:#fff;border-radius:999px;padding:7px 12px;font-weight:800;cursor:pointer;white-space:nowrap}.hero-video-thumb.active,.hero-video-thumb:hover{background:var(--orange);border-color:var(--orange)}
.header-trust{display:flex;flex-direction:column;gap:5px;min-width:330px;margin-left:8px;font-size:13px;line-height:1.15;align-self:center}.trust-badges,.trust-response{display:grid;grid-template-columns:155px 165px;column-gap:8px;align-items:center;white-space:nowrap}.trust-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:4px 10px;font-weight:800;background:#fff}.trust-pill.verified{border:1px solid #16a34a;color:#078126}.trust-pill.assurance{border:1px solid #60a5fa;color:#2563eb}.trust-response{color:#0f172a}.trust-response span{display:block;text-align:left}.trust-response b{font-weight:900}
@media(max-width:1100px){.header-trust{display:none}.header-inner{gap:12px}.search{flex:0 0 340px;max-width:340px;min-width:340px}.header-social-left{min-width:auto}}

/* Public version: hide editing controls */
#editToggle,#addProduct,.edit-product{display:none!important}
.lang-toggle{min-width:auto;padding:10px 18px;font-weight:900;color:#fff;white-space:nowrap;background:#12356b;border:1px solid #12356b;box-shadow:0 4px 12px rgba(18,53,107,.18)}
@media(max-width:560px){.lang-toggle{padding:8px 12px;min-width:auto;font-size:12px}.actions{gap:6px}}
.lang-toggle:hover{background:#0f2c59;border-color:#0f2c59;color:#fff}

/* Responsive layout fixes for laptop, tablet and mobile */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
img, video { max-width: 100%; }
.container { width: 100%; }
.header-inner { flex-wrap: wrap; }
.search { flex: 1 1 260px; min-width: 220px; max-width: 420px; }
.brand { flex: 1 1 300px; min-width: 260px; }
.header-social-left { flex: 0 0 auto; }
.actions { flex: 0 0 auto; }
.header-trust { flex: 0 1 330px; }

@media (max-width: 1280px) {
  .header .container { max-width: 1180px; }
  .header-inner { gap: 12px; padding: 12px 16px; }
  .brand { min-width: 280px; flex-basis: 310px; }
  .brand-title { font-size: 20px; }
  .brand-cn { font-size: 16px; }
  .brand-sub { font-size: 13px; }
  .search { flex: 1 1 260px; min-width: 220px; max-width: 360px; }
  .header-trust { min-width: 300px; font-size: 12px; }
  .trust-badges,.trust-response { grid-template-columns: 145px 155px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .topbar .container { justify-content: center; text-align: center; }
  .header-inner { justify-content: center; }
  .header-social-left { order: 1; }
  .brand { order: 2; flex: 1 1 360px; min-width: 300px; }
  .search { order: 4; flex: 1 1 100%; max-width: 100%; min-width: 0; }
  .actions { order: 3; }
  .header-trust { order: 5; display: flex; flex-basis: 100%; max-width: 420px; margin-left: 0; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: 220px 1fr; gap: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media { height: 220px; }
}

@media (max-width: 768px) {
  .container { padding: 0 14px; }
  .topbar { display: none; }
  .header { position: sticky; }
  .header-inner { justify-content: flex-start; align-items: center; padding: 12px 14px; }
  .header-social-left { display: flex; order: 1; width: 100%; justify-content: center; }
  .brand { order: 2; width: 100%; flex-basis: 100%; min-width: 0; justify-content: center; text-align: center; }
  .brand-title { font-size: 22px; }
  .brand-cn { font-size: 17px; }
  .brand-sub { display: block; font-size: 13px; }
  .search { order: 3; display: block; flex-basis: 100%; min-width: 0; max-width: 100%; }
  .search input { padding: 12px 16px; font-size: 14px; }
  .actions { order: 4; width: 100%; justify-content: center; }
  .header-trust { order: 5; display: flex; width: 100%; max-width: 360px; min-width: 0; margin: 0 auto; }
  .trust-badges,.trust-response { grid-template-columns: 1fr 1fr; width: 100%; column-gap: 6px; }
  .trust-pill { padding: 4px 8px; font-size: 12px; }
  .trust-response { font-size: 12px; }
  .hero .container { grid-template-columns: 1fr; padding-top: 34px; padding-bottom: 34px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .hero-media video,.hero-media img { height: 280px; }
  .features { grid-template-columns: 1fr; margin: 18px 0; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid { grid-template-columns: 1fr; }
  .media { height: 260px; }
  .section-head { align-items: flex-start; }
  .section-head h2 { font-size: 28px; }
  .about-grid { grid-template-columns: 1fr; }
  .footer .container { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .header-inner { gap: 10px; }
  .header-social-left { gap: 18px; }
  .header-social-btn { width: 32px; height: 32px; }
  .header-social-btn img { width: 28px; height: 28px; }
  .brand-title { font-size: 20px; }
  .brand-cn { font-size: 15px; }
  .brand-sub { font-size: 12px; }
  .btn { padding: 10px 14px; font-size: 14px; }
  .lang-toggle { padding: 10px 14px; }
  .hero h1 { font-size: 30px; }
  .hero-media video,.hero-media img { height: 220px; }
  .stats { grid-template-columns: 1fr; }
  .media { height: 230px; }
  .card-body { padding: 16px; }
  .meta { align-items: flex-start; }
  .thumbs { padding: 8px; }
}

/* Final mobile/tablet fix: prevent horizontal cut-off in Facebook/iPhone webviews */
@media (max-width: 920px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  body > *, .header, .hero, main, .about, .footer {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .container, .header .container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .header-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }
  .header-social-left,
  .search,
  .header-trust {
    display: none !important;
  }
  .brand {
    grid-column: 1 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    flex: none !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
  .brand-text {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .brand-title {
    font-size: 20px !important;
    line-height: 1.08 !important;
    white-space: normal !important;
  }
  .brand-cn {
    font-size: 15px !important;
    line-height: 1.08 !important;
    white-space: normal !important;
  }
  .brand-sub {
    display: none !important;
  }
  .actions {
    grid-column: 2 !important;
    width: auto !important;
    flex: none !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }
  .lang-toggle {
    padding: 8px 12px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }
  #waBtn {
    padding: 10px 14px !important;
    font-size: 15px !important;
    white-space: nowrap !important;
  }
  .hero .container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding-top: 34px !important;
    padding-bottom: 34px !important;
  }
  .hero h1 {
    font-size: clamp(30px, 8vw, 42px) !important;
    line-height: 1.08 !important;
    max-width: 100% !important;
  }
  .hero p {
    font-size: 16px !important;
    line-height: 1.65 !important;
    max-width: 100% !important;
  }
  .hero-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
  .hero-buttons .btn {
    flex: 0 1 auto !important;
  }
  .stats {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .stat {
    width: 100% !important;
  }
  .hero-media,
  .hero-video-gallery,
  .hero-media video,
  .hero-media img {
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero-media video,
  .hero-media img {
    height: auto !important;
    min-height: 220px !important;
    max-height: 360px !important;
    object-fit: cover !important;
  }
  .features,
  .layout,
  .about-grid,
  .grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .sidebar,
  .card,
  .feature,
  .contact-box {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 430px) {
  .header-inner {
    grid-template-columns: 1fr !important;
  }
  .actions {
    grid-column: 1 !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }
  .brand-title { font-size: 19px !important; }
  .brand-cn { font-size: 14px !important; }
  #waBtn { font-size: 14px !important; padding: 9px 13px !important; }
  .lang-toggle { font-size: 12px !important; padding: 8px 11px !important; }
}
