/*
Theme Name: 瑞普营养强化主题
Theme URI: https://example.com/
Description: 基于郑州瑞普生物工程有限公司官网复刻的 WordPress 主题，支持导航菜单、自定义文字、Logo 与图片设置。
Version: 1.0.6
Text Domain: ruipu-theme
*/

:root {
  --brand: #0d865c;
  --brand-light: #14a36e;
  --brand-dark: #0a6b47;
  --brand-gradient: linear-gradient(135deg, #0d865c 0%, #14a36e 100%);
  --text-primary: #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-muted: #8a8a8a;
  --bg-primary: #ffffff;
  --bg-secondary: #f7f9f8;
  --bg-soft: #f0f7f4;
  --border-color: #e5e5e5;
  --border-light: #f0f0f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-primary: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --font-heading: "PingFang SC", "Microsoft YaHei", sans-serif;
  --container: 1200px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--bg-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.container {
  width: min(var(--container), calc(100% - var(--gutter)));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.brand img {
  height: 52px;
  width: auto;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(13, 134, 92, 0.3);
}

.brand-text strong {
  display: block;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.brand-text small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.25s ease;
  position: relative;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand);
}

.nav-item.has-dropdown .nav-link::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--text-muted);
  margin-left: 6px;
  transition: transform 0.25s ease;
}

.nav-item.has-dropdown:hover .nav-link::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}

.nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--bg-soft);
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  transition: all 0.25s ease;
}

.lang-switch:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.search-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: 50%;
  transition: all 0.25s ease;
}

.search-btn:hover {
  background: var(--bg-soft);
  color: var(--brand);
}

.search-btn svg {
  width: 18px;
  height: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 134, 92, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 134, 92, 0.45);
}

.btn-outline {
  background: #fff;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.hero-section {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9f8 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 580px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-highlights li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.hero-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #e8f5f0 0%, #d1ebe2 100%);
  aspect-ratio: 4/3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-section {
  padding: 40px 0;
  background: var(--bg-primary);
}

.carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex-shrink: 0;
  width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.carousel-placeholder {
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f7f4 0%, #e8f5f0 100%);
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 600;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--brand);
  color: #fff;
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot.active {
  background: var(--brand);
  width: 28px;
  border-radius: 6px;
}

.section {
  padding: 60px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-heading p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.intro-card {
  padding: 32px;
}

.intro-card h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.intro-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.media-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.media-visual {
  flex: 1;
  border-radius: var(--radius-lg);
  background: var(--brand-gradient);
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.media-visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.media-note {
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
}

.media-note strong {
  display: block;
  color: var(--brand);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.media-note ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.media-note li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.media-note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.tech-card {
  text-align: center;
  padding: 32px 24px;
}

.tech-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f5f0 0%, #d1ebe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
  transform: scale(1.05);
}

.tech-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.tech-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.tech-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--brand);
  font-size: 0.9rem;
}

.tech-card a::after {
  content: "→";
  transition: transform 0.2s ease;
}

.tech-card a:hover::after {
  transform: translateX(4px);
}

.product-card {
  text-align: center;
  padding-bottom: 24px;
}

.product-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg-soft);
  aspect-ratio: 4/3;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.product-card a {
  font-weight: 600;
  color: var(--brand);
  font-size: 0.9rem;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.solution-card {
  padding: 32px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.accent-card {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
}

.accent-card h2,
.accent-card p,
.accent-card li {
  color: rgba(255, 255, 255, 0.95);
}

.accent-card h2 {
  color: #fff;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-list li::after {
  content: "✓";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: #fff;
  font-weight: 700;
}

.accent-card .check-list li::before {
  background: rgba(255, 255, 255, 0.25);
}

.accent-card .check-list li::after {
  color: #fff;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  min-height: 100px;
  transition: all 0.25s ease;
}

.partner-item:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(13, 134, 92, 0.1);
}

.partner-item img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
}

.partner-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
}

.contact-card {
  padding: 32px;
}

.contact-card h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.98rem;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  color: var(--brand);
  min-width: 50px;
}

.contact-list span {
  color: var(--text-secondary);
}

