/* 乐橙商城首页克隆 - main.css */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333;
  background: #f5f5f5;
  font-size: 14px;
}
a { text-decoration: none; color: inherit; }
ul, li, dl, dd, dt { list-style: none; }
img { display: block; max-width: 100%; }
.main-wrap { width: 1200px; margin: 0 auto; }

/* ============ 顶栏 ============ */
.m-header { background: #333; height: 37px; line-height: 37px; font-size: 12px; }
.m-header .main-wrap { display: flex; justify-content: space-between; }
.m-header a, .m-header .info { color: #ccc; margin-right: 18px; }
.m-header a:hover { color: #fff; }
.m-header .lang .caret {
  display: inline-block; width: 0; height: 0; margin-left: 4px; vertical-align: middle;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid #ccc;
}

/* ============ 搜索区 ============ */
.m-search { background: #fff; }
.m-search .main-wrap { display: flex; align-items: center; height: 114px; }
.m-search .logo img { width: 200px; height: 52px; }
.search-wrap { margin-left: 90px; width: 560px; }
.search-box { display: flex; height: 40px; }
.search-box input {
  flex: 1; border: 2px solid #ea4148; border-right: 0; padding: 0 14px; font-size: 13px; outline: none;
}
.search-box button {
  width: 70px; border: 0; background: #ea4148; color: #fff; cursor: pointer; font-size: 16px;
}
.search-box button:hover { background: #d33a41; }
.icon-search::before { content: ""; display: block; width: 16px; height: 16px; margin: 0 auto;
  background: url("../../assets/img/sprite.Cl9l57Je.png") no-repeat -66px -154px; }
.search-promote { display: flex; margin-top: 8px; font-size: 12px; color: #999; }
.search-promote li { margin-right: 16px; }
.search-promote .hot { color: #999; }
.search-promote a { color: #666; }
.search-promote a:hover { color: #ea4148; }
.cart-wrapper { margin-left: auto; }
.cart-btn {
  height: 40px; padding: 0 26px; border: 1px solid #dcdfe6; background: #f4f4f5; color: #606266;
  cursor: pointer; font-size: 14px;
}
.cart-btn:hover { border-color: #ea4148; color: #ea4148; }

/* ============ 导航 ============ */
.m-nav { background: #fff; border-bottom: 1px solid #eee; }
.nav-container { display: flex; height: 41px; align-items: stretch; }
.nav-container a {
  display: flex; align-items: center; padding: 0 20px; font-size: 14px; font-weight: 700; color: #333;
  position: relative; white-space: nowrap;
}
.nav-container a:first-child { padding-left: 0; }
.nav-container a:hover { color: #ea4148; }
.nav-container a.is-active { color: #ea4148; }
.nav-container a.is-active::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; background: #ea4148;
}

/* ============ 轮播 ============ */
.m-carousel { position: relative; height: 450px; overflow: hidden; }
.banner-item {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.banner-item.is-active { opacity: 1; pointer-events: auto; }
.banner-item a { display: block; width: 100%; height: 100%; }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(0,0,0,.25);
  color: #fff; font-size: 26px; cursor: pointer; opacity: 0; transition: opacity .3s;
}
.m-carousel:hover .banner-arrow { opacity: 1; }
.banner-arrow.prev { left: 30px; }
.banner-arrow.next { right: 30px; }
.banner-arrow:hover { background: rgba(0,0,0,.45); }
.banner-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.banner-dots li { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.6); cursor: pointer; }
.banner-dots li.is-active { background: #ea4148; }

/* ============ 楼层 ============ */
.container { padding: 30px 0 40px; }
.floor { margin-bottom: 34px; }
.floor-title {
  font-size: 24px; font-weight: 700; color: #333; margin-bottom: 18px; position: relative; padding-left: 14px;
}
.floor-title::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; background: #ea4148; border-radius: 3px;
}
.floor-title .more {
  float: right; font-size: 14px; font-weight: 400; color: #999; line-height: 34px;
}
.floor-title .more:hover { color: #ea4148; }

/* 商品网格：4 列，首项跨 2x2 */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card { background: #fff; transition: box-shadow .25s, transform .25s; }
.card a { display: block; padding: 16px 16px 18px; }
.card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.12); transform: translateY(-2px); }
.card--big { grid-column: span 2; grid-row: span 2; }
.card-img { display: flex; align-items: center; justify-content: center; overflow: hidden; height: 200px; }
.card--big .card-img { height: 340px; }
.card-img img { max-height: 100%; object-fit: contain; }
.card-name {
  margin-top: 12px; font-size: 14px; font-weight: 400; color: #333; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  height: 42px;
}
.card-sub { font-size: 12px; color: #999; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-price { margin-top: 10px; color: #ea4148; }
.card-price .label { font-size: 12px; margin-right: 6px; }
.card-price .cur { font-size: 13px; }
.card-price .num { font-size: 18px; font-weight: 700; }
.card-price .qi { font-size: 12px; margin-left: 3px; }

/* 热销榜单轮播 */
.hot-wrap { position: relative; overflow: hidden; }
#hotGrid { transition: transform .4s; }
.hot-arrow {
  position: absolute; top: 45%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.25);
  color: #fff; font-size: 22px; cursor: pointer; opacity: 0; transition: opacity .3s;
}
.hot-wrap:hover .hot-arrow { opacity: 1; }
.hot-arrow.prev { left: 8px; }
.hot-arrow.next { right: 8px; }
.hot-arrow:hover { background: rgba(0,0,0,.45); }

/* ============ 悬浮导航 ============ */
.float-nav {
  position: fixed; right: 12px; top: 40%; z-index: 50;
  background: #fff; border: 1px solid #eee; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.float-nav li {
  width: 56px; padding: 12px 0; text-align: center; cursor: pointer; font-size: 12px; color: #666;
}
.float-nav li + li { border-top: 1px solid #f0f0f0; }
.float-nav li:hover { color: #ea4148; }
.icon-cart::before, .icon-feedback::before { display: block; margin: 0 auto 4px; font-size: 18px; }
.icon-cart::before { content: "🛒"; font-size: 16px; }
.icon-feedback::before { content: "✎"; }

/* ============ 页脚 ============ */
.m-footer { margin-top: 20px; }
.footer-main { background-size: cover; background-position: center; background-color: #fff; }
.footer-main .main-wrap { display: flex; padding: 34px 0 30px; gap: 30px; }
.footer-main .cover { width: 220px; height: 80px; object-fit: contain; align-self: flex-start; }
.footer-list { display: flex; flex: 1; justify-content: space-between; }
.footer-list dt { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: #333; }
.footer-list dd { margin-bottom: 8px; font-size: 13px; }
.footer-list dd a { color: #888; }
.footer-list dd a:hover { color: #ea4148; }
.service { text-align: left; min-width: 260px; }
.service .phone { font-size: 22px; font-weight: 700; color: #ea4148; }
.service .phone em { font-style: normal; font-size: 12px; background: #ea4148; color: #fff; padding: 2px 6px; border-radius: 2px; margin-left: 8px; vertical-align: 3px; }
.service .time { margin-top: 8px; font-size: 12px; color: #999; }
.footer-icp { background: #fff; border-top: 1px solid #f0f0f0; padding: 18px 0 26px; font-size: 12px; color: #999; text-align: center; }
.footer-icp p { margin-top: 6px; }
.footer-icp a { color: #999; }
.footer-icp a:hover { color: #ea4148; }
.footer-icp img { display: inline-block; height: 14px; margin: 0 4px -2px 10px; }

/* ============ 响应式 ============ */
@media (max-width: 1240px) {
  .main-wrap { width: 96%; }
  .search-wrap { margin-left: 40px; width: 420px; }
}
@media (max-width: 900px) {
  .m-header .link, .m-header .lang { display: none; }
  .search-wrap { width: auto; flex: 1; margin-left: 20px; }
  .m-search .logo img { width: 150px; height: 39px; }
  .m-carousel { height: 300px; }
  .nav-container { overflow-x: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card--big { grid-column: span 2; grid-row: span 1; }
  .card--big .card-img { height: 200px; }
  .footer-main .main-wrap { flex-direction: column; }
  .footer-list { flex-wrap: wrap; gap: 20px; }
  .float-nav { display: none; }
}
@media (max-width: 560px) {
  .cart-wrapper { display: none; }
  .m-carousel { height: 200px; }
  .floor-title { font-size: 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .card--big { grid-column: span 2; }
  .card a { padding: 10px 10px 12px; }
  .card-img, .card--big .card-img { height: 140px; }
  .card-name { font-size: 12px; height: 36px; }
}

/* ============ 分类页 ============ */
.m-categorypage { background: #f5f5f5; padding-bottom: 30px; }
.crumb-bar { padding: 14px 0; font-size: 13px; color: #999; }
.crumb-bar a { color: #666; }
.crumb-bar a:hover { color: #ea4148; }
.crumb-bar i { font-style: normal; margin: 0 8px; color: #bbb; }
.filter-card { background: #fff; border-radius: 4px; padding: 6px 20px; margin-bottom: 16px; }
.filter-row { display: flex; align-items: center; padding: 8px 0; font-size: 13px; }
.filter-row .label { color: #999; width: 60px; }
.filter-row ul { display: flex; gap: 24px; }
.filter-row li { cursor: pointer; color: #333; }
.filter-row li:hover { color: #ea4148; }
.filter-row li.selected { color: #ea4148; font-weight: 700; }
.cat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-grid .card a { padding: 0 0 14px; }
.cat-grid .card-img { height: 220px; padding: 10px; }
.cat-grid .card .tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px 0; min-height: 20px; }
.cat-grid .card .tags span { font-size: 12px; color: #ea4148; border: 1px solid #f3b3b6; border-radius: 2px; padding: 0 5px; line-height: 18px; }
.cat-grid .card .card-name { padding: 8px 16px 0; margin: 0; height: auto; max-height: 42px; }
.cat-grid .card .card-price { padding: 6px 16px 0; margin: 0; }
.service-strip { background: #fff; border-radius: 4px; margin-top: 24px; padding: 18px 0; }
.service-strip ul { display: flex; justify-content: space-around; }
.service-strip li { font-size: 15px; color: #333; display: flex; align-items: center; gap: 10px; }
.service-strip i { font-style: normal; width: 34px; height: 34px; border: 1px solid #ddd; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ea4148; font-size: 16px; }

/* ============ 详情页 ============ */
.m-itempage { background: #fff; padding-bottom: 30px; }
.item-sec1-bottom { display: flex; gap: 40px; padding: 10px 0 30px; }
.item-sec1-left { width: 480px; flex-shrink: 0; }
.preview-main { width: 480px; height: 480px; object-fit: contain; border: 1px solid #f0f0f0; }
.thumb-list { display: flex; gap: 10px; margin-top: 12px; }
.thumb-list li { width: 70px; height: 70px; border: 1px solid #eee; cursor: pointer; overflow: hidden; }
.thumb-list li.selected, .thumb-list li:hover { border-color: #ea4148; }
.thumb-list img { width: 100%; height: 100%; object-fit: contain; }
.item-sec1-right { flex: 1; }
.item-sec1-label { font-size: 12px; color: #ea4148; height: 18px; }
.item-sec1-title { font-size: 22px; font-weight: 700; color: #333; line-height: 1.4; }
.item-sec1-info { margin-top: 10px; font-size: 14px; color: #888; }
.item-price-box { margin-top: 18px; background: #fdf3f3; border-radius: 4px; padding: 16px 20px; }
.card-price.big .num { font-size: 30px; }
.card-price.big .cur { font-size: 18px; }
.card-price .market { color: #999; font-size: 13px; margin-left: 12px; }
.item-price-box .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.item-price-box .tags span { font-size: 12px; color: #ea4148; border: 1px solid #f3b3b6; border-radius: 2px; padding: 0 5px; line-height: 18px; }
.buy-row { margin-top: 24px; display: flex; gap: 16px; }
.buy-row button { width: 160px; height: 46px; border: 0; border-radius: 4px; font-size: 16px; cursor: pointer; }
.button-buy { background: #ea4148; color: #fff; }
.button-buy:hover { background: #d33a41; }
.button-cart { background: #ffd54f; color: #6b4a00; }
.button-cart:hover { background: #fccb2d; }
.promise-row { display: flex; gap: 22px; margin-top: 22px; font-size: 13px; color: #999; }
.promise-row li::before { content: "\2713 "; color: #ea4148; }
.item-sec2 { border-top: 1px solid #f0f0f0; }
.item-sec2 ul.clear { display: flex; gap: 40px; align-items: center; }
.item-sec2 ul.clear li { padding: 16px 0; font-size: 16px; color: #666; cursor: pointer; position: relative; }
.item-sec2 ul.clear li.selected { color: #ea4148; font-weight: 700; }
.item-sec2 ul.clear li.selected em { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #ea4148; }
.item-sec2 ul.clear li span { font-size: 13px; color: #999; }
.item-sec2 ul.clear .button-area { margin-left: auto; display: flex; gap: 12px; }
.item-sec2 .button-buy, .item-sec2 .button-cart { width: 120px; height: 40px; font-size: 14px; border-radius: 20px; }
.item-sec3-detail img.detail-img { width: 100%; display: block; margin: 0 auto; max-width: 1000px; }
.item-sec3 .no-detail { padding: 40px 0; text-align: center; color: #999; }
.item-spec { padding: 30px 0 10px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table td { border: 1px solid #f0f0f0; padding: 10px 14px; color: #666; }
.spec-table tr td:first-child { color: #333; width: 180px; background: #fafafa; }

@media (max-width: 900px) {
  .item-sec1-bottom { flex-direction: column; }
  .item-sec1-left { width: 100%; }
  .preview-main { width: 100%; height: auto; aspect-ratio: 1; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid .card-img { height: 150px; }
  .service-strip ul { flex-direction: column; gap: 12px; align-items: flex-start; padding-left: 20px; }
}

/* ============ 盛派品牌 ============ */
.logo-text { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; }
.logo-text .lt-main { font-size: 30px; font-weight: 800; color: #ea4148; letter-spacing: 2px; }
.logo-text .lt-sub { font-size: 12px; color: #999; letter-spacing: 4px; }
.brand-block { width: 220px; align-self: flex-start; }
.brand-block .bb-main { font-size: 28px; font-weight: 800; color: #ea4148; letter-spacing: 2px; }
.brand-block .bb-sub { margin-top: 6px; font-size: 12px; color: #999; }

/* ============ 头部功能区 ============ */
.m-header .fr { display: flex; align-items: center; position: relative; }
.m-header .fr .info { margin-right: 14px; }
.lang-menu {
  display: none; position: absolute; right: 0; top: 100%; z-index: 60;
  background: #fff; border: 1px solid #eee; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.1);
  padding: 4px 0; min-width: 120px;
}
.lang-menu.open { display: block; }
.lang-menu li { padding: 8px 16px; font-size: 13px; color: #333; cursor: pointer; white-space: nowrap; }
.lang-menu li:hover { background: #fdf3f3; color: #ea4148; }
.lang-menu li.selected { color: #ea4148; font-weight: 700; }
.cart-btn { position: relative; display: flex; align-items: center; height: 40px; padding: 0 22px;
  border: 1px solid #dcdfe6; background: #f4f4f5; color: #606266; font-size: 14px; }
.cart-btn:hover { border-color: #ea4148; color: #ea4148; }
.cart-badge {
  position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; line-height: 18px;
  background: #ea4148; color: #fff; border-radius: 9px; font-size: 11px; text-align: center;
  padding: 0 4px; font-style: normal;
}

/* ============ 功能页通用 ============ */
.m-funcpage { background: #f5f5f5; padding-bottom: 40px; min-height: 420px; }
.func-card { background: #fff; border-radius: 4px; padding: 24px 28px 30px; }
.func-title { font-size: 20px; font-weight: 700; margin-bottom: 18px; padding-left: 12px; border-left: 4px solid #ea4148; }
.empty-tip { color: #999; text-align: center; padding: 50px 0; font-size: 14px; }

/* 购物车 */
.cart-item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid #f5f5f5; }
.cart-item img { width: 80px; height: 80px; object-fit: contain; border: 1px solid #f0f0f0; border-radius: 4px; }
.cart-item .ci-name { flex: 1; font-size: 14px; color: #333; }
.cart-item .ci-name a:hover { color: #ea4148; }
.cart-item .ci-price { color: #ea4148; font-weight: 700; width: 90px; text-align: right; }
.qty-ctrl { display: flex; align-items: center; border: 1px solid #e5e5e5; border-radius: 3px; }
.qty-ctrl button { width: 28px; height: 28px; border: 0; background: #fafafa; cursor: pointer; font-size: 14px; color: #666; }
.qty-ctrl input { width: 44px; height: 28px; border: 0; text-align: center; outline: none; font-size: 13px; }
.ci-del { color: #999; cursor: pointer; font-size: 13px; background: none; border: 0; }
.ci-del:hover { color: #ea4148; }
.cart-footer { display: flex; justify-content: flex-end; align-items: center; gap: 20px; margin-top: 18px; }
.cart-total { font-size: 14px; color: #333; }
.cart-total .num { font-size: 24px; }

/* 登录 */
.login-card { max-width: 420px; margin: 30px auto; background: #fff; border-radius: 6px; padding: 30px 34px; }
.login-tabs { display: flex; gap: 30px; margin-bottom: 22px; }
.login-tabs .lt { font-size: 17px; color: #999; cursor: pointer; padding-bottom: 8px; }
.login-tabs .lt.active { color: #ea4148; font-weight: 700; border-bottom: 2px solid #ea4148; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form input { height: 44px; border: 1px solid #e0e0e0; border-radius: 4px; padding: 0 14px; font-size: 14px; outline: none; }
.login-form input:focus { border-color: #ea4148; }
.login-form button { height: 46px; border: 0; border-radius: 4px; font-size: 16px; cursor: pointer; }
.login-tip { margin-top: 14px; font-size: 12px; color: #999; text-align: center; }

/* 订单 */
.order-card { border: 1px solid #f0f0f0; border-radius: 4px; margin-bottom: 16px; }
.order-head { display: flex; justify-content: space-between; padding: 12px 16px; background: #fafafa; font-size: 13px; color: #666; border-radius: 4px 4px 0 0; }
.order-head .st { color: #ea4148; font-weight: 700; }
.order-body { padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.order-body img { width: 64px; height: 64px; object-fit: contain; border: 1px solid #f0f0f0; }
.order-body .ob-name { flex: 1; font-size: 13px; color: #333; }
.order-foot { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 10px 16px; border-top: 1px solid #f5f5f5; font-size: 13px; }
.order-foot .ot { color: #ea4148; font-weight: 700; font-size: 16px; }
