:root {
  --bg: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff1f2;
  --accent: #f43f5e;
  --accent-ink: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: ui-serif, "Georgia", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--font-sans);
  -webkit-text-size-adjust: 100%;
}

.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

.corners-round {
  --radius: 16px;
  --radius-sm: 10px;
}

.corners-square {
  --radius: 4px;
  --radius-sm: 4px;
}

a {
  color: var(--accent);
  overflow-wrap: anywhere;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

/* Topbar */

.topbar {
  background: #fafafa;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 10px 0;
  font-size: 14px;
}

.topbar-info {
  min-width: 0;
  overflow-wrap: anywhere;
}

.topbar .btn.small {
  flex: 0 0 auto;
  padding: 6px 12px;
  font-size: 14px;
}

/* Header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.head-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  min-width: 0;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  flex: 1 1 0;
  min-width: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.anchor-nav {
  order: 3;
  display: flex;
  flex: 0 0 100%;
  width: 100%;
  gap: 14px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.anchor-nav a {
  flex: 0 0 auto;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
}

.anchor-nav a:hover {
  color: var(--ink);
}

.lang-switch {
  display: flex;
  flex: 0 1 auto;
  gap: 8px;
  min-width: 0;
  max-width: 45%;
  overflow-x: auto;
  padding: 2px 0;
  font-size: 14px;
  white-space: nowrap;
  scrollbar-width: thin;
}

.lang-switch a {
  flex: 0 0 auto;
  color: #4b5563;
}

.lang-switch a.on {
  color: var(--ink);
  font-weight: 700;
}

/* Buttons */

.btn {
  display: inline-block;
  max-width: 100%;
  padding: 10px 18px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  overflow-wrap: anywhere;
  transition: transform 0.06s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow);
}

.btn.ghost {
  background: transparent;
  color: #be123c;
  border-color: var(--accent);
}

.btn.ghost:hover {
  background: #fff1f2;
}

/* Sections */

