/* 华百康科技官网 - 响应式样式 */
:root {
  --color-primary: #0d6b5c;
  --color-primary-dark: #094d43;
  --color-primary-light: #e8f5f3;
  --color-accent: #1a9d8a;
  --color-text: #1a1a2e;
  --color-text-muted: #5c5c6d;
  --color-bg: #fafbfc;
  --color-white: #fff;
  --shadow: 0 4px 24px rgba(13, 107, 92, 0.08);
  --radius: 12px;
  --header-h: 72px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 107, 92, 0.1);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
}

.site-header .logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(180px, 52vw);
  object-fit: contain;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

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

.nav-main a {
  color: var(--color-text);
  font-weight: 500;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-primary-dark);
  border-radius: 2px;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, #0d6b5c 0%, #1a9d8a 45%, #2bb8a3 100%);
  color: white;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 50%;
  height: 140%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.3;
  margin: 0 0 16px;
  font-weight: 700;
  max-width: 720px;
}

.hero-lead {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 640px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: white;
  color: var(--color-primary-dark);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  color: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-white);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
  color: var(--color-primary-dark);
}

.section-title p {
  color: var(--color-text-muted);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(13, 107, 92, 0.06);
  height: 100%;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: var(--color-primary-dark);
}

.card .price {
  color: var(--color-accent);
  font-weight: 600;
  margin-top: 16px;
  font-size: 0.95rem;
}

.card ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--color-text-muted);
}

.card ul li {
  margin-bottom: 6px;
}

/* Tags / clients */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Case study */
.case-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-primary);
}

.case-card h3 {
  margin: 0 0 12px;
  color: var(--color-primary-dark);
}

.case-card p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Client case cards */
.client-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.client-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(13, 107, 92, 0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 107, 92, 0.12);
}

.client-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
}

.client-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info dl {
  margin: 0;
}

.contact-info dt {
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-top: 20px;
}

.contact-info dt:first-child {
  margin-top: 0;
}

.contact-info dd {
  margin: 6px 0 0;
  color: var(--color-text-muted);
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-primary-light);
  border-color: var(--color-primary);
}

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

/* WeChat QR on contact page */
.wechat-qr-card {
  text-align: center;
}

.wechat-qr-hint {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 24px;
  line-height: 1.6;
}

.wechat-qr-wrap {
  display: inline-flex;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(13, 107, 92, 0.12);
  box-shadow: 0 4px 16px rgba(13, 107, 92, 0.08);
}

.wechat-qr-img {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.wechat-qr-note {
  margin: 16px 0 0;
  font-size: 0.875rem;
  color: var(--color-primary-dark);
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: #0f2e2a;
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover {
  color: white;
}

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

.footer-nav li {
  margin-bottom: 8px;
}

.copyright {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: white;
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.page-hero p {
  margin: 0;
  opacity: 0.9;
}

.breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 8px;
  opacity: 0.85;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.stat-item {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

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

/* Mobile */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .client-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-main {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .nav-main.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-main li {
    border-bottom: 1px solid #eee;
  }

  .nav-main a {
    display: block;
    padding: 14px 0;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .section {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .client-cases-grid {
    grid-template-columns: 1fr;
  }
}