/* 瑶嘉阁官网补充样式 —— 基于原站类名结构，保证未覆盖区块正常渲染 */

/* ========== 通用 ========== */
html, body { font-size: 14px; min-width: 1200px; margin: 0; padding: 0; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: #111; background: #fff; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3, h4 { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; outline: none; }

/* ========== 顶部导航 ========== */
.pc-header { position: fixed; top: 0; left: 0; right: 0; z-index: 999; transition: background .35s ease, box-shadow .35s ease; }
.pc-header .container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.pc-header .header-content { display: flex; align-items: center; height: 64px; }
.pc-header .logo img { height: 34px; width: auto; }
.pc-header .nav-menu-wrapper { flex: 1; display: flex; align-items: center; justify-content: center; }
.pc-header .nav-menu { display: flex; align-items: center; gap: 8px; }
.pc-header .nav-item-wrapper { position: relative; }
.pc-header .nav-item { display: inline-block; padding: 8px 18px; font-size: 15px; color: #fff; border-radius: 18px; transition: all .25s; white-space: nowrap; }
.pc-header .nav-item:hover { background: rgba(255,255,255,.16); }
.pc-header .nav-item.is-gradient { background: linear-gradient(90deg,#7b5cff,#c86dd7); color: #fff; }
.pc-header .nav-item.is-gradient:hover { filter: brightness(1.12); }
.pc-header .search-box { display: flex; align-items: center; margin-left: 12px; }
.pc-header .search-box input { width: 150px; height: 34px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); border-radius: 17px; padding: 0 14px; color: #fff; font-size: 13px; transition: width .3s; }
.pc-header .search-box input::placeholder { color: rgba(255,255,255,.65); }
.pc-header .search-box input:focus { width: 190px; background: rgba(255,255,255,.2); }
.pc-header .header-actions { display: flex; align-items: center; gap: 18px; margin-left: 14px; }
.pc-header .icon-btn { color: #fff; display: flex; align-items: center; cursor: pointer; }

/* 滚动后变白底 */
.pc-header.is-scrolled { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.pc-header.is-scrolled .nav-item { color: #111; }
.pc-header.is-scrolled .nav-item:hover { background: rgba(0,0,0,.06); }
.pc-header.is-scrolled .search-box input { border-color: #ddd; background: #f5f5f7; color: #111; }
.pc-header.is-scrolled .search-box input::placeholder { color: #999; }
.pc-header.is-scrolled .icon-btn { color: #111; }

/* 下拉大菜单 */
.mega-menu { position: fixed; left: 0; right: 0; top: 64px; background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,.12); z-index: 998; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .28s ease; }
.mega-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu .mega-inner { max-width: 1400px; margin: 0 auto; padding: 34px 40px 40px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; }
.mega-menu .mega-item { text-align: center; cursor: pointer; }
.mega-menu .mega-item img { width: 150px; height: 100px; object-fit: cover; margin: 0 auto 12px; border-radius: 10px; transition: transform .3s; }
.mega-menu .mega-item:hover img { transform: translateY(-4px); }
.mega-menu .mega-item .t { font-size: 15px; color: #111; }

/* ========== Hero 轮播 ========== */
.hero-banner-section { position: relative; overflow: hidden; background: #000; }
.banner-container { position: relative; width: 100%; height: 56.25vw; max-height: 860px; }
.banner-slider { position: relative; width: 100%; height: 100%; }
.banner-slide { position: absolute; inset: 0; }
.banner-slide .banner-link { display: block; width: 100%; height: 100%; }
.banner-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-link { position: relative; display: block; width: 100%; height: 100%; }
.banner-image { width: 100%; height: 100%; object-fit: cover; }
.banner-content { position: absolute; inset: 0; }
.banner-buttons { position: absolute; display: flex; gap: 22px; transform: translate(-50%, 0); }
.banner-button { display: inline-flex; align-items: center; gap: 6px; padding: 12px 34px; border: 1.5px solid currentColor; border-radius: 26px; font-size: 16px; color: var(--btn-color, #000); background: var(--btn-bg-color, transparent); transition: all .3s; }
.banner-button:hover { color: var(--hover-bg-color, #fff); background: var(--hover-color, #000); }
.banner-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.banner-dots .dot { width: 22px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.45); cursor: pointer; transition: all .3s; }
.banner-dots .dot.is-active { background: #fff; width: 34px; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.28); color: #fff; border: none; font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .3s; z-index: 5; }
.hero-banner-section:hover .banner-arrow { opacity: 1; }
.banner-arrow.prev { left: 28px; }
.banner-arrow.next { right: 28px; }
.banner-arrow:hover { background: rgba(0,0,0,.5); }

/* ========== 产品网格 ========== */
.product-grid-section { padding: 70px 0 30px; background: #f5f5f7; }
.product-grid-container, .product-grid-wrap { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.product-grid-head { text-align: center; margin-bottom: 44px; }
.product-grid-title { font-size: 34px; font-weight: 700; color: #111; }
.product-grid-subtitle { font-size: 16px; color: #86909c; margin-top: 10px; }
.product-grid-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { background: #fff; border-radius: 16px; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; cursor: pointer; display: block; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,0,0,.1); }
.product-card .card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f7f8fa; }
.product-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .card-img img { transform: scale(1.05); }
.product-card .card-info { padding: 18px 20px 22px; text-align: center; }
.product-card .card-name { font-size: 18px; font-weight: 600; color: #1d2129; }
.product-card .card-desc { font-size: 13px; color: #86909c; margin-top: 6px; }
.product-card .card-tags { margin-top: 12px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.product-card .tag { font-size: 12px; color: #f53f3f; background: rgba(246,52,52,.08); border: 1px solid rgba(246,52,52,.35); padding: 2px 10px; border-radius: 4px; }

/* ========== 视频轮播 ========== */
.video-carousel-section { padding: 70px 0; background: #000; }
.video-carousel-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.video-carousel-title { font-size: 34px; font-weight: 700; color: #fff; text-align: center; margin-bottom: 40px; }
.video-track { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 8px; }
.video-track::-webkit-scrollbar { height: 6px; }
.video-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 3px; }
.video-card { flex: 0 0 420px; border-radius: 14px; overflow: hidden; background: #111; cursor: pointer; }
.video-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .4s; }
.video-card:hover img { transform: scale(1.04); }
.video-card .v-title { padding: 14px 16px; color: #fff; font-size: 15px; }

/* ========== 其他系列 ========== */
.other-series-section { padding: 64px 0; background: #f5f5f7; }
.other-series-wrap { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.other-series-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; cursor: pointer; }
.other-series-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.other-series-card:hover img { transform: scale(1.05); }
.other-series-card .os-name { position: absolute; left: 24px; bottom: 20px; color: #fff; font-size: 22px; font-weight: 600; text-shadow: 0 2px 8px rgba(0,0,0,.5); }

/* ========== second footer ========== */
.second-footer-section { background: #f5f5f7; border-top: 1px solid #e5e6eb; padding: 34px 0; }
.second-footer-content { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-around; }
.second-footer-item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #4e5969; cursor: pointer; }
.second-footer-item img { width: 40px; height: 40px; object-fit: contain; }

/* ========== 主 footer ========== */
.pc-footer { background: #0f1012; color: #86909c; padding: 54px 0 0; }
.pc-footer .footer-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.pc-footer .footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; padding-bottom: 40px; }
.pc-footer .f-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600; }
.pc-footer .f-col a { display: block; font-size: 13px; color: #86909c; margin-bottom: 12px; transition: color .25s; }
.pc-footer .f-col a:hover { color: #fff; }
.pc-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0 26px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.pc-footer .footer-bottom a { color: #86909c; margin-left: 18px; }
.pc-footer .footer-bottom a:hover { color: #fff; }

/* ========== 浮动按钮 ========== */
.floating-buttons { position: fixed; right: 22px; bottom: 90px; z-index: 990; display: flex; flex-direction: column; gap: 12px; }
.floating-buttons .fb { width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.14); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .25s; color: #4e5969; }
.floating-buttons .fb:hover { background: #f53f3f; color: #fff; transform: translateY(-3px); }

/* ========== 系列页 ========== */
.series-banner { position: relative; height: 520px; overflow: hidden; background: #0a0a12; }
.series-banner img, .series-banner video { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.series-products { max-width: 1400px; margin: -60px auto 0; position: relative; z-index: 3; padding: 0 40px 60px; }
.series-group-title { font-size: 26px; font-weight: 700; color: #111; margin: 40px 0 24px; }
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.series-product-card { background: #fff; border-radius: 16px; overflow: hidden; transition: all .35s; cursor: pointer; }
.series-product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.12); }
.series-product-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.series-product-card .sp-info { padding: 16px 20px 20px; }
.series-product-card .sp-name { font-size: 17px; font-weight: 600; color: #111; }
.series-product-card .sp-desc { font-size: 13px; color: #86909c; margin-top: 5px; }

/* ========== 商品详情页 ========== */
.product-detail-page { padding-top: 64px; }
.pd-header { max-width: 1280px; margin: 30px auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; padding: 0 40px; }
.pd-gallery .pd-main-img { border-radius: 18px; overflow: hidden; background: #f7f8fa; }
.pd-gallery .pd-main-img img { width: 100%; object-fit: contain; aspect-ratio: 4/3; }
.pd-info h1 { font-size: 30px; font-weight: 700; color: #1d2129; }
.pd-info .pd-brief { font-size: 16px; color: #86909c; margin-top: 10px; }
.pd-price { margin-top: 26px; font-size: 14px; color: #f53f3f; }
.pd-price strong { font-size: 34px; font-weight: 700; }
.pd-meta { margin-top: 24px; font-size: 13px; color: #86909c; line-height: 2; }
.pd-actions { margin-top: 30px; display: flex; gap: 16px; }
.btn-primary { padding: 14px 46px; background: #f53f3f; color: #fff; border: none; border-radius: 28px; font-size: 16px; transition: all .3s; }
.btn-primary:hover { background: #e02e2e; box-shadow: 0 8px 20px rgba(245,63,63,.35); }
.btn-ghost { padding: 14px 46px; border: 1.5px solid #1d2129; color: #1d2129; background: transparent; border-radius: 28px; font-size: 16px; transition: all .3s; }
.btn-ghost:hover { background: #1d2129; color: #fff; }
.pd-content img { margin: 0 auto; }

/* ========== 登录/注册 ========== */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 40px 0; }
.login-container { width: 420px; }
.login-box, .register-box { background: #fff; border-radius: 18px; padding: 44px 40px; box-shadow: 0 24px 60px rgba(0,0,0,.2); }
.login-title, .register-title { font-size: 24px; font-weight: 700; color: #1d2129; text-align: center; margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; color: #4e5969; margin-bottom: 8px; }
.form-group input { width: 100%; height: 46px; border: 1px solid #e5e6eb; border-radius: 10px; padding: 0 14px; font-size: 14px; transition: border .25s; box-sizing: border-box; }
.form-group input:focus { border-color: #667eea; }
.submit-btn { width: 100%; height: 48px; background: linear-gradient(90deg,#667eea,#764ba2); color: #fff; border: none; border-radius: 10px; font-size: 16px; margin-top: 8px; transition: opacity .25s; }
.submit-btn:hover { opacity: .9; }
.login-footer, .register-footer { text-align: center; margin-top: 22px; font-size: 13px; color: #86909c; }
.login-footer a, .register-footer a { color: #667eea; }

/* ========== 服务/门店页 ========== */
.service-page, .stores-page { padding-top: 64px; }
.contact-cards { max-width: 1400px; margin: 0 auto; padding: 50px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card { background: #f7f8fa; border-radius: 14px; padding: 28px 22px; text-align: center; transition: all .3s; }
.contact-card:hover { background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.08); transform: translateY(-4px); }
.contact-card img { width: 52px; height: 52px; margin: 0 auto 14px; object-fit: contain; }
.contact-card .cc-t { font-size: 16px; font-weight: 600; color: #1d2129; }
.contact-card .cc-d { font-size: 13px; color: #86909c; margin-top: 8px; }

/* 响应式兜底 */
@media (max-width: 1280px) {
  .product-grid-list { grid-template-columns: repeat(3, 1fr); }
  .series-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 商品子页（驱动下载/技术支持/视频） ===== */
.subpage-container { max-width: 1200px; margin: 0 auto; padding: 60px 24px 80px; }
.subpage-title { font-size: 32px; font-weight: 700; color: #111; margin-bottom: 8px; }
.subpage-desc { font-size: 15px; color: #888; margin-bottom: 32px; }
.subpage-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 16px rgba(0,0,0,.06); padding: 32px; }
.dl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dl-table th { background: #f5f6f8; color: #333; font-weight: 600; text-align: left; padding: 12px 16px; }
.dl-table td { padding: 14px 16px; border-bottom: 1px solid #f0f1f3; color: #555; }
.dl-table tr:hover td { background: #fafbfc; }
.dl-btn { display: inline-block; padding: 6px 18px; background: #c8102e; color: #fff; border-radius: 18px; font-size: 13px; transition: all .2s; }
.dl-btn:hover { background: #a50d26; transform: translateY(-1px); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.svc-item { background: #f8f9fb; border-radius: 10px; padding: 24px; }
.svc-item h4 { font-size: 16px; color: #111; margin-bottom: 12px; }
.svc-item p { font-size: 14px; color: #666; line-height: 1.8; }
.svc-item a { color: #c8102e; }
.video-card video { width: 100%; border-radius: 8px; background: #000; }

/* ===== 新闻详情页 ===== */
.news-detail-page { background: #f5f6f8; padding: 40px 0 80px; }
.news-article { max-width: 860px; margin: 0 auto; background: #fff; border-radius: 12px; padding: 48px 56px; box-shadow: 0 2px 16px rgba(0,0,0,.05); }
.article-title { font-size: 28px; font-weight: 700; color: #111; line-height: 1.4; margin-bottom: 16px; }
.article-meta { display: flex; gap: 24px; font-size: 13px; color: #999; padding-bottom: 24px; border-bottom: 1px solid #eee; margin-bottom: 24px; }
.article-body p { font-size: 15px; color: #444; line-height: 1.9; margin-bottom: 16px; text-indent: 2em; }

/* ===== 视频轮播播放控制 ===== */
.video-item video { width: 100%; height: 100%; object-fit: cover; }
.video-item { position: absolute; transition: all .6s cubic-bezier(.4,0,.2,1); }
.video-carousel-container { position: relative; height: 620px; overflow: hidden; }
.videos-wrapper { position: relative; width: 100%; height: 100%; }
.video-item.center { left: 50%; top: 50%; transform: translate(-50%,-50%) scale(1); z-index: 3; width: 62%; height: 84%; opacity: 1; }
.video-item.left { left: 0; top: 50%; transform: translate(-30%,-50%) scale(.8); z-index: 2; width: 46%; height: 68%; opacity: .7; }
.video-item.right { left: 100%; top: 50%; transform: translate(-70%,-50%) scale(.8); z-index: 2; width: 46%; height: 68%; opacity: .7; }
.video-item.far-left { left: 0; top: 50%; transform: translate(-80%,-50%) scale(.6); z-index: 1; width: 36%; height: 52%; opacity: .4; }
.video-item.far-right { left: 100%; top: 50%; transform: translate(-20%,-50%) scale(.6); z-index: 1; width: 36%; height: 52%; opacity: .4; }

/* ===== 视频角标LOGO遮罩 ===== */
.banner { position: relative; }
.banner::before {
  content: ''; position: absolute; top: 0; left: 0; z-index: 4;
  width: 15.5%; height: 9%;
  background: rgba(8, 8, 12, .92);
  border-bottom-right-radius: 14px;
}
.banner .brand-overlay {
  position: absolute; top: 1.4%; left: 0.8%; z-index: 5;
  width: clamp(130px, 14vw, 226px); pointer-events: none;
}
