/* ============================================================
   宁波实钧知识产权代理事务所 · 企业官网
   设计语言：腾讯 TDesign (https://tdesign.tencent.com)
   风格：简约 · 大气
   ============================================================ */

:root {
  /* TDesign 品牌色 */
  --td-brand: #0052d9;
  --td-brand-hover: #266fe8;
  --td-brand-active: #003cab;
  --td-brand-light: #ecf2fe;
  --td-brand-50: #f2f7ff;

  /* 功能色 */
  --td-success: #2ba471;
  --td-warning: #e37318;
  --td-danger: #d54941;

  /* 文字色 */
  --td-text-1: rgba(0, 0, 0, 0.9);
  --td-text-2: rgba(0, 0, 0, 0.6);
  --td-text-3: rgba(0, 0, 0, 0.4);
  --td-text-inverse: #ffffff;

  /* 边框 / 背景 */
  --td-border: #e7e7e7;
  --td-border-light: #f0f0f0;
  --td-bg-page: #f5f7fa;
  --td-bg-container: #ffffff;
  --td-bg-secondary: #f3f5f9;

  /* 圆角 */
  --td-radius-s: 4px;
  --td-radius-m: 8px;
  --td-radius-l: 12px;
  --td-radius-xl: 16px;

  /* 阴影 */
  --td-shadow-1: 0 1px 10px rgba(0, 0, 0, 0.05);
  --td-shadow-2: 0 4px 24px rgba(0, 82, 217, 0.1);
  --td-shadow-3: 0 8px 30px rgba(0, 0, 0, 0.12);

  /* 字体 */
  --td-font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --td-container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--td-font);
  color: var(--td-text-1);
  background: var(--td-bg-page);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--td-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== 内页 Banner ===================== */
.page-hero {
  background: linear-gradient(135deg, #0040b0, #0052d9 60%, #2b6fe0);
  color: #fff;
  padding: 60px 0 66px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  border-radius: 50%;
}
.page-hero .crumb {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 14px;
}
.page-hero .crumb a:hover {
  text-decoration: underline;
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}
.page-hero p {
  opacity: 0.9;
  font-size: 16px;
  max-width: 700px;
}

/* ===================== 顶部导航 ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--td-border-light);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--td-text-1);
  white-space: nowrap;
}

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

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 17px;
  font-weight: 700;
}

.brand span b {
  font-weight: 400;
  font-size: 12px;
  color: var(--td-text-2);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-menu a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--td-radius-m);
  color: var(--td-text-2);
  font-size: 15px;
  transition: all 0.2s ease;
}

.nav-menu a:hover {
  color: var(--td-brand);
  background: var(--td-brand-light);
}

.nav-menu a.active {
  color: var(--td-brand);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--td-brand);
  font-weight: 600;
  font-size: 15px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--td-text-1);
  margin: 4px 0;
  border-radius: 2px;
}

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 26px;
  border-radius: var(--td-radius-m);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--td-brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--td-brand-hover);
  box-shadow: var(--td-shadow-2);
}

.btn-outline {
  background: transparent;
  color: var(--td-brand);
  border-color: var(--td-brand);
}

.btn-outline:hover {
  background: var(--td-brand-light);
}

.btn-light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  background: #fff;
  color: var(--td-text-1);
  border-color: var(--td-border);
}

.btn-ghost:hover {
  border-color: var(--td-brand);
  color: var(--td-brand);
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0040b0 0%, #0052d9 45%, #2b6fe0 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -140px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 88px 0 96px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 .en {
  display: block;
  font-size: 18px;
  font-weight: 400;
  opacity: 0.82;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

.hero p.lead {
  font-size: 17px;
  line-height: 1.8;
  opacity: 0.92;
  max-width: 520px;
  margin-bottom: 32px;
}

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

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--td-radius-xl);
  padding: 26px;
  backdrop-filter: blur(6px);
}

.hero-card h3 {
  font-size: 16px;
  margin-bottom: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-services .hs-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--td-radius-m);
  padding: 12px 14px;
  font-size: 14px;
  transition: background 0.2s;
}

.hero-services .hs-item:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-services .hs-item svg {
  flex: none;
  width: 22px;
  height: 22px;
}

/* ===================== 通用区块 ===================== */
section.block {
  padding: 78px 0;
}

.bg-white {
  background: #fff;
}

.bg-page {
  background: var(--td-bg-page);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-head .eyebrow {
  display: inline-block;
  color: var(--td-brand);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--td-text-1);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--td-text-2);
  font-size: 16px;
}

