/* ===== 共腾知识产权 · 设计系统 ===== */
:root {
  --primary: #00468e;
  --primary-light: #0066cc;
  --accent: #00a651;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --text: #334155;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --max: 1140px;
  --header-h: 72px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 70, 142, 0.25);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ===== 导航 ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img { height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 36px; }

.site-nav a {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.site-nav a:hover,
.site-nav a.active { color: var(--primary); }

.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-phone svg { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  padding: calc(var(--header-h) + 80px) 0 100px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #00468e 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(0,166,81,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 13px;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(8px);
}

.hero-card:nth-child(2) { margin-top: 32px; }
.hero-card:nth-child(3) { margin-top: -32px; }

.hero-card-icon {
  width: 44px; height: 44px;
  background: rgba(0,166,81,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
}

.hero-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.hero-card p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.5; }

/* ===== Stats ===== */
.stats-bar {
  background: var(--bg);
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-num.stat-text {
  font-size: 26px;
  letter-spacing: 0.05em;
}

.stat-num.stat-phone {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.stat-label { font-size: 14px; color: var(--text-muted); }

/* ===== Section 通用 ===== */
.section { padding: 100px 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.section-alt { background: var(--bg-alt); }

.hero[id] { scroll-margin-top: var(--header-h); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== 痛点 ===== */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.problem-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 20px;
  transition: all var(--transition);
}

.problem-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.problem-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.problem-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== 服务卡片 ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.services-grid-home {
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.service-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.service-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.service-card-title h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.service-card > h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card .outcome {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.service-card-title .outcome {
  margin-bottom: 0;
}

.service-card > p:not(.outcome):not(.service-desc) {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

.service-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  margin: 0;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.service-tags span {
  font-size: 12px;
  padding: 5px 12px;
  background: var(--bg-alt);
  color: var(--text-muted);
  border-radius: 20px;
}

.section-footer-cta {
  text-align: center;
  margin-top: 48px;
}

.case-outcome {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ===== 优势 / 特点 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 70, 142, 0.18);
}

.feature-item h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 240px;
  margin: 0 auto;
}

/* ===== 案例 ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cases-grid-home {
  grid-template-columns: repeat(2, 1fr);
}

.cases-grid-home .case-img {
  height: 160px;
  background: var(--primary);
  overflow: hidden;
}

.cases-grid-home .case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cases-grid-home .case-body p {
  font-size: 14px;
  line-height: 1.75;
}

.cases-grid-home .case-outcome {
  margin-top: 14px;
}

.case-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.case-img {
  height: 180px;
  overflow: hidden;
  background: var(--bg-alt);
}

.case-img img { width: 100%; height: 100%; object-fit: cover; }

.case-body { padding: 24px; }

.case-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0,70,142,0.08);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.case-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 10px;
}

.case-body p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ===== 客户 ===== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.client-logo {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  transition: all var(--transition);
}

.client-logo:hover { box-shadow: var(--shadow); }
.client-logo img {
  max-height: 88px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* ===== 团队 ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-align: center;
}

.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.team-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-alt);
}

.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.team-info { padding: 20px 16px; }

.team-info h3 { font-size: 18px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.team-info p { font-size: 13px; color: var(--text-muted); }

/* ===== 关于 ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.about-intro h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.about-intro .since {
  font-size: 72px;
  font-weight: 800;
  color: rgba(0,70,142,0.08);
  line-height: 1;
  margin-bottom: 24px;
}

.about-text p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ===== 联系 ===== */
.contact-section {
  padding: 100px 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-panel-main {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3d66 100%);
  color: #fff;
  padding: 56px 48px;
}

.contact-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}

.contact-panel-main h2 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.contact-panel-main > p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 420px;
}

.contact-phone-lg {
  display: block;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  transition: opacity var(--transition);
}

.contact-phone-lg:hover { opacity: 0.85; }

.contact-hours {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}

.contact-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-panel-main .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.contact-panel-main .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.9);
  color: var(--primary);
}

.contact-panel-side {
  background: #fff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.contact-info-item span,
.contact-info-item a {
  font-size: 15px;
  color: var(--dark);
  line-height: 1.6;
}

.contact-info-item a:hover { color: var(--primary); }

.contact-qr-row {
  display: flex;
  gap: 24px;
}

.contact-qr-box {
  text-align: center;
}

.contact-qr-box img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.contact-qr-box span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 页脚（浅色） ===== */
.site-footer-light {
  background: var(--bg-alt);
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer-line {
  text-align: center;
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
}

.footer-line-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 16px;
}

.footer-line-sub a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}

.footer-line-sub a:hover { color: var(--primary); }

.beian-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
}

/* ===== 浮动联系 ===== */
.float-contact {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

.float-btn:hover {
  background: var(--primary-light);
  transform: scale(1.08);
}

.float-btn.accent { background: var(--accent); }
.float-btn.accent:hover { background: #008f44; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .site-nav a.active::after { display: none; }

  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .header-cta .btn { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }

  .problems-grid,
  .services-grid,
  .cases-grid,
  .features-grid,
  .team-grid,
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .client-logo { min-height: 120px; padding: 24px; }
  .client-logo img { max-height: 72px; }

  .contact-panel { grid-template-columns: 1fr; }
  .contact-panel-main { padding: 40px 32px; }
  .contact-panel-side { padding: 32px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .section { padding: 60px 0; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; }

  .problems-grid,
  .services-grid,
  .cases-grid,
  .features-grid,
  .team-grid,
  .clients-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .stat-num.stat-phone { font-size: 18px; }
  .contact-section { padding: 60px 0; }
  .contact-qr-row { justify-content: center; }
  .footer-line-sub { flex-direction: column; gap: 8px; }
}
