@charset "UTF-8";

/**
 * 供货保证 / Longevity Commitment 视图样式。
 * 配合 views-view--longevity-commitment--page.tpl.php 使用。
 * 颜色随每行 field_commitment_color 走内联样式，这里只定版式。
 */
 .lc-wrap * {
  box-sizing: border-box;
  font-weight: normal;
 }
.lc-wrap {
  max-width: 1252px;
  margin: 0 auto;
  padding: 60px 20px 96px;
  color: #38393a;
  font-family: inherit;
  font-family: var(--esp-font-family-light);
  box-sizing: border-box;
  font-weight: normal;
}

/* —— 顶部介绍 —— */
.lc-intro { margin-bottom: 40px; }
.lc-title {
  margin: 0 0 12px;
  font-size: var(--esp-font-size-h1);
  font-family: var(--esp-font-family-maison);
  line-height: 1.3;
}
.lc-desc {
  margin: 0;
  font-size: var(--esp-font-size);
  line-height: 1.5;
}

/* —— 筛选标签 —— */
.lc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 20px;
}
.lc-tab {
  appearance: none;
  cursor: pointer;
  border: 1px solid #E4E9F0;
  background: #fff;
  color: #687383;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 999px;
  transition: background .15s, color .15s, border-color .15s;
  font-family: var(--esp-font-family-maison);
  line-height: normal;
  font-weight: 600;
  min-width: 80px;
}
.lc-tab:hover { border-color: #38393a; }
.lc-tab.is-active {
  background: #38393a;
  border-color: #38393a;
  color: #fff;
}

/* —— 移动端筛选下拉（桌面隐藏，≤768px 顶替 .lc-tabs） —— */
.lc-select { display: none; position: relative; margin: 0 0 20px; }
.lc-select-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  appearance: none;
  cursor: pointer;
  border: none;
  background: #38393a;
  color: #fff;
  font-size: 14px;
  line-height: normal;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--esp-font-family-maison) !important;
  font-weight: 700;
  min-width: 124px;
}
.lc-select-label {
  flex: 1;
  text-align: center;
}
.lc-select-arrow { display: inline-flex; transition: transform .15s; }
.lc-select.is-open .lc-select-arrow { transform: rotate(180deg); }
.lc-select-panel {
  display: none;
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100px;
  margin: 0;
  padding: 8px 0 !important;
  list-style: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 2px 4px 0px #09265E29;

}
.lc-select.is-open .lc-select-panel { display: block; }
.lc-select-option {
  font-size: 14px;
  color: #687383;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.55;
  text-align: center;
  width: 100px;
}
.lc-select-option + .lc-select-option  {
  margin-top: 4px;
}

.lc-select-option:hover { background: #f3f7fc; }
.lc-select-option.is-active { color: #E8362D; font-weight: 700; }

/* —— 表格 —— */
.lc-table-scroll { 
  width: 100%; 
  overflow-x: auto;
  /* Firefox */
  scrollbar-width: none;
  /* IE/Edge Legacy */
  -ms-overflow-style: none;
}
.lc-table-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.lc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--esp-font-size);
}
.lc-table thead th {
  text-align: left;
  color: #202833;
  padding: 15px 28px;
  border-bottom: 2px solid #eef1f5;
  white-space: nowrap;
  background-color: #FBFCFE;
  font-family: var(--esp-font-family-maison);
  font-weight: 700;
}
.lc-table thead th:not(.lc-col-end, .lc-col-start) {
  border-right: 1px solid #eef1f5;
}
.lc-table td {
  padding: 13px 28px;
  border-bottom: 1px solid #eef1f5;
  vertical-align: middle;
}
.lc-table td:not(.lc-end, .lc-start) {
  border-right: 1px solid #eef1f5;
}
.lc-table tbody.lc-group:not(:first-of-type) .lc-series-cell:not([rowspan="2"], [rowspan="5"], [rowspan="1"]) {
  border-top: 1px solid #eef1f5;
}

/* 列宽 */
.lc-col-series  { width: 19.85%; }
.lc-col-product { width: 17.5%; }
.lc-col-commit  { width: 17.5%; }
.lc-col-start   { width: 31.3%; }
.lc-col-end     { width: 13.85%; }

/* 系列胶囊（跨行居中） */
.lc-series-cell { vertical-align: middle; }
.lc-series-pill {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 6px;
  white-space: nowrap;
  font-family: var(--esp-font-family-maison);
  font-weight: 700;
}

.lc-product { font-family: var(--esp-font-family-maison);font-weight: 700; }
.lc-commit  { font-family: var(--esp-font-family-maison);font-weight: 700; white-space: nowrap; }
.lc-end     { white-space: nowrap; }

/* 开始列：日期 + 进度条 */
.lc-start-inner {
  display: flex;
  align-items: center;
  gap: 50px;
}
.lc-date {
  color: #2c3746;
  white-space: nowrap;
  min-width: 92px;
}
.lc-track {
  flex: 1 1 auto;
  height: 15px;
  border-radius: 999px;
  overflow: hidden;
  min-width: 60px;
}
.lc-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  min-width: 9px;
}

