/* ===== 全局样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1A56DB;
  --primary-dark: #1E40AF;
  --primary-light: #3B82F6;
  --accent: #F97316;
  --accent-dark: #EA580C;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --bg: #FFFFFF;
  --bg-gray: #F9FAFB;
  --bg-dark: #111827;
  --border: #E5E7EB;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; font-size: 15px; font-weight: 600; border-radius: var(--radius);
  border: none; cursor: pointer; transition: var(--transition); white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-secondary { background: var(--bg-gray); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: 1440px; margin: 0 auto; padding: 0 32px;
}
.nav-logo img { height: 42px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 9px 17px; font-size: 15.5px; font-weight: 500; color: var(--text); white-space: nowrap;
  border-radius: var(--radius); transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(26,86,219,0.06); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 700; color: var(--primary); white-space: nowrap; padding: 8px 16px; background: rgba(26,86,219,0.08); border: 1px solid rgba(26,86,219,0.18); border-radius: 999px; transition: all .25s; } .nav-phone:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: var(--transition); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: white; overflow: hidden; margin-top: 0;
}
.hero-slide {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(17,24,39,0.85), rgba(30,64,175,0.75));
}
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 120px 24px 80px; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; background: rgba(249,115,22,0.15); border: 1px solid rgba(249,115,22,0.4);
  border-radius: 50px; font-size: 14px; font-weight: 500; color: #FDBA74; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: #FDBA74; }
.hero-subtitle { font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,0.85); max-width: 640px; margin-bottom: 40px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.15); max-width: 800px;
}
.hero-stat .num { font-size: clamp(28px, 4vw, 40px); font-weight: 900; color: #FDBA74; line-height: 1; margin-bottom: 8px; }
.hero-stat .label { font-size: 14px; color: rgba(255,255,255,0.7); }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: var(--transition); }
.hero-dot.active { background: var(--accent); width: 32px; border-radius: 6px; }

/* ===== 通用区块 ===== */
.section { padding: 100px 0; }
.section-gray { background: var(--bg-gray); }
.section-dark { background: var(--bg-dark); color: white; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; padding: 6px 16px; background: rgba(249,115,22,0.1);
  color: var(--accent); font-size: 13px; font-weight: 600; border-radius: 50px; margin-bottom: 16px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin-bottom: 16px; }
.section-desc { font-size: 17px; color: var(--text-secondary); max-width: 640px; margin: 0 auto; line-height: 1.7; }

/* ===== 关于我们 ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-image img { width: 100%; height: 480px; object-fit: cover; }
.about-content h2 { font-size: 32px; font-weight: 900; margin-bottom: 20px; }
.about-content h2 span { color: var(--accent); }
.about-content p { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.about-feature { display: flex; align-items: flex-start; gap: 12px; }
.about-feature-icon {
  width: 40px; height: 40px; min-width: 40px; background: rgba(26,86,219,0.1);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.about-feature-text h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.about-feature-text p { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

/* ===== 产品 ===== */
.product-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 48px; flex-wrap: wrap; }
.product-tab {
  padding: 10px 24px; font-size: 15px; font-weight: 600; border-radius: 50px;
  background: white; border: 2px solid var(--border); color: var(--text-secondary);
  cursor: pointer; transition: var(--transition);
}
.product-tab.active, .product-tab:hover { background: var(--primary); border-color: var(--primary); color: white; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.product-card-image { position: relative; height: 220px; overflow: hidden; background: var(--bg-gray); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card-image img { transform: scale(1.08); }
.product-card-badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 12px;
  background: var(--accent); color: white; font-size: 12px; font-weight: 600; border-radius: 4px;
}
.product-card-body { padding: 24px; }
.product-card-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.product-card-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.product-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.product-card-tag { padding: 3px 10px; background: var(--bg-gray); color: var(--text-secondary); font-size: 12px; border-radius: 4px; }

/* ===== 优势 ===== */
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.advantage-card {
  background: white; padding: 36px 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); text-align: center; transition: var(--transition);
}
.advantage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.advantage-number { font-size: 48px; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 16px; opacity: 0.3; }
.advantage-icon {
  width: 64px; height: 64px; margin: 0 auto 20px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white;
}
.advantage-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.advantage-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ===== 案例 ===== */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 320px; cursor: pointer; box-shadow: var(--shadow-md); }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.case-card:hover img { transform: scale(1.1); }
.case-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17,24,39,0.9) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: white;
}
.case-overlay h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.case-overlay p { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 12px; }
.case-meta { display: flex; gap: 16px; font-size: 13px; color: rgba(255,255,255,0.7); }