.form-card {
  padding: 32px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 134, 92, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.site-footer {
  background: #0f1d18;
  color: #e8f5f0;
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-brand .brand-text small {
  color: #8fa8a0;
}

.site-footer p {
  color: #b3c9c0;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.site-footer h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer li {
  font-size: 0.92rem;
}

.site-footer a {
  color: #b3c9c0;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--brand-light);
}

.footer-copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8fa8a0;
  font-size: 0.88rem;
}

.float-bar {
  position: fixed;
  z-index: 50;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 50;
}

.float-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--brand-gradient);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
  position: relative;
}

.float-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.float-item svg {
  width: 22px;
  height: 22px;
}

.float-item span {
  display: none;
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.85rem;
  border-radius: 8px;
  white-space: nowrap;
}

.float-item:hover span {
  display: block;
}

.float-item span::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid rgba(0, 0, 0, 0.8);
}

.float-chat {
  position: relative;
}

.chat-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  background: #ff4757;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.3);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 强制覆盖主题隐藏样式，按钮常驻显示 */
#scrollTopBtn {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  margin-top: 8px !important;
}

/* 鼠标悬浮动效，和其他悬浮按钮风格一致 */
#scrollTopBtn:hover {
  transform: translateY(-2px) !important;
}

/* 确保悬浮栏层级足够，不被页面内容遮挡 */
#floatBar {
  z-index: 99 !important;
}

.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 150px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 2000;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-content {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-lg);
  width: min(600px, 90%);
  box-shadow: var(--shadow-lg);
}

.search-content input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1.1rem;
}

.search-content input:focus {
  outline: none;
  border-color: var(--brand);
}

.close-search {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .nav-menu {
    gap: 0;
  }
  
  .nav-link {
    padding: 12px 14px;
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .section-grid,
  .solutions-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .hero-copy h1 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }
  
  .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s;
  background: #ffffff;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 134, 92, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--brand-gradient);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.contact-form .submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 134, 92, 0.3);
}

.contact-form .submit-btn:active {
  transform: translateY(0);
}


.modal-content {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  padding-bottom: 80px;
}

.modal-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.modal-content h3 {
  position: sticky;
  top: 0;
  background: #ffffff;
  margin: 0;
  padding: 24px 24px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
  z-index: 1;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s;
  background: #ffffff;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 134, 92, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--brand);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.submit-btn:hover:not(:disabled) {
  background: var(--brand-dark);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


/* 微信咨询弹窗样式 */
#wechatDialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wechat-dialog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.wechat-dialog-content {
  position: relative;
  background: white;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: wechatDialogSlideIn 0.3s ease;
}

@keyframes wechatDialogSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wechat-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 30px;
  color: #999;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.wechat-dialog-close:hover {
  background: #f5f5f5;
  color: #666;
}

.wechat-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.wechat-dialog-content h3 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 20px;
}

.wechat-id {
  font-size: 24px;
  color: #07c160;
  font-weight: bold;
  padding: 15px 20px;
  background: #f0f9f4;
  border-radius: 8px;
  margin: 0 0 20px 0;
  cursor: pointer;
  transition: all 0.2s;
  user-select: all;
}

.wechat-id:hover {
  background: #e8f5ec;
  transform: scale(1.02);
}

.copy-hint {
  animation: fadeIn 0.3s ease;
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wechat-copy-btn {
  background: #07c160;
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.wechat-copy-btn:hover {
  background: #06ad56;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.4);
}

.wechat-copy-btn:active {
  transform: translateY(0);
}

.wechat-active-btn {
  background: #1aad19;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  margin-top: 10px;
}

.wechat-active-btn:hover {
  background: #129611;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 173, 25, 0.4);
}

/* 响应式适配 */
@media (max-width: 768px) {
  .wechat-dialog-content {
    padding: 30px;
    margin: 20px;
  }
  
  .wechat-icon {
    font-size: 48px;
  }
  
  .wechat-dialog-content h3 {
    font-size: 18px;
  }
  
  .wechat-id {
    font-size: 20px;
    padding: 12px 16px;
  }
}


/* 微信按钮样式 */
.float-bar .float-item#wechatBtn {
  cursor: pointer;
  transition: all 0.3s ease;
}

.float-bar .float-item#wechatBtn:hover {
  background: #07c160 !important;
  color: white !important;
  transform: translateX(-3px);
  box-shadow: 0 6px 20px rgba(7, 193, 96, 0.4);
}

.float-bar .float-item#wechatBtn:hover svg {
  stroke: white !important;
}

.float-bar .float-item#wechatBtn:active {
  transform: translateX(-3px) scale(0.98);
}


