* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: 
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, .16), transparent 26%), 
    radial-gradient(circle at 90% 0%, rgba(245, 158, 11, .18), transparent 26%), 
    linear-gradient(180deg, #fff7ed 0%, #f8fafc 28%, #eef6ff 100%);
  color: #111827;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input {
  font-family: inherit;
}

.top-notice {
  background: linear-gradient(90deg, #111827, #1d4ed8, #0f766e);
  color: white;
}
.top-notice-inner {
  max-width: 1380px;
  margin: auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 800;
}
.top-notice b {
  color: #fde68a;
}

.hero {
  max-width: 1380px;
  margin: 24px auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 250px 1fr 300px;
  gap: 18px;
}
.side-menu, .right-panel, .hero-main, .section-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: 0 20px 45px rgba(15, 23, 42, .08);
}
.side-menu {
  border-radius: 26px;
  padding: 18px;
}
.side-menu h3 {
  font-size: 18px;
  margin-bottom: 14px;
}
.side-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  border-radius: 14px;
  padding: 0 12px;
  color: #334155;
  font-weight: 800;
}
.side-menu a:hover {
  background: #eff6ff;
  color: #2563eb;
}

.hero-main {
  min-height: 430px;
  border-radius: 30px;
  padding: 42px;
  position: relative;
  overflow-x: hidden;
  background: 
    linear-gradient(135deg, rgba(15, 23, 42, .94), rgba(37, 99, 235, .9), rgba(6, 182, 212, .88)), 
    url("");
  color: white;
}
.hero-main:before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}
.hero-main:after {
  content:none !important;
  position: absolute;
  right: 34px;
  bottom: 34px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  font-weight: 1000;
}
.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  padding: 9px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-weight: 900;
}
.hero-main h1 {
  font-size: 54px;
  line-height: 1.12;
  font-weight: 1000;
  margin-bottom: 18px;
  text-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}
.hero-main p {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .88);
  max-width: 660px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.btn {
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 1000;
}
.btn-white {
  background: white;
  color: #1d4ed8;
}
.btn-glass {
  background: rgba(255, 255, 255, .16);
  color: white;
  border: 1px solid rgba(255, 255, 255, .32);
}
.btn-blue {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: white;
}
.btn-orange {
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: white;
}

.right-panel {
  border-radius: 26px;
  padding: 20px;
}
.r-title {
  font-size: 18px;
  font-weight: 1000;
  margin-bottom: 14px;
}
.stat-grid {
  display: grid;
  gap: 12px;
}
.stat {
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border: 1px solid #e5e7eb;
}
.stat strong {
  display: block;
  font-size: 24px;
  color: #2563eb;
}
.stat span {
  font-size: 13px;
  color: #64748b;
  font-weight: 800;
}

.section {
  max-width: 1380px;
  margin: 24px auto;
  padding: 0 22px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 28px;
  font-weight: 1000;
}
.section-head p {
  color: #64748b;
  font-weight: 800;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 14px;
}
.category {
  background: white;
  border-radius: 24px;
  padding: 22px 8px;
  text-align: center;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
  transition: .25s;
  cursor: pointer;
}
.category:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, .14);
}
.category div {
  font-weight: 1000;
}

