/* =============================================
   可信担包子页面公共样式 (subpage.css)
   Prefix: kx-  避免与全局样式冲突
   ============================================= */

/* === 基础变量（与 homepage.css 保持一致） === */
:root {
  --kx-dark: #0F172A;
  --kx-dark2: #111827;
  --kx-dark3: #101820;
  --kx-red: #D71920;
  --kx-red-hover: #B91C1C;
  --kx-white: #FFFFFF;
  --kx-gray-bg: #F5F6F8;
  --kx-text: #333333;
  --kx-text-sub: #666666;
  --kx-text-light: #888888;
  --kx-container: 1200px;
  --kx-nav-h: 72px;
}

/* === 通用 === */
body { padding-top: 0 !important; }
.kx-container {
  max-width: var(--kx-container);
  margin: 0 auto;
  padding: 0 20px;
}
.kx-section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--kx-text);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.kx-section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--kx-text-sub);
  margin-bottom: 50px;
}
.kx-section-title--light { color: #fff; }
.kx-section-subtitle--light { color: rgba(255,255,255,0.7); }

/* === Header / Navigation（与 homepage.css 一致） === */
.kx-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--kx-nav-h);
  background: linear-gradient(to right, #1E293B 0%, #0F172A 100%);
  z-index: 9999;
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.kx-header .kx-container {
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: space-between;
}
.kx-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.kx-logo-img {
  height: 50px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.kx-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}
.kx-nav-item { position: relative; }
.kx-nav-item a {
  display: block;
  padding: 0 20px;
  line-height: var(--kx-nav-h);
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.25s;
  white-space: nowrap;
}
.kx-nav-item a:hover { color: var(--kx-red); }
.kx-nav-item.active a { color: var(--kx-red); }
.kx-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--kx-red);
  border-radius: 2px;
}
/* 导航下拉菜单 */
.kx-nav-dropdown { position: relative; }
.kx-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--kx-dark);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 999;
}
.kx-nav-dropdown:hover > .kx-dropdown-menu { display: block; }
.kx-dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.kx-dropdown-menu li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.kx-header-cta {
  display: inline-block;
  background: var(--kx-red);
  color: #fff !important;
  padding: 8px 22px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  white-space: nowrap;
}
.kx-header-cta:hover {
  background: var(--kx-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(215,25,32,0.4);
  color: #fff !important;
}
.kx-header--scrolled {
  background: linear-gradient(to right, #162033 0%, #0A1022 100%);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.kx-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* === 按钮 === */
.kx-btn-primary {
  display: inline-block;
  background: var(--kx-red);
  color: #fff;
  padding: 13px 36px;
  border-radius: 4px;
  font-size: 15px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  border: none;
  cursor: pointer;
}
.kx-btn-primary:hover {
  background: var(--kx-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(215,25,32,0.35);
  color: #fff;
}
.kx-btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 13px 36px;
  border-radius: 4px;
  font-size: 15px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.35);
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
  cursor: pointer;
}
.kx-btn-outline:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
  color: #fff;
}

/* === 页面 Banner === */
.kx-page-banner {
  background: linear-gradient(135deg, var(--kx-dark) 0%, var(--kx-dark2) 100%);
  padding: 100px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.kx-page-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="70" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
  opacity: 0.5;
}
.kx-page-banner h1 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.kx-page-banner .kx-breadcrumb {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  position: relative;
  z-index: 1;
}
.kx-page-banner .kx-breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.kx-page-banner .kx-breadcrumb a:hover { color: var(--kx-red); }
.kx-page-banner .kx-breadcrumb span { margin: 0 8px; }

/* === 内容区域 === */
.kx-content-area {
  padding: 60px 0;
}
.kx-content-main {
  min-height: 400px;
}
.kx-content-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 30px;
  margin-bottom: 30px;
}
.kx-content-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--kx-text);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--kx-gray-bg);
}
.kx-content-card h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--kx-red);
  margin-top: 10px;
  border-radius: 2px;
}

