/* ==========================================================================
 * 一汽汽车金融有限公司（af.faf.com.cn/phjr.jhtml）演示站点样式表
 * 色彩规范严格还原官网视觉体系：
 * - 企业深蓝：#013a91（页脚背景、侧边栏标题渐变）
 * - 主题天蓝：#0075c2 / #01aeea（激活导航、栏目标题、交互高亮）
 * - 顶部辅助灰：#f5f5f5（登录/注册/在线咨询工具栏）
 * - 警示红：#d92626（防诈骗滚动声明条与投诉强调色）
 * ========================================================================== */

:root {
  --faf-navy: #013a91;
  --faf-blue: #0075c2;
  --faf-cyan: #01aeea;
  --faf-red: #d92626;
  --faf-bg: #f4f6f9;
  --faf-white: #ffffff;
  --faf-border: #e2e8f0;
  --faf-text: #222222;
  --faf-muted: #666666;
  --faf-max-width: 1080px;
  --font-sans: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--faf-bg);
  color: var(--faf-text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.common-width {
  width: min(var(--faf-max-width), calc(100% - 32px));
  margin: 0 auto;
}

/* ==========================================================================
 * 顶部辅助工具栏 + 品牌 Logo + 8 项主导航（含二级下拉菜单）
 * ========================================================================== */
.faf-header {
  background: var(--faf-white);
  border-bottom: 2px solid var(--faf-navy);
  position: relative;
  z-index: 60;
}

.top-bar {
  background: #f5f5f5;
  border-bottom: 1px solid #e6e6e6;
  font-size: 12px;
  color: #555555;
}

.top-bar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-bar__welcome {
  color: #666666;
}

.top-bar__links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar__links a:hover {
  color: var(--faf-blue);
}

.top-bar__sep {
  color: #cccccc;
}

.top-bar__consult {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 3px;
  background: var(--faf-blue);
  color: #ffffff !important;
  font-weight: 500;
}

.top-bar__consult:hover {
  background: var(--faf-navy);
}

.brand-bar {
  padding: 16px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-bar__logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.brand-bar__hotline {
  font-size: 13px;
  color: #444444;
  text-align: right;
}

.brand-bar__hotline strong {
  color: var(--faf-navy);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand-bar__complaint {
  color: var(--faf-red);
  font-weight: 600;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--faf-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--faf-navy);
  font-size: 20px;
  cursor: pointer;
}

/* 主导航条 */
.nav-bar {
  border-top: 1px solid #eef2f6;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
}

.nav-item__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  transition: color 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}

.nav-item__link:hover,
.nav-item__link.is-active {
  color: var(--faf-cyan);
}

.nav-item__divider {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #d1d5db;
  font-style: normal;
  font-size: 12px;
}

/* 二级下拉菜单 */
.sub-nav {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 176px;
  background: #ffffff;
  border: 1px solid #dce5f0;
  border-top: 2px solid var(--faf-cyan);
  box-shadow: 0 10px 24px rgba(1, 58, 145, 0.12);
  display: none;
  z-index: 80;
}

.nav-item:hover .sub-nav,
.nav-item:focus-within .sub-nav {
  display: block;
}

.sub-nav a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: #333333;
  border-bottom: 1px solid #f1f5f9;
}

.sub-nav a:last-child {
  border-bottom: 0;
}

.sub-nav a:hover {
  background: #f0f8ff;
  color: var(--faf-blue);
}

/* 移动端抽屉导航 */
.mobile-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--faf-border);
  padding: 10px 16px 16px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer a {
  display: block;
  padding: 10px 4px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #222222;
}

.mobile-drawer a.is-active {
  color: var(--faf-blue);
  font-weight: 600;
}

/* ==========================================================================
 * 红色防诈骗滚动声明条 + 轮播 Banner
 * ========================================================================== */
.notice-strip {
  background: #fff7f7;
  border-bottom: 1px solid #fbd5d5;
  overflow: hidden;
}

.notice-strip__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
}

