/* ===== 全局基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: calc(100vw / 7.5); }
@media (min-width: 751px) { html { font-size: 75px; } }
body { font-family: "Microsoft Yahei","PingFang SC",Helvetica,Arial,sans-serif; font-size: 0.24rem; color: #222; background: #fff; min-width: 7.5rem; min-height: 100vh; -webkit-text-size-adjust: 100%; }
a { text-decoration: none; color: #222; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
input, button, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; }

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --text: #222;
  --text-light: #666;
  --bg: #f6f7f7;
  --white: #fff;
}

/* ===== Header ===== */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); transition: 0.3s; }
header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.header-box { display: flex; align-items: center; justify-content: space-between; height: 0.88rem; padding: 0 0.3rem; max-width: 12rem; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 0.1rem; }
.logo-img { width: 0.64rem; height: 0.64rem; }
.logo-text { font-size: 0.32rem; font-weight: 700; color: var(--primary); }
.menu { display: flex; gap: 0.3rem; }
.menu .item { font-size: 0.24rem; color: #333; padding: 0.08rem 0; transition: 0.2s; }
.menu .item:hover { color: var(--primary); }
.btn-menu { display: none; width: 0.48rem; height: 0.48rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M3 6h18v2H3V6zm0 5h18v2H3v-2zm0 5h18v2H3v-2z'/%3E%3C/svg%3E") center/contain no-repeat; border: none; cursor: pointer; }

/* ===== 移动端菜单 ===== */
.alert-menu { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200; display: none; }
.alert-menu.open { display: block; }
.alert-menu .over-close { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); }
.alert-menu .box { position: absolute; top: 0; right: 0; bottom: 0; width: 5rem; background: #fff; padding: 0.6rem 0.3rem; overflow-y: auto; }
.alert-menu .list li { padding: 0.2rem 0; border-bottom: 1px solid #eee; }
.alert-menu .list li a { font-size: 0.28rem; color: #333; display: block; }
.alert-menu .list li.on a { color: var(--primary); }
.alert-menu .bottom { margin-top: 0.4rem; display: flex; align-items: center; gap: 0.2rem; }
.alert-menu .bottom .call { font-size: 0.3rem; color: var(--primary); }
.btn-call { padding: 0.1rem 0.3rem; border: 1px solid var(--primary); border-radius: 0.4rem; color: var(--primary); font-size: 0.24rem; }
.btn-call-sm { padding: 0.04rem 0.16rem; border: 1px solid var(--primary); border-radius: 0.2rem; color: var(--primary); font-size: 0.2rem; display: inline-block; }

/* ===== Banner ===== */
.banner-section { margin-top: 0.88rem; position: relative; }
.banner-swiper { width: 100%; }
.banner-swiper .swiper-slide { position: relative; }
.banner-swiper .swiper-slide img { width: 100%; height: auto; display: block; }
.banner-swiper .swiper-pagination-bullet-active { background: var(--primary); }
.banner-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.6)); color: #fff; font-size: 0.24rem; padding: 0.4rem 0.3rem 0.2rem; text-align: center; }
.decorate-img { width: 100%; margin-top: -0.02rem; position: relative; z-index: 1; }

/* ===== 通用区块 ===== */
.part { padding: 0.6rem 0.3rem; position: relative; }
.g-title { text-align: center; margin-bottom: 0.4rem; padding: 0 0.3rem; }
.g-title h3 { font-size: 0.36rem; font-weight: 700; color: #222; line-height: 1.4; }
.g-title.white h3 { color: #fff; }
.g-title .line { width: 0.56rem; height: 0.06rem; border-radius: 0.06rem; background: var(--primary); margin: 0.2rem auto; }
.g-title p { font-size: 0.22rem; color: #888; margin-top: 0.16rem; line-height: 1.6; padding: 0 0.2rem; }
.g-title.white p { color: rgba(255,255,255,0.8); }
.g-operate { text-align: center; margin-top: 0.4rem; }

.btn-blue { display: inline-block; padding: 0.16rem 0.6rem; background: var(--primary); color: #fff; border-radius: 0.4rem; font-size: 0.26rem; font-weight: 600; cursor: pointer; transition: 0.2s; border: none; }
.btn-blue:hover { background: var(--primary-dark); }
.btn-block { width: 100%; }
.btn-white { display: inline-flex; align-items: center; gap: 0.1rem; padding: 0.12rem 0.4rem; background: #fff; color: var(--primary); border: 1px solid var(--primary); border-radius: 0.4rem; font-size: 0.24rem; cursor: pointer; }

/* ===== 标签云 ===== */
.tag-cloud { text-align: center; margin-bottom: 0.3rem; }
.tag-cloud span { display: inline-block; padding: 0.08rem 0.2rem; background: #fff; color: var(--primary); border: 1px solid var(--primary); border-radius: 0.3rem; font-size: 0.2rem; margin: 0.06rem; transition: 0.2s; }

/* ===== 功能卡片 ===== */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.2rem; }
.feature-item { background: #fff; border-radius: 0.16rem; padding: 0.3rem 0.16rem; text-align: center; box-shadow: 0 0.04rem 0.16rem rgba(0,0,0,0.06); }
.feature-item .fi-icon { font-size: 0.48rem; margin-bottom: 0.12rem; }
.feature-item h3 { font-size: 0.24rem; font-weight: 600; margin-bottom: 0.08rem; }
.feature-item p { font-size: 0.2rem; color: #888; line-height: 1.5; }

/* ===== 案例展示 Swiper ===== */
.part-cases { padding-top: 0.6rem; padding-bottom: 0.2rem; background: #f6f7f7; }
.cases-swiper { padding: 0 0.3rem 0.4rem; position: relative; max-width: 100%; overflow: visible; }
.cases-swiper .swiper-wrapper { align-items: stretch; }
.cases-swiper .swiper-slide { height: auto; display: flex; align-items: stretch; }
.case-item { background: #fff; border-radius: 0.16rem; overflow: hidden; box-shadow: 0 0.04rem 0.16rem rgba(0,0,0,0.06); width: 100%; display: flex; flex-direction: column; min-height: 100%; }
.case-item img { width: 100%; height: 4.2rem; object-fit: contain; display: block; flex-shrink: 0; background: #f5f5f5; }
.case-item .case-info { padding: 0.24rem 0.2rem; text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.case-item .case-info h3 { font-size: 0.26rem; font-weight: 600; text-align: center; margin: 0 0 0.08rem 0; flex-shrink: 0; }
.case-item .case-info p { font-size: 0.2rem; color: #888; line-height: 1.6; margin: 0; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-item .case-link { display: inline-block; font-size: 0.22rem; color: var(--primary); margin-top: auto; padding-top: 0.1rem; }
.cases-swiper .swiper-button-prev, .cases-swiper .swiper-button-next {
  width: 0.6rem; height: 0.6rem; background: rgba(255,255,255,0.7); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.cases-swiper .swiper-button-prev::after { content: '‹'; font-size: 0.4rem; color: #666; line-height: 1; }
.cases-swiper .swiper-button-next::after { content: '›'; font-size: 0.4rem; color: #666; line-height: 1; }
.cases-swiper .swiper-button-prev { left: 0.1rem; }
.cases-swiper .swiper-button-next { right: 0.1rem; }

/* ===== 资质 Swiper ===== */
.qual-swiper { padding: 0 0.3rem 0.4rem; position: relative; max-width: 100%; }
.qual-swiper .swiper-wrapper { align-items: stretch; }
.qual-swiper .swiper-slide { height: auto; display: flex; align-items: center; justify-content: center; }
.qual-item { background: #fff; border-radius: 0.16rem; overflow: hidden; box-shadow: 0 0.04rem 0.16rem rgba(0,0,0,0.06); width: 100%; display: flex; flex-direction: column; align-items: center; }
.qual-item img { width: 100%; height: 33vh; object-fit: contain; background: #fff; display: block; }
.qual-item h3 { font-size: 0.22rem; font-weight: 600; text-align: center; padding: 0.12rem; margin: 0; width: 100%; }

/* 资质 Swiper 箭头 */
.qual-swiper .swiper-button-prev, .qual-swiper .swiper-button-next {
  width: 0.6rem; height: 0.6rem; background: rgba(255,255,255,0.7); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.qual-swiper .swiper-button-prev::after { content: '‹'; font-size: 0.4rem; color: #666; line-height: 1; }
.qual-swiper .swiper-button-next::after { content: '›'; font-size: 0.4rem; color: #666; line-height: 1; }
.qual-swiper .swiper-button-prev { left: 0.1rem; }
.qual-swiper .swiper-button-next { right: 0.1rem; }

/* ===== 新闻 Swiper ===== */
.news-swiper { padding: 0 0.3rem 0.4rem; }
.news-swiper .swiper-slide { width: auto; }
.news-item { background: #fff; border-radius: 0.16rem; overflow: hidden; box-shadow: 0 0.04rem 0.16rem rgba(0,0,0,0.06); }
.news-item img { width: 100%; height: auto; max-height: 35vh; object-fit: contain; display: block; margin: 0; padding: 0; }
.news-item .news-text { padding: 0.3rem; text-align: center; }
.news-item h3 { font-size: 0.28rem; font-weight: 600; margin: 0 0 0.12rem 0; line-height: 1.4; text-align: center; }
.news-item p { font-size: 0.22rem; color: #888; line-height: 1.8; margin: 0; }
.swiper-pagination-bullet-active { background: var(--primary) !important; }

/* ===== 预约表单 ===== */
.part-form { background: #f6f7f7; }
.form-icon { width: 1.2rem; margin: 0 auto 0.3rem; }
.booking-form { max-width: 6rem; margin: 0 auto; }
.form-item { display: flex; align-items: center; background: #fff; border-radius: 0.12rem; margin-bottom: 0.2rem; padding: 0 0.2rem; border: 1px solid #e8e8e8; transition: 0.2s; }
.form-item:focus-within { border-color: var(--primary); }
.form-item i { color: #f44336; font-style: normal; margin-right: 0.1rem; font-size: 0.22rem; }
.form-item input { flex: 1; height: 0.8rem; font-size: 0.24rem; border: none; outline: none; background: transparent; }

/* ===== Footer ===== */
footer { background: #1a1a2e; color: #ccc; padding: 0.4rem 0.3rem 1.2rem; }
.ft-top { display: flex; align-items: flex-start; gap: 0.3rem; margin-bottom: 0.3rem; flex-wrap: wrap; }
.footer-logo { width: 0.8rem; height: 0.8rem; flex-shrink: 0; }
.contact-info { flex: 1; min-width: 3rem; }
.ci-item { font-size: 0.2rem; margin-bottom: 0.1rem; line-height: 1.6; }
.ci-phones { display: flex; gap: 0.2rem; flex-wrap: wrap; }
.ci-phones .ci-item { flex: 1; min-width: 2.5rem; }
.footer-qrcodes { display: flex; gap: 0.2rem; flex-shrink: 0; }
.qrcode-item { text-align: center; }
.qrcode-item img { width: 1.4rem; height: 1.4rem; border-radius: 0.1rem; background: #fff; padding: 0.06rem; display: block; }
.qrcode-item span { font-size: 0.18rem; color: #999; display: block; margin-top: 0.08rem; }
.ft-bottom { font-size: 0.18rem; color: #888; line-height: 1.8; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 0.2rem; text-align: center; }
.ft-bottom p { text-align: center; }
.ft-links { margin-top: 0.1rem; line-height: 1.8; text-align: center; }
.ft-links strong { color: #ddd; }

/* ===== 底部固定栏 ===== */
.footer-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; display: flex; padding: 0.12rem 0.3rem; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); box-shadow: 0 -0.02rem 0.12rem rgba(0,0,0,0.08); gap: 0.2rem; }
.footer-bar .btn-white { flex: 0.8; justify-content: center; }
.footer-bar .btn-blue { flex: 1.2; }
.footer-bar .btn-contact { display: flex; align-items: center; justify-content: center; width: 0.72rem; height: 0.72rem; border-radius: 50%; background: #fff; box-shadow: 0 0.04rem 0.12rem rgba(0,0,0,0.1); font-size: 0.34rem; text-decoration: none; flex-shrink: 0; }
.bar-icon { width: 0.32rem; height: 0.32rem; }

/* 子页面顶部联系我们按钮 */
.contact-btn { font-size: 0.26rem; color: #2e7d32; padding: 0.1rem 0.3rem; border: 1px solid #2e7d32; border-radius: 0.3rem; margin-right: 0.15rem; text-decoration: none; white-space: nowrap; }
@media (min-width: 751px) {
  .contact-btn { font-size: 14px; padding: 6px 16px; }
}

/* Footer menus */
.ft-menus { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.2rem; padding-bottom: 0.2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-menu-col { flex: 1; min-width: 2.5rem; }
.footer-menu-col strong { display: block; font-size: 0.22rem; color: #ddd; margin-bottom: 0.12rem; }
.footer-menu-col ul { list-style: none; }
.footer-menu-col ul li { margin-bottom: 0.06rem; }
.footer-menu-col ul li a { font-size: 0.2rem; color: #999; text-decoration: none; }
.footer-menu-col ul li a:hover { color: var(--primary); }

/* ===== 返回顶部 ===== */
.go-top { position: fixed; right: 0.3rem; bottom: 1.5rem; width: 0.72rem; height: 0.72rem; z-index: 99; display: none; }
.go-top img { width: 100%; }
.go-top.show { display: block; }

/* ===== 响应式 ===== */
@media (max-width: 750px) {
  .menu { display: none; }
  .btn-menu { display: block; }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 751px) {
  .header-box { max-width: 100%; padding: 0 0.3rem; justify-content: space-between; }
  .menu { gap: 0.25rem; flex-wrap: nowrap; margin: 0 auto; }
  .menu .item { font-size: 0.28rem; padding: 0.08rem 0; white-space: nowrap; }
}

/* ===== Toast ===== */
.toast { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 999; background: rgba(0,0,0,0.8); color: #fff; padding: 0.16rem 0.4rem; border-radius: 0.4rem; font-size: 0.24rem; opacity: 0; transition: 0.3s; pointer-events: none; }
.toast.show { opacity: 1; }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 0.2rem 0 0.1rem; font-size: 0.24rem; color: #888; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding: 0; margin: 0; }
.breadcrumb li { display: inline; }
.breadcrumb li + li::before { content: ' - '; color: #ccc; padding: 0 0.08rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: #333; font-weight: 500; }
@media (min-width: 769px) {
  .breadcrumb { font-size: 14px; padding: 10px 0 5px; }
}