/* === 侧边栏 === */
.kx-sidebar-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 24px;
  margin-bottom: 24px;
}
.kx-sidebar-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--kx-text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--kx-gray-bg);
  position: relative;
}
.kx-sidebar-card h4::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--kx-red);
}
.kx-sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kx-sidebar-card ul li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}
.kx-sidebar-card ul li:last-child { border-bottom: none; }
.kx-sidebar-card ul li a {
  color: var(--kx-text-sub);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kx-sidebar-card ul li a:hover { color: var(--kx-red); }

/* 侧边栏服务热线 */
.kx-sidebar-hotline {
  text-align: center;
  padding: 20px;
}
.kx-sidebar-hotline .kx-hotline-icon {
  width: 60px;
  height: 60px;
  background: rgba(215,25,32,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--kx-red);
  font-size: 24px;
}
.kx-sidebar-hotline .kx-hotline-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--kx-red);
  margin-bottom: 4px;
}
.kx-sidebar-hotline .kx-hotline-text {
  font-size: 13px;
  color: var(--kx-text-light);
}

/* 侧边栏流程步骤 */
.kx-steps {
  padding: 0;
  margin: 0;
  list-style: none;
}
.kx-steps li {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed #eee;
}
.kx-steps li:last-child { border-bottom: none; }
.kx-step-num {
  width: 28px;
  height: 28px;
  background: var(--kx-red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  margin-right: 12px;
}
.kx-step-content {
  flex: 1;
}
.kx-step-content strong {
  display: block;
  font-size: 14px;
  color: var(--kx-text);
  margin-bottom: 2px;
}
.kx-step-content span {
  font-size: 12px;
  color: var(--kx-text-light);
}

/* === 表单样式 === */
.kx-form-group {
  margin-bottom: 20px;
}
.kx-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--kx-text);
  margin-bottom: 8px;
}
.kx-form-group label .kx-required {
  color: var(--kx-red);
  margin-left: 2px;
}
.kx-form-control {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: var(--kx-text);
  transition: border-color 0.25s, box-shadow 0.25s;
  box-sizing: border-box;
  outline: none;
}
.kx-form-control:focus {
  border-color: var(--kx-red);
  box-shadow: 0 0 0 3px rgba(215,25,32,0.1);
}
textarea.kx-form-control {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  min-height: 100px;
}
select.kx-form-control {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path d="M0 0l5 6 5-6z" fill="%23999"/></svg>') no-repeat right 14px center;
  background-size: 10px 6px;
  padding-right: 36px;
}
.kx-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.kx-form-submit {
  margin-top: 10px;
}
.kx-form-submit .kx-btn-primary {
  min-width: 160px;
  text-align: center;
}
.kx-form-tip {
  font-size: 12px;
  color: var(--kx-text-light);
  margin-top: 6px;
}

/* === 分页组件 === */
.kx-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.kx-pagination a,
.kx-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: var(--kx-text-sub);
  text-decoration: none;
  transition: all 0.2s;
}
.kx-pagination a:hover {
  border-color: var(--kx-red);
  color: var(--kx-red);
}
.kx-pagination .current,
.kx-pagination .active {
  background: var(--kx-red);
  border-color: var(--kx-red);
  color: #fff;
}

/* === 时间轴 === */
.kx-timeline {
  position: relative;
  padding: 20px 0;
}
.kx-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
  transform: translateX(-50%);
}
.kx-timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 40px 0;
  box-sizing: border-box;
}
.kx-timeline-item:nth-child(odd) {
  margin-left: 50%;
  padding: 0 0 40px 40px;
}
.kx-timeline-item::before {
  content: '';
  position: absolute;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--kx-red);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--kx-red);
  z-index: 1;
}
.kx-timeline-item:nth-child(even)::before {
  right: -7px;
}
.kx-timeline-item:nth-child(odd)::before {
  left: -7px;
}
.kx-timeline-year {
  font-size: 20px;
  font-weight: 700;
  color: var(--kx-red);
  margin-bottom: 8px;
}
.kx-timeline-content {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.kx-timeline-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--kx-text);
  margin-bottom: 8px;
}
.kx-timeline-content p {
  font-size: 14px;
  color: var(--kx-text-sub);
  line-height: 1.8;
  margin: 0;
}