/* 在线留言按钮样式 */
.float-bar .float-item#messageBtn {
  cursor: pointer;
  transition: all 0.3s ease;
}

.float-bar .float-item#messageBtn:hover {
  background: #007bff !important;
  color: white !important;
  transform: translateX(-3px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.float-bar .float-item#messageBtn:hover svg {
  stroke: white !important;
}

.float-bar .float-item#messageBtn:active {
  transform: translateX(-3px) scale(0.98);
}
/* 模态框样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.modal-close svg {
  width: 24px;
  height: 24px;
  stroke: #999;
  transition: stroke 0.3s;
}

.modal-close:hover svg {
  stroke: #333;
}


/* ========== 移动端悬浮栏：全设备像素级对齐版 ========== */
@media (max-width: 992px) {
  /* 父容器：固定宽度+严格flex规则，对齐基准全局统一 */
  html body #floatBar.float-bar {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    position: fixed !important;
    right: 12px !important;
    top: 50% !important;
    -webkit-transform: translateY(-50%) !important;
    -ms-transform: translateY(-50%) !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: start !important;
    -ms-flex-pack: start !important;
    justify-content: flex-start !important;
    width: 44px !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 所有按钮：全标签统一盒模型，尺寸严格一致 */
  html body #floatBar .float-item {
    -webkit-box-sizing: border-box !important;
    box-sizing: border-box !important;
    width: 44px !important;
    height: 44px !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    -ms-flex-negative: 0 !important;
    flex-shrink: 0 !important;
    -webkit-box-flex: 0 !important;
    -ms-flex-positive: 0 !important;
    flex-grow: 0 !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    line-height: 1 !important;
    font-size: 0 !important;
    background: #059669 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    position: static !important;
    float: none !important;
  }

  /* 最后一个按钮取消下边距 */
  html body #floatBar .float-item:last-child {
    margin-bottom: 0 !important;
  }

  /* 隐藏按钮文字 */
  html body #floatBar .float-item span {
    display: none !important;
  }

  /* 回到顶部按钮：强制覆盖主题原生定位样式 */
  html body #floatBar #scrollTopBtn.float-item.scroll-top {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
  }

  /* 图标统一：块级居中 */
  html body #floatBar .float-item svg {
    -webkit-box-sizing: border-box !important;
    box-sizing: border-box !important;
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    stroke: #ffffff !important;
    pointer-events: none !important;
  }
}

/* 超小屏手机适配 */
@media (max-width: 480px) {
  html body #floatBar.float-bar {
    right: 8px !important;
    width: 40px !important;
  }
  html body #floatBar .float-item {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 6px !important;
  }
  html body #floatBar .float-item svg {
    width: 16px !important;
    height: 16px !important;
  }
}

/* 点击无黑框 */
#scrollTopBtn:focus,
#scrollTopBtn:active {
  outline: none !important;
  box-shadow: none !important;
}



/* ========== 全局层级规范：弹窗永远在悬浮栏之上 ========== */
/* 右侧悬浮栏：降低到合理层级 */
#floatBar.float-bar {
  z-index: 100 !important;
}

/* 所有弹窗+遮罩：统一高层级 */
.modal-overlay,
#messageModal,
#wechatDialog,
.live-chat-container,
[class*="chat-modal"],
[class*="chat-window"] {
  z-index: 10000 !important;
}

/* 弹窗遮罩层同步层级 */
.modal-overlay::before,
#wechatDialog {
  z-index: 10000 !important;
}

/* ========== 电脑端：留言弹窗布局优化 ========== */
@media (min-width: 992px) {
  #messageModal .modal-content {
    width: 480px !important;
    max-width: 90vw !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
  }

  #messageModal .modal-body {
    padding: 20px 32px 32px !important;
  }

  #messageModal .form-group {
    margin-bottom: 18px !important;
  }

  #messageModal .form-group input,
  #messageModal .form-group textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
  }

  #messageModal .submit-btn {
    width: 100% !important;
    padding: 12px !important;
    border-radius: 8px !important;
    margin-top: 8px !important;
  }
}