/* ===== CTA ===== */
.cta-section { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); padding: 80px 0; color: white; text-align: center; }
.cta-section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin-bottom: 16px; }
.cta-section p { font-size: 18px; color: rgba(255,255,255,0.9); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== 联系我们 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { font-size: 32px; font-weight: 900; margin-bottom: 20px; }
.contact-info h2 span { color: var(--accent); }
.contact-info > p { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 32px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item-icon {
  width: 48px; height: 48px; min-width: 48px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: white;
}
.contact-item-text h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.contact-item-text p { font-size: 15px; color: var(--text-secondary); margin: 0; line-height: 1.6; }
.contact-item-text a { color: var(--primary); font-weight: 600; }
.contact-form { background: white; padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.contact-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; font-size: 15px; border: 2px solid var(--border);
  border-radius: var(--radius); transition: var(--transition); font-family: inherit; color: var(--text); background: white;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== 页脚 ===== */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: var(--transition); color: white;
}
.footer-social a:hover { background: var(--accent); transform: translateY(-2px); }
.footer-col h4 { font-size: 16px; font-weight: 700; color: white; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-col ul li a:hover { color: #FDBA74; padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* ===== 产品详情页 ===== */
.product-detail { padding-top: 120px; padding-bottom: 80px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.product-detail-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.product-detail-image img { width: 100%; height: 480px; object-fit: cover; }
.product-detail-info h1 { font-size: 32px; font-weight: 900; margin-bottom: 16px; }
.product-detail-badges { display: flex; gap: 8px; margin-bottom: 20px; }
.product-detail-badge { padding: 4px 12px; background: var(--accent); color: white; font-size: 13px; font-weight: 600; border-radius: 4px; }
.product-detail-specs { background: var(--bg-gray); padding: 24px; border-radius: var(--radius); margin-bottom: 24px; }
.product-detail-specs h4 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.product-detail-specs p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; white-space: pre-line; }
.product-detail-desc h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.product-detail-desc p { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.related-products { margin-top: 60px; }
.related-products h3 { font-size: 24px; font-weight: 700; margin-bottom: 32px; text-align: center; }

/* ===== 新闻详情 ===== */
.news-detail { padding-top: 120px; padding-bottom: 80px; }
.news-detail-header { text-align: center; margin-bottom: 40px; }
.news-detail-header h1 { font-size: 32px; font-weight: 900; margin-bottom: 16px; line-height: 1.4; }
.news-detail-meta { display: flex; justify-content: center; gap: 24px; font-size: 14px; color: var(--text-secondary); }
.news-detail-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow-lg); }
.news-detail-image img { width: 100%; max-height: 500px; object-fit: cover; }
.news-detail-content { max-width: 800px; margin: 0 auto; }
.news-detail-content p { font-size: 16px; line-height: 2; color: var(--text); margin-bottom: 20px; white-space: pre-line; }
.news-detail-nav { display: flex; justify-content: space-between; margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--border); }
.news-detail-nav a { color: var(--primary); font-weight: 600; }

/* ===== 面包屑 ===== */
.breadcrumb { padding-top: 100px; padding-bottom: 20px; }
.breadcrumb-inner { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.breadcrumb-inner a { color: var(--primary); }
.breadcrumb-inner span { color: var(--text-light); }

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; color: var(--text); transition: var(--transition);
}
.pagination a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .active { background: var(--primary); color: white; border-color: var(--primary); }

/* 小桌面/笔记本(<=1280)导航紧凑 */
@media (max-width: 1280px) and (min-width: 1101px) {
  .nav-inner { padding: 0 20px; }
  .nav-links { gap: 4px; }
  .nav-links a { padding: 8px 11px; font-size: 14.5px; }
  .nav-cta { gap: 10px; }
  .nav-phone { padding: 6px 12px; font-size: 13px; }
}
/* 窄屏(<=1100)切换汉堡菜单 */
@media (max-width: 1100px) {
  .nav-links, .nav-phone { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: white; padding: 16px; box-shadow: var(--shadow-lg); gap: 4px;
  }
  .nav-links.open a { padding: 12px 16px; }
}
/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .product-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-phone { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: white; padding: 16px; box-shadow: var(--shadow-lg); gap: 4px;
  }
  .nav-links.open a { padding: 12px 16px; }
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .about-grid, .contact-grid, .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image img, .product-detail-image img { height: 320px; }
  .product-grid, .cases-grid, .advantages-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 60px 0; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
}

/* ===== 前端体验优化 ===== */

/* 悬浮联系栏 */
.float-contact {
  position: fixed; right: 16px; bottom: 16px; z-index: 2000;
  display: flex; flex-direction: column; gap: 10px;
}
.float-contact a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: white;
  box-shadow: 0 4px 14px rgba(26,86,219,0.35);
  transition: all 0.3s ease; position: relative;
}
.float-contact a:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 6px 20px rgba(26,86,219,0.45); }
.float-contact a.fc-phone { background: var(--accent); box-shadow: 0 4px 14px rgba(249,115,22,0.35); }
.float-contact a.fc-quote { background: var(--success); box-shadow: 0 4px 14px rgba(16,185,129,0.35); }
.float-contact a span.fc-label {
  position: absolute; right: 60px; top: 50%; transform: translateY(-50%) translateX(8px);
  background: #1f2937; color: white; font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 6px; white-space: nowrap; opacity: 0;
  pointer-events: none; transition: all 0.3s ease;
}
.float-contact a:hover span.fc-label { opacity: 1; transform: translateY(-50%) translateX(0); }
.float-contact a span.fc-label::after {
  content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: #1f2937;
}
@media (max-width: 768px) {
  .float-contact a { width: 46px; height: 46px; }
  .float-contact a span.fc-label { display: none; }
}

