:root {
  --primary: #00ca3d;
  --primary-dark: #00a833;
  --text: #333333;
  --muted: #666666;
  --bg-soft: #f6fbf7;
}

.assessment-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 202, 61, 0.15) !important;
}

.assessment-card:hover .arrow-btn {
  background: #222 !important;
  transform: translateX(10px);
}

.arrow-btn {
  transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  line-height: 1.8;
}

p {
  margin-top: 0;
  margin-bottom: 1.5em;
  text-align: justify;
}

.about-card {
  background: #fff;
  padding: 45px 50px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  margin-top: 15px;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #a8e063);
}

.about-card p {
  text-indent: 2em;
  font-size: 16px;
  color: #444;
  line-height: 2.2;
  margin-bottom: 24px;
  text-align: justify;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.topbar {
  background: var(--primary);
  color: #fff;
  font-size: 14px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.logo {
  width: 168px;
  height: auto;
}

.menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.menu a:hover {
  color: var(--primary);
}

.sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sub-menu a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--primary-dark);
  border: 1px solid #c4f0d1;
  background: #f3fff7;
}

.sub-menu a:hover {
  background: var(--primary);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 420px;
}

.hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 28, 10, 0.15), rgba(2, 28, 10, 0.55));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero-overlay h1 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 50px);
}

.hero-overlay p {
  margin-top: 14px;
  font-size: 18px;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.page-hero {
  background: linear-gradient(125deg, #e9fdf0, #f8fffa);
  padding: 48px 0;
  border-bottom: 1px solid #d6f4df;
}

.page-hero h1 {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: clamp(30px, 4vw, 42px);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.quick-links a {
  display: block;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  border: 1px solid #e5e7eb;
  font-weight: 600;
}

.quick-links a:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 22px rgba(14, 194, 77, 0.15);
}

h2 {
  margin: 0 0 24px;
  color: var(--primary);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  display: flex;
  align-items: flex-end;
}

h2 span {
  color: var(--muted);
  font-size: 0.55em;
  margin-left: 10px;
  text-transform: uppercase;
  font-weight: normal;
  margin-bottom: 3px;
}

.feature-grid,
.card-grid,
.product-grid {
  display: grid;
  gap: 20px;
}

.homecare-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  margin: 0;
  width: 100%;
  background: #fff;
}

.homecare-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  width: 100%;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
}

.homecare-title {
  margin: 0;
  color: var(--primary);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  display: flex;
  align-items: flex-end;
}

.homecare-title span {
  color: var(--muted);
  font-size: 0.55em;
  margin-left: 10px;
  text-transform: uppercase;
  font-weight: normal;
  margin-bottom: 3px;
}

.homecare-more {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  font-size: 12px;
  border-radius: 2px;
}

.homecare-more:hover {
  background: var(--primary);
  color: #fff;
}

.showcase-item {
  position: relative;
  display: block;
  min-height: 220px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.showcase-item:hover img {
  transform: scale(1.05);
}

.showcase-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 180px;
  height: 140px;
  padding: 30px 20px 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  border-radius: 100% 0 0 0;
  text-align: right;
}

.showcase-badge b {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 8px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.showcase-badge em {
  font-style: normal;
  font-size: 12px;
  border: 1px solid #fff;
  padding: 2px 6px;
  border-radius: 2px;
}

.badge-yellow { background: rgba(200, 160, 40, 0.85); }
.badge-cyan { background: rgba(40, 190, 140, 0.85); }
.badge-purple { background: rgba(180, 100, 200, 0.85); }
.badge-blue { background: rgba(60, 120, 200, 0.85); }
.badge-gold { background: rgba(170, 180, 20, 0.85); }
.badge-green { background: rgba(10, 190, 40, 0.85); }

.showcase-1 img { object-position: center 50%; }
.showcase-2 img { object-position: center 42%; }
.showcase-3 img { object-position: center 50%; }
.showcase-4 img { object-position: left 66%; }
.showcase-5 img { object-position: center 38%; }
.showcase-6 img { object-position: center 50%; }

.homecare-icons {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 16px;
}

.icon-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 14px 10px;
  text-decoration: none;
  color: #1f2a44;
  text-align: center;
  min-height: 150px;
}

.icon-card b {
  display: block;
  margin-top: 14px;
  line-height: 1.4;
}

.icon-img {
  width: 120px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.feature-grid article {
  border: 1px solid #def7e5;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  padding: 20px;
}

.feature-grid img {
  height: 70px;
  object-fit: contain;
}

.card-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.service-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card h3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: rgba(0, 202, 61, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover h3 {
  opacity: 1;
  pointer-events: auto;
}

.service-card h3 a {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.service-card:hover h3 a {
  transform: translateY(0);
}

.research-banner {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.research-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.research-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: -45px;
  position: relative;
  z-index: 2;
}

.research-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.research-icon-circle {
  width: 90px;
  height: 90px;
  background-color: #1e8ceb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.research-item p {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  max-width: 260px;
  margin: 0 auto;
  text-indent: 0;
  text-align: left;
}

@media (max-width: 768px) {
  .research-items {
    grid-template-columns: 1fr;
  }
}

.news-list {
  display: grid;
  gap: 18px;
}

.news-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.news-item:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.news-item img {
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.news-item h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.news-item h3 a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.news-item h3 a:hover {
  color: var(--primary);
}

.news-item p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.news-item time {
  color: var(--primary);
  font-weight: bold;
  font-size: 15px;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.product-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #e5e7eb;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

.product-card h3 {
  margin: 12px 0 8px;
  font-size: 17px;
}

.product-card p {
  margin: 2px 0;
  color: var(--muted);
}

.product-card p:nth-last-child(2) {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
}

.product-card p:last-child {
  color: #ff0000;
  font-weight: bold;
  font-size: 16px;
}

.footer {
  background: #0a1d11;
  color: #e5f7eb;
  padding: 58px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 20px;
}

.qrcode {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 4px solid #fff;
}

.copyright {
  margin: 24px 0 0;
  text-align: center;
  opacity: 0.88;
  font-size: 14px;
}

.friend-links {
  width: min(1200px, calc(100% - 40px));
  margin: 18px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(229, 247, 235, 0.22);
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
}

.friend-links p {
  margin: 0;
}

.friend-links a {
  color: #9ee8b2;
  text-decoration: none;
}

.friend-links a:hover {
  color: #d3ffe0;
  text-decoration: underline;
}

@media (max-width: 820px) {
  .homecare-showcase {
    grid-template-columns: 1fr;
  }

  .homecare-icons {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .news-item img {
    width: 100%;
    height: 190px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
