/* ==========================================================================
   康通达168建站 ktt1688.cn - 全站主样式表
   风格：国风软装风（黛青 #2C3E50 + 米白 #F5F0E8 + 赭红 #A0522D）
   布局：十字分割对称布局（横竖线条交叉，象限对称分布）
   纯原生 CSS3，无任何框架依赖
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  /* 主色：黛青系（沉稳国风） */
  --dai-50:  #E8ECF0;
  --dai-100: #C9D2DC;
  --dai-200: #9AA8B8;
  --dai-300: #6B7E94;
  --dai-400: #4A5E75;
  --dai-500: #2C3E50;  /* 黛青 主色 */
  --dai-600: #233140;
  --dai-700: #1A2630;
  --dai-800: #121B22;

  /* 辅色：米白系（宣纸质感） */
  --mi-50:  #FAF7F2;
  --mi-100: #F5F0E8;  /* 米白 主色 */
  --mi-200: #EDE5D8;
  --mi-300: #E0D5C3;
  --mi-400: #D0C1A8;

  /* 点缀：赭红系（国风印章红） */
  --zhe-50:  #F5E6DE;
  --zhe-100: #E8C9B8;
  --zhe-200: #D4A088;
  --zhe-300: #BE7A5C;
  --zhe-400: #A0522D;  /* 赭红 主色 */
  --zhe-500: #8B4513;
  --zhe-600: #6B3410;

  /* 中性 */
  --white: #FFFFFF;
  --paper: #FAF7F2;
  --ink-900: #1A2630;
  --ink-700: #3A4A5A;
  --ink-500: #5A6A7A;
  --ink-300: #8A9AAA;
  --line:   #D8CFBF;
  --line-soft: #EDE5D8;
  --gold:   #B89968;  /* 国风描金 */

  /* 功能 */
  --radius-sm: 4px;
  --radius:    10px;
  --radius-lg: 18px;
  --shadow-sm: 0 4px 14px rgba(44, 62, 80, 0.06);
  --shadow:    0 14px 40px rgba(44, 62, 80, 0.10);
  --shadow-lg: 0 24px 60px rgba(44, 62, 80, 0.16);
  --seam: 1px dashed var(--zhe-200);   /* 国风缝线 */
  --container: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Songti SC", "STSong", -apple-system, BlinkMacSystemFont,
               "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-700);
  background: var(--paper);
  overflow-x: hidden;
  opacity: 0;
  transition: opacity .4s ease;
}
body.page-loaded { opacity: 1; }
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--zhe-400); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  font-family: "PingFang SC", "Microsoft YaHei", "Songti SC", serif;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--ink-500); }

/* ---------- 容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow { max-width: 880px; }
.container-wide   { max-width: 1440px; }
section { position: relative; }

/* ==========================================================================
   十字分割对称布局系统（核心骨架 - 国风软装版）
   横竖线条交叉，把内容切成对称象限
   ========================================================================== */

/* 十字骨架：左上 / 右上 / 左下 / 右下 四象限 */
.cross-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
/* 横竖交叉线（国风缝线感） */
.cross-layout::before,
.cross-layout::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.cross-layout::before { /* 竖线 */
  left: 50%; top: 0; bottom: 0; width: 1px;
  background: repeating-linear-gradient(to bottom, var(--zhe-200) 0 8px, transparent 8px 14px);
}
.cross-layout::after { /* 横线 */
  top: 50%; left: 0; right: 0; height: 1px;
  background: repeating-linear-gradient(to right, var(--zhe-200) 0 8px, transparent 8px 14px);
}
.cross-quadrant {
  padding: 56px 48px;
  position: relative;
  z-index: 1;
}
.cross-quadrant.q-tl { background: var(--mi-100); }
.cross-quadrant.q-tr { background: var(--dai-50); }
.cross-quadrant.q-bl { background: var(--white); }
.cross-quadrant.q-br { background: var(--zhe-50); }

/* 对角双格（仅横线或仅竖线分割） */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.split-2 > div { padding: 48px; }
.split-2.vertical { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }

/* 四格拼布（国风软装典型） */
.patch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
}
.patch-cell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.patch-cell:nth-child(8n+1) { background: var(--mi-100); }
.patch-cell:nth-child(8n+3) { background: var(--dai-50); }
.patch-cell:nth-child(8n+5) { background: var(--zhe-50); }
.patch-cell:nth-child(8n+7) { background: var(--mi-200); }
.patch-cell:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--zhe-200); }