.flash {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
}
.flash-left {
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  min-height: 260px;
}
.flash-left h2 {
  font-size: 34px;
  margin-bottom: 10px;
}
.flash-left p {
  line-height: 1.7;
  color: rgba(255, 255, 255, .9);
}
.timer {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.timer b {
  background: #111827;
  color: white;
  padding: 8px 10px;
  border-radius: 10px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product, .shop {
  background: white;
  border-radius: 26px;
  overflow-x: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}
.product-img, .shop-img {
  height: 178px;
  background: linear-gradient(135deg, #dbeafe, #fff7ed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  color: #2563eb;
  position: relative;
}
.hot {
  position: absolute;
  left: 14px;
  top: 14px;
  background: #ef4444;
  color: white;
  font-size: 12px;
  font-weight: 1000;
  padding: 6px 9px;
  border-radius: 999px;
}
.product-body, .shop-body {
  padding: 18px;
}
.product h3, .shop h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.desc {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}
.price {
  font-size: 24px;
  font-weight: 1000;
  color: #ef4444;
  margin-top: 10px;
}
.price small {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 6px;
}
.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.tag {
  background: #eff6ff;
  color: #2563eb;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}
.card-btn {
  margin-top: 14px;
  height: 40px;
  border-radius: 999px;
  background: #111827;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ai-join {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.big-card {
  border-radius: 30px;
  padding: 34px;
  min-height: 260px;
  color: white;
  position: relative;
  overflow-x: hidden;
}
.big-card h2 {
  font-size: 32px;
  margin-bottom: 12px;
}
.big-card p {
  line-height: 1.8;
  color: rgba(255, 255, 255, .86);
  margin-bottom: 24px;
}
.ai-card {
  background: linear-gradient(135deg, #111827, #3730a3, #0891b2);
}
.join-card {
  background: linear-gradient(135deg, #7c2d12, #f97316, #f59e0b);
}
.big-card:after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}

.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 88;
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 7px 0;
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
}
.bottom-nav i {
  display: block;
  font-size: 20px;
  margin-bottom: 3px;
  color: #2563eb;
}

.location-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, .55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.location-box {
  width: 520px;
  max-width: 100%;
  background: white;
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}
.location-box h3 {
  font-size: 26px;
  margin-bottom: 10px;
}
.location-box p {
  color: #64748b;
  margin-bottom: 18px;
}
.location-box input {
  width: 100%;
  height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 0 14px;
  font-size: 15px;
}
.city-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.city-list button {
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  font-weight: 900;
  cursor: pointer;
}
.city-list button:hover {
  background: #2563eb;
  color: white;
}
.close-btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 999px;
  margin-top: 18px;
  background: #111827;
  color: white;
  font-weight: 1000;
}

/* 响应式断点媒体查询 */
@media(max-width:1100px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .side-menu, .right-panel {
    display: none;
  }
  .product-grid, .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .flash {
    grid-template-columns: 1fr;
  }
}
@media(max-width:760px) {
  body {
    padding-bottom: 64px;
  }
  .top-notice-inner {
    font-size: 12px;
    display: block;
    line-height: 1.7;
  }
  .header-inner {
    height: auto;
    padding: 12px;
    flex-wrap: wrap;
  }
  .logo {
    width: 100%;
    font-size: 24px;
  }
  .nav {
    display: none;
  }
  .location {
    font-size: 13px;
    padding: 9px 12px;
  }
  .search {
    order: 3;
    width: 100%;
    flex: auto;
    height: 46px;
  }
  .search button {
    width: 82px;
  }
  .hero {
    padding: 0 12px;
    margin: 14px auto;
  }
  .hero-main {
    padding: 28px;
    border-radius: 24px;
    min-height: 390px;
  }
  .hero-main h1 {
    font-size: 36px;
  }
  .hero-main p {
    font-size: 15px;
  }
  .hero-main:after {
    left: 28px;
    right: auto;
    bottom: 22px;
  }
  .section {
    padding: 0 12px;
    margin: 20px auto;
  }
  .section-head {
    display: block;
  }
  .section-head h2 {
    font-size: 24px;
  }
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .category {
    padding: 16px 4px;
    border-radius: 18px;
  }
  .category div {
    font-size: 13px;
  }
  .product-grid, .shop-grid, .ai-join {
    grid-template-columns: 1fr;
  }
  .flash-left {
    min-height: auto;
  }
  .bottom-nav {
    display: flex;
  }
}

/* ===== 城市选择最终版 ===== */


.location-modal{

    position:fixed;

    left:0;

    top:0;

    width:100%;

    height:100%;

    z-index:9999;

    display:none;

}


.location-box{


    position:fixed;


    width:520px;


    max-width:calc(100vw - 30px);


    background:#fff;


    border-radius:20px;


    padding:28px;


    box-shadow:
    0 20px 60px rgba(0,0,0,.25);


}


.location-box h2{


    font-size:26px;

    margin-bottom:22px;


}


.city-select-group{


    display:flex;

    gap:10px;

}


.city-select-group select{


    width:150px;

    height:40px;

    border:1px solid #d1d5db;

    border-radius:8px;

    padding:0 8px;


}


.city-actions{


    margin-top:20px;

    display:flex;

    gap:10px;


}


.city-actions button{


    height:40px;

    padding:0 22px;

    border:0;

    border-radius:8px;

    cursor:pointer;

    background:#2563eb;

    color:#fff;

    font-weight:700;


}


.city-actions button:last-child{


    background:#e5e7eb;

    color:#111827;


}

/* ===== ECO v1.9-4 商品工人模块 ===== */


.product-grid,
.worker-grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:20px;

margin-top:20px;

}


.product-card,
.worker-card{

background:#fff;

border-radius:16px;

padding:20px;

box-shadow:0 8px 25px rgba(0,0,0,.08);

}


.product-card h3,
.worker-card h3{

font-size:18px;

margin:10px 0;

}


.product-card p,
.worker-card p{

color:#666;

margin:6px 0;

}


.product-card strong{

font-size:22px;

color:#e53935;

}


@media(max-width:900px){

.product-grid,
.worker-grid{

grid-template-columns:repeat(2,1fr);

}

}


/* ECO v1.9-5 模块宽度修复 */


.eco-module{

max-width:1200px;

margin:40px auto;

padding:0 20px;

}


.product-grid,
.worker-grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:20px;

width:100%;

}


.product-card,
.worker-card{

min-height:160px;

box-sizing:border-box;

}


@media(max-width:900px){

.product-grid,
.worker-grid{

grid-template-columns:repeat(2,1fr);

}

}


@media(max-width:600px){

.product-grid,
.worker-grid{

grid-template-columns:1fr;

}

}


/* ===== ECO v1.9-6 首页模块统一布局 ===== */


.eco-module{

width:1200px;

max-width:calc(100% - 64px);

margin:35px auto;

}


.eco-module h2{

font-size:28px;

margin-bottom:20px;

}


.product-grid,
.worker-grid{

width:100%;

display:grid;

grid-template-columns:repeat(4,1fr);

gap:24px;

}


.product-card,
.worker-card{

width:100%;

min-height:150px;

padding:22px;

background:#fff;

border-radius:18px;

box-sizing:border-box;

}


.product-card h3,
.worker-card h3{

font-size:18px;

margin-bottom:12px;

}


.product-card p,
.worker-card p{

color:#666;

margin:6px 0;

}


@media(max-width:1200px){

.eco-module{

width:auto;

}


.product-grid,
.worker-grid{

grid-template-columns:repeat(2,1fr);

}

}


/* ===== ECO v1.9-7 最终首页模块对齐修复 ===== */


.eco-module{

    width:auto;

    max-width:none;

    margin:24px 0;

    padding:0;

}


.eco-module h2{

    margin-bottom:16px;

}


.product-grid,
.worker-grid{

    width:100%;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:16px;

}


.product-card,
.worker-card{

    width:100%;

    min-height:160px;

    background:#fff;

    border-radius:26px;

    border:1px solid #e5e7eb;

    box-shadow:0 14px 34px rgba(15,23,42,.07);

    padding:18px;

}


@media(max-width:1100px){

.product-grid,
.worker-grid{

    grid-template-columns:repeat(2,1fr);

}

}


@media(max-width:760px){

.product-grid,
.worker-grid{

    grid-template-columns:1fr;

}

}


/* ===== 绘城绿色装修生态 V1 ===== */

:root{
  --eco-green:#3FAE49;
  --eco-green-dark:#2E8B3C;
  --eco-green-light:#EAF7EC;
  --eco-bg:#F6FAF6;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--eco-green-dark)!important;
  font-weight:700;
  white-space:nowrap;
}

.logo img{
  width:46px;
  height:46px;
  object-fit:contain;
  display:block;
}

.logo span{
  font-size:20px;
  line-height:1.2;
}

.search button{
  background:var(--eco-green)!important;
  color:#fff!important;
}

.search{
  border-color:var(--eco-green)!important;
}

.nav a:hover,
.nav a.active{
  color:var(--eco-green-dark)!important;
}

.user-btn{
  background:var(--eco-green)!important;
  color:#fff!important;
  padding:9px 18px!important;
  border-radius:20px!important;
  font-weight:600!important;
}

.user-btn:hover{
  background:var(--eco-green-dark)!important;
  color:#fff!important;
}


/* 分类展开面板 */

.hero{
 position:relative;
}


.panel-title{

font-size:22px;

font-weight:700;

color:#2E8B3C;

margin-bottom:20px;

}


.panel-content{

display:flex;

gap:20px;

}


.panel-group h4{

font-size:15px;

margin-bottom:8px;

color:#222;

}


.panel-group span{

display:inline-block;

margin-right:12px;

margin-bottom:8px;

color:#666;

cursor:pointer;

}


.panel-group span:hover{

color:#3FAE49;

}


/* ==================================================
   绘城 ECO 首页 V2
   宽屏 + 纯绿色 + 闲鱼式分类
   ================================================== */

:root{
  --eco-green:#43a047;
  --eco-green-dark:#2e7d32;
  --eco-green-light:#edf7ed;
  --eco-page:#f6f8f6;
}

/* 页面减少左右大白边 */
body{
  background:var(--eco-page)!important;
}

/* 顶部公告改纯绿色，不要蓝色/渐变 */
.top-notice{
  background:var(--eco-green-dark)!important;
  background-image:none!important;
}

.top-notice-inner{
  width:calc(100% - 32px)!important;
  max-width:1760px!important;
  margin:0 auto!important;
}

/* 顶部主导航宽屏 */


/* ===== ECO C2C HEADER FINAL ===== */


/* 顶部整体 */

.header{

    height:120px!important;

    background:#65a345!important;

    position:relative!important;

    top:auto!important;

    box-shadow:none!important;

    border:0!important;

}


/* 内部 */

.header-inner{

    max-width:1400px!important;

    height:120px!important;

    margin:auto!important;

    position:relative!important;

}


/* LOGO */

.logo{

    position:absolute!important;

    left:30px!important;

    top:20px!important;

    display:flex!important;

    align-items:center!important;

    color:#fff!important;

}


.logo img{

    width:72px!important;

    height:72px!important;

}


.logo span{

    font-size:32px!important;

    font-weight:900!important;

    color:#fff!important;

}


/* 城市 */

.location{

    position:absolute!important;

    left:260px!important;

    top:35px!important;

    background:transparent!important;

    color:#fff!important;

    border:0!important;

}


/* 搜索 */

.search{

    position:absolute!important;

    left:390px!important;

    right:180px!important;

    top:22px!important;

    height:46px!important;

    border-radius:24px!important;

    background:#fff!important;

    border:0!important;

}


.search input{

    font-size:16px!important;

}


.search button{

    width:100px!important;

    background:#3FAE49!important;

}


/* 我的 */

.user-btn{

    position:absolute!important;

    right:30px!important;

    top:30px!important;

    background:transparent!important;

    color:#fff!important;

    padding:8px 15px!important;

}


/* 第二层导航 */

.nav{

    position:absolute!important;

    left:50%!important;

    transform:translateX(-50%)!important;

    top:78px!important;

    display:flex!important;

    gap:60px!important;

}


.nav a{

    color:#fff!important;

    font-size:17px!important;

    font-weight:700!important;

}


.nav a:hover{

    color:#000!important;

}


/* 删除顶部公告 */

.top-notice{
    display:none!important;
}


/* ===== 修复C2C搜索框 ===== */


.search{

    display:flex!important;

    width:700px!important;

    left:380px!important;

    right:auto!important;

    top:22px!important;

    height:46px!important;

    background:#fff!important;

    border-radius:25px!important;

    overflow:hidden!important;

}


.search input{

    flex:1!important;

    width:auto!important;

    height:100%!important;

    border:0!important;

    outline:none!important;

    padding-left:22px!important;

}


.search button{

    width:100px!important;

    height:100%!important;

    flex:none!important;

    border:0!important;

}


@import url("/assets/eco/css/header-final.css");


/* 分类弹窗关闭控制 */


/* ===== 分类弹窗最终显示控制 ===== */


.user-head{

display:flex;

align-items:center;

gap:12px;

padding-bottom:15px;

border-bottom:1px solid #eee;

}


.avatar-default{

width:45px;

height:45px;

border-radius:50%;

background:#4263eb;

color:white;

display:flex;

align-items:center;

justify-content:center;

}


.user-head p{

margin:5px 0 0;

font-size:13px;

color:#888;

}


.user-menu a{

display:block;

padding:12px 5px;

color:#333;

text-decoration:none;

}


.user-menu a:hover{

color:#4263eb;

}


/* 用户中心定位修复 */

.user-box{

position:relative;

display:flex;

align-items:center;

height:100%;

}


.user-btn{

cursor:pointer;

display:flex;

align-items:center;

gap:6px;

}


.user-panel{

position:absolute;

right:0;

top:55px;

width:260px;

background:#fff;

border-radius:14px;

box-shadow:0 10px 35px rgba(0,0,0,.18);

padding:20px;

display:none;

z-index:99999;

}


.user-box:hover .user-panel{

display:block;

}


/* ===== 用户入口布局修复 ===== */

.header-inner{
    display:flex;
    align-items:center;
}


.user-box{

    margin-left:auto;

    position:relative;

    display:flex;

    align-items:center;

}


.user-btn{

    color:#fff;

    display:flex;

    align-items:center;

    gap:6px;

    cursor:pointer;

}


.user-btn{

    white-space:nowrap;

    min-width:70px;

    justify-content:center;

}


.user-btn i{

    font-size:16px;

}


.user-box{

    flex-shrink:0;

}


/* 用户下拉最终位置 */
.user-panel{
    top:60px !important;
}


/* 左侧装修商城分类升级 */

.side-menu .menu-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
}