/* 滚动渐入动画 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 统一 hover：卡片浮起 + 图片缩放 */
.product-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(17,24,39,0.12); }
.product-card .product-card-image img, .case-card img { transition: transform 0.4s ease; }
.product-card:hover .product-card-image img, .case-card:hover img { transform: scale(1.06); }
.product-card-image, .case-card .case-card-image { overflow: hidden; }

/* 产品卡片询价按钮 */
.product-card .btn-inquiry {
  margin-top: 12px; padding: 8px 20px; font-size: 14px;
  background: var(--accent); color: white; border: none; border-radius: 6px;
  cursor: pointer; font-weight: 600; transition: all 0.3s ease;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 8px rgba(249,115,22,0.25);
}
.product-card .btn-inquiry:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(249,115,22,0.35); }

/* 表单校验样式 */
.form-group .field-error {
  display: none; color: var(--danger); font-size: 13px; margin-top: 6px;
}
.form-group.has-error input, .form-group.has-error textarea, .form-group.has-error select {
  border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.form-group.has-error .field-error { display: block; }

/* 友好反馈提示 */
.form-toast {
  position: fixed; top: 90px; left: 50%; transform: translateX(-50%) translateY(-16px);
  z-index: 3000; padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 600;
  color: white; box-shadow: 0 8px 24px rgba(0,0,0,0.18); opacity: 0;
  transition: all 0.4s ease; pointer-events: none;
}
.form-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.form-toast.success { background: var(--success); }
.form-toast.error { background: var(--danger); }

/* 语言切换下拉 */
.lang-select {
  padding: 6px 10px; font-size: 13px; border-radius: 6px;
  border: 1px solid var(--primary); color: var(--primary);
  background: transparent; cursor: pointer; margin-left: 8px;
  outline: none; font-weight: 500;
}
.lang-select:hover { background: rgba(26,86,219,0.06); }

/* Banner 多图轮播增强 */
.hero-slide { background-size: cover; background-position: center; }

/* ===== 自适应增强 + 图片兜底(2026-09-18) ===== */
img { max-width: 100%; height: auto; }
/* Hero 改为 img 背景层（失效时全局JS自动切占位图） */
.hero-slide .hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::before { z-index: 1; }

@media (max-width: 768px) {
  .nav-inner { padding: 0 16px; }
  .nav-logo img { max-height: 34px; }
  .nav-cta { gap: 8px; }
  .hero-content { padding: 100px 20px 60px; }
  .hero-stats { gap: 16px; padding-top: 28px; }
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 40px; }
  .about-image img, .product-detail-image img { height: 260px; }
  .case-overlay h3 { font-size: 17px; }
  .case-overlay p { font-size: 13px; }
  .news-detail-header h1 { font-size: 24px; }
  .news-detail-content { font-size: 15px; }
  .breadcrumb { padding-top: 84px; }
  .float-contact { right: 12px; bottom: 12px; gap: 8px; }
  .lang-select { max-width: 116px; font-size: 12px; margin-left: 4px; padding: 5px 6px; }
  .footer-bottom { flex-direction: column; gap: 4px; text-align: center; }
  .contact-info { font-size: 14px; }
  .carousel-main { aspect-ratio: 4/3; }
  .news-detail-image img { max-height: 300px; width: 100%; object-fit: cover; }
  .news-detail-nav { flex-direction: column; gap: 10px; }
  .pagination { flex-wrap: wrap; gap: 6px; }
}