/* ==========================================================================
   顶部导航（固定，滚动变色，移动端汉堡菜单）
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 247, 242, 0.97);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: var(--dai-500);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand img { width: 40px; height: 40px; }
.brand .brand-mark {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, var(--dai-500), var(--zhe-400));
  display: grid; place-items: center; color: var(--mi-100);
  font-size: 1.1rem; font-weight: 900;
  font-family: "Songti SC", "STSong", serif;
  border: 1px solid var(--gold);
}
.brand-text small { display: block; font-size: 0.62rem; font-weight: 400; color: var(--ink-300); letter-spacing: 0.15em; }

.main-nav { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.main-nav > li { position: relative; flex-shrink: 0; }
.main-nav > li > a {
  display: block;
  padding: 8px 9px;
  font-size: 0.86rem;
  color: var(--ink-700);
  border-radius: 6px;
  transition: all .3s var(--ease);
  position: relative;
  white-space: nowrap;
}
.main-nav > li > a::after {
  content: "";
  position: absolute;
  bottom: 4px; left: 50%;
  width: 0; height: 2px;
  background: var(--zhe-400);
  transition: all .3s var(--ease);
  transform: translateX(-50%);
}
.main-nav > li > a:hover,
.main-nav > li.active > a {
  color: var(--zhe-400);
  background: var(--mi-100);
}
.main-nav > li > a:hover::after,
.main-nav > li.active > a::after { width: 20px; }
/* 下拉菜单 */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all .3s var(--ease);
}
.main-nav li:hover > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a {
  display: block;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--ink-700);
}
.dropdown-menu li a:hover { background: var(--mi-100); color: var(--zhe-400); }

.nav-cta {
  margin-left: 4px;
  padding: 7px 14px;
  background: var(--zhe-400);
  color: var(--mi-100);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all .3s var(--ease);
  border: 1px solid var(--zhe-400);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--zhe-500); color: var(--mi-100); transform: translateY(-2px); box-shadow: var(--shadow); }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--mi-100);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--dai-500);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动抽屉 */
.mobile-drawer {
  position: fixed;
  top: 78px; right: 0;
  width: 80%; max-width: 340px;
  height: calc(100vh - 78px);
  background: var(--white);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
  z-index: 999;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer li a {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-700);
  font-weight: 500;
}
.mobile-drawer li a:hover { color: var(--zhe-400); background: var(--mi-100); }
.mobile-sub { padding-left: 20px; }
.overlay {
  position: fixed; inset: 0;
  background: rgba(26, 38, 48, 0.45);
  opacity: 0; visibility: hidden;
  transition: all .3s var(--ease);
  z-index: 998;
}
.overlay.show { opacity: 1; visibility: visible; }

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all .35s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--zhe-400); color: var(--mi-100); }
.btn-primary:hover { background: var(--zhe-500); color: var(--mi-100); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-dai { background: var(--dai-500); color: var(--mi-100); }
.btn-dai:hover { background: var(--dai-600); color: var(--mi-100); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--dai-300); color: var(--dai-500); background: var(--white); }
.btn-outline:hover { background: var(--mi-100); color: var(--dai-600); transform: translateY(-2px); border-color: var(--dai-400); }
.btn-ghost { color: var(--ink-700); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--zhe-300); color: var(--zhe-400); }
.btn-gold { background: var(--gold); color: var(--dai-700); }
.btn-gold:hover { background: #A88850; color: var(--dai-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

.txt-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--zhe-400); font-weight: 600; font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  transition: all .3s var(--ease);
}
.txt-link::after { content: "→"; transition: transform .3s var(--ease); }
.txt-link:hover { border-bottom-color: var(--zhe-300); }
.txt-link:hover::after { transform: translateX(4px); }

/* ==========================================================================
   板块标题
   ========================================================================== */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-mi { background: var(--mi-100); }