.side-menu .menu-item span{
    display:flex;
    align-items:center;
    gap:10px;
}


.side-menu .menu-item i{
    width:18px;
    text-align:center;
    color:#43a047;
}


.side-menu .menu-item b{
    font-size:22px;
    font-weight:400;
    opacity:.45;
}


.side-menu .menu-item:hover b{
    opacity:1;
}


/* ===== 左侧装修商城菜单升级 ===== */

.side-menu .menu-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
}


.side-menu .menu-item span{
    display:flex;
    align-items:center;
    gap:10px;
}


.side-menu .menu-item i{
    width:18px;
    text-align:center;
    color:#43a047;
}


.side-menu .menu-item b{
    font-size:22px;
    line-height:1;
    font-weight:400;
    color:#999;
}


.side-menu .menu-item:hover{
    background:#f3faf3;
}


.side-menu .menu-item:hover b{
    color:#43a047;
}


/* ===== 闲鱼式三级材料菜单 ===== */

.eco-category-float{

position:absolute;

left:430px;
top:0;

width:760px;

min-height:420px;

background:#fff;

border-radius:18px;

box-shadow:0 10px 35px rgba(0,0,0,.12);

padding:28px;

z-index:999;

display:none;

}


.eco-category-float.active{

display:block;

}


.eco-category-title{

font-size:22px;

font-weight:700;

margin-bottom:20px;

}


