/* service */

.service-function {
  margin-top: 50px;
  overflow: hidden;
}

.service-function ul.flex {
  flex-wrap: wrap;
  margin-left: -16px;
}

.service-function li {
  box-sizing: border-box;
  list-style: none;
  width: 33.33%;
  padding-left: 16px;
  margin-top: 16px;
}

.service-function .item-function {
  position: relative;
  z-index: 1;
  width: 100%;
  flex-direction: column;
  justify-content: space-between;
  height: 300px;
  background: #f5f5f7;
  padding: 30px;
  transition: all 0.3s ease-in-out;
}

.service-function .function-number {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.service-function .function-content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-bottom: 16px;
}

.service-function .function-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  margin-right: 15px;
  background: #d1d5db;
  flex-shrink: 0;
}

.service-function .function-title h3 {
  font-size: 20px;
}

.service-function .function-title p {
  color: var(--color-primary);
  font-size: 14px;
}

.service-function .function-desc {
  width: 100%;
  margin-top: 20px;
  transition: all 0.3s ease-in-out;
}

.service-function .function-desc p {
  font-size: 14px;
  line-height: 1.8;
  color: #6b7280;
  margin: 0;
}

.service-function .site-link {
  position: absolute;
  bottom: 30px;
  left: 30px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease-in-out;
}

/* hover  */

