/* ============================================
 * 丽华快餐 - 现代化样式表 (ele.me inspired)
 * 保留所有原有 class 名称
 * ============================================ */

/* =========== Base =========== */
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

.container,
.li-container {
  width: 1170px !important;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

/* 自定义 flex 行（替代 Bootstrap .row） */
.li-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  width: 100%;
}

.li-row > [class*="col-"] {
  float: none;
}

a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
  color: inherit;
}

/* =========== Top Bar (lihua-top) =========== */
.lihua-top {
  background: #fff;
  height: 36px;
  line-height: 36px;
  font-size: 12px;
  color: #666;
  min-width: 1170px;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 100;
}

.lihua-top .navbar-nav > li,
.lihua-top .navbar-nav > div,
.lihua-top .navbar-nav > a {
  line-height: 36px;
}

.lihua-top .navbar-nav.navbar-left {
  float: left;
  padding-left: 15px;
}

.lihua-top .navbar-nav.navbar-right {
  float: right;
  padding-right: 15px;
}

.lihua-top .navbar-nav.navbar-right > a,
.lihua-top .navbar-nav.navbar-right > div {
  margin-left: 8px;
}

.lihua-top .btn-group .dropdown-menu {
  min-width: 160px;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border: none;
  margin-top: 2px;
}

.lihua-top .btn-group .dropdown-menu img {
  width: 140px;
  border-radius: 4px;
}

