/* 添翊科技官网样式表 */
:root {
    --primary-dark: #1B5E9B;
    --primary-medium: #2E86C1;
    --accent-green: #27AE60;
    --light-bg: #F5F9FC;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Microsoft YaHei", Arial, sans-serif; color: var(--text-dark); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: var(--primary-medium); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.header { position: fixed; top: 0; left: 0; right: 0; background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 1000; height: 80px; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 18px; }
.logo-text { font-size: 20px; font-weight: bold; color: var(--primary-dark); }
.logo-text span { color: var(--accent-green); }
.nav { display: flex; gap: 36px; }
.nav a { font-size: 15px; color: var(--text-dark); padding: 8px 0; position: relative; }
.nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary-medium); transition: width 0.3s; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--primary-dark); font-weight: 500; }
.header-right { display: flex; align-items: center; gap: 16px; }
.search-box { display: flex; align-items: center; background: var(--light-bg); border-radius: 20px; padding: 7px 16px; position: relative; }
.search-box input { border: none; background: transparent; outline: none; width: 140px; font-size: 14px; }
#searchResults { position: absolute; top: 100%; left: 0; right: 0; background: white; border: 1px solid #e0e0e0; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); max-height: 300px; overflow-y: auto; z-index: 1000; display: none; margin-top: 8px; }
.search-result-item { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background 0.2s; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #f5f9fc; }
.search-result-item a { color: var(--text-dark); text-decoration: none; font-size: 14px; display: block; }
.search-result-item:hover a { color: var(--primary-dark); }
.search-result-item.no-result { color: #999; font-size: 13px; cursor: default; }
.consult-btn { background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium)); color: white; padding: 9px 22px; border-radius: 20px; font-size: 14px; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; border: none; }
.consult-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(27, 94, 155, 0.4); }

/* Banner */
.banner { margin-top: 80px; height: 520px; background: linear-gradient(135deg, #0e3d6b 0%, var(--primary-dark) 40%, var(--primary-medium) 100%); position: relative; overflow: hidden; }
.banner-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity 0.8s; }
.banner-slide.active { opacity: 1; }
.banner-content { flex: 1.1; padding: 60px 80px; color: white; z-index: 2; }
.banner-content h1 { font-size: 40px; margin-bottom: 18px; line-height: 1.35; font-weight: bold; }
.banner-content .subtitle { font-size: 18px; margin-bottom: 30px; opacity: 0.88; }
.banner-btns { display: flex; gap: 18px; }
.btn { padding: 13px 30px; border-radius: 30px; font-size: 15px; cursor: pointer; transition: all 0.3s; font-family: inherit; }
.btn-primary { background: white; color: var(--primary-dark); border: none; font-weight: 500; }
.btn-primary:hover { background: var(--light-bg); transform: translateY(-2px); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.8); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.banner-img { flex: 0.9; height: 100%; overflow: hidden; }
.banner-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.banner-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.banner-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; transition: all 0.3s; }
.banner-dot.active { background: white; width: 28px; border-radius: 5px; }

/* 区块通用 */
.section { padding: 80px 0; }
.section-alt { background: var(--light-bg); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 30px; color: var(--primary-dark); margin-bottom: 12px; font-weight: bold; }
.section-title p { color: var(--text-gray); font-size: 15px; }