/* —— NRND 说明框 —— */
.lc-nrnd {
  margin: 84px auto 0;
  padding: 32px 30px 28px;
  background: #F8FBFF;
  border-radius: 8px;
  max-width: 1132px;
}
.lc-nrnd-head { display: flex; gap: 28px; align-items: flex-start; }
.lc-nrnd-icon { flex: 0 0 auto; line-height: 0; margin-top: -1px; }
.lc-nrnd-title {
  font-family: var(--esp-font-family-maison);
  font-size: var(--esp-font-size-h2);
  font-weight: 700;
  line-height: 1.365 !important;
  margin: 0;
}
.lc-nrnd-text {
  margin: 0;
  margin-top: 8px !important;
  line-height: 1.625 !important;
}
.lc-nrnd-divider {
  border: 0;
  border-top: 1px solid #dbe4ef;
  margin: 16px 0;
}
.lc-ways-title {
  margin: 0 0 16px;
  font-family: var(--esp-font-family-maison);
  font-size: var(--esp-font-size-h2);
  font-weight: 700;
  line-height: 1.36;
}

/* —— 替代产品卡片 —— */
.lc-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.lc-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, transform .15s;
}

.lc-card:hover {
  box-shadow: 0 6px 18px rgba(16, 35, 63, .08);
  transform: translateY(-1px);
}
.lc-card:hover .lc-card-arrow {
  transform: translateX(4px);
}
.lc-card .lc-card-arrow {
  transition: all .15s linear;
}
.lc-card-icon { line-height: 0; }
.lc-card-body { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; padding-left: 6px; }
.lc-card-title { font-size: var(--esp-font-size-h3); font-weight: 700;font-family: var(--esp-font-family-maison); }
.lc-card-desc  { font-size: 14px; line-height: 1.286;margin-top: 4px; }
.i18n-en .lc-card:last-child .lc-card-desc {
  max-width: 120px;
}

/* —— 移动端表格横向滚动提示（桌面隐藏） —— */
.lc-scroll-hint { display: none; }

/* —— 脚注 —— */
.lc-note,
.lc-updated {
  margin: 32px auto 0 !important;
  font-size: 14px;
  color: #6B7482;
  max-width: 1132px;
  line-height: 1.678;
}
.lc-updated { margin-top: 16px !important; }

/* —— 响应式 —— */
@media (max-width: 940px) {
  .lc-wrap { padding: 32px 20px 56px; }
  .lc-table { min-width: 940px;border-spacing: 0;border-collapse: separate; }
  .lc-nrnd { 
    padding: 32px 20px;
    margin: 40px -20px 0;
    border-radius: 0;
  }
  .lc-cards { flex-direction: column; gap: 20px; }
  .lc-table td {
    padding: 12px 20px;
  }

  .lc-start-inner {
    gap: 30px;
  }
  .lc-nrnd-head {
    gap: 20px;
  }

  /* 胶囊行 → 下拉，节省横向空间 */
  .lc-tabs { display: none; }
  .lc-select { display: inline-block; }

  /* Product Series / Product 两列固定，其余列（Commitment/Start/End）随表体横向滚动 */
  .lc-table-scroll { -webkit-overflow-scrolling: touch; }
  .lc-col-product, td.lc-product {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
  }
  /* 横向滚动提示：文案 + 迷你滚动进度条 */
  .lc-scroll-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 50%;
    margin: 10px auto 0;
  }
  .lc-scroll-hint-text {
    flex: 0 0 auto;
    font-size: 12px;
    color: #8a93a1;
    white-space: nowrap;
  }
  .lc-scroll-hint-track {
    position: relative;
    flex: 1 1 auto;
    height: 4px;
    border-radius: 999px;
    background: #F3F4F8;
    overflow: hidden;
  }
  .lc-scroll-hint-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 999px;
    background: #C6C6C6;
  }
}

@media (max-width: 768px) {
  :root {
    --esp-font-size-h2: 22px;
  }
  .lc-intro {
    text-align: center;
    margin-bottom: 20px;
  }
  .lc-title {
    margin-bottom: 8px;
  }
  .lc-select {
    margin: 0 auto 20px !important;
    display: flex;
    justify-content: center;
  }
  .lc-select-panel {
    left: 50%;
    transform: translateX(-50%);
  }
  .lc-nrnd-head {
    gap: 16px;
  }
  .lc-nrnd-head img {
    width: 30px;
    height: auto;
  }
  .lc-cards {
    gap: 16px;
  }
  .lc-nrnd-text {
    margin-top: 8px !important;
  }
  .lc-note {
    margin-top: 16px !important;
    line-height: 1.678;
  }
  .lc-updated {
    margin-top: 8px !important;
  }
  .lc-card {
    padding: 32px 24px;
  }
  .lc-card-desc {
    margin-top: 4px;
  }
}
