:root {
  --page-bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --text-primary: #111928;
  --text-secondary: #98a2b3;
  --line: #e9eef5;
  --teal-700: #006666;
  --shadow-intro: 0 0.2rem 0.48rem rgba(0, 102, 102, 0.22);
  --shadow-card: 0 0.16rem 0.36rem rgba(17, 25, 40, 0.04);
  --radius-xl: 0.24rem;
  --radius-lg: 0.2rem;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page-bg);
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: 'Source Sans 3', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

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

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

.home-page {
  min-height: 100vh;
}

.home-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page-bg);
}

.hero-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 6.4rem;

  background: #9f9f9f;
}

.hero-banner__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.hero-banner__content {
  width: 100%;
  height: 100%;
}
.hero-banner__content img {
  width: 100%;
  height: 100%;
}

.hero-banner__title {
  margin: 0;
  font-size: 0.32rem;
  font-weight: 600;
  line-height: 0.48rem;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.hero-banner__subtitle {
  margin: 0.08rem 0 0;
  font-size: 0.2rem;
  font-weight: 400;
  line-height: 0.3rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.82);
}

.home-tabs {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  padding: 0 0.12rem;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 0.02rem solid var(--line);
  backdrop-filter: blur(0.24rem);
  -webkit-tap-highlight-color: transparent;
}

.home-tabs__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0.8rem;
  padding: 0 0.08rem;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.28rem;
  font-weight: 400;
  line-height: 0.36rem;
  color: var(--text-primary);
  background: transparent;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.home-tabs__item:focus,
.home-tabs__item:active,
.home-tabs__item:hover {
  background: transparent;
  outline: none;
}

.home-tabs__item.is-active {
  color: var(--teal-700);
  font-weight: 600;
}

.home-tabs__item.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0.64rem;
  height: 0.04rem;
  border-radius: var(--radius-pill);
  transform: translateX(-50%);
  background: var(--teal-700);
}

.home-main {
  padding: 0 0.24rem;
}

.home-section {
  margin-bottom: 0.48rem;
  scroll-margin-top: 1rem;
}

.home-section__title {
  margin: 0.44rem 0 0.24rem;
  font-size: 0.32rem;
  font-weight: 500;
  line-height: 0.48rem;
  text-align: center;
  color: var(--text-primary);
}

.intro-card {
  position: relative;
  overflow: hidden;
  padding: 0.32rem;
  min-height: 3.12rem;
  border-radius: var(--radius-xl);
  background: url('/image/intro_card_bg.png') center / 100% 100% no-repeat;
  box-shadow: var(--shadow-intro);
}

.intro-card::before {
  content: none;
}

.intro-card__title,
.intro-card__desc,
.intro-card__tags {
  position: relative;
  z-index: 1;
}

.intro-card__main {
  display: block;
  color: inherit;
}

.intro-card__title {
  margin: 0;
  font-size: 0.28rem;
  font-weight: 600;
  line-height: 0.42rem;
  color: #ffffff;
}

.intro-card__desc {
  margin: 0.16rem 0 0.24rem;
  font-size: 0.28rem;
  font-weight: 400;
  line-height: 0.42rem;
  color: rgba(255, 255, 255, 0.92);
}

.intro-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.16rem;
}

.intro-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  min-height: 0.56rem;
  padding: 0.1rem 0.24rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.24rem;
  font-weight: 400;
  line-height: 0.36rem;
  color: #ffffff;
}

.intro-card__tag-arrow {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 0.24rem;
  background: var(--surface);
  border: 0.02rem solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  background-size: 100% 3.28rem;
  background-repeat: no-repeat;
}

.service-card + .service-card {
  margin-top: 0.24rem;
}

.service-card__hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-height: 1.28rem;
  padding: 0.12rem 0.16rem 0;
}

.service-card__hero-link {
  color: inherit;
}

.service-card__icon {
  position: relative;
  z-index: 1;
  width: 0.8rem;
  height: 0.8rem;
}

.service-card__summary {
  position: relative;
  z-index: 1;
  margin-left: 0.16rem;
  padding-top: 0.02rem;
}