/* === FAQ 折叠问答 === */
.kx-faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.kx-faq-item {
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.kx-faq-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.kx-faq-question {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  background: #fff;
  transition: background 0.2s;
  user-select: none;
}
.kx-faq-question:hover { background: var(--kx-gray-bg); }
.kx-faq-question .kx-faq-icon {
  width: 24px;
  height: 24px;
  background: var(--kx-red);
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
}
.kx-faq-question .kx-faq-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--kx-text);
}
.kx-faq-question .kx-faq-arrow {
  color: var(--kx-text-light);
  transition: transform 0.3s;
  margin-left: 12px;
}
.kx-faq-item.open .kx-faq-arrow {
  transform: rotate(180deg);
}
.kx-faq-answer {
  display: none;
  padding: 0 20px 16px 56px;
  font-size: 14px;
  color: var(--kx-text-sub);
  line-height: 1.8;
}
.kx-faq-item.open .kx-faq-answer {
  display: block;
}

/* === Footer（与 homepage.css 一致） === */
.kx-footer {
  background: linear-gradient(to right, #1E293B 0%, #0F172A 100%);
  padding: 60px 0 0;
}
.kx-footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.kx-footer-brand .kx-logo { margin-bottom: 16px; }
.kx-footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
}
.kx-footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}
.kx-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kx-footer-col ul li { margin-bottom: 10px; }
.kx-footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.kx-footer-col ul li a:hover { color: var(--kx-red); }
.kx-footer-contact p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
  line-height: 1.6;
}
.kx-footer-qr { text-align: center; }
.kx-footer-qr-box {
  width: 110px;
  height: 110px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: rgba(255,255,255,0.2);
  font-size: 12px;
}
.kx-footer-qr p {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.kx-footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 2;
}
.kx-footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin: 0 8px;
}
.kx-footer-bottom a:hover { color: var(--kx-red); }

/* === 响应式 === */
@media (max-width: 1024px) {
  .kx-nav-item a { padding: 0 12px; font-size: 14px; }
  .kx-page-banner h1 { font-size: 28px; }
  .kx-footer-main { grid-template-columns: 1fr 1fr; }
  .kx-timeline::before { left: 30px; }
  .kx-timeline-item,
  .kx-timeline-item:nth-child(odd) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 30px 60px;
  }
  .kx-timeline-item::before,
  .kx-timeline-item:nth-child(even)::before,
  .kx-timeline-item:nth-child(odd)::before {
    left: 23px;
    right: auto;
  }
  .kx-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --kx-nav-h: 60px; }
  .kx-nav { display: none; }
  .kx-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--kx-nav-h);
    left: 0;
    right: 0;
    background: var(--kx-dark2);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    padding: 16px 0;
    gap: 0;
  }
  .kx-nav.open .kx-nav-item a {
    line-height: 44px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .kx-nav-item.active::after { display: none; }
  .kx-mobile-toggle { display: block; }
  .kx-header-cta { padding: 6px 16px; font-size: 13px; }
  .kx-page-banner { padding: 80px 0 40px; }
  .kx-page-banner h1 { font-size: 24px; }
  .kx-section-title { font-size: 24px; }
  .kx-content-area { padding: 40px 0; }
  .kx-content-card { padding: 20px; }
  .kx-footer-main { grid-template-columns: 1fr; gap: 28px; }
  .kx-timeline::before { left: 20px; }
  .kx-timeline-item,
  .kx-timeline-item:nth-child(odd) {
    padding: 0 0 24px 46px;
  }
  .kx-timeline-item::before,
  .kx-timeline-item:nth-child(even)::before,
  .kx-timeline-item:nth-child(odd)::before {
    left: 13px;
  }
}
@media (max-width: 480px) {
  .kx-page-banner h1 { font-size: 20px; }
  .kx-form-row { grid-template-columns: 1fr; }
}