.lihua-top-btn {
  display: inline-block;
  padding: 3px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.lihua-top-btn:hover {
  border-color: #ED1C24;
  color: #ED1C24;
}

/* =========== Navigation (lh-daohang) - Now at Bottom =========== */
.lh-daohang {
  background: #C9151E;
  min-width: 1170px;
  border-top: 2px solid #B0131A;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

.zibai {
  color: #fff;
  line-height: 48px;
  background-color: #B0131A;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.li-dh {
  font-size: 13px;
  font-weight: 400;
  line-height: 48px;
}

.li-dh ul li {
  text-align: center;
  color: #fff;
  padding: 0 6px;
  float: left;
  list-style: none;
  line-height: 48px;
}

.li-dh ul li a:link,
.li-dh ul li a:visited {
  display: block;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  padding: 0 12px;
  transition: all 0.25s;
  border-radius: 4px;
}

.li-dh ul li a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 0 12px;
}

/* =========== Banner Area =========== */
.li-banner {
  align-items: center;
  padding: 15px 0;
  gap: 10px;
}

.li-banner > [class*="col-"] {
  float: none;
  padding-left: 8px;
  padding-right: 8px;
}

.li-banner .lcx-p-sx {
  flex: 0 0 auto;
  width: auto !important;
  padding: 0 !important;
}

.li-banner .lcx-p-sx img {
  max-height: 48px;
  width: auto;
  display: block;
}

.li-banner > .lcx-p-0 {
  padding-left: 8px;
  padding-right: 8px;
  white-space: nowrap;
}

.li-banner > div[class*="col-"] {
  width: auto !important;
  flex: 0 0 auto;
}

.li-banner > div[class*="col-"]:nth-child(4) {
  flex: 1;
  min-width: 0;
}

.li-banner > div[class*="col-"]:last-child {
  margin-left: auto;
  flex: none;
}

.li-banner .lcx-p-0[align="right"] {
  margin-left: auto;
  width: auto !important;
  flex: 0 0 auto;
  padding-right: 0 !important;
}

/* Carousel */
.carousel {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.li-guntu img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.carousel-control.left,
.carousel-control.right {
  background-image: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.carousel:hover .carousel-control.left,
.carousel:hover .carousel-control.right {
  opacity: 1;
}

.carousel-control.left:hover {
  background-image: linear-gradient(to right, rgba(0,0,0,0.4) 0, rgba(0,0,0,0.0001) 100%);
}

.carousel-control.right:hover {
  background-image: linear-gradient(to right, rgba(0,0,0,0.0001) 0, rgba(0,0,0,0.4) 100%);
}

/* =========== Product Categories (Left Sidebar) =========== */
.li-gdg {
  height: auto;
  min-height: 280px;
  background: #fafafa;
  text-indent: 1em;
  border-radius: 8px 0 0 8px;
  border: 1px solid #eee;
  border-right: none;
}

.nsj-xiala {
  line-height: 36px;
  height: 100%;
  margin: 0;
  overflow: scroll;
  padding: 0;
  color: #666;
}

.nsj-xiala li {
  width: 100%;
  font-family: inherit;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  list-style: none;
  transition: background 0.2s;
}

.nsj-xiala > li > a {
  position: relative;
  background: #fafafa;
  display: block;
  height: 36px;
  line-height: 36px;
  color: #666;
  padding-left: 15px;
  transition: all 0.2s;
}

.nsj-xiala > li > a:hover {
  background: #fff;
  color: #ED1C24;
}

.nsj-xiala > li > a:focus {
  background: #fff;
  height: 36px;
  color: #666;
}

.nsj-xiala-jg {
}

.nsj-xiala-jg > li {
  float: left;
}

.nsj-xiala-jg > li > a {
  border: none;
}

.nsj-xiala-jg > li.active > a,
.nsj-xiala-jg > li.active > a:hover,
.nsj-xiala-jg > li.active > a:focus {
  color: #ED1C24;
  font-weight: 700;
  cursor: default;
  background: #fff;
  height: 36px;
  border-left: 3px solid #ED1C24;
}

/* =========== Product Cards =========== */
.thumbnail.li-cp {
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #eee !important;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  width: 100%;
}

.thumbnail.li-cp:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.thumbnail.li-cp img {
  width: 100% !important;
  max-width: 100%;
  height: 140px !important;
  object-fit: cover;
  border-radius: 6px;
}

.thumbnail.li-cp .name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 6px 0 2px;
  padding: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumbnail.li-cp .desc {
  line-height: 1.4;
  height: 56px;
  font-size: 12px;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0 0 4px;
}

.li-cp-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

.li-cp-btn-col {
  text-align: right;
  flex-shrink: 0;
}

.li-cp-jg {
  font-size: 14px;
  padding-top: 4px;
  color: #ED1C24;
  font-weight: 700;
}

.li-cp-jg strong {
  font-size: 15px;
}

.li-cp-p-2 {
  display: flex;
  width: calc(25% - 15px);
  flex: none;
}

.li-cp-p-12 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* keep status text inline */
.thumbnail.li-cp span {
  font-size: 11px;
  color: #999;
  line-height: 1.4;
}

.li-cp-yfze {
  font-size: 28px;
  color: #ED1C24;
  line-height: 1.2;
  font-weight: 700;
}

.sum {
  font-weight: 700;
  color: #ED1C24;
  font-size: 14px;
}

/* =========== Buttons =========== */
.btn-danger {
  background: #ED1C24;
  border-color: #ED1C24;
  border-radius: 4px;
  font-size: 12px;
  padding: 4px 12px;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: #C9151E;
  border-color: #C9151E;
}

.btn-default {
  border-radius: 4px;
  font-size: 12px;
}

/* =========== Cart Sidebar =========== */
.lihua-gwc {
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}

.lihua-gwc p {
  padding: 10px 15px;
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 600;
  color: #333;
  font-size: 13px;
  background: #fafafa;
}

.lihua-gwc h5 {
  margin: 8px 0;
  font-size: 13px;
}

.lihua-gwc-dan {
  padding: 10px 15px;
  border-bottom: 1px dashed #f0f0f0;
  transition: background 0.2s;
}

.lihua-gwc-dan:hover {
  background: #fafafa;
}

/* =========== Recent Orders =========== */
.lihua-jqdd {
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}

.lihua-jqdd p {
  padding: 10px 15px;
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 600;
  color: #333;
  font-size: 13px;
  background: #fafafa;
}

.lihua-jqdd h5 {
  margin: 8px 0;
}

.lihua-jqdd-dan {
  padding: 10px 15px;
  border-bottom: 1px dashed #f0f0f0;
}

/* =========== Panels =========== */
.panel.panel-default {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
}

.panel-default > .panel-heading {
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 15px;
  font-weight: 600;
  color: #333;
}

.li-panel-heading {
  color: #333;
  background-color: #fafafa;
  border-color: #eee;
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 600;
  font-size: 13px;
}


/* =========== Footer (li-bottom) =========== */
.li-bottom {
  margin: 0;
  background: #2b2b2b;
  padding: 40px 0 30px;
  min-width: 1170px;
  color: #ccc;
}

.li-bottom h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 15px;
  font-weight: 600;
}

.li-bottom a {
  color: #999;
  font-size: 12px;
  line-height: 2;
  transition: color 0.2s;
}

.li-bottom a:hover {
  color: #ED1C24;
}

.li-bottom .lcx-bian-right {
  border-right: 1px solid rgba(255,255,255,0.08);
}

.li-bottom > .col-xs-12 {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 20px;
  padding-top: 20px;
  color: #888;
  font-size: 12px;
}

.li-bottom > .col-xs-12 a {
  color: #888;
}

/* =========== Utility Classes =========== */
.lcx-p-0 { padding: 0; }
.lcx-p-zy { padding: 0 15px; }
.lcx-p-z { padding: 0 0 0 15px; }
.lcx-p-b { padding-bottom: 15px; }
.lcx-p { padding: 15px; }
.lcx-p-s { padding-top: 7px; }
.lcx-m-s { margin-top: 15px; }
.lcx-m-z { margin-left: 15px; }
.lcx-m-sx { margin: 15px 0; }
.lcx-m-sx-25 { margin: 25px 0; }
.lcx-m-zy { margin: 0 15px; }
.lcx-m { margin: 15px; }
.lcx-m-0 { margin: 0; }
.lcx-bian-right { border-right: 1px solid #eee; }
.lcx-bian-left { border-left: 1px solid #eee; }
.lcx-bian-bottom { border-bottom: 1px solid #eee; }
.lcx-bian { border: 1px solid #eee; }
.lcx-tu-100 img { max-width: 100%; border-radius: 4px; }

/* =========== Login / Register =========== */
.li-ligin {
  background: url(../images/login.jpg) center no-repeat;
  background-size: cover;
  height: 400px;
  border-top: none;
  min-width: 1170px;
}

.li-ligin-kuang {
  margin: 20px 0;
  border: 1px solid #eee;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.li-dan-kuang {
  border: 1px solid #eee;
  background: #fafafa;
  padding: 8px 12px;
  margin-top: 10px;
  border-radius: 4px;
}

.li-zhuce {
  margin: 15px 0;
}

.li-zhuce-p {
  padding-top: 28px;
}

/* =========== Button Variants =========== */
.btn-default-xin {
  width: 280px;
  height: 80px;
  color: #999;
  margin: 10px;
  border: 2px dashed #ddd;
  background-color: #fff;
  border-radius: 8px;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-default-xin:hover,
.btn-default-xin:focus,
.btn-default-xin:active,
.btn-default-xin.active {
  color: #ED1C24;
  background-color: #fff;
  border: 2px solid #ED1C24;
  outline: none;
}

.btn-group-li {
  float: left;
  width: 300px;
}

.btn-group-li > .btn-group-li:not(:first-child):not(:last-child) > .btn {
  border-radius: 0;
}

.btn-group-li-justified > .btn-group-li .btn {
  width: 100%;
}

.btn-group-li > .btn:first-child {
  margin-left: 0;
}

.btn-group-li > .btn,
.btn-group-li-vertical > .btn {
  position: relative;
  float: left;
  outline: none;
}

.btn-default-hui {
  width: 280px;
  height: 80px;
  color: #999;
  margin: 10px;
  border: 1px dashed #ddd;
  background-color: #fff;
  border-radius: 8px;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-default-hui:hover,
.btn-default-hui:focus,
.btn-default-hui:active,
.btn-default-hui.active {
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  outline: none;
}

/* =========== Home Page =========== */
#home img {
  max-width: 100%;
}

/* =========== City Modal =========== */
#myModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

#myModal .modal-header {
  border-bottom: 1px solid #f0f0f0;
  padding: 15px 20px;
}

#myModal .modal-body {
  padding: 20px;
  font-size: 14px;
  line-height: 2.2;
}

#myModal .modal-body a {
  display: inline-block;
  padding: 4px 12px;
  margin: 3px;
  border: 1px solid #eee;
  border-radius: 4px;
  transition: all 0.2s;
}

#myModal .modal-body a:hover {
  border-color: #ED1C24;
  color: #ED1C24;
}

/* =========== Ele.me Landing Page (Non-ordering Cities) =========== */
.eleme-landing {
  background: linear-gradient(135deg, #ED1C24 0%, #C9151E 50%, #B0131A 100%);
  padding: 60px 20px;
  border-radius: 12px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.eleme-landing::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.eleme-landing-inner {
  background: #fff;
  border-radius: 16px;
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 40px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.2);
  position: relative;
}

.eleme-landing-header {
  text-align: center;
  margin-bottom: 35px;
}

.eleme-landing-header h2 {
  font-size: 28px;
  color: #333;
  margin: 0 0 8px;
  font-weight: 700;
}

.eleme-landing-desc {
  font-size: 15px;
  color: #999;
  margin: 0;
}

.eleme-landing-cards {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 30px;
}

.eleme-landing-card {
  text-align: center;
  flex: 0 0 auto;
}

.eleme-landing-qr {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  transition: all 0.3s;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eleme-landing-qr:hover {
  border-color: #ED1C24;
  box-shadow: 0 4px 20px rgba(237,28,36,0.1);
}

.eleme-landing-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eleme-landing-label {
  font-size: 15px;
  color: #333;
  font-weight: 600;
  margin: 0 0 4px;
}

.eleme-landing-sub {
  font-size: 12px;
  color: #999;
  margin: 0;
}

.eleme-landing-phone {
  text-align: center;
  font-size: 14px;
  color: #999;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  margin-top: 10px;
}

.eleme-landing-phone span {
  color: #ED1C24;
  font-weight: 700;
  font-size: 20px;
}