.service-card__name {
  margin: 0;
  font-size: 0.32rem;
  font-weight: 600;
  line-height: 0.48rem;
  color: var(--text-primary);
  text-align: left;
}

.service-card__subtitle {
  margin: 0.04rem 0 0;
  font-size: 0.24rem;
  font-weight: 400;
  line-height: 0.36rem;
  color: var(--text-secondary);
}

.service-card__decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1.28rem;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  border-radius: 0.16rem;
}

.service-card__group {
  margin-top: 0.2rem;
}

.service-card__group + .service-card__group {
  margin-top: 0.2rem;
  padding-top: 0.2rem;
  border-top: 0.02rem solid var(--line);
}

.service-card__group-title {
  margin: 0 0 0.12rem;
  font-size: 0.28rem;
  font-weight: 600;
  line-height: 0.42rem;
  color: var(--text-primary);
}

.service-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.12rem;
  position: relative;
  z-index: 2;
}

.service-card__item {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  min-height: 0.8rem;
  padding: 0.18rem 0.2rem;
  border-radius: 0.16rem;
  background: var(--surface-soft);
  color: inherit;
}

.service-card__item--wide {
  grid-column: 1 / -1;
}

.service-card__item-icon {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.service-card__item-icon--20 {
  width: 0.4rem;
  height: 0.4rem;
}

.service-card__item-icon--38x20 {
  width: 0.76rem;
  height: 0.4rem;
}

.service-card__item-icon--34x20 {
  width: 0.68rem;
  height: 0.4rem;
}

.service-card__item-icon--30 {
  width: 0.6rem;
  height: 0.6rem;
}

.service-card__item-icon--28 {
  width: 0.56rem;
  height: 0.56rem;
}

.service-card__item-icon--30x20 {
  width: 0.6rem;
  height: 0.4rem;
}

.service-card__item-text {
  font-size: 0.28rem;
  font-weight: 400;
  line-height: 0.42rem;
  color: var(--text-primary);
}

.home-section--cases {
  margin-bottom: 0.44rem;
}

.case-list {
  display: block;
}

.case-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 1.5rem;
  border-radius: var(--radius-xl);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: var(--shadow-card);
  color: inherit;
}

.case-list > * + * {
  margin-top: 0.16rem;
}

.case-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.16);
}

.case-card--upstream {
  background-image: url('/image/anli_bg_1.png');
}

.case-card--midstream {
  background-image: url('/image/anli_bg_2.png');
}

.case-card--downstream {
  background-image: url('/image/anli_bg_3.png');
}

.case-card--rubberwood {
  background-image: url('/image/anli_bg_4.png');
}

.case-card--ruichang {
  background-image: url('/image/anli_bg_5.png');
}

.case-card__panel,
.case-card__body {
  position: relative;
  z-index: 1;
}

.case-card__panel {
  display: flex;
  align-items: center;
  align-self: stretch;
  width: 1.36rem;
  padding: 0 0 0 0.4rem;
  background: rgba(0, 0, 0, 0.76);
}

.case-card__body {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  min-height: 1.5rem;
  padding: 0.24rem 0.28rem 0.24rem 0.24rem;
}

.case-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.8rem;
  min-height: 0.52rem;
  padding: 0.08rem 0.18rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.24rem;
  font-weight: 400;
  line-height: 0.36rem;
  color: #ffffff;
}

.case-card__title {
  margin: 0;
  font-size: 0.32rem;
  font-weight: 500;
  line-height: 0.48rem;
  color: #ffffff;
  text-shadow: 0 0.02rem 0.06rem rgba(0, 0, 0, 0.35);
  word-break: break-all;
}

.case-divider {
  height: 0.02rem;
  margin-top: 0.36rem !important;
  margin-bottom: 0.36rem;
  background: rgba(17, 25, 40, 0.12);
}

.case-divider + .case-card {
  margin-top: 0 !important;
}

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

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.28rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 0.02rem solid var(--line);
  color: inherit;
}

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

.home-footer {
  padding: 0.04rem 0 0.24rem;
}

.home-footer__link {
  display: block;
}

.home-footer__indicator {
  width: 100%;
  height: auto;
}