.section {
  padding: 56px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-title {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 16px;
}

.section-head > * {
  min-width: 0;
}

.section-link {
  flex: 0 0 auto;
  color: #4b5563;
  font-size: 14px;
}

.sub-title {
  margin: 22px 0 12px;
  color: #4b5563;
  font-size: 18px;
}

.muted {
  color: #4b5563;
}

/* Hero */

.hero.plain .site-title,
.hero.split .site-title,
.hero.cover .site-title {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.site-tag {
  margin: 6px 0 14px;
  color: #4b5563;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.site-intro {
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}

.hero-cta {
  margin-top: 8px;
}

.hero.plain {
  background: linear-gradient(135deg, #fff1f2, #ffffff);
}

.hero.split .hero-in,
.about-in {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}

.hero-media {
  min-width: 0;
  max-width: 100%;
}

.hero-media img,
.about-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero.cover {
  position: relative;
  overflow: hidden;
}

.hero.cover .hero-bg img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero.cover .hero-overlay {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.hero.cover .hero-overlay .site-title,
.hero.cover .hero-overlay .site-tag {
  color: #ffffff;
}

.hero.cover::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  content: "";
}

/* Stats */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  min-width: 0;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-num {
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.stat-label {
  margin-top: 4px;
  color: #4b5563;
  font-size: 14px;
  overflow-wrap: anywhere;
}

/* About */

.about-text,
.about-media {
  min-width: 0;
  max-width: 100%;
}

.about-text .content {
  padding: 16px;
  background: var(--soft);
  border-radius: var(--radius);
}

/* Services, cases and cards */

.service-grid,
.case-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  min-width: 0;
}

.service,
.case,
.card {
  min-width: 0;
  max-width: 100%;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service img,
.case img,
.card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.card .thumb {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.card .thumb img {
  width: 100%;
  max-width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-title,
.case-title,
.card-title {
  margin: 6px 0 2px;
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.service-title a,
.case-title a,
.card-title a {
  overflow-wrap: anywhere;
}

.service-sub,
.case-sub,
.sub {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.service-sum,
.sum {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.service-cta {
  margin-top: auto;
}

.thumb {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--soft);
  border-radius: var(--radius);
}

.feature-icon {
  flex: 0 0 auto;
  font-size: 22px;
}

.feature-text {
  min-width: 0;
}

.feature-title {
  margin: 0 0 4px;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.feature-sum {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  overflow-wrap: anywhere;
}

/* Testimonials */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.testimonial {
  min-width: 0;
  margin: 0;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial .quote {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}

.testimonial .who {
  color: #4b5563;
  font-size: 14px;
  overflow-wrap: anywhere;
}

/* Team, honors and partners */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.member,
.honor,
.partner {
  min-width: 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.member {
  text-align: center;
}

.member-photo img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.member-name {
  margin-top: 8px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.member-role {
  color: #4b5563;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.honor-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.honor {
  margin: 0;
  text-align: center;
}

.honor img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: var(--radius-sm);
}

.honor figcaption {
  margin-top: 6px;
  color: #4b5563;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.partner {
  display: grid;
  place-items: center;
}

.partner a,
.partner img {
  width: 100%;
  max-width: 100%;
}

.partner img {
  height: 56px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
}

/* News */

.news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  min-width: 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-card-title {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.post-card-title a {
  color: var(--ink);
}

.post-card-meta {
  margin: 0;
  color: #4b5563;
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.post-card-sum {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.post-cat {
  color: #4b5563;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item,
.content details {
  min-width: 0;
  margin: 10px 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item > summary,
.content details > summary {
  position: relative;
  padding: 12px 38px 12px 14px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.faq-item > summary::-webkit-details-marker,
.content details > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after,
.content details > summary::after {
  position: absolute;
  top: 12px;
  right: 14px;
  color: #4b5563;
  content: "▾";
}

.faq-item[open] > summary::after,
.content details[open] > summary::after {
  content: "▴";
}

.faq-a {
  padding: 0 14px 14px;
  overflow-wrap: anywhere;
}

/* CTA */

.cta {
  background: var(--accent);
  color: var(--accent-ink);
}

.cta-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.cta-title {
  margin: 0 0 4px;
  color: var(--accent-ink);
  font-size: 26px;
  overflow-wrap: anywhere;
}

.cta-sum {
  margin: 0;
  color: #ffffff;
  overflow-wrap: anywhere;
}

/* Generic pages and article content */

.page {
  padding: 32px 0 52px;
}

.page-title {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.breadcrumbs {
  margin: 0 0 8px;
  color: #4b5563;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.lead {
  margin: 8px 0 12px;
  color: #374151;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.article-meta {
  margin-top: -6px;
  color: #4b5563;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.article,
.content {
  min-width: 0;
  max-width: 100%;
}

.content {
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.content h2 {
  margin: 22px 0 10px;
  font-size: 22px;
}

.content h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.content p {
  margin: 12px 0;
}

.content img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.content blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  background: #fff7f8;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.content ul,
.content ol {
  padding-left: 22px;
}

.content details > div,
.content details > p {
  padding: 0 12px 12px;
  overflow-wrap: anywhere;
}

/* Tables */

.content table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 16px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-spacing: 0;
  border-collapse: separate;
}

.content thead th {
  padding: 10px 12px;
  background: #fff5f6;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.content tbody td,
.content tbody th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.content tbody tr:nth-child(even) td {
  background: #fffafa;
}

.content tbody tr:last-child td {
  border-bottom: none;
}

.content th,
.content td {
  border-right: 1px solid var(--line);
}

.content tr > :last-child {
  border-right: none;
}

.content td.highlight {
  background: #ffe4e8;
  font-weight: 700;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 16px;
}

.contact-card {
  min-width: 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-label {
  margin-bottom: 6px;
  font-weight: 700;
}

.contact-value {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.qr img {
  width: 160px;
  max-width: 100%;
  height: auto;
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.shot {
  min-width: 0;
  margin: 0;
}

.shot img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Pager and footer */

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 14px;
}

.page-btn {
  max-width: 45%;
  color: #be123c;
  overflow-wrap: anywhere;
}

.page-info {
  color: #4b5563;
}

.site-footer {
  padding: 28px 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: #4b5563;
  font-size: 14px;
}

.footer-links {
  margin-bottom: 6px;
}

/* Floating contact */

.float-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: calc(100vw - 36px);
  padding: 12px 18px;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow);
  color: var(--accent-ink);
  cursor: pointer;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.float-cta:hover {
  opacity: 0.95;
  text-decoration: none;
}

.float-panel {
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 21;
  max-width: calc(100vw - 36px);
}

.float-panel-in {
  position: relative;
  width: min(320px, calc(100vw - 36px));
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.float-panel-in p {
  overflow-wrap: anywhere;
}

.panel-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: 0;
  color: #4b5563;
  cursor: pointer;
  font-size: 18px;
}

/* Anchors */

[id] {
  scroll-margin-top: 112px;
}

/* Responsive */

@media (max-width: 960px) {
  .head-in {
    gap: 10px 16px;
  }

  .hero.split .hero-in,
  .about-in {
    grid-template-columns: 1fr;
  }

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

  .service-grid,
  .case-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

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

  .honor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .news-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .topbar-in {
    align-items: flex-start;
    flex-direction: column;
  }

  .head-in {
    align-items: flex-start;
  }

  .brand {
    max-width: 55%;
  }

  .lang-switch {
    max-width: 45%;
  }

  .hero.plain .site-title,
  .hero.split .site-title,
  .hero.cover .site-title {
    font-size: 32px;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-grid,
  .service-grid,
  .case-grid,
  .card-grid,
  .team-grid,
  .honor-grid,
  .partner-grid,
  .contact-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .cta-in {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pager {
    align-items: flex-start;
  }

  .page-btn {
    max-width: 42%;
  }
}
