/* CMS 补充样式：在参考站样式基础上做少量适配 */
.alertc { display: none; position: fixed; inset: 0; z-index: 10000; }
.alertc.show { display: block; }
.alertc .alertbg { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.alertc .alertcon, .alertc .alertcon_b { position: relative; z-index: 1; margin: 120px auto 0; }
.alertc .alertclose { position: absolute; right: -10px; top: -10px; }
.searchd dl { display: none; }
.navigation-down { position: relative; z-index: 50; }

/* 通用内容页 */
.cms-crumb { background: #f7f7f7; border-bottom: 1px solid #eee; }
.cms-crumb .w1280 { padding: 14px 0; color: #888; font-size: 13px; }
.cms-crumb a { color: #888; }
.cms-crumb a:hover { color: #e50120; }
.cms-page-title { text-align: center; padding: 38px 0 30px; }
.cms-page-title .tit { font-size: 32px; color: #333; font-weight: 400; letter-spacing: 2px; }
.cms-page-title .info { margin-top: 10px; color: #999; font-size: 15px; }
.cms-page-title .line { width: 50px; height: 3px; background: #e50120; margin: 18px auto 0; }

/* 筛选 */
.cms-filter { background: #fafafa; border: 1px solid #eee; padding: 18px 20px; margin-bottom: 20px; }
.cms-filter .list { display: flex; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed #eee; }
.cms-filter .list:last-child { border-bottom: 0; }
.cms-filter .listl { width: 100px; flex: none; color: #666; font-size: 14px; padding-top: 5px; }
.cms-filter .listr a { display: inline-block; padding: 4px 14px; margin: 0 6px 6px 0; color: #555; font-size: 13px; border-radius: 2px; }
.cms-filter .listr a:hover, .cms-filter .listr a.on { background: #e50120; color: #fff; }

/* 卡片列表 */
.cms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 24px 0 40px; }
.cms-grid.cms-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cms-card { display: block; background: #fff; border: 1px solid #eee; transition: .3s; overflow: hidden; }
.cms-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); }
.cms-card .img { position: relative; padding-top: 66%; overflow: hidden; background: #f2f2f2; }
.cms-card .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.cms-card:hover .img img { transform: scale(1.05); }
.cms-card .body { padding: 14px 14px 16px; }
.cms-card .body .t { font-size: 15px; color: #333; line-height: 1.6; min-height: 46px; }
.cms-card .body .d { color: #999; font-size: 12px; margin-top: 8px; }
.cms-card .body .price { color: #e50120; font-weight: bold; margin-top: 8px; }
.cms-avatar-card { text-align: center; border: 1px solid #eee; background: #fff; }
.cms-avatar-card .img { padding-top: 130%; }
.cms-avatar-card .body { padding: 14px 10px; }
.cms-avatar-card .name { font-size: 16px; font-weight: bold; }
.cms-avatar-card .level { color: #e50120; font-size: 13px; margin-top: 5px; }

/* 文章列表 */
.cms-article-list { margin: 20px 0 40px; }
.cms-article-list li { border-bottom: 1px solid #eee; padding: 18px 0; }
.cms-article-list li a { display: flex; gap: 18px; align-items: center; }
.cms-article-list .thumb { width: 175px; height: 105px; flex: none; overflow: hidden; background: #f2f2f2; }
.cms-article-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cms-article-list .info { flex: 1; }
.cms-article-list .info .t { font-size: 17px; color: #333; line-height: 1.6; }
.cms-article-list .info .t:hover { color: #e50120; }
.cms-article-list .info .s { color: #888; font-size: 13px; line-height: 1.7; margin-top: 8px; }
.cms-article-list .date { color: #aaa; font-size: 13px; flex: none; }

/* 详情页 */
.cms-detail { padding: 30px 0 50px; }
.cms-detail .dtitle { font-size: 30px; text-align: center; color: #222; line-height: 1.5; }
.cms-detail .dmeta { text-align: center; color: #999; font-size: 13px; margin: 16px 0 30px; }
.cms-detail .dcontent { font-size: 15px; line-height: 2; color: #444; }
.cms-detail .dcontent p { margin-bottom: 16px; }
.cms-detail .dcontent img { max-width: 100%; height: auto; display: block; margin: 16px auto; }
.cms-detail .dcontent h2, .cms-detail .dcontent h3 { font-size: 20px; margin: 24px 0 12px; }
.cms-side { background: #fafafa; padding: 20px; }
.cms-side h3 { font-size: 17px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #e50120; }
.cms-side li { padding: 10px 0; border-bottom: 1px dashed #e5e5e5; font-size: 13px; line-height: 1.6; }
.cms-side li a:hover { color: #e50120; }
.cms-2col { display: grid; grid-template-columns: 1fr 300px; gap: 30px; }

/* 分页 */
.cms-pages { text-align: center; padding: 24px 0 40px; }
.cms-pages a, .cms-pages span { display: inline-block; min-width: 38px; height: 38px; line-height: 38px; padding: 0 10px; margin: 0 4px; background: #fff; border: 1px solid #ddd; color: #555; }
.cms-pages a:hover, .cms-pages .on { background: #e50120; border-color: #e50120; color: #fff; }

/* 门店 */
.cms-store-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0 40px; }
.cms-store { border: 1px solid #eee; padding: 22px; background: #fff; }
.cms-store h3 { font-size: 18px; margin-bottom: 12px; }
.cms-store .row { color: #666; font-size: 13px; line-height: 2; }
.cms-store .phone { color: #e50120; font-size: 16px; font-weight: bold; }

/* 关于/专题 */
.cms-about-hero { height: 380px; background: url(../../static/xy2022/images/i_two_img1.jpg) center/cover; position: relative; }
.cms-about-hero:after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.cms-about-hero .con { position: relative; z-index: 1; color: #fff; text-align: center; padding-top: 140px; }
.cms-about-hero .con h2 { font-size: 42px; font-weight: 400; letter-spacing: 4px; }
.cms-about-hero .con p { margin-top: 14px; font-size: 17px; }
.cms-section { padding: 50px 0; }
.cms-section.gray { background: #f9f9f9; }
.cms-section .st { font-size: 30px; text-align: center; color: #222; }
.cms-section .si { text-align: center; color: #999; margin-top: 10px; margin-bottom: 34px; }
.cms-stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; margin: 30px 0; }
.cms-stats .num { font-size: 42px; color: #e50120; font-weight: bold; }
.cms-stats .label { color: #666; margin-top: 8px; }
.cms-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cms-feature { text-align: center; padding: 26px 16px; border: 1px solid #eee; background: #fff; }
.cms-feature .n { font-size: 22px; color: #e50120; font-weight: bold; }
.cms-feature .t { font-size: 16px; margin-top: 10px; }

/* 联系表单 */
.cms-contact-form { background: #fafafa; padding: 30px; margin: 30px 0; }
.cms-contact-form h3 { font-size: 20px; margin-bottom: 20px; }
.cms-contact-form .row { margin-bottom: 16px; }
.cms-contact-form label { display: block; margin-bottom: 6px; color: #555; }
.cms-contact-form input, .cms-contact-form textarea, .cms-contact-form select {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; font-size: 14px; background: #fff;
}
.cms-contact-form textarea { min-height: 120px; resize: vertical; }
.cms-btn { display: inline-block; background: #e50120; color: #fff; padding: 11px 32px; font-size: 15px; cursor: pointer; border: 0; }
.cms-btn:hover { color: #fff; background: #c6001b; }
.cms-tip { padding: 16px; background: #fff; border: 1px solid #ddd; text-align: center; margin: 20px 0; }
.cms-tip.success { border-color: #7ac377; color: #3a8f38; background: #f2fbf1; }
.cms-tip.error { border-color: #f0b4b4; color: #c00; background: #fff4f4; }

.qr-placeholder { display: flex; width: 100px; height: 101px; align-items: center; justify-content: center; background: #f4f4f4; border: 1px dashed #ccc; color: #999; font-size: 12px; line-height: 1.6; text-align: center; }
.case-gallery { width: 760px; max-width: 100%; margin: 0 auto 34px; background: none; }
.case-gallery .swiper-wrapper { align-items: flex-start; }
.case-gallery .swiper-slide { text-align: center; }
.case-gallery .swiper-slide img { display: block; width: 100%; height: auto; }
.case-gallery .swiper-pagination { bottom: -26px; }
.case-gallery .swiper-pagination-bullet { width: 7px; height: 7px; background: #ccc; margin: 0 5px; }
.case-gallery .swiper-pagination-bullet-active { background: #f5a623; }
.case-gallery .swiper-button-prev, .case-gallery .swiper-button-next { width: 30px; height: 30px; margin-top: -15px; background: none; opacity: .7; }
.case-gallery .swiper-button-prev { left: 4px; }
.case-gallery .swiper-button-next { right: 4px; }
.case-gallery .swiper-button-prev::after, .case-gallery .swiper-button-next::after { content: ''; display: block; width: 10px; height: 10px; border-left: 2px solid #bbb; border-bottom: 2px solid #bbb; transform: rotate(45deg); }
.case-gallery .swiper-button-next::after { transform: rotate(-135deg); }

@media screen and (max-width: 1024px) {
  .cms-grid { grid-template-columns: repeat(2, 1fr); }
  .cms-store-list { grid-template-columns: repeat(2, 1fr); }
  .cms-2col { grid-template-columns: 1fr; }
  .cms-stats, .cms-features { grid-template-columns: repeat(2, 1fr); }
}
