/* 基础样式与变量 */
:root{
  --brand:#ff8a00;
  --text:#1f1f1f;
  --muted:#6b7280;
  --bg:#ffffff;
  --dark:#0b0c10;
  --light:#f7f7f9;
}
*{box-sizing:border-box}
html,body{height:100%}
html{background:#0f1217}
body{
  margin:0;
  font-family:'Noto Sans SC',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
a{color:inherit;text-decoration:none}

/* 容器与通用 */
.container{max-width:1160px;margin:0 auto;padding:0 24px}
.section{padding:80px 0}
.section-light{background:var(--light)}
.section-dark{background:linear-gradient(180deg,#0f1217,#1a2028);color:#e8edf6}
.section-title{font-size:28px;font-weight:700;margin:0 0 18px}
.section-desc{color:var(--muted);margin:0 0 24px}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 20px;border-radius:6px;border:1px solid rgba(0,0,0,.1);cursor:pointer;transition:.25s}
.btn.primary{background:var(--brand);color:#fff;border-color:var(--brand)}
.btn:hover{transform:translateY(-1px);filter:brightness(1.05)}

/* 顶部导航 */
.site-header{position:fixed;top:0;left:0;right:0;z-index:20;backdrop-filter:saturate(140%) blur(8px);} 
.site-header::before{content:"";position:absolute;inset:0;background:rgba(255,255,255,.08);pointer-events:none;z-index:-1}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 24px;position:relative;z-index:1}
.logo{display:flex;align-items:center;gap:12px;color:#fff}
.logo img{width:36px;height:36px;border-radius:8px;object-fit:cover;box-shadow:0 6px 16px rgba(0,0,0,.28)}
.logo-text{display:flex;flex-direction:column;line-height:1.2;gap:2px}
.logo-mark{font-weight:700;letter-spacing:.6px;font-size:18px}
.logo-sub{font-size:12px;opacity:.85;margin-top:2px}
.nav{display:flex;align-items:center;gap:22px;color:#fff}
.nav a{position:relative}
.nav a::after{content:"";position:absolute;left:0;bottom:-6px;width:0;height:2px;background:var(--brand);transition:.25s}
.nav a:hover::after{width:100%}
.lang{opacity:.8}
/* 桌面端默认隐藏移动端菜单按钮 */
.menu-toggle{display:none}
.scrolled .site-header::before{background:rgba(255,255,255,.85)}
.scrolled .nav,.scrolled .logo{color:#0f1217}

/* 首屏横幅 */
.hero{position:relative;height:92vh;min-height:560px;display:flex;align-items:center;justify-content:center;color:#fff;}
.hero-bg{position:absolute;inset:0;background:url('https://images.unsplash.com/photo-1505691938895-1758d7feb511?auto=format&fit=crop&w=1950&q=60') center/cover no-repeat;}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,12,16,.35),rgba(10,12,16,.45));}
.hero-content{position:relative;text-align:center;z-index:1}
.hero-title{font-size:40px;margin:24px 0 8px;font-weight:700}
.hero-sub{margin:0 0 24px;opacity:.9}
.scroll-hint{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);font-size:12px;letter-spacing:2px;opacity:.7}

/* 中心框线（仿模板的视觉元素） */
/* 已按用户要求移除该虚线框 */
.hero-frame{display:none}
/* 首页方框 logo */
.hero-logo{display:block;margin:12px auto 0;width:auto;max-width:160px;max-height:64px;object-fit:contain;filter:drop-shadow(0 6px 18px rgba(0,0,0,.28));}
.frame-top{top:0;left:10px;right:10px;height:2px}
.frame-right{top:10px;right:0;bottom:10px;width:2px}
.frame-bottom{bottom:0;left:10px;right:10px;height:2px}
.frame-left{top:10px;left:0;bottom:10px;width:2px}

/* 卡片网格 */
.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.card{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 10px 28px rgba(14,18,22,.08)}
.section-dark .card{background:#12161d;color:#e8edf6;border:1px solid rgba(255,255,255,.06)}
.card-img{height:180px;background:#ddd center/cover no-repeat}
.card-body{padding:16px}
.card-body h3{margin:0 0 8px;font-size:18px}
.card-body p{margin:0;color:var(--muted)}
.section-dark .card-body p{color:#aeb8c9}

/* 优势区块 */
.adv-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.adv-item{padding:20px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.04)}
.section-light .adv-item{border-color:rgba(0,0,0,.08);background:#fff}
.adv-icon{font-size:24px;margin-bottom:10px}
.adv-item h3{margin:0 0 6px;font-size:18px}
.adv-item p{margin:0;color:#9aa3af}
.section-light .adv-item p{color:var(--muted)}

/* 介绍 */
.intro-wrap{display:grid;gap:10px;font-size:16px;line-height:1.8;color:#4b5563}
.section-dark .intro-wrap{color:#c9d6e5}

/* 资讯列表 */
.news-list{display:grid;gap:10px}
.news-item{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-radius:8px;border:1px solid rgba(255,255,255,.12)}
.section-light .news-item{border-color:rgba(0,0,0,.08);background:#fff}
.news-item:hover{border-color:var(--brand)}
.news-date{font-size:14px;color:#9aa3af}
.news-title{font-weight:600}

/* 联系我们 */
.contact-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:22px;align-items:start}
.contact-form{display:grid;gap:10px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
input,textarea{width:100%;padding:12px 12px;border:1px solid #d1d5db;border-radius:8px;background:#fff;font:inherit}
textarea{resize:vertical}

/* 响应式 */
@media (max-width:1024px){
  .card-grid{grid-template-columns:repeat(2,1fr)}
  .adv-grid{grid-template-columns:repeat(2,1fr)}
  .contact-grid{grid-template-columns:1fr}
}
@media (max-width:640px){
  .header-inner{padding:10px 14px}
  .logo img{width:28px;height:28px}
  .logo-mark{font-size:16px}
  .logo-sub{display:none}
  .menu-toggle{display:inline-flex;align-items:center;justify-content:center;padding:8px 10px;border-radius:8px;border:1px solid #e5e7eb;background:#fff;color:#111827}
  .nav{position:fixed;top:56px;left:0;right:0;display:none;flex-direction:column;gap:12px;padding:12px 16px;background:rgba(255,255,255,.98);backdrop-filter:saturate(140%) blur(8px);border-top:1px solid #e5e7eb;box-shadow:0 10px 24px rgba(0,0,0,.08);z-index:100}
  body.menu-open .nav{display:flex;color:#0f1217}
  .section{padding:52px 0}
  .container{padding:0 16px}
  .card-grid{grid-template-columns:1fr}
  .hero{height:72vh;min-height:440px}
  .hero-title{font-size:28px}
  .hero-frame{width:120px;height:120px}
  .side-tools{position:fixed;right:12px;top:auto;bottom:80px;transform:none;flex-direction:row;z-index:40}
  .chat-panel{right:12px;width:92vw;display:flex;flex-direction:column;max-height:70vh}
  .chat-body{height:auto;flex:1}
}
/* 动效：分区入场与元素淡入 */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease, transform .6s ease}
.reveal.visible{opacity:1;transform:none}
.hero .hero-content{opacity:0;transform:translateY(12px);transition:opacity .8s ease, transform .8s ease}
.hero .hero-content.visible{opacity:1;transform:none}

/* 聊天悬浮组件 */
.chat-fab{position:fixed;right:20px;bottom:20px;width:56px;height:56px;border-radius:50%;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 24px rgba(0,0,0,.18);cursor:pointer;z-index:40}
.chat-panel{position:fixed;right:20px;bottom:90px;width:320px;max-height:60vh;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 16px 40px rgba(0,0,0,.2);display:none;overflow:hidden;z-index:40}
.chat-header{background:#0f1217;color:#e5e7eb;padding:10px 12px;display:flex;align-items:center;justify-content:space-between}
.chat-body{padding:10px;height:280px;overflow:auto;display:flex;flex-direction:column;gap:8px;background:#f8fafc}
/* 打招呼弹窗样式 */
.greet-modal{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:50}
.greet-dialog{background:#fff;border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.18);padding:16px;max-width:380px;width:calc(100% - 40px)}
.greet-content{font-size:14px;color:#0f1217}
.greet-actions{margin-top:12px;display:flex;gap:8px;justify-content:flex-end}

/* 聊天消息气泡（与 main.js 保持一致）*/
.chat-msg{margin:6px 12px;padding:8px 10px;border-radius:12px;background:#f6f6f6;max-width:80%}
.chat-msg.me{align-self:flex-end;background:#e6f4ff}
.chat-msg.other{align-self:flex-start;background:#f6f6f6}
.chat-input{display:flex;gap:8px;padding:10px;border-top:1px solid #e5e7eb;background:#fff}
.chat-input input{flex:1;padding:10px;border:1px solid #d1d5db;border-radius:8px}
.chat-input button{padding:10px 14px;border:none;border-radius:8px;background:var(--brand);color:#fff;cursor:pointer}

/* 新增：轮播组件样式 */
.carousel{position:relative;overflow:hidden;border-radius:12px;box-shadow:0 10px 24px rgba(0,0,0,.08);background:#fff}
.carousel-track{display:flex;transition:transform .4s ease}
.carousel-slide{min-width:100%;height:320px;background:#f3f4f6 center/cover no-repeat}
.carousel-nav{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;padding:0 8px}
.carousel-btn{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.88);border:1px solid rgba(0,0,0,.08);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 6px 14px rgba(0,0,0,.12)}
.carousel-indicators{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);display:flex;gap:6px}
.carousel-indicators .dot{width:8px;height:8px;border-radius:50%;background:rgba(0,0,0,.2)}
.carousel-indicators .dot.active{background:var(--brand)}

/* 商品详情页轮播高度适配 */
.detail .carousel{height:100%}
.detail .carousel-slide{height:auto;padding-top:66%}

/* 商品详情页底栏（吸附底部） */
.product-dock{position:fixed;left:0;right:0;bottom:0;z-index:35;background:rgba(255,255,255,.92);backdrop-filter:saturate(140%) blur(8px);border-top:1px solid #e5e7eb;box-shadow:0 -6px 16px rgba(0,0,0,.08)}
.product-dock .dock-inner{max-width:1160px;margin:0 auto;padding:10px 24px;display:flex;gap:12px;justify-content:flex-end}
@media (max-width:640px){ .product-dock .dock-inner{justify-content:center} .product-dock .btn{flex:1} }

/* 商品页：顶部避让与底部吸附 */
.product-page{min-height:100vh;display:flex;flex-direction:column;padding-top:72px;padding-bottom:0}
.product-page .section{flex:1 0 auto}
.product-page .site-footer{margin-top:auto}
/* 取消之前为底部 Dock 预留的空间 */
.product-page .chat-fab{bottom:20px}
.product-page .chat-panel{bottom:90px}

/* 站点通用样式（保留原有内容，新增详情页风格） */
.product-page .section{padding:32px 0;background:#f8fafc}
.product-detail{max-width:1200px;margin:0 auto;padding:0 20px;display:grid;grid-template-columns:1fr 1fr;gap:28px}
@media(max-width:980px){.product-detail{grid-template-columns:1fr}}

/* 左侧图集卡片 */
.gallery-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 6px 18px rgba(2,6,23,0.08);padding:18px;display:flex;flex-direction:column;gap:10px}
.gallery-main{position:relative;border-radius:12px;overflow:hidden}
.carousel{position:relative;width:100%;height:480px;background:#f3f4f6;border-radius:12px}
.carousel-track{display:flex;height:100%;transition:transform .35s ease}
.carousel-slide{min-width:100%;background-size:contain;background-repeat:no-repeat;background-position:center}
.carousel-nav{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;padding:0 8px;pointer-events:none}
.carousel-btn{pointer-events:auto;width:36px;height:36px;border-radius:999px;border:1px solid #e5e7eb;background:#fff;color:#111827;box-shadow:0 2px 8px rgba(2,6,23,0.06)}
.carousel-indicators{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);display:flex;gap:8px}
.carousel-indicators .dot{width:7px;height:7px;border-radius:999px;background:#e5e7eb}
.carousel-indicators .dot.active{background:#111827}
.gallery-thumbs{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.gallery-thumbs .thumb{height:72px;border-radius:8px;background:#f3f4f6;background-size:cover;background-position:center;border:1px solid #e5e7eb;cursor:pointer;transition:transform .2s ease, box-shadow .2s ease}
.gallery-thumbs .thumb:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(2,6,23,0.08)}
.gallery-thumbs .thumb.active{outline:2px solid #111827}

/* 右侧信息卡片 */
.info-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 6px 18px rgba(2,6,23,0.08);padding:20px}
.info-title{margin:0;font-size:26px;line-height:1.3;color:#111827}
.info-price{margin-top:8px;font-size:22px;color:#b91c1c;font-weight:700}
.info-meta{margin-top:6px;color:#6b7280}
.guarantee{display:flex;gap:10px;margin-top:10px}
.guarantee .item{flex:1;padding:10px 12px;border-radius:8px;background:#f9fafb;border:1px dashed #e5e7eb;color:#374151;text-align:center}
.currency-switch select{height:36px;padding:0 10px;border-radius:8px;border:1px solid #d1d5db}
.qty-row{display:flex;align-items:center;gap:8px;margin-top:8px;color:#374151}
.qty-row input{width:84px;height:36px;border-radius:8px;border:1px solid #d1d5db;padding:0 10px}
.action-row{display:flex;align-items:center;gap:10px;margin-top:12px}
.btn{height:38px;padding:0 14px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;color:#111827}
.btn.primary{background:#111827;color:#fff;border-color:#111827}
.btn.buy{background:#f97316;color:#fff;border-color:#f97316}
.btn:hover{filter:brightness(0.98)}

/* 商品描述区 */
.section-desc{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:12px}

/* 响应式优化 */
@media(max-width:640px){
  .carousel{height:360px}
  .gallery-thumbs{grid-template-columns:repeat(4,1fr)}
  .info-title{font-size:22px}
  .info-price{font-size:20px}
}
/* 后台客服聊天样式优化 */
.chat-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px}
.chat-layout{display:grid;grid-template-columns:280px 1fr 280px;gap:12px}
.chat-sidebar,.chat-main,.chat-right{background:#fff}
.chat-search{width:100%;padding:8px;border:1px solid #e5e7eb;border-radius:8px}
.chat-scroll{scrollbar-width:auto}
.conv-item{transition:background .15s ease}
.conv-item:hover{background:#f9fafb}
.conv-item.active{background:#f0f7ff}
/* 更舒适的消息阅读宽度 */
.chat-main .chat-scroll{padding:12px 16px}

/* 新增：聊天提醒动画 */
.chat-fab.pulse{animation:fabPulse .9s ease-in-out 2;}
@keyframes fabPulse{
  0%{box-shadow:0 0 0 0 rgba(255,138,0,.7);transform:scale(1);}
  50%{box-shadow:0 0 0 12px rgba(255,138,0,0);transform:scale(1.06);}
  100%{box-shadow:0 0 0 0 rgba(255,138,0,0);transform:scale(1);}
}
/* 宣传视频响应式容器 */
.video-responsive{position:relative;width:100%;max-width:1200px;margin:0 auto;border-radius:12px;overflow:hidden;box-shadow:0 10px 24px rgba(0,0,0,.12);}
.video-responsive::before{content:"";display:block;padding-top:56.25%;}
.video-responsive > video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000;}
.site-footer{padding:20px 0;background:#0f1217;color:#cbd5e1}
.site-footer .footer-inner{display:flex;justify-content:space-between;gap:12px;align-items:center}
.site-footer a{color:#e5e7eb;text-decoration:none}
.site-footer a:hover{color:#ffffff}

.side-tools{position:fixed;right:16px;top:40%;transform:translateY(-50%);display:flex;flex-direction:column;gap:10px;z-index:40}
.side-tools .tool{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#ffffff;box-shadow:0 8px 18px rgba(0,0,0,.18);cursor:pointer}
.section-dark .side-tools .tool{background:#1b222b;color:#e8edf6;border:1px solid rgba(255,255,255,.08)}