/* 核心优势 */
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.advantage-card { background: white; padding: 36px 24px; border-radius: 12px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; border: 1px solid #f0f0f0; }
.advantage-card:hover { transform: translateY(-8px); box-shadow: 0 10px 35px rgba(27, 94, 155, 0.18); }
.advantage-icon { width: 68px; height: 68px; margin: 0 auto 18px; background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.advantage-card h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 10px; }
.advantage-card p { color: var(--text-gray); font-size: 13px; line-height: 1.85; }

/* 产品中心 */
.product-tabs { display: flex; justify-content: center; gap: 36px; margin-bottom: 38px; }
.product-tab { font-size: 16px; color: var(--text-gray); cursor: pointer; padding: 10px 0; border-bottom: 3px solid transparent; transition: all 0.3s; font-weight: 500; }
.product-tab.active { color: var(--primary-dark); border-bottom-color: var(--accent-green); }
.product-tab:hover { color: var(--primary-medium); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,0.07); transition: transform 0.3s, box-shadow 0.3s; border: 1px solid #f0f0f0; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(0,0,0,0.14); }

/* 产品图片链接 */
.product-img a, a .product-img { display: block; height: 100%; text-decoration: none; color: inherit; }
.product-card a .product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img { height: 210px; background: var(--light-bg); overflow: hidden; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-img img { transform: scale(1.08); }
.product-info { padding: 22px; }
.product-info h3 { font-size: 16px; color: var(--text-dark); margin-bottom: 8px; font-weight: 500; }
.product-info p { color: var(--text-gray); font-size: 13px; margin-bottom: 14px; line-height: 1.7; }
.product-link { color: var(--primary-medium); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.product-link:hover { color: var(--primary-dark); }

/* 资质认证 */
.cert-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cert-item { background: white; padding: 28px 16px; border-radius: 10px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.05); border: 1px solid #eee; transition: box-shadow 0.3s; }
.cert-item:hover { box-shadow: 0 6px 20px rgba(27,94,155,0.15); }
.cert-icon { font-size: 36px; margin-bottom: 12px; }
.cert-item h4 { font-size: 14px; color: var(--primary-dark); margin-bottom: 6px; font-weight: 500; }
.cert-item p { font-size: 11px; color: var(--text-gray); line-height: 1.5; }

/* 新闻 */
.news-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 30px; }
.news-main { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,0.07); border: 1px solid #f0f0f0; transition: box-shadow 0.3s; }
.news-main:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.news-main-img { height: 260px; overflow: hidden; }
.news-main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-main:hover .news-main-img img { transform: scale(1.05); }
.news-main-content { padding: 26px; }
.news-main-content h3 { font-size: 20px; color: var(--text-dark); margin-bottom: 12px; line-height: 1.4; font-weight: 500; }
.news-main-content p { color: var(--text-gray); font-size: 14px; line-height: 1.85; }
.news-date { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.news-side { display: flex; flex-direction: column; gap: 16px; }
.news-side-item { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; transition: box-shadow 0.3s, transform 0.3s; cursor: pointer; }
.news-side-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); transform: translateX(4px); }
.news-side-item h4 { font-size: 14px; color: var(--text-dark); line-height: 1.6; font-weight: 500; }

/* 合作伙伴 */
.partners { padding: 60px 0; }
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.partner-item { background: white; padding: 24px 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 13px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; text-align: center; }

/* 底部 */
.footer { background: #0d3a63; color: white; padding: 55px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.footer-brand h3 { font-size: 22px; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; opacity: 0.72; line-height: 1.9; }
.footer-links h4 { font-size: 16px; margin-bottom: 18px; font-weight: 500; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: rgba(255,255,255,0.72); font-size: 13px; }
.footer-links a:hover { color: white; }
.footer-contact p { font-size: 13px; opacity: 0.72; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 25px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 12px; opacity: 0.6; }
.footer-qr { text-align: center; }
.qr-box { width: 95px; height: 95px; background: white; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.qr-box span { color: var(--text-light); font-size: 11px; }

/* 内页通用 */
.page-banner { margin-top: 80px; height: 240px; background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium)); display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; }
.page-banner h1 { font-size: 34px; margin-bottom: 10px; font-weight: bold; }
.page-banner p { font-size: 15px; opacity: 0.85; }
.breadcrumb { font-size: 13px; opacity: 0.7; margin-top: 10px; }
.page-content { padding: 60px 0; }

/* 关于我们 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 80px; }
.about-img { border-radius: 14px; overflow: hidden; box-shadow: 0 12px 50px rgba(0,0,0,0.15); }
.about-img img { width: 100%; display: block; }
.about-text h2 { font-size: 28px; color: var(--primary-dark); margin-bottom: 22px; font-weight: bold; }
.about-text p { color: var(--text-gray); font-size: 14px; line-height: 2; margin-bottom: 18px; }
.honors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; }
.honor-item { background: var(--light-bg); padding: 24px 16px; border-radius: 10px; text-align: center; border: 1px solid #e8e8e8; }
.honor-item .num { font-size: 30px; font-weight: bold; color: var(--primary-dark); margin-bottom: 6px; }
.honor-item .label { font-size: 13px; color: var(--text-gray); }
.timeline-list { position: relative; max-width: 800px; margin: 0 auto; padding-left: 20px; }
.timeline-list::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--primary-medium); opacity: 0.3; }
.timeline-item { display: flex; gap: 28px; margin-bottom: 35px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -20px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-medium); border: 3px solid white; box-shadow: 0 0 0 2px var(--primary-medium); }
.timeline-year { width: 75px; font-size: 22px; font-weight: bold; color: var(--primary-dark); flex-shrink: 0; }
.timeline-content { flex: 1; background: white; padding: 22px; border-radius: 10px; box-shadow: 0 3px 15px rgba(0,0,0,0.06); border: 1px solid #f0f0f0; }
.timeline-content h4 { font-size: 16px; color: var(--primary-dark); margin-bottom: 8px; }
.timeline-content p { color: var(--text-gray); font-size: 13px; line-height: 1.7; }

/* 产品页 */
.product-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; }
.page-btn { width: 38px; height: 38px; border-radius: 6px; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; color: var(--text-gray); background: white; transition: all 0.3s; }
.page-btn.active, .page-btn:hover { background: var(--primary-dark); color: white; border-color: var(--primary-dark); }