@media (min-width: 768px) {
  .service-function .item-function:hover {
    background: var(--color-primary);
  }
  .service-function .item-function:hover .site-link {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .service-function .item-function:hover .function-desc {
    transform: translateY(-50px);
  }

  .service-function .item-function:hover .function-number,
  .service-function .item-function:hover .function-title h3,
  .service-function .item-function:hover .function-title p,
  .service-function .item-function:hover .function-desc p {
    color: #fff;
  }
}
@media (max-width: 960px) {
  .service-function li {
    width: 50%;
  }
  /* 移动端无 hover：CTA 常显，保证可点；描述不再上移 */
  .service-function .item-function {
    height: auto;
    min-height: 240px;
  }
  .service-function .function-desc {
    transform: none;
  }
  .service-function .site-link {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .service-function .site-link {
    color: var(--color-primary);
  }

  .service-function .site-link .site-btn-arrow {
    display: none;
  }

  .service-function .function-content {
    display: block;
  }
  .function-title {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .service-function {
    margin-top: 48px;
  }

  .service-function ul.flex {
    margin-left: 0;
  }

  .service-function li {
    width: 100%;
    padding-left: 0;
  }

  .service-function .item-function {
    padding: 24px;
  }

  .service-function .function-title h3 {
    font-size: 18px;
  }
}

/* service-challenge */

.service-challenge-list {
  margin-top: 50px;
  overflow: hidden;
}

.service-challenge-list ul.flex {
  flex-wrap: wrap;
  margin-left: -24px;
}

.service-challenge-list li {
  box-sizing: border-box;
  list-style: none;
  width: 25%;
  padding-left: 24px;
}

.service-challenge-list .item-challenge {
  width: 100%;
}

.service-challenge-list .challenge-image {
  position: relative;
  width: 100%;
  background: #e5e7eb;
  overflow: hidden;
  margin-bottom: 20px;
}

.service-challenge-list .challenge-image img {
  display: block;
  width: 100%;
}

.service-challenge-list .challenge-title h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.service-challenge-list .challenge-text p {
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
  margin: 0;
}

@media (max-width: 960px) {
  .service-challenge-list li {
    width: 50%;
    margin-top: 24px;
  }

  .service-challenge .challenge-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .service-challenge-list ul.flex {
    margin-left: 0;
  }

  .service-challenge-list li {
    width: 100%;
    padding-left: 0;
  }

  .service-challenge-list .challenge-image {
    margin-bottom: 16px;
  }
}

/* service-value */
.service-value {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.value-panel--visual {
  position: relative;
  overflow: hidden;
  color: #fff;
  width: 50%;
  --panel-h: 800px;
  height: var(--panel-h);
  background-size: cover;
  background-position: center;
}

/* .value-panel--visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 0;
  pointer-events: none;
} */

/* 悬浮时叠加主题色底（品牌蓝 #3858e9，透明度 0.6） */
.value-panel--visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(56, 88, 233, 0.95);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  pointer-events: none;
}

.value-panel--visual:hover::after,
.value-panel--visual:focus-within::after {
  opacity: 1;
}

.value-panel-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 40px;
}

.value-panel-head {
  margin-bottom: 24px;
  transition: transform 0.5s ease;
  /* 默认：标题定位到面板底部（隐藏列表时只显示标题） */
  transform: translateY(calc(var(--panel-h) - 80px - 100%));
}

.value-panel-name {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 12px;
  color: #fff;
}

.value-panel-subtitle {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.value-panel-list {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  pointer-events: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.value-panel-list li {
  list-style: none;
}

.value-panel-item {
  padding: 14px 0;
}

.value-panel-list--bordered .value-panel-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.value-panel-list--bordered li:first-child .value-panel-item {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.value-panel-item h4 {
  font-size: 16px;
  margin: 0 0 6px;
  color: #fff;
}

.value-panel-item p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.value-panel-item .flex {
  align-items: flex-start;
}

.value-item-icon {
  width: 40px;
  height: 40px;
  padding: 4px;
  object-fit: contain;
  margin-right: 16px;
  flex-shrink: 0;
}

.value-item-content h4 {
  font-size: 16px;
  margin: 0 0 6px;
  color: #fff;
}

.value-item-content p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

@media (min-width: 768px) {
  .value-panel--visual:hover .value-panel-head,
  .value-panel--visual:focus-within .value-panel-head {
    transform: translateY(0);
  }

  .value-panel--visual:hover .value-panel-list,
  .value-panel--visual:focus-within .value-panel-list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (max-width: 1200px) {
  .value-panel--visual {
    --panel-h: 640px;
    height: var(--panel-h);
  }
}

@media (max-width: 960px) {
  .service-value {
    flex-direction: column;
  }

  .value-panel--visual {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .value-panel--visual:last-child {
    margin-bottom: 0;
  }

  /* 触屏无 hover，标题定位顶部并始终展示列表内容 */
  .value-panel-head {
    transform: none;
  }

  .value-panel-list {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  /* 触屏无 hover：常驻主题色底，保持品牌一致性 */
  .value-panel--visual::after {
    opacity: 0.6;
  }
}

@media (max-width: 768px) {
  .value-panel--visual {
    aspect-ratio: auto;
    min-height: 460px;
  }

  .value-panel-content {
    padding: 32px;
  }
}

@media (max-width: 480px) {
  .value-panel--visual {
    min-height: 400px;
  }

  .value-panel-name {
    font-size: 22px;
  }

  .value-panel-subtitle {
    font-size: 13px;
  }

  .value-panel-content {
    padding: 24px;
  }

  .value-panel-head {
    margin-bottom: 16px;
  }

  .value-panel-item {
    padding: 10px 0;
  }

  .value-item-content h4,
  .value-panel-item h4 {
    font-size: 15px;
  }

  .value-item-content p,
  .value-panel-item p {
    font-size: 13px;
  }

  .value-item-icon {
    width: 32px;
    height: 32px;
    padding: 7px;
    margin-right: 12px;
  }
}

/* service-framework */
.service-framework {
  background: #f5f7fa;
}

.service-framework[v-cloak] {
  display: none;
}

.service-framework .framework-tags {
  justify-content: center;
  margin: 24px 0 48px -12px;
}

.service-framework .framework-tag {
  margin-left: 12px;
  padding: 6px 18px;
  border: 1px solid var(--color-primary);
  border-radius: 50px;
  font-size: 14px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.service-framework .framework-tabs {
  padding: 30px 45px;
  border: 1px solid #dedede;
  overflow: hidden;
}

.service-framework .framework-tabs ul {
  align-items: center;
  justify-content: space-between;
}

.service-framework .framework-tabs li {
  position: relative;
}

.service-framework .framework-tab {
  position: relative;
  padding: 16px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  white-space: nowrap;
}

.service-framework .framework-tab .tab-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin: 0 auto;
}

.service-framework .framework-tab .tab-label {
  margin-top: 10px;
  font-size: 18px;
}

.service-framework .framework-tab.is-active {
  color: var(--color-primary);
}

.service-framework .framework-tab.is-active .tab-num {
  background: var(--color-primary);
  color: #fff;
}

.service-framework .framework-tab.is-active::after {
  position: absolute;
  top: 50%;
  right: -250%;
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--color-primary);
  border-right: 2px solid var(--color-primary);
  transform: rotate(45deg);
}

.service-framework .framework-content {
  margin-top: -1px;
  border: 1px solid #dedede;
  align-items: stretch;
}

.service-framework .framework-stage {
  width: 32%;
  padding: 40px 50px;
}

.service-framework .framework-stage-num {
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
}

.service-framework .framework-stage-title {
  font-size: 40px;
  margin: 8px 0 20px;
}

.service-framework .framework-stage-desc {
  font-size: 15px;
  line-height: 1.9;
  color: #6b7280;
  margin-bottom: 32px;
}

.service-framework .framework-stage-nav {
  align-items: center;
}

.service-framework .framework-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.service-framework .framework-arrow + .framework-arrow {
  margin-left: 12px;
}

.service-framework .framework-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 1px solid #333;
  border-right: 1px solid #333;
}

.service-framework .framework-arrow--prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.service-framework .framework-arrow--next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

.service-framework .framework-arrow:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.service-framework .framework-arrow:hover::before {
  border-color: #fff;
}

.service-framework .framework-systems {
  width: 68%;
  display: flex;
}

.service-framework .framework-systems ul.flex {
  flex: 1;
  align-items: stretch;
}

.service-framework .framework-systems li {
  width: 25%;
  padding: 40px 15px;
  text-align: center;
  border-left: 1px solid #dedede;
}

.service-framework .framework-system {
  width: 100%;
}

.service-framework .framework-system-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto;
}

.service-framework .framework-system-icon img {
  display: block;
  width: 100%;
}

.service-framework .framework-system-content h4 {
  margin-top: 100px;
  font-size: 18px;
}

.service-framework .framework-system-content p {
  margin-top: 10px;
  font-size: 14px;
  color: #6b7280;
}

.service-framework .framework-phases {
  margin-top: 24px;
}

.service-framework .framework-phase {
  position: relative;
  flex: 1;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #fff, var(--color-primary));
  color: #fff;
  font-size: 16px;
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 50%,
    calc(100% - 20px) 100%,
    0 100%,
    20px 50%
  );
  margin-left: -16px;
  padding-left: 16px;
}

.service-framework .framework-phase:first-child {
  margin-left: 0;
  padding-left: 0;
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 50%,
    calc(100% - 20px) 100%,
    0 100%
  );
}

.service-framework .framework-footnote {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: #6b7280;
}

/* service-case 案例列表 */
.service-case {
  background: #fff;
}

.service-case .pages-wrapper {
  margin-bottom: 48px;
}

.service-case-list ul {
  margin-left: -40px;
}

.service-case-list li {
  width: 50%;
  padding-left: 40px;
  box-sizing: border-box;
  list-style: none;
}

.service-case-list .cp-item {
  display: block;
}

.service-case-list .cp-poster {
  width: 100%;
  overflow: hidden;
}

.service-case-poster {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #9ca3af;
  font-size: 14px;
}

.service-case-poster img {
  display: block;
  width: 100%;
}

.service-case-list .cp-title {
  margin-top: 20px;
}

.service-case-list .cp-title p {
  font-size: 14px;
  color: var(--color-primary);
}

.service-case-list .cp-title h3 {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: #111827;
}

/* service-change 四件事 */
.service-change {
  background: #f5f7fa;
}

.service-change .pages-wrapper {
  margin-bottom: 48px;
}

.service-change-list {
  margin-left: -16px;
}

.service-change-list li {
  width: 25%;
  padding-left: 16px;
  box-sizing: border-box;
  list-style: none;
}

.service-change-card {
  position: relative;
  padding: 24px;
  height: 100%;
  border: 1px solid #dedede;
  border-bottom: 2px solid var(--color-primary);
}

.service-change-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  background-color: #f5f5f5;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.service-change-img {
  margin-bottom: 30px;
  overflow: hidden;
  background: #eef1fe;
}

.service-change-img img {
  display: block;
  width: 100%;
  height: auto;
}

.service-change-card h3 {
  margin-bottom: 30px;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
}

.service-change-row {
  border-top: 1px dotted #dedede;
  padding: 20px 0;
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

.service-change-tag {
  flex-shrink: 0;
  margin-right: 8px;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  background: #dee3f8;
  color: #6b7280;
  font-size: 12px;
  border-radius: 3px;
}

.service-change-tag-primary {
  background: var(--color-primary);
  color: #fff;
}

/* service-article 文章卡片 */
.service-article {
  background: #fff;
}

.service-article .pages-wrapper {
  margin-bottom: 48px;
}

.service-article-list ul {
  margin-left: -30px;
}

.service-article-list li {
  width: 33.33%;
  padding-left: 30px;
  box-sizing: border-box;
  list-style: none;
}

.service-article-card {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  width: 100%;
  height: 240px;
  padding: 30px;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
}

.service-article-cate {
  font-size: 14px;
  color: var(--color-primary);
}

.service-article-card h3 {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: #111827;
}

.service-article-card .site-link {
  margin-top: auto;
}

/* service-entry 服务入口 */
.service-entry {
  border-top: 1px solid #dedede;
}

.service-entry-list {
  margin-left: -24px;
}

.service-entry-list li {
  width: 33.33%;
  padding-left: 24px;
}

.service-entry-card {
  padding: 32px;
  height: 100%;
}

.service-entry-card h3 {
  font-size: 22px;
  font-weight: 500;
}

.service-entry-card p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #6b7280;
}

.service-entry-card .site-btn {
  margin-top: 24px;
}

.service-entry-list li:hover {
  background-color: #f5f5f5;
}

/* service-real 三张图 */
.service-real {
  background: #fff;
}

.service-real .pages-wrapper {
  margin-bottom: 48px;
}

.service-real .service-real-list {
  margin-left: -24px;
}

.service-real .service-real-list li {
  width: 33.33%;
  padding-left: 24px;
  box-sizing: border-box;
  list-style: none;
}

.service-real .service-real-card {
  border: 1px solid #e5e7eb;
  padding: 32px;
  height: 100%;
  flex-direction: column;
}

.service-real .service-real-text h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
}

.service-real .service-real-text p {
  font-size: 14px;
  line-height: 1.8;
  color: #6b7280;
}

.service-real .service-real-num {
  display: block;
  margin: 24px 0 16px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  background-color: #f5f7fa;
}

.service-real .service-real-img {
  margin-top: auto;
  overflow: hidden;
  background: #eef1fe;
}

.service-real .service-real-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===========================================================
   服务设计页多端适配
   断点：1200 / 960 / 768 / 480
   =========================================================== */

/* 1200：框架阶段标题与内边距微调 */
@media (max-width: 1200px) {
  .service-framework .framework-stage {
    padding: 36px 40px;
  }
  .service-framework .framework-stage-title {
    font-size: 32px;
  }
}

/* 960：平板 —— 挑战/改变两列、框架 Tab 换行居中 */
@media (max-width: 960px) {
  .service-change-list li {
    width: 50%;
  }
  .service-framework .framework-tabs {
    padding: 20px 16px;
  }
  .service-framework .framework-tabs ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
  }
  .service-framework .framework-tab {
    min-width: 72px;
  }
  /* 换行后连接箭头失效，移动端隐藏 */
  .service-framework .framework-tab.is-active::after {
    display: none;
  }
}

/* 768：框架内容堆叠、系统两列、五阶段改为平铺网格、案例单列 */
@media (max-width: 768px) {
  .service-case-list li {
    width: 100%;
    margin-bottom: 15px;
  }

  .service-framework .framework-content {
    flex-direction: column;
  }
  .service-framework .framework-stage {
    width: 100%;
    padding: 30px 24px;
  }
  .service-framework .framework-stage-title {
    font-size: 28px;
  }
  .service-framework .framework-systems {
    width: 100%;
  }
  .service-framework .framework-systems li {
    width: 50%;
    padding: 28px 12px;
  }
  .service-framework .framework-system-content h4 {
    margin-top: 20px;
  }
  /* 五阶段箭头条：去掉斜切与重叠，改为可换行网格 */
  .service-framework .framework-phases {
    flex-wrap: wrap;
    gap: 8px;
  }
  .service-framework .framework-phase,
  .service-framework .framework-phase:first-child {
    flex: 1 1 calc(33.333% - 8px);
    margin-left: 0;
    padding-left: 0;
    clip-path: none;
    border-radius: 6px;
    font-size: 14px;
  }
}

/* 480：改变/案例/三栏行转单列，框架系统单列，阶段整行 */
@media (max-width: 480px) {
  .service-change-list li,
  .service-article-list li,
  .service-entry-list li,
  .service-real .service-real-list li {
    width: 100%;
  }
  .service-framework .framework-systems li {
    width: 100%;
  }
  .service-framework .framework-phase,
  .service-framework .framework-phase:first-child {
    flex: 1 1 100%;
  }
  .service-framework .framework-stage-title {
    font-size: 24px;
  }
  .service-entry-card,
  .service-real .service-real-card {
    padding: 24px;
  }

  .service-framework .framework-tabs {
    padding: 15px;
  }

  .service-framework .framework-tab .tab-label {
    font-size: 14px;
  }
}
