/* ===========================================================
   ljun.net - responsive overrides (mobile.css)
   Loaded AFTER /skin/style.css so these rules win on narrow screens.
   Desktop (>1000px) keeps the original 980px fixed layout untouched.
   =========================================================== */

/* ---------- Tablet & small desktop (<=1000px) ---------- */
@media (max-width: 1000px) {
  .HeaderBg,
  .Home,
  .Content,
  .Foot .links {
    width: auto !important;
    max-width: 980px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  .Header .r { width: auto; float: none; }
  .Header ul li {
    width: auto;
    padding: 0 8px;
    background: none;
    font-size: 13px;
  }
  .Banner { height: auto; }
  .Banner img { width: 100%; height: auto; max-width: 919px; }
  img { max-width: 100%; height: auto; }

  /* Body + side Menu stack instead of sitting side by side (750+195 won't fit) */
  .Content { margin-top: 10px; }
  .Body { width: 100%; float: none; }
  .Menu { width: 100%; float: none; margin-top: 15px; }

  /* Home three columns -> stacked */
  .Home .about,
  .Home .news,
  .Home .service { float: none; width: auto; margin: 0 0 15px; }
  .Home .service .L,
  .Home .service .R { float: none; width: auto; }

  /* Case grid -> 2 columns */
  .Home .CaseList li {
    width: 47%;
    height: auto;
    margin: 0 1.5% 14px;
  }
  .Home .CaseList li img { width: 100%; height: auto; }
}

/* ---------- Phone (<=768px) ---------- */
@media (max-width: 768px) {
  body { font-size: 14px; line-height: 1.65; }

  .Header { height: auto; }
  .HeaderBg { padding: 12px 10px; text-align: center; }
  .Header .logo { float: none; width: auto; }
  .Header .logo img { width: 140px; height: auto; }
  .Header .r { float: none; width: auto; text-align: center; }
  .Header .r span { float: none; display: inline-block; font-size: 12px; }
  .Header ul { float: none; clear: both; padding-top: 8px; text-align: center; }
  .Header ul li {
    float: none;
    display: inline-block;
    width: auto;
    font-size: 13px;
    padding: 6px 8px;
    background: none;
  }

  .Banner { height: auto; }
  .Banner img { width: 100%; height: auto; }

  .Home { margin-top: 8px; }
  .Home h3 { font-size: 15px; }

  /* Home columns already stacked from tablet rule; just tighten */
  .Home .about,
  .Home .news,
  .Home .service { margin: 0 0 14px; }
  .Home .service .L,
  .Home .service .R { padding-top: 6px; }

  /* Case grid -> 1 column */
  .Home .CaseList li {
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 12px;
  }
  .Home .CaseList li img { width: 100%; height: auto; }

  /* Hot news ticker */
  .Home .HotNew { width: auto; }
  .Home .HotNew .line li { width: auto; float: none; }
  #HomeHot { float: none; width: auto; }

  /* Content body */
  .Body { width: auto; float: none; line-height: 1.7; }
  .Body .CaseList .list {
    height: auto;
    float: none;
    border-bottom: 1px solid #ccc;
    padding: 15px 0;
  }
  .Body .CaseList .list img { float: none; width: 100%; height: auto; margin-bottom: 10px; }
  .Body .CaseList .list p { float: none; width: auto; }
  .Body .CaseList .kefu li { width: 47%; height: auto; margin: 0 1.5% 12px; }
  .Body .CaseList .kefu li img { width: 100%; height: auto; }
  .Body .web .youshi li { width: auto; float: none; height: auto; }
  .Body .Process li { height: auto; }
  .Body .caseview .pic { height: auto; padding: 20px 10px; background: none; }
  .Body .caseview .pic #img { width: 100%; height: auto; }
  .Body .Feedback input { width: 100%; max-width: 300px; }
  .Body .Feedback textarea { width: 100%; }

  /* Side menu */
  .Menu { float: none; width: auto; margin-top: 15px; }
  .Menu .kefu { background-size: cover; }

  /* Footer */
  .Foot { height: auto; padding: 20px 10px; }
  .Foot .links { width: auto; text-align: center; padding: 0 10px; }
  .Foot .links a { margin: 0 8px; display: inline-block; }
  .Foot address { float: none; display: block; text-align: center; margin-top: 10px; }
  .Foot .link { text-align: center; }
}

/* ---------- Small phone (<=480px) ---------- */
@media (max-width: 480px) {
  body { font-size: 13px; }
  .Header ul li { padding: 5px 6px; font-size: 12px; }
  .Home h3 { font-size: 14px; }
  .Body .CaseList .kefu li { width: 100%; margin: 0 0 12px; }
}