/* ========== 电脑端：在线咨询弹窗布局优化 ========== */
@media (min-width: 992px) {
  .live-chat-container,
  [class*="chat-window"],
  [class*="chat-modal"] {
    width: 420px !important;
    height: 620px !important;
    max-height: 85vh !important;
    right: 80px !important;
    bottom: 30px !important;
    position: fixed !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
  }

  /* 聊天消息区域自适应高度 */
  .chat-messages,
  .chat-content {
    height: calc(100% - 130px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 16px !important;
    padding-bottom: 120px !important;
    box-sizing: border-box !important;
  }

  /* 输入框区域固定在底部 */
  .chat-input-area {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 16px !important;
    border-top: 1px solid #eee !important;
    background: #fff !important;
  }
}

/* ========== 移动端弹窗适配 ========== */
@media (max-width: 768px) {
  #messageModal .modal-content {
    width: 90vw !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
}



/* ========== 强制层级规范：确保浮窗永远在最底层 ========== */
/* 浮窗层级：最低 */
#floatBar,
#floatBar.float-bar,
.float-bar,
html body #floatBar.float-bar,
html body #floatBar {
  z-index: 50 !important;
}

/* 弹窗层级：最高 */
.modal-overlay,
#messageModal,
#wechatDialog,
.search-modal,
.chat-popup,
.live-chat-container,
[class*="modal"],
[class*="popup"],
[class*="dialog"] {
  z-index: 10000 !important;
}

/* ========== 移动端菜单样式 ========== */
@media (max-width: 768px) {
  /* 移动端隐藏header-actions中的按钮，只显示菜单按钮 */
  .header-actions .lang-switch,
  .header-actions .search-btn,
  .header-actions .header-btn {
    display: none !important;
  }
  
  /* 显示菜单按钮 */
  .nav-toggle {
    display: flex !important;
    position: relative !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }
  
  /* 移动端菜单样式 - 默认隐藏 */
  .site-nav {
    display: none;
    position: fixed !important;
    top: 80px !important;
    left: 12px !important;
    right: 12px !important;
    width: calc(100% - 24px) !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    z-index: 100000 !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    max-height: calc(100vh - 100px) !important;
    height: auto !important;
  }

  /* 菜单展开状态 */
  .site-nav.is-active {
    display: block !important;
  }

  /* 菜单列表 */
  .site-nav .nav-menu {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    gap: 0 !important;
  }

  /* 菜单项 */
  .site-nav .nav-item {
    width: 100% !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid #eee !important;
    position: relative !important;
  }

  .site-nav .nav-item:last-child {
    border-bottom: none !important;
  }

  /* 菜单链接 */
  .site-nav .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #333 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
    position: relative !important;
    text-decoration: none !important;
  }

  .site-nav .nav-link:hover,
  .site-nav .nav-link:active {
    background: #f5f5f5 !important;
    color: #007bff !important;
  }

  /* 下拉箭头 */
  .site-nav .nav-item.has-dropdown > .nav-link::after {
    content: '' !important;
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) rotate(45deg) !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 2px solid #666 !important;
    border-bottom: 2px solid #666 !important;
    border-left: none !important;
    border-top: none !important;
    transition: transform 0.3s ease !important;
    display: block !important;
  }

  .site-nav .nav-item.has-dropdown.active > .nav-link::after {
    transform: translateY(-50%) rotate(225deg) !important;
  }

  /* 下拉子菜单 - 默认隐藏 */
  .site-nav .dropdown-menu {
    display: none !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    list-style: none !important;
    background: #f8f9fa !important;
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    border-left: 2px solid #007bff !important;
  }

  /* 下拉子菜单 - 展开状态 */
  .site-nav .nav-item.has-dropdown.active .dropdown-menu {
    display: block !important;
  }

  /* 子菜单项 */
  .site-nav .dropdown-menu li {
    padding-left: 20px !important;
  }

  /* 子菜单链接 */
  .site-nav .dropdown-menu li a {
    display: block !important;
    padding: 12px 20px 12px 40px !important;
    font-size: 14px !important;
    color: #666 !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    border-left: 2px solid transparent !important;
  }

  .site-nav .dropdown-menu li a:hover,
  .site-nav .dropdown-menu li a:active {
    background: #f5f5f5 !important;
    color: #007bff !important;
    border-left-color: #007bff !important;
  }
}


.footer-copyright a {
    padding-bottom: 2px; /* 调整下划线与文字的间距，避免贴太紧 */
}
.footer-copyright a:hover {
    text-decoration: none !important; /* 取消原生细下划线 */
    border-bottom: 2px solid #fff !important; /* 2px粗白色下划线，更醒目 */
}