.eco-category-row{

display:flex;

margin-bottom:18px;

}


.eco-category-row h4{

width:150px;

font-size:15px;

margin:0;

color:#333;

}


.eco-category-row div{

flex:1;

}


.eco-category-item{

display:inline-block;

margin-right:18px;

margin-bottom:12px;

color:#666;

font-size:14px;

text-decoration:none;

}


.eco-category-item:hover{

color:#4f8f2f;

}


/* ===== 三级菜单贴合左侧 ===== */

.eco-category-float{

left:275px!important;

top:0!important;

}


/* 闲鱼式五宫格广告 */

.eco-banner-grid{

display:grid;

grid-template-columns:280px 1fr 1fr;

grid-template-rows:145px 145px;

gap:12px;

height:302px;

}


.banner-main{

grid-row:1 / 3;

border-radius:20px;

padding:45px 30px;

background:linear-gradient(135deg,#78a747,#c4dc9a);

color:white;

overflow:hidden;

}


.banner-main h1{

font-size:34px;

line-height:1.3;

}


.banner-main p{

font-size:18px;

line-height:1.8;

}


.banner-main a{

display:inline-block;

margin-top:20px;

background:white;

color:#5c8d2d;

padding:10px 22px;

border-radius:30px;

}


.banner-item{

border-radius:20px;

padding:25px;

background:#f5f8ef;

}


.banner-item h3{

font-size:22px;

}


.banner-item p{

color:#666;

line-height:1.6;

}


.banner-item.ai{

background:#edf5ff;

}


.banner-item.supplier{

background:#fff3e8;

}


.banner-item.worker{

background:#f1edff;

}


.hero{

grid-template-columns:260px 1fr !important;

}


.hero-main{

width:100%;

}


.eco-banner-grid{

height:420px;

grid-template-columns:1.3fr 1fr 1fr;

grid-template-rows:1fr 1fr;

gap:14px;

}


/* remove old right service panel */
.right-panel{
display:none!important;
}

.hero{
grid-template-columns:260px 1fr!important;
}


/* ==========================


/* ==========================
   首页全屏容器优化
   不影响广告模块
========================== */


.hero,
.section,
.top-notice-inner{

max-width:1600px!important;

width:calc(100% - 40px)!important;

margin-left:auto!important;

margin-right:auto!important;

}


/* 首页主体减少上下空白 */

.hero{

margin-top:18px!important;

margin-bottom:18px!important;

}


/* 五宫格保持 */

.eco-banner-grid{

width:100%;

}


/* 分类和商品紧贴 */

.section{

margin-top:18px!important;

}


/* 大屏适配 */

@media(min-width:1600px){

.hero,
.section{

max-width:1700px!important;

}

}


/* =========================
   商品流 - 闲鱼布局
========================= */

.product-flow-grid,
#realProductGrid{

display:grid!important;

grid-template-columns:repeat(6,1fr)!important;

gap:16px!important;

width:100%;

}