.section-dai { background: var(--dai-50); }
.section-paper { background: var(--paper); }
.section-dark  { background: var(--dai-700); color: #C8D2DC; }
.section-dark h2, .section-dark h3 { color: var(--mi-100); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--mi-200);
  color: var(--zhe-500);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.eyebrow.dai { background: var(--dai-50); color: var(--dai-500); }
.eyebrow.dark { background: rgba(255,255,255,0.1); color: var(--mi-200); border-color: rgba(255,255,255,0.15); }
.section-head p { font-size: 1.05rem; color: var(--ink-500); margin-top: 14px; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* 标题前的十字装饰（国风） */
.cross-mark {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border: 1.5px solid var(--zhe-400);
  border-radius: 4px;
  color: var(--zhe-400);
  font-weight: 900;
  margin-right: 10px;
  vertical-align: middle;
  font-size: 0.8rem;
}

/* 印章式标题装饰 */
.seal-mark {
  display: inline-block;
  padding: 4px 10px;
  background: var(--zhe-400);
  color: var(--mi-100);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: 0.1em;
  margin-right: 10px;
  vertical-align: middle;
  font-family: "Songti SC", serif;
}

/* ==========================================================================
   卡片
   ========================================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: all .4s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--zhe-200); }
.card-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; position: relative; }
.card-img img { width: 100%; height: 240px; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.95rem; }

/* 缝线卡片（国风软装） */
.stitch-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 2px dashed var(--zhe-200);
  position: relative;
  transition: all .4s var(--ease);
}
.stitch-card::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}
.stitch-card:hover { background: var(--mi-100); transform: translateY(-4px); }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  background: var(--dai-700);
  color: #A8B4C0;
  padding: 80px 0 0;
  border-top: 3px solid var(--zhe-400);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h4 { color: var(--mi-100); font-size: 1rem; margin-bottom: 22px; letter-spacing: 0.04em; }
.footer-col p { color: #8A9AAA; font-size: 0.92rem; line-height: 1.85; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #A8B4C0; font-size: 0.92rem; transition: all .3s var(--ease); }
.footer-col ul li a:hover { color: var(--zhe-200); padding-left: 6px; }
.footer-brand img,
.footer-brand .brand-mark { filter: none; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 0.92rem; color: #A8B4C0; }
.footer-contact .ic { color: var(--zhe-200); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: #6A7A8A;
}
.footer-bottom a { color: #6A7A8A; }
.footer-bottom a:hover { color: var(--zhe-200); }
.footer-icp a { color: #8A9AAA; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: grid; place-items: center;
  color: #A8B4C0;
  transition: all .3s var(--ease);
}
.footer-social a:hover { background: var(--zhe-400); color: var(--mi-100); border-color: var(--zhe-400); }

/* ==========================================================================
   页面通用：面包屑、页头横幅
   ========================================================================== */
.page-hero {
  padding: 150px 0 70px;
  background:
    radial-gradient(circle at 15% 25%, var(--mi-200) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, var(--dai-50) 0%, transparent 45%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -1px;
  width: 80px; height: 3px;
  background: var(--zhe-400);
  transform: translateX(-50%);
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M100 10 L110 90 L190 100 L110 110 L100 190 L90 110 L10 100 L90 90 Z' fill='%23A0522D' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.6;
}
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 0.86rem; color: var(--ink-300);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--zhe-400); }
.breadcrumb span.sep { color: var(--ink-300); }
.page-hero h1 { margin-bottom: 16px; color: var(--dai-500); }
.page-hero p { font-size: 1.08rem; max-width: 680px; }

/* ==========================================================================
   表单
   ========================================================================== */
.form-row { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.9rem; color: var(--ink-700); margin-bottom: 8px; font-weight: 500; }
.form-label .req { color: var(--zhe-400); }
.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.96rem;
  transition: all .3s var(--ease);
}
.form-control:focus {
  outline: none;
  border-color: var(--zhe-300);
  box-shadow: 0 0 0 4px var(--zhe-50);
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ==========================================================================
   工具类
   ========================================================================== */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.tag {
  display: inline-block; padding: 4px 12px;
  background: var(--mi-200); color: var(--zhe-500);
  border-radius: 999px; font-size: 0.78rem; font-weight: 500;
}
.tag.dai { background: var(--dai-50); color: var(--dai-500); }
.tag.zhe { background: var(--zhe-50); color: var(--zhe-500); }

/* ==========================================================================
   滚动渐入动画
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* 装饰：十字网格背景（国风） */
.bg-cross {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* 装饰：国风回纹边框 */
.cn-border {
  border: 1px solid var(--line);
  position: relative;
}
.cn-border::before,
.cn-border::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid var(--zhe-400);
}
.cn-border::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.cn-border::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

/* 返回顶部 */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--zhe-400);
  color: var(--mi-100);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transition: all .3s var(--ease);
  z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--zhe-500); transform: translateY(-3px); }