@media (max-width: 480px) {
  .hero { min-height: auto; }
  .hero h1 { font-size: 28px; }
  .hero-subtitle { font-size: 15px; margin-bottom: 24px; }
  .hero-badge { font-size: 12px; padding: 6px 12px; margin-bottom: 16px; }
  .hero-buttons { gap: 10px; margin-bottom: 36px; }
  .hero-buttons .btn { padding: 10px 18px; font-size: 14px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .hero-stat .num { font-size: 26px; }
  .section-title { font-size: 24px; }
  .section-desc { font-size: 15px; }
  .about-features { grid-template-columns: 1fr; }
  .product-card-body h3 { font-size: 16px; }
  .product-card-body p { font-size: 14px; }
  .case-overlay { padding: 14px; }
  .news-detail-image img { max-height: 240px; }
  .pagination a, .pagination span { padding: 6px 12px; font-size: 13px; }
  .cta-section h2 { font-size: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; font-size: 13px; }
}

/* ===== 社交平台悬浮按钮（抖音/1688/中国制造网） ===== */
.social-float { position: fixed; right: 16px; bottom: 140px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.sf-item { position: relative; }
.sf-btn {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18); transition: transform .25s; position: relative;
}
.sf-btn:hover { transform: scale(1.08); }
.sf-douyin { background: #111; }
.sf-1688 { background: #ff6a00; }
.sf-mic { background: #d9001b; }
.sf-label {
  position: absolute; right: 58px; top: 50%; transform: translateY(-50%) translateX(8px);
  background: #1f2937; color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: all .25s;
}
.sf-btn:hover .sf-label, .sf-item:hover .sf-label { opacity: 1; transform: translateY(-50%) translateX(0); }
.sf-qr {
  position: absolute; right: 60px; top: 50%; transform: translateY(-50%) translateX(10px);
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15); text-align: center; opacity: 0; pointer-events: none;
  transition: all .25s; white-space: nowrap;
}
.sf-qr img { width: 130px; height: 130px; object-fit: contain; display: block; }
.sf-qr span { display: block; margin-top: 6px; font-size: 12px; color: #374151; font-weight: 500; }
.sf-item:hover .sf-qr { opacity: 1; transform: translateY(-50%) translateX(0); }