.product-card{

background:#fff;

border-radius:16px;

overflow:hidden;

border:1px solid #eee;

transition:.2s;

}


.product-card:hover{

transform:translateY(-3px);

box-shadow:0 10px 25px rgba(0,0,0,.08);

}


.product-cover{

width:100%;

aspect-ratio:1/1;

background:#f5f5f5;

overflow:hidden;

}


.product-cover img{

width:100%;

height:100%;

object-fit:cover;

display:block;

}


.product-info{

padding:12px;

}


.product-info h3{

font-size:15px;

line-height:1.4;

height:42px;

overflow:hidden;

}


.product-info p{

font-size:12px;

color:#888;

margin:8px 0;

height:36px;

overflow:hidden;

}


.product-info strong{

font-size:20px;

color:#f4511e;

display:block;

}


.product-info small{

color:#999;

}


/* 手机 */

@media(max-width:768px){

.product-flow-grid,
#realProductGrid{

grid-template-columns:repeat(2,1fr)!important;

gap:10px!important;

}


.product-info{

padding:8px;

}

.product-info h3{

font-size:14px;

}


}


/* 商品流最终6列 */

#realProductGrid,
.product-flow-grid{

grid-template-columns:repeat(6,1fr)!important;

gap:16px!important;

}


#realProductGrid .product-card{