/* 新闻页 */
.news-list { display: flex; flex-direction: column; gap: 28px; }
.news-list-item { display: flex; gap: 28px; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,0.06); border: 1px solid #f0f0f0; transition: box-shadow 0.3s; }
.news-list-item:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.news-list-img { width: 300px; height: 200px; flex-shrink: 0; overflow: hidden; }
.news-list-img img { width: 100%; height: 100%; object-fit: cover; }
.news-list-content { flex: 1; padding: 28px 28px 28px 0; }
.news-list-content h3 { font-size: 20px; color: var(--text-dark); margin-bottom: 12px; line-height: 1.4; }
.news-list-content p { color: var(--text-gray); font-size: 14px; line-height: 1.85; }

/* 联系我们 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 55px; }
.contact-info h2 { font-size: 28px; color: var(--primary-dark); margin-bottom: 30px; font-weight: bold; }
.contact-item { display: flex; gap: 18px; margin-bottom: 24px; }
.contact-icon { width: 48px; height: 48px; background: var(--light-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; border: 1px solid #e8e8e8; }
.contact-text h4 { font-size: 15px; color: var(--text-dark); margin-bottom: 5px; font-weight: 500; }
.contact-text p { color: var(--text-gray); font-size: 13px; line-height: 1.6; }
.contact-map { margin-top: 30px; height: 200px; background: var(--light-bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid #e8e8e8; }
.contact-form { background: var(--light-bg); padding: 38px; border-radius: 14px; border: 1px solid #e8e8e8; }
.contact-form h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 24px; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--text-dark); margin-bottom: 7px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 11px 15px; border: 1px solid #d0d0d0; border-radius: 8px; font-size: 14px; font-family: inherit; background: white; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-medium); }
.form-group textarea { height: 115px; resize: vertical; }
.submit-btn { width: 100%; padding: 13px; background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium)); color: white; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; font-family: inherit; font-weight: 500; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,94,155,0.4); }

/* 页码导航 */
.page-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 50px; }
.prev-next { display: flex; gap: 14px; }
.pn-btn { padding: 10px 22px; background: white; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; color: var(--text-gray); cursor: pointer; transition: all 0.3s; }
.pn-btn:hover { background: var(--primary-dark); color: white; border-color: var(--primary-dark); }

/* 响应式 */
@media (max-width: 1024px) {
    .advantage-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-list-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-grid { grid-template-columns: repeat(3, 1fr); }
    .partner-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 35px; }
    .about-grid { grid-template-columns: 1fr; }
    .honors-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header .container { flex-direction: column; height: auto; padding: 12px 20px; }
    .nav { display: none; }
    .banner { height: auto; }
    .banner-slide { flex-direction: column; padding: 40px 24px 70px; text-align: center; }
    .banner-content h1 { font-size: 28px; }
    .banner-img { display: none; }
    .banner-btns { justify-content: center; flex-wrap: wrap; }
    .advantage-grid, .product-grid, .product-list-grid { grid-template-columns: 1fr; }
    .news-grid, .contact-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .news-list-item { flex-direction: column; }
    .news-list-img { width: 100%; height: 200px; }
    .news-list-content { padding: 20px; }
    .form-row { grid-template-columns: 1fr; }
    .page-banner h1 { font-size: 26px; }
}

/* 产品基本信息模块 */
.product-base-info { background: #f8f9fa; padding: 24px 30px; border-radius: 12px; margin-bottom: 30px; }
.product-base-info h3 { font-size: 22px; color: var(--primary); margin-bottom: 16px; font-weight: 600; }
.product-base-info p { font-size: 15px; color: var(--text-dark); margin: 10px 0; line-height: 1.6; }
.product-base-info .info-label { color: var(--text-light); margin-right: 8px; }
/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: linear-gradient(145deg, #3a96d1, #1B5E9B);
  color: white;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(27,94,155,0.35), 0 2px 8px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: linear-gradient(145deg, #4aa6e1, #2E86C1);
  box-shadow: 0 12px 32px rgba(27,94,155,0.5), 0 4px 12px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.25);
  transform: translateY(-4px) scale(1.06) !important;
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.96) !important;
  box-shadow: 0 4px 16px rgba(27,94,155,0.4), 0 1px 4px rgba(0,0,0,0.12);
}