/* ===================== 数据条 ===================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: #fff;
  border-radius: var(--td-radius-xl);
  padding: 40px 32px;
  box-shadow: var(--td-shadow-1);
  margin-top: -56px;
  position: relative;
  z-index: 5;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 18%;
  height: 64%;
  width: 1px;
  background: var(--td-border);
}

.stat-num {
  font-size: 40px;
  font-weight: 700;
  color: var(--td-brand);
  line-height: 1.1;
}

.stat-label {
  color: var(--td-text-2);
  font-size: 15px;
  margin-top: 6px;
}

/* ===================== 服务卡片 ===================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.service-card {
  background: #fff;
  border: 1px solid var(--td-border-light);
  border-radius: var(--td-radius-l);
  padding: 30px 26px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--td-shadow-2);
  border-color: transparent;
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--td-radius-m);
  background: var(--td-brand-light);
  color: var(--td-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 19px;
  margin-bottom: 4px;
}

.service-card .svc-sub {
  color: var(--td-brand);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--td-text-2);
  font-size: 14px;
  flex: 1;
}

.service-card .svc-link {
  margin-top: 18px;
  color: var(--td-brand);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===================== 关于我们 ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-img {
  border-radius: var(--td-radius-xl);
  overflow: hidden;
  box-shadow: var(--td-shadow-2);
}

.about-text h2 {
  font-size: 30px;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--td-text-2);
  margin-bottom: 16px;
  font-size: 16px;
}

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.value-item {
  background: var(--td-bg-secondary);
  border-radius: var(--td-radius-m);
  padding: 16px 12px;
  text-align: center;
}

.value-item .v-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--td-brand);
}

.value-item .v-label {
  font-size: 14px;
  color: var(--td-text-2);
  margin-top: 4px;
}

/* ===================== 客户评价 ===================== */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--td-border-light);
  border-radius: var(--td-radius-l);
  padding: 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card .t-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--td-brand);
  margin-bottom: 12px;
}

.testimonial-card p {
  color: var(--td-text-2);
  font-size: 14px;
  flex: 1;
}

.testimonial-card .t-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--td-border-light);
}

.t-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--td-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.t-name {
  font-size: 14px;
  font-weight: 600;
}

/* ===================== 服务详情（产品服务页） ===================== */
.svc-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
}

.svc-detail:nth-child(even) .svc-media {
  order: 2;
}

.svc-media {
  border-radius: var(--td-radius-l);
  overflow: hidden;
  box-shadow: var(--td-shadow-1);
}

.svc-detail h3 {
  font-size: 24px;
  margin-bottom: 6px;
}

.svc-detail .svc-tag {
  color: var(--td-brand);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
  display: inline-block;
}

.svc-detail p {
  color: var(--td-text-2);
  font-size: 16px;
}

/* 步骤条 */
.steps-wrap {
  background: #fff;
  border-radius: var(--td-radius-xl);
  padding: 40px 32px;
  box-shadow: var(--td-shadow-1);
}

/* 自定义服务流程 stepper */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--td-border);
}
.p-step {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 10px;
}
.p-step .p-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--td-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  margin: 0 auto 14px;
  border: 4px solid #fff;
  box-shadow: var(--td-shadow-1);
}
.p-step h4 {
  font-size: 15px;
  margin-bottom: 6px;
}
.p-step p {
  font-size: 13px;
  color: var(--td-text-2);
}
@media (max-width: 768px) {
  .process {
    grid-template-columns: 1fr 1fr;
    gap: 26px 0;
  }
  .process::before {
    display: none;
  }
}

/* ===================== 联系我们 ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--td-border-light);
  border-radius: var(--td-radius-l);
  padding: 20px 22px;
  align-items: flex-start;
}

.contact-item .c-icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--td-radius-m);
  background: var(--td-brand-light);
  color: var(--td-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item .c-icon svg {
  width: 22px;
  height: 22px;
}

.contact-item .c-label {
  font-size: 13px;
  color: var(--td-text-3);
}

.contact-item .c-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--td-text-1);
  word-break: break-all;
}

.contact-item a.c-value:hover {
  color: var(--td-brand);
}

.map-box {
  border-radius: var(--td-radius-l);
  overflow: hidden;
  border: 1px solid var(--td-border-light);
  margin-top: 16px;
  box-shadow: var(--td-shadow-1);
}

.form-card {
  background: #fff;
  border-radius: var(--td-radius-xl);
  padding: 36px 32px;
  box-shadow: var(--td-shadow-1);
}

.form-card h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.form-card .form-sub {
  color: var(--td-text-2);
  margin-bottom: 24px;
}

.form-row {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: var(--td-text-2);
  margin-bottom: 8px;
}

.form-label .req {
  color: var(--td-danger);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius-m);
  font-size: 15px;
  font-family: inherit;
  color: var(--td-text-1);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--td-brand);
  box-shadow: 0 0 0 3px var(--td-brand-light);
}

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

/* ===================== 页脚 ===================== */
.site-footer {
  background: #0d1b33;
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 36px;
}

.footer-brand span {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

/* ===================== CTA 横幅 ===================== */
.cta-banner {
  background: linear-gradient(135deg, #0040b0, #0052d9);
  border-radius: var(--td-radius-xl);
  padding: 52px 48px;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  font-size: 30px;
  margin-bottom: 14px;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 28px;
  font-size: 16px;
}

/* ===================== 回到顶部 ===================== */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--td-shadow-3);
  border: 1px solid var(--td-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--td-brand);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
  z-index: 90;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
}

/* ===================== TDesign 组件兜底（CDN 未加载时仍可读） ===================== */
t-button {
  font-family: inherit;
}
t-button:not(:defined) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: 8px;
  font-weight: 600;
  background: var(--td-brand);
  color: #fff;
}

/* ===================== 响应式 ===================== */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 64px 0 72px;
  }
  .hero-card {
    display: none;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid,
  .svc-detail,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .svc-detail:nth-child(even) .svc-media {
    order: 0;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 12px;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-phone {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 24px 20px;
    box-shadow: var(--td-shadow-1);
    gap: 2px;
  }
  .nav-menu.open a {
    width: 100%;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero h1 .en {
    font-size: 15px;
  }
  .section-head h2 {
    font-size: 26px;
  }
  .grid-3,
  .grid-2,
  .values,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .values {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .cta-banner {
    padding: 36px 22px;
  }
  section.block {
    padding: 56px 0;
  }
}