height:420px!important;

}


/*
 * =========================================================
 * HC_ECO_CITY_PICKER_MOBILE_V3
 * =========================================================
 *
 * 手机端城市选择器：
 * - 不允许横向溢出屏幕
 * - 省 / 市 / 区县纵向排列
 * - 桌面端原布局保持不变
 */

@media (max-width:760px){

    #locationModal .location-box{

        box-sizing:border-box !important;

        width:calc(100vw - 24px) !important;
        max-width:calc(100vw - 24px) !important;

        left:12px !important;
        right:auto !important;

        padding:20px !important;

        border-radius:18px !important;

        max-height:calc(100vh - 185px);
        overflow-y:auto;
        overflow-x:hidden;
    }


    #locationModal .location-box h2{

        font-size:24px;
        line-height:1.25;

        margin:8px 0 20px;
    }


    #locationModal .city-select-group{

        display:flex;
        flex-direction:column;

        width:100%;

        gap:12px;
    }


    #locationModal .city-select-group select{

        box-sizing:border-box !important;

        display:block;

        width:100% !important;
        min-width:0 !important;
        max-width:100% !important;

        height:46px;

        font-size:14px;

        padding:0 12px;
    }


    #locationModal .city-actions{

        display:flex;

        width:100%;

        gap:10px;

        margin-top:18px;
    }


    #locationModal .city-actions button{

        min-width:0;

        height:44px;

        padding:0 22px;
    }

}