/* 箭头用CSS绘制，造型饱满立体 */
.back-to-top::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 15px solid rgba(255,255,255,0.95);
  filter: drop-shadow(0 -1px 2px rgba(0,0,0,0.1));
}

.back-to-top::after {
  content: "";
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 5px;
  background: rgba(255,255,255,0.9);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .back-to-top::before {
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 13px solid rgba(255,255,255,0.95);
  }
  .back-to-top::after {
    width: 18px;
    height: 4px;
    bottom: 12px;
  }
}
/* === 联系页地图区域 === */
/* 外层容器：保持原有高度 */
.contact-map-link {
  display: block;
  position: relative;
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  text-decoration: none;
  background: var(--light-bg);
  cursor: pointer;
}

/* SVG 地图 */
.contact-map-svg {
  width: 100%;
  height: 200px;
  display: block;
}

/* 四川省轮廓 */
.map-province {
  fill: #e8f4fb;
  stroke: #a8c8e8;
  stroke-width: 1.5;
}

/* 四川省内各市区域划分线 */
.map-region {
  fill: none;
  stroke: #c5ddf0;
  stroke-width: 0.8;
}

/* 德阳市高亮区域 */
.map-deyang {
  fill: rgba(58, 150, 209, 0.25);
  stroke: #3a96d1;
  stroke-width: 1.5;
  stroke-dasharray: 3 2;
}

/* 德阳位置圆点 */
.map-dot {
  fill: #e74c3c;
  stroke: white;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 3px rgba(231,76,60,0.6));
}

/* 德阳脉冲圆环（动画在下方） */
.map-dot-ring {
  fill: none;
  stroke: rgba(231,76,60,0.4);
  stroke-width: 1;
  animation: mapPulse 2s ease-out infinite;
}

@keyframes mapPulse {
  0%   { r: 6;  opacity: 0.8; }
  100% { r: 16; opacity: 0; }
}

/* 德阳文字标签 */
.map-label {
  font-size: 9px;
  fill: #1B5E9B;
  font-weight: bold;
  font-family: "Microsoft YaHei", sans-serif;
}

/* 比例尺 */
.map-scale {
  stroke: #666;
  stroke-width: 1.5;
}
.map-scale-text {
  font-size: 8px;
  fill: #888;
  font-family: "Microsoft YaHei", sans-serif;
}

/* 指北针 */
.map-compass {
  font-size: 11px;
  fill: #888;
  font-family: "Microsoft YaHei", sans-serif;
  font-weight: bold;
}
.map-compass-arrow {
  stroke: #888;
}

/* 鼠标悬停效果 */
.contact-map-link:hover .map-deyang {
  fill: rgba(58, 150, 209, 0.4);
  transition: fill 0.3s;
}

/* 地图覆盖层（提示点击） */
.contact-map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
  pointer-events: none;
}

.contact-map-link:hover .contact-map-overlay {
  background: rgba(27, 94, 155, 0.08);
}

.map-btn-text {
  font-size: 13px;
  color: var(--primary);
  font-weight: bold;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

.contact-map-link:hover .map-btn-text {
  opacity: 1;
  transform: translateY(0);
}

/* 地图下方文字 */
.contact-map-text {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  padding-bottom: 8px;
}

/* 语言切换按钮 */
.lang-switch {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 999;
  font-size: 13px;
}

.lang-switch-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--primary-dark);
  border: 1px solid #e0e0e0;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lang-switch-btn:hover {
  background: var(--light-bg);
  border-color: var(--primary-medium);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lang-switch-btn .lang-icon {
  font-size: 16px;
}

.lang-switch-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 140px;
  display: none;
  overflow: hidden;
}

.lang-switch-dropdown.show {
  display: block;
}

.lang-switch-option {
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 13px;
  color: var(--text-dark);
  border-bottom: 1px solid #f0f0f0;
}

.lang-switch-option:last-child {
  border-bottom: none;
}

.lang-switch-option:hover {
  background: var(--light-bg);
  color: var(--primary-dark);
}

.lang-switch-option.active {
  background: var(--primary-dark);
  color: white;
}

/* 隐藏 Google 翻译原始控件 */
.goog-te-banner-frame,
.goog-te-gadget,
#goog-gt-tt,
.goog-te-balloon-frame,
#google_translate_element {
  display: none !important;
}

body {
  top: 0 !important;
}

/* 翻译提示条样式 */
.translate-notice {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-dark);
  color: white;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 13px;
  z-index: 10000;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.translate-notice.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}