/* ============================================================
   森落凉线百货 - 全站公共样式
   1:1 还原源站 xidujg.cn 凡科设计风格，重新编排模块
   ============================================================ */
:root {
  --theme: #2ba0e8;
  --theme-dark: #1e7cc0;
  --accent: #eb1d4e;
  --dark: #212121;
  --gray: #666;
  --light: #f5f5f5;
  --border: #e8e8e8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", Arial, sans-serif;
  color: #333;
  background: #fff;
  font-size: 14px;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.container { width: 1200px; margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ============ 顶部悬浮导航 ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(16, 26, 42, 0.32);
  backdrop-filter: blur(6px);
  transition: background .3s;
}
.site-header.scrolled { background: rgba(16, 26, 42, 0.92); box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.header-inner { display: flex; align-items: center; height: 84px; position: relative; }
.header-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; z-index: 2; }
.header-logo img { height: 52px; width: auto; }
.header-nav { flex: 1; display: flex; justify-content: center; gap: 4px; }
.header-nav a {
  color: #fff; font-size: 16px; padding: 10px 18px; position: relative;
  transition: color .2s;
}
.header-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 3px;
  background: var(--accent); transform: translateX(-50%); transition: width .25s;
}
.header-nav a:hover, .header-nav a.active { color: #fff; }
.header-nav a:hover::after, .header-nav a.active::after { width: 60%; }
.header-phone { color: #fff; text-align: right; flex-shrink: 0; z-index: 2; }
.header-phone .label { font-size: 12px; opacity: .8; display: block; }
.header-phone .num { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
/* 移动端菜单按钮（纯CSS三横线） */
.nav-toggle { display: none; z-index: 2; width: 30px; height: 24px; position: relative; cursor: pointer; flex-shrink: 0; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 3px; background: #fff; border-radius: 2px; transition: .3s; }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ============ 轮播 Banner ============ */
.banner { position: relative; width: 100%; height: 580px; overflow: hidden; }
.banner-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  background-size: cover; background-position: center; transition: opacity 1s;
}
.banner-slide.active { opacity: 1; visibility: visible; }
.banner-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.banner-dots span {
  width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.45);
  cursor: pointer; transition: background .3s;
}
.banner-dots span.active { background: var(--theme); }

/* ============ 板块通用 ============ */
.section { padding: 70px 0; }
.section-gray { background: #f6f8fa; }
.section-title { text-align: center; margin-bottom: 46px; }
.section-title .en {
  display: block; font-size: 13px; letter-spacing: 6px; color: var(--theme);
  text-transform: uppercase; margin-bottom: 6px;
}
.section-title h2 { font-size: 32px; color: #1a1a1a; font-weight: 700; }
.section-title .cn-en { font-size: 13px; color: #999; letter-spacing: 2px; margin-top: 6px; display: block; }

/* ============ 首页首屏文案区 ============ */
.hero-motto { text-align: center; padding: 60px 0 40px; background: linear-gradient(135deg,#0f2740,#123a5e); }
.hero-motto .slogan { font-size: 42px; font-weight: 700; color: #fff; letter-spacing: 4px; }
.hero-motto .sub { font-size: 18px; color: var(--theme); margin-top: 14px; letter-spacing: 3px; }
.hero-motto .desc { font-size: 14px; color: rgba(255,255,255,.75); margin-top: 16px; }

/* 三特性 */
.features { display: flex; justify-content: center; gap: 40px; margin-top: 44px; }
.feature { text-align: center; width: 240px; }
.feature .fe-icon {
  width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
}
.feature .fe-icon img { width: 64px; height: 64px; object-fit: contain; border-radius: 50%; }
.feature h4 { color: #fff; font-size: 19px; margin-bottom: 8px; letter-spacing: 1px; }
.feature p { color: rgba(255,255,255,.7); font-size: 13px; }

/* ============ 产品区块 ============ */
.home-products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.product-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.product-card .prod-pic { position: relative; overflow: hidden; aspect-ratio: 1/1; background: #fafafa; }
.product-card .prod-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .prod-pic img { transform: scale(1.06); }
.product-card .prod-info { padding: 14px 16px 18px; }
.product-card .prod-name { font-size: 15px; color: #222; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card .prod-desc { font-size: 12px; color: #999; margin-top: 6px; height: 34px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card .prod-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.product-card .prod-price { color: var(--accent); font-size: 18px; font-weight: 700; }
.product-card .prod-price .rmb { font-size: 12px; }
.product-card .prod-link { font-size: 13px; color: var(--theme); }
.more-btn {
  display: block; margin: 40px auto 0; width: 180px; padding: 11px 0; text-align: center;
  border: 1px solid var(--theme); color: var(--theme); font-size: 15px; border-radius: 30px;
  transition: all .25s; cursor: pointer;
}
.more-btn:hover { background: var(--theme); color: #fff; }

/* ============ 公司简介区块 ============ */
.about-wrap { display: flex; gap: 60px; align-items: center; }
.about-pic { flex: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.about-pic img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-text { flex: 1; }
.about-text h3 { font-size: 26px; color: #1a1a1a; margin-bottom: 20px; position: relative; padding-bottom: 14px; }
.about-text h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 52px; height: 3px; background: var(--theme); }
.about-text p { color: #555; font-size: 14px; text-indent: 2em; margin-bottom: 14px; line-height: 1.9; }
.about-link { color: var(--theme); font-size: 14px; display: inline-block; margin-top: 8px; }

/* 数据条 */
.stats { display: flex; justify-content: space-between; margin-top: 56px; padding: 46px 30px; background: url("assets/img/bg_stats.jpg.webp") center/cover no-repeat; border-radius: 10px; }
.stat { text-align: center; flex: 1; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 46px; width: 1px; background: rgba(255,255,255,.15); }
.stat .stat-num { font-size: 40px; font-weight: 700; color: #fff; }
.stat .stat-label { color: rgba(255,255,255,.8); font-size: 13px; margin-top: 8px; }

/* ============ 招商加盟 ============ */
.join-wrap { display: flex; align-items: center; gap: 50px; background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.06); padding: 46px 52px; }
.join-text { flex: 1.2; }
.join-text h3 { font-size: 24px; color: #1a1a1a; margin-bottom: 16px; }
.join-text p { color: #555; line-height: 1.9; margin-bottom: 12px; }
.join-btn {
  display: inline-block; background: var(--accent); color: #fff; padding: 12px 38px;
  font-size: 15px; border-radius: 4px; margin-top: 10px; transition: background .25s;
}
.join-btn:hover { background: #c90f3c; }
.join-pic { flex: 1; border-radius: 8px; overflow: hidden; }
.join-pic img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ============ 合作伙伴 ============ */
.partners { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.partner-item {
  width: 176px; height: 88px; background: #fff; border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,.05); transition: border-color .2s;
}
.partner-item:hover { border-color: var(--theme); }
.partner-item img { max-width: 80%; max-height: 64%; object-fit: contain; }

/* ============ 内页头图 ============ */
.page-banner { height: 240px; background: url("assets/img/banner1.jpg.webp") center/cover; position: relative; display: flex; align-items: center; justify-content: center; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(10, 24, 40, .55); }
.page-banner .pb-title { position: relative; z-index: 2; text-align: center; color: #fff; }
.page-banner .pb-title h1 { font-size: 32px; letter-spacing: 3px; }
.page-banner .pb-title .crumb { margin-top: 10px; font-size: 13px; opacity: .85; }
.page-banner .pb-title .crumb a { color: #fff; }

/* ============ 产品列表页 ============ */
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.filter-bar .filter-label { font-size: 14px; color: #888; }
.filter-bar a {
  padding: 6px 18px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px;
  color: #555; transition: all .2s;
}
.filter-bar a.active, .filter-bar a:hover { background: var(--theme); color: #fff; border-color: var(--theme); }
.list-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.list-page-wrap { padding: 50px 0 70px; }

/* ============ 商品详情页 ============ */
.detail-wrap { display: flex; gap: 44px; padding: 50px 0 40px; }
.detail-gallery { flex: 0 0 460px; }
.detail-main-pic { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; aspect-ratio: 1/1; background: #fafafa; }
.detail-main-pic img { width: 100%; height: 100%; object-fit: contain; }
.detail-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.detail-thumbs img {
  width: 76px; height: 76px; object-fit: cover; border: 2px solid transparent; border-radius: 6px;
  cursor: pointer; opacity: .8; transition: all .2s;
}
.detail-thumbs img.active, .detail-thumbs img:hover { border-color: var(--theme); opacity: 1; }
.detail-info { flex: 1; }
.detail-info h1 { font-size: 26px; color: #1a1a1a; line-height: 1.4; }
.detail-info .prod-code { color: #999; font-size: 13px; margin: 12px 0 4px; }
.detail-info .prod-cat { display: inline-block; background: #f0f7fd; color: var(--theme); font-size: 12px; padding: 3px 12px; border-radius: 3px; }
.detail-price-box { background: #fafafa; border-radius: 8px; padding: 20px 22px; margin: 20px 0 10px; }
.detail-price-box .price-label { color: #888; font-size: 13px; }
.detail-price-box .price { color: var(--accent); font-size: 30px; font-weight: 700; }
.detail-price-box .price .rmb { font-size: 16px; }
.detail-price-box .price-note { font-size: 12px; color: #aaa; margin-top: 4px; }
.detail-desc { color: #555; font-size: 14px; line-height: 1.9; padding: 14px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); margin-top: 14px; }
.detail-btns { display: flex; gap: 16px; margin-top: 24px; }
.detail-btns .btn {
  padding: 12px 36px; border-radius: 4px; font-size: 15px; border: none; cursor: pointer; transition: all .2s;
}
.detail-btns .btn-buy { background: var(--accent); color: #fff; }
.detail-btns .btn-buy:hover { background: #c90f3c; }
.detail-btns .btn-cart { background: #fff; color: var(--theme); border: 1px solid var(--theme); }
.detail-btns .btn-cart:hover { background: var(--theme); color: #fff; }
.detail-tabs { margin-top: 14px; border-bottom: 2px solid var(--theme); display: flex; }
.detail-tabs span {
  padding: 12px 26px; background: #f7f7f7; border: 1px solid var(--border); border-bottom: none;
  font-size: 15px; cursor: pointer; margin-right: 6px; border-radius: 6px 6px 0 0; color: #666;
}
.detail-tabs span.active { background: var(--theme); color: #fff; border-color: var(--theme); }
.detail-panel { padding: 30px 8px; min-height: 160px; }
.detail-panel.hidden { display: none; }
.detail-panel p { color: #555; line-height: 2; }
.related-products { padding-bottom: 60px; }
.related-products .rp-title { font-size: 22px; color: #1a1a1a; text-align: center; margin: 10px 0 28px; }

/* ============ 内容页 ============ */
.content-wrap { padding: 56px 0 70px; min-height: 420px; }
.content-box { max-width: 1080px; margin: 0 auto; }
.content-box h2 { font-size: 24px; color: #1a1a1a; margin-bottom: 24px; padding-left: 14px; border-left: 4px solid var(--theme); }
.content-box h3 { font-size: 18px; color: #222; margin: 24px 0 12px; }
.content-box p { color: #555; line-height: 2; margin-bottom: 12px; }
.content-box .rich-img { margin: 18px 0; border-radius: 8px; overflow: hidden; }
.content-box ul.leaf { padding-left: 10px; }
.content-box ul.leaf li { padding-left: 20px; position: relative; color: #555; line-height: 2.1; }
.content-box ul.leaf li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; background: var(--theme); border-radius: 2px; }

/* ============ 联系页 ============ */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.contact-card { background: #fafafa; border: 1px solid var(--border); border-radius: 8px; padding: 28px 22px; text-align: center; }
.contact-card .cc-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--theme); display: flex; align-items: center; justify-content: center; }
.contact-card .cc-icon img { width: 30px; height: 30px; object-fit: contain; filter: invert(1); }
.contact-card h4 { font-size: 15px; color: #333; margin-bottom: 8px; }
.contact-card p { color: #777; font-size: 13px; line-height: 1.8; }
.contact-map { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; min-height: 300px; background: #f3f5f7; display: flex; align-items: center; justify-content: center; color: #999; }

/* ============ 新闻列表 ============ */
.news-list { max-width: 1000px; margin: 0 auto; }
.news-item {
  display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px dashed var(--border); transition: background .2s;
}
.news-item:hover { background: #fafcfe; }
.news-item .news-date { flex-shrink: 0; width: 84px; text-align: center; border-right: 2px solid var(--theme); padding-right: 16px; align-self: center; }
.news-item .news-date .day { font-size: 32px; color: var(--theme); font-weight: 700; line-height: 1; }
.news-item .news-date .ym { font-size: 12px; color: #999; margin-top: 6px; }
.news-item .news-ctt { flex: 1; align-self: center; }
.news-item .news-ctt h4 { font-size: 16px; color: #222; margin-bottom: 6px; transition: color .2s; }
.news-item:hover .news-ctt h4 { color: var(--theme); }
.news-item .news-ctt p { font-size: 13px; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-detail { max-width: 900px; margin: 0 auto; }
.news-detail h1 { font-size: 26px; color: #1a1a1a; text-align: center; }
.news-detail .meta { text-align: center; color: #aaa; font-size: 13px; margin: 14px 0 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }

/* ============ 登录注册 ============ */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: url("assets/img/banner2.jpg.webp") center/cover no-repeat; position: relative; }
.auth-page::before { content: ""; position: absolute; inset: 0; background: rgba(12, 26, 42, .62); }
.auth-card {
  position: relative; z-index: 2; background: #fff; width: 420px; border-radius: 12px;
  padding: 42px 44px; box-shadow: 0 18px 60px rgba(0,0,0,.3);
}
.auth-card .auth-logo { text-align: center; margin-bottom: 26px; }
.auth-card .auth-logo img { height: 48px; margin: 0 auto; }
.auth-card .auth-logo .auth-name { font-size: 16px; font-weight: 700; color: #222; margin-top: 8px; }
.auth-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 26px; }
.auth-tabs span {
  flex: 1; text-align: center; padding: 10px 0; font-size: 16px; color: #999; cursor: pointer;
  position: relative; transition: color .2s;
}
.auth-tabs span.active { color: var(--theme); font-weight: 600; }
.auth-tabs span.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--theme); }
.auth-form .form-item { margin-bottom: 18px; }
.auth-form input {
  width: 100%; height: 46px; border: 1px solid #ddd; border-radius: 6px; padding: 0 14px;
  font-size: 14px; outline: none; transition: border-color .2s;
}
.auth-form input:focus { border-color: var(--theme); }
.auth-form .auth-submit {
  width: 100%; height: 48px; background: var(--theme); color: #fff; font-size: 16px;
  border: none; border-radius: 6px; cursor: pointer; margin-top: 6px; transition: background .2s;
}
.auth-form .auth-submit:hover { background: var(--theme-dark); }
.auth-form .auth-tip { text-align: center; margin-top: 14px; font-size: 13px; color: #999; }
.auth-form .auth-tip a { color: var(--theme); }
.auth-form .form-check { display: flex; justify-content: space-between; font-size: 13px; color: #999; margin-bottom: 6px; }

/* ============ 页脚 ============ */
.site-footer { background: #101a2a; color: rgba(255,255,255,.75); padding: 54px 0 0; }
.footer-cols { display: flex; gap: 60px; padding-bottom: 40px; }
.footer-col { flex: 1; }
.footer-col h5 { color: #fff; font-size: 16px; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-col h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--theme); }
.footer-col a { display: block; color: rgba(255,255,255,.65); font-size: 13px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--theme); }
.footer-col p { font-size: 13px; line-height: 2; color: rgba(255,255,255,.65); }
.footer-col .fc-contact b { color: #fff; font-size: 22px; letter-spacing: 1px; }
.footer-brand { flex: 1.4; }
.footer-brand .fb-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer-brand .fb-logo img { height: 46px; }
.footer-brand .fb-logo span { color: #fff; font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 2; }
.footer-qr { text-align: center; }
.footer-qr img { width: 108px; height: 108px; border-radius: 6px; margin: 0 auto; }
.footer-qr span { display: block; font-size: 12px; color: rgba(255,255,255,.55); margin-top: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.5); }

/* 悬浮客服 */
.float-serv { position: fixed; right: 20px; bottom: 120px; z-index: 900; display: flex; flex-direction: column; gap: 8px; }
.float-serv a.fs-text {
  display: block; padding: 9px 14px; border-radius: 20px; text-align: center;
  background: rgba(43,160,232,.94); color: #fff; font-size: 13px; letter-spacing: 1px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: transform .2s, background .2s;
}
.float-serv a.fs-text:hover { transform: scale(1.05); background: var(--accent); }

/* ============ 手机端适配 ============ */
@media (max-width: 1200px) {
  .container { width: auto; padding: 0 20px; }
  .home-products { grid-template-columns: repeat(3, 1fr); }
  .list-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { flex-wrap: wrap; gap: 30px; }
  .footer-brand { flex: 2 1 100%; }
}
@media (max-width: 768px) {
  .site-header { position: relative; background: rgba(16,26,42,.95); }
  .header-inner { height: 64px; }
  .header-logo img { height: 40px; }
  .header-phone { display: none; }
  .nav-toggle { display: block; }
  .header-nav {
    position: absolute; top: 64px; left: 0; right: 0; background: rgba(16,26,42,.98);
    flex-direction: column; padding: 10px 0; display: none;
  }
  .header-nav.open { display: flex; }
  .header-nav a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .banner { height: 280px; }
  .hero-motto .slogan { font-size: 26px; }
  .hero-motto .sub { font-size: 14px; }
  .features { flex-direction: column; align-items: center; gap: 26px; }
  .home-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .list-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .about-wrap { flex-direction: column; gap: 30px; }
  .stats { flex-wrap: wrap; padding: 26px 10px; gap: 20px; }
  .stat { flex: 1 1 40%; }
  .stat + .stat::before { display: none; }
  .join-wrap { flex-direction: column; padding: 30px 24px; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .detail-wrap { flex-direction: column; }
  .detail-gallery { flex: auto; }
  .detail-main-pic { aspect-ratio: 1/1; }
  .detail-tabs span { padding: 10px 16px; font-size: 14px; }
  .footer-cols { flex-direction: column; }
  .news-item { flex-direction: row; }
  .news-item .news-date { width: 64px; }
  .news-item .news-date .day { font-size: 24px; }
  .auth-card { width: 92%; padding: 30px 22px; }
  .page-banner { height: 160px; }
  .page-banner .pb-title h1 { font-size: 24px; }
  .section { padding: 44px 0; }
  .section-title h2 { font-size: 26px; }
  .banner-dots { bottom: 14px; }
}