@media (max-width:360px){

    #locationModal .location-box{

        width:calc(100vw - 16px) !important;
        max-width:calc(100vw - 16px) !important;

        left:8px !important;

        padding:16px !important;
    }

}

/* ===== /HC_ECO_CITY_PICKER_MOBILE_V3 ===== */


/*
 * =========================================================
 * HC_HOME_PRODUCT_CARD_MOBILE_V1
 * =========================================================
 *
 * 首页“猜你喜欢”
 *
 * 1. 卡片高度由内容决定
 * 2. 商品名称最多两行
 * 3. 品牌 / 规格最多一行
 * 4. 手机端最终两列
 * 5. 禁止富文本把卡片撑坏
 */

#realProductGrid .product-card{

    height:auto !important;
    min-height:0 !important;

    display:flex;
    flex-direction:column;

    box-sizing:border-box;

    overflow:hidden;
}


#realProductGrid .product-cover{

    flex:0 0 auto;
}


#realProductGrid .product-info{

    box-sizing:border-box;

    width:100%;

    padding:12px;

    display:flex;
    flex-direction:column;

    min-width:0;
}


#realProductGrid .product-info h3{

    height:auto !important;
    min-height:42px;

    margin:0 0 8px;

    font-size:15px;
    line-height:1.4;

    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;

    overflow:hidden;

    word-break:break-word;
}


#realProductGrid .hc-home-product-meta{

    height:auto !important;
    min-height:20px;

    margin:0 0 8px !important;

    font-size:13px;
    line-height:20px;

    color:#64748b;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}


#realProductGrid .product-info strong{

    display:block;

    margin-top:auto;

    font-size:18px;
    line-height:1.3;

    color:#ff4d1c;
}


#realProductGrid .product-info small{

    display:block;

    margin-top:5px;

    font-size:12px;

    color:#94a3b8;
}


@media (max-width:760px){

    /*
     * 必须放在文件最后，
     * 覆盖此前“最终6列”的 !important。
     */
    #realProductGrid,
    .product-flow-grid{

        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            )
            !important;

        gap:10px !important;
    }


    #realProductGrid .product-card{

        width:100% !important;

        height:auto !important;
        min-height:0 !important;
    }


    #realProductGrid .product-info{

        padding:10px;
    }


    #realProductGrid .product-info h3{

        font-size:14px;

        min-height:40px;
    }


    #realProductGrid .hc-home-product-meta{

        font-size:12px;
    }


    #realProductGrid .product-info strong{

        font-size:17px;
    }

}


@media (max-width:360px){

    #realProductGrid,
    .product-flow-grid{

        gap:8px !important;
    }


    #realProductGrid .product-info{

        padding:9px;
    }

}

/* ===== /HC_HOME_PRODUCT_CARD_MOBILE_V1 ===== */


/* ==================================================
   HC_CATEGORY_HIERARCHY_V1
   主分类：左侧六大装修商城分类
   下方区域：仅作为热门快捷入口
   ================================================== */

.hc-category-shortcut-note{
    margin-top:-4px;
    margin-bottom:14px;
    font-size:13px;
    line-height:1.6;
    color:#7b8794;
    font-weight:400;
}

@media (max-width:768px){
    .hc-category-shortcut-note{
        margin-top:-2px;
        margin-bottom:10px;
        font-size:12px;
    }
}

