/* ==========================================================================
   NAYITEK Pages Stylesheet
   纳易科技企业官网 - 非首页页面专属样式
   ========================================================================== */

/* ---------- 1. 通用子页面 Hero ---------- */
.page-hero {
  position: relative;
  padding: calc(48px + 64px) 0 60px;
  background: var(--gradient-dark);
  text-align: center;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(1, 191, 113, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(11, 225, 141, 0.08) 0%, transparent 60%),
    linear-gradient(160deg, #017A4D 0%, #012E1C 50%, #1E3A2F 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__content,
.page-hero__content h1,
.page-hero__content h2,
.page-hero__content h3,
.page-hero__content p,
.page-hero__content span,
.page-hero__content div {
  color: var(--color-white);
}

.page-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 16px;
}

.page-hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
}

.page-hero__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.page-hero__content .tag--outline {
  display: inline-block;
  margin-bottom: 16px;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-primary-light);
}

/* 产品详情页 Hero 更大一些 */
.page-hero--product {
  padding: calc(48px + 64px) 0 72px;
}

.page-hero--product .page-hero__title {
  font-size: 2.75rem;
}

@media (max-width: 1024px) {
  .page-hero {
    padding: calc(48px + 64px) 0 48px;
  }
  .page-hero__title { font-size: 2rem; }
  .page-hero--product .page-hero__title { font-size: 2.25rem; }
}

@media (max-width: 768px) {
  .page-hero {
    padding: calc(48px + 56px) 0 40px;
  }
  .page-hero__title { font-size: 1.75rem; }
  .page-hero--product .page-hero__title { font-size: 1.875rem; }
  .page-hero__subtitle { font-size: 1rem; }
  .page-hero__actions {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .page-hero__actions .btn { width: 100%; max-width: 300px; }
}

/* ---------- 2. 三级产品架构图 ---------- */
.product-architecture {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.arch-level {
  width: 100%;
  max-width: 800px;
  padding: 32px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  border: 1px solid var(--color-gray-200);
  position: relative;
}

.arch-level--1 {
  border-top: 3px solid var(--color-primary);
}

.arch-level--2 {
  border-top: 3px solid var(--color-primary-light);
  margin-top: 0;
}

.arch-level--3 {
  border-top: 3px solid var(--color-primary-dark);
  margin-top: 0;
}

.arch-level__badge {
  display: inline-block;
  font-family: var(--font-en), var(--font-cn);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(1, 191, 113, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.arch-level__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 4px;
}

.arch-level__subtitle {
  font-family: var(--font-en), var(--font-cn);
  font-size: 0.875rem;
  color: var(--color-gray-400);
  margin-bottom: 20px;
}

.arch-level__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.arch-level__item {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8125rem;
  color: var(--color-gray-600);
  background: var(--color-bg-light);
  border-radius: var(--radius-full);
}

.arch-arrow {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.arch-arrow svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .arch-level { padding: 24px 16px; }
  .arch-level__title { font-size: 1.125rem; }
  .arch-level__items { gap: 8px; }
  .arch-arrow { height: 36px; }
}

/* ---------- 3. 产品线概览卡片 ---------- */
.product-lines-grid {
  gap: 28px;
}

.product-line-card {
  padding: 36px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-base);
}

.product-line-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.product-line-card--redirect {
  background: var(--color-bg-lighter);
  border-style: dashed;
}

.product-line-card--redirect:hover {
  border-style: solid;
  border-color: var(--color-primary);
}

.product-line-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.product-line-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 0;
}

.product-line-card__desc {
  font-size: 0.9375rem;
  color: var(--color-gray-500);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-line-card__products {
  padding: 16px 0;
  border-top: 1px solid var(--color-gray-100);
  margin-bottom: 20px;
}

.product-line-card__product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-gray-50);
}

.product-line-card__product:last-child {
  border-bottom: none;
}

.product-line-card__product-label {
  font-size: 0.8125rem;
  color: var(--color-gray-400);
  min-width: 64px;
}

.product-line-card__product-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-700);
  text-align: right;
}

@media (max-width: 768px) {
  .product-line-card { padding: 24px; }
  .product-line-card__product { flex-direction: column; gap: 2px; align-items: flex-start; }
}

/* ---------- 4. 产品详情页通用 ---------- */
.product-detail-block {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.product-detail-block__content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 20px;
}

.product-detail-block__list {
  list-style: none;
  padding: 0;
}

.product-detail-block__list li {
  position: relative;
  padding: 10px 0 10px 24px;
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  line-height: 1.7;
  border-bottom: 1px solid var(--color-gray-50);
}

.product-detail-block__list li:last-child {
  border-bottom: none;
}

.product-detail-block__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.product-detail-block__list li strong {
  color: var(--color-gray-900);
}

/* ---------- 5. 产品规格表格 ---------- */
.product-specs-table {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.product-specs-table table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.product-specs-table thead {
  background: var(--color-dark);
}

.product-specs-table thead th {
  padding: 14px 20px;
  font-weight: 600;
  color: var(--color-white);
  text-align: left;
  white-space: nowrap;
}

.product-specs-table tbody tr {
  border-bottom: 1px solid var(--color-gray-100);
  transition: background var(--transition-fast);
}

.product-specs-table tbody tr:hover {
  background: var(--color-bg-light);
}

.product-specs-table tbody td {
  padding: 12px 20px;
  color: var(--color-gray-600);
  vertical-align: top;
}

.product-specs-table tbody td:first-child {
  font-weight: 500;
  color: var(--color-gray-800);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .product-specs-table table { font-size: 0.8125rem; }
  .product-specs-table thead th,
  .product-specs-table tbody td { padding: 10px 12px; }
}

/* ---------- 6. 服务流程步骤 ---------- */
.service-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.service-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-gray-100);
  position: relative;
}

.service-step:last-child {
  border-bottom: none;
}

.service-step__number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en), var(--font-cn);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
}

.service-step__content {
  flex: 1;
  min-width: 0;
}

.service-step__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 8px;
}

.service-step__desc {
  font-size: 0.9375rem;
  color: var(--color-gray-500);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-step__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-step__list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  color: var(--color-gray-600);
  background: var(--color-bg-light);
  border-radius: var(--radius-full);
}

.service-step__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .service-step {
    flex-direction: column;
    gap: 16px;
    padding: 24px 0;
  }

  .service-step__number {
    width: 48px;
    height: 48px;
    font-size: 1.125rem;
  }

  .service-step__content { width: 100%; }
}

/* ==========================================================================
   7. 新闻资讯系统
   ========================================================================== */

/* 新闻分类Tab */
.news-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-gray-200);
}

.news-tab {
  padding: 10px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-gray-500);
  background: transparent;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.news-tab:hover {
  color: var(--color-primary);
  border-color: var(--color-primary-light);
}

.news-tab.is-active {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* 新闻网格 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* 新闻卡片 */
.news-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-base);
}

.news-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.news-card--featured {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
}

.news-card--featured .news-card__image-wrap {
  height: 260px;
}

.news-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: linear-gradient(135deg, #F2FBF7, #E8FAF0);
}

.news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.news-card:hover .news-card__image {
  transform: scale(1.04);
}

.news-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-white);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.news-card__tag--industry { background: #2563EB; }
.news-card__tag--company { background: #059669; }
.news-card__tag--case { background: var(--gradient-primary); }

.news-card__body {
  padding: 20px 24px 24px;
}

.news-card__date {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-gray-400);
  margin-bottom: 8px;
  font-family: var(--font-en), var(--font-cn);
}

.news-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-card__title a {
  color: var(--color-gray-900);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.news-card__title a:hover {
  color: var(--color-primary);
}

.news-card__excerpt {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-load-more {
  text-align: center;
  margin-top: 40px;
}

/* 订阅区域 */
.news-subscribe {
  padding: 64px 0;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 480px;
  margin: 32px auto 0;
}

.subscribe-form__input {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  font-size: 0.9375rem;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast);
}

.subscribe-form__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(1, 191, 113, 0.15);
}

@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-card--featured { grid-column: span 2; }
}

@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card--featured { grid-column: auto; }
  .news-tabs { flex-wrap: wrap; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form__input { width: 100%; box-sizing: border-box; }
  .subscribe-form__btn { width: 100%; }
}

/* ==========================================================================
   8. 联系页面
   ========================================================================== */

/* 联系页双栏布局 */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

/* 联系表单区块 */
.contact-block {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-gray-200);
}

.contact-block__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 8px;
}

.contact-block__desc {
  font-size: 0.9375rem;
  color: var(--color-gray-500);
  margin-bottom: 32px;
}

/* 表单样式复用components.css的.form-*，此处仅补充联系表单特有 */
.form-row {
  display: flex;
  gap: 16px;
}

.form-group--half {
  flex: 1;
  min-width: 0;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: var(--color-gray-700);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  background: var(--color-white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(1, 191, 113, 0.15);
  outline: none;
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-gray-700);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--transition-fast);
  line-height: 1.6;
}

.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(1, 191, 113, 0.15);
  outline: none;
}

.form-group--checkbox {
  margin-top: 4px;
}

.form-checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-gray-500);
  line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-checkbox__mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-gray-300);
  border-radius: 4px;
  transition: all var(--transition-fast);
  margin-top: 1px;
}

input[type="checkbox"]:checked + .form-checkbox__mark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

input[type="checkbox"]:checked + .form-checkbox__mark::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  margin: 1px auto;
}

.form-checkbox a {
  color: var(--color-primary);
  text-decoration: underline;
}

.contact-form__submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 32px;
}

/* 右侧边栏：联系卡片 */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-gray-200);
}

.contact-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 191, 113, 0.08);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 4px;
}

.contact-card__detail {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}

.contact-card__detail address {
  font-style: normal;
}

.contact-card__note {
  font-size: 0.8125rem;
  color: var(--color-gray-400);
  margin-top: 2px;
}

.contact-link {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

/* 地图 */
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-gray-200);
}

/* 快速响应承诺 */
.contact-promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.contact-promise-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-100);
}

.contact-promise-item__num {
  font-family: var(--font-en), var(--font-cn);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(1, 191, 113, 0.2);
  line-height: 1;
  margin-bottom: 12px;
}

.contact-promise-item__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 8px;
}

.contact-promise-item__desc {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr 320px; gap: 28px; }
  .contact-promise-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-block { padding: 28px 20px; }
  .form-row { flex-direction: column; gap: 0; }

  .contact-sidebar {
    order: -1; /* 移动端卡片在上，表单在下 */
  }

  .contact-promise-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .contact-promise-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   9. 产品图片轮播
   ========================================================================== */
.product-carousel {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: var(--color-bg-lighter);
}

.product-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-carousel__slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-carousel__slide.active {
  opacity: 1;
}

.product-carousel__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-600);
  transition: all 0.2s ease;
  z-index: 2;
}

.product-carousel__btn:hover {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.product-carousel__btn--prev {
  left: 20px;
}

.product-carousel__btn--next {
  right: 20px;
}

.product-carousel__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.product-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.product-carousel__dot.active {
  background: var(--color-primary);
  width: 28px;
  border-radius: 5px;
}

.product-carousel__dot:hover:not(.active) {
  background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .product-carousel { height: 280px; }
  .product-carousel__btn { width: 36px; height: 36px; }
  .product-carousel__btn--prev { left: 12px; }
  .product-carousel__btn--next { right: 12px; }
  .product-carousel__slide { padding: 16px; }
}