.notice-strip__tag {
  flex-shrink: 0;
  background: var(--faf-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
}

.notice-strip__viewport {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.notice-strip__track {
  display: inline-block;
  color: var(--faf-red);
  font-size: 13px;
  padding-left: 100%;
  animation: faf-marquee 28s linear infinite;
}

.notice-strip__viewport:hover .notice-strip__track {
  animation-play-state: paused;
}

@keyframes faf-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.banner-wrap {
  background: #e9eff7;
  padding: 14px 0 0;
}

.banner-box {
  position: relative;
  width: min(var(--faf-max-width), calc(100% - 32px));
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  background: #0a2558;
  box-shadow: 0 6px 20px rgba(1, 58, 145, 0.12);
}

.banner-slide {
  display: none;
  position: relative;
}

.banner-slide.is-active {
  display: block;
}

.banner-slide img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.banner-slide__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 20px;
  background: linear-gradient(180deg, rgba(1, 58, 145, 0) 0%, rgba(1, 58, 145, 0.85) 100%);
  color: #ffffff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.42);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  z-index: 5;
}

.banner-arrow:hover {
  background: rgba(1, 58, 145, 0.85);
}

.banner-arrow--prev {
  left: 12px;
}

.banner-arrow--next {
  right: 12px;
}

.banner-dots {
  position: absolute;
  right: 16px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 6;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  cursor: pointer;
}

.banner-dot.is-active {
  background: var(--faf-cyan);
  border-color: var(--faf-cyan);
}

/* ==========================================================================
 * 面包屑 + 经典左栏右列表两栏结构（还原 lanmu_daohang + x_lm_middle）
 * ========================================================================== */
.breadcrumb {
  padding: 16px 0 12px;
  font-size: 13px;
  color: var(--faf-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb img {
  width: 14px;
  height: 13px;
  display: inline-block;
}

.breadcrumb a:hover {
  color: var(--faf-blue);
}

.channel-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 48px;
  align-items: start;
}

/* 左侧栏目树 */
.sidebar-card {
  background: var(--faf-white);
  border: 1px solid var(--faf-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.sidebar-card__header {
  background: linear-gradient(90deg, var(--faf-navy) 0%, var(--faf-blue) 100%);
  color: #ffffff;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.sidebar-menu li {
  border-bottom: 1px solid #edf2f7;
}

.sidebar-menu li:last-child {
  border-bottom: 0;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-size: 14px;
  color: #333333;
  transition: all 0.15s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.is-active {
  background: #eef6ff;
  color: var(--faf-blue);
  font-weight: 600;
  border-left: 3px solid var(--faf-cyan);
  padding-left: 15px;
}

.sidebar-service-box {
  margin-top: 16px;
  background: var(--faf-white);
  border: 1px solid var(--faf-border);
  border-radius: 6px;
  padding: 16px;
}

.sidebar-service-box h4 {
  margin: 0 0 10px;
  color: var(--faf-navy);
  font-size: 14px;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 8px;
}

.sidebar-service-box p {
  margin: 6px 0;
  font-size: 12px;
  color: #555555;
}

/* 右侧主内容面板 */
.main-panel {
  background: var(--faf-white);
  border: 1px solid var(--faf-border);
  border-radius: 6px;
  padding: 24px 28px 32px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  min-height: 460px;
}

.main-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 2px solid #e6eef7;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.main-panel__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--faf-blue);
  position: relative;
}

.main-panel__search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.faf-input,
.faf-select,
.faf-textarea {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  color: #222222;
  background: #ffffff;
  outline: none;
}

.faf-input:focus,
.faf-select:focus,
.faf-textarea:focus {
  border-color: var(--faf-blue);
  box-shadow: 0 0 0 2px rgba(0, 117, 194, 0.14);
}

.faf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid var(--faf-blue);
  background: var(--faf-blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.faf-btn:hover {
  background: var(--faf-navy);
  border-color: var(--faf-navy);
}

.faf-btn--ghost {
  background: #ffffff;
  color: var(--faf-blue);
}

.faf-btn--ghost:hover {
  background: #f0f8ff;
}

/* 还原官网文章列表表头与行项（huodong_text / huodong_list / fenye） */
.article-table-head {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f1f6fc;
  border-bottom: 1px solid #dce6f2;
  font-weight: 600;
  color: var(--faf-navy);
  font-size: 13px;
}

.article-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px dashed #e2e8f0;
  transition: background-color 0.15s ease;
}

.article-list__item:hover {
  background: #f8fbff;
}

.article-list__title {
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-list__title:hover {
  color: var(--faf-blue);
  text-decoration: underline;
}

.article-badge {
  display: inline-block;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 3px;
  background: #e6f4ff;
  color: var(--faf-blue);
  border: 1px solid #bae0ff;
}

.article-list__summary {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--faf-muted);
}

.article-list__date {
  flex-shrink: 0;
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
}

/* 分页栏 */
.pagination {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #555555;
}

.pagination button {
  padding: 5px 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 3px;
  color: #333333;
  cursor: pointer;
}

.pagination button:disabled {
  color: #a0aec0;
  background: #f8fafc;
  cursor: not-allowed;
}

/* 文章详情页 */
.article-detail__title {
  margin: 0 0 12px;
  font-size: 22px;
  color: #111827;
  text-align: center;
}

.article-detail__meta {
  text-align: center;
  font-size: 12px;
  color: #64748b;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.article-detail__poster {
  margin: 0 auto 22px;
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.article-detail__body p {
  margin: 0 0 14px;
  text-indent: 2em;
  color: #334155;
  line-height: 1.9;
}

/* 产品卡片与月供计算器 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.info-card {
  border: 1px solid #dce6f2;
  border-radius: 6px;
  padding: 18px;
  background: #fbfdff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-card h3 {
  margin: 0;
  font-size: 16px;
  color: var(--faf-navy);
}

.info-card p {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

.calc-box {
  border: 1px solid #cfe0f5;
  background: #f7fbff;
  border-radius: 6px;
  padding: 20px;
  margin-top: 20px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-field label {
  font-size: 12px;
  color: #334155;
  font-weight: 500;
}

.calc-result {
  margin-top: 16px;
  padding: 16px;
  background: #ffffff;
  border-radius: 6px;
  border-left: 4px solid var(--faf-blue);
}

.calc-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0;
}

.calc-metric strong {
  display: block;
  font-size: 18px;
  color: var(--faf-navy);
}

.calc-metric span {
  font-size: 12px;
  color: #64748b;
}

/* 表格与公示清单 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.data-table th,
.data-table td {
  border: 1px solid #e2e8f0;
  padding: 11px 14px;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  background: #f1f6fc;
  color: var(--faf-navy);
  font-weight: 600;
}

.feedback-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  display: none;
}

.feedback-status.is-show {
  display: block;
}

.feedback-status--ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.feedback-status--err {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* ==========================================================================
 * 页脚（高度还原官网深蓝 #013a91 备案与 IPv6 支持标识栏）
 * ========================================================================== */
.faf-footer {
  background: var(--faf-navy);
  color: #ffffff;
  padding: 18px 0;
  font-size: 12px;
}

.faf-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  text-align: center;
}

.faf-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
}

.faf-footer__badge img {
  height: 16px;
  width: auto;
}

/* ==========================================================================
 * 响应式适配
 * ========================================================================== */
@media (max-width: 960px) {
  .nav-bar {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .brand-bar__hotline {
    display: none;
  }
  .channel-layout {
    grid-template-columns: 1fr;
  }
  .card-grid,
  .calc-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .top-bar__welcome {
    display: none;
  }
  .banner-slide img {
    height: 180px;
  }
  .main-panel {
    padding: 18px 16px;
  }
  .card-grid,
  .calc-grid,
  .calc-metrics {
    grid-template-columns: 1fr;
  }
  .article-list__item {
    flex-direction: column;
    gap: 6px;
  }
}
