/* ============================================
   易点数据 - 克莱因蓝主题样式
   克莱因蓝 IKB: #002FA7
   ============================================ */

:root {
  --klein-blue: #002FA7;
  --klein-blue-dark: #001F6E;
  --klein-blue-light: #1A4DC7;
  --klein-blue-pale: #E8EEF9;
  --klein-blue-soft: #F5F7FC;
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-400: #BDBDBD;
  --gray-500: #9E9E9E;
  --gray-600: #757575;
  --gray-700: #424242;
  --gray-800: #212121;
  --gray-900: #000000;
  --success: #00B894;
  --warning: #F39C12;
  --danger: #E74C3C;
  --shadow-sm: 0 1px 3px rgba(0,47,167,0.08);
  --shadow-md: 0 4px 12px rgba(0,47,167,0.12);
  --shadow-lg: 0 10px 30px rgba(0,47,167,0.18);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container-max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--klein-blue); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* ============== 通用容器 ============== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; gap: 24px; }

/* ============== 按钮 ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 24px; font-size: 15px; font-weight: 500;
  border-radius: var(--radius-md); transition: all .25s; cursor: pointer;
  border: 1px solid transparent; line-height: 1.4;
}
.btn-primary { background: var(--klein-blue); color: var(--white); }
.btn-primary:hover { background: var(--klein-blue-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--klein-blue); border-color: var(--klein-blue); }
.btn-outline:hover { background: var(--klein-blue); color: var(--white); }
.btn-ghost { background: rgba(255,255,255,0.15); color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.25); }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ============== 导航栏 ============== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--gray-100);
}
.nav-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; height: 40px; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo .logo-text { font-size: 18px; font-weight: 700; color: var(--klein-blue); margin-left: 8px; }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-menu a {
  padding: 8px 16px; font-size: 15px; font-weight: 500;
  color: var(--gray-700); border-radius: var(--radius-md);
  transition: all .2s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--klein-blue); background: var(--klein-blue-soft); }
.nav-cta { margin-left: 12px; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--klein-blue); margin: 4px 0; border-radius: 1px; }

/* ============== Hero / Banner ============== */
.hero {
  position: relative; min-height: 560px; padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--klein-blue) 0%, var(--klein-blue-dark) 100%);
  color: var(--white); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
/* Banner轮播：#heroSlides 与 .hero-slide 不再设置 position，
   让内部的绝对定位 canvas/背景图以 .hero 为包含块，从而铺满整个 hero */
#heroSlides { }
.hero-slide { display: none; }
.hero-slide.active { display: block; animation: heroFade .6s ease; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: auto; }
.hero-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-slide-overlay { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(0,26,94,0.88) 0%, rgba(0,47,167,0.55) 55%, rgba(0,47,167,0.2) 100%), radial-gradient(ellipse at 100% 100%, rgba(0,18,72,0.95) 0%, rgba(0,18,72,0.8) 7%, rgba(0,18,72,0.35) 18%, rgba(0,18,72,0) 30%); }
.hero-inner { z-index: 2; }
/* 文案 cinematic 入场动画：每次切到当前屏重新播放 */
.hero-slide.active h1 { animation: heroTitleIn 1s cubic-bezier(.2,.7,.2,1) both; }
.hero-slide.active .subtitle { animation: heroSubIn .9s .25s cubic-bezier(.2,.7,.2,1) both; }
.hero-slide.active .hero-actions { animation: heroSubIn .9s .45s cubic-bezier(.2,.7,.2,1) both; }
.hero-slide.active .hero-stats { animation: heroSubIn .9s .65s cubic-bezier(.2,.7,.2,1) both; }
@keyframes heroTitleIn { from { opacity: 0; transform: translateY(28px); letter-spacing: .15em; filter: blur(8px); } to { opacity: 1; transform: none; letter-spacing: -0.02em; filter: blur(0); } }
@keyframes heroSubIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-dot { width: 10px; height: 10px; border-radius: 5px; background: rgba(255,255,255,0.45); cursor: pointer; transition: all .3s; }
.hero-dot.active { background: var(--white); width: 28px; }
.hero h1 { font-size: 48px; line-height: 1.2; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.hero .subtitle { font-size: 20px; opacity: .9; margin-bottom: 36px; max-width: 640px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 60px; flex-wrap: wrap; }
.hero-stat-item .num { font-size: 36px; font-weight: 800; }
.hero-stat-item .label { font-size: 14px; opacity: .8; margin-top: 4px; }

/* ============== 区块标题 ============== */
.section { padding: 80px 0; }
.section-light { background: var(--klein-blue-soft); }
.section-white { background: var(--white); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title .eyebrow {
  display: inline-block; color: var(--klein-blue); font-size: 14px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px;
}
.section-title h2 { font-size: 36px; font-weight: 700; color: var(--gray-900); margin-bottom: 12px; letter-spacing: -0.01em; }
.section-title p { color: var(--gray-600); font-size: 16px; max-width: 640px; margin: 0 auto; }

/* ============== 卡片 ============== */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
  transition: all .3s; border: 1px solid var(--gray-100);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--klein-blue-pale); }
.card-icon {
  width: 64px; height: 64px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .35s ease;
}
.card:hover .card-icon img { transform: scale(1.06); }
.card h3 { font-size: 20px; font-weight: 600; color: var(--gray-900); margin-bottom: 12px; }
.card p { color: var(--gray-600); font-size: 15px; line-height: 1.7; }

/* ============== 产品卡 ============== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.product-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--gray-100); transition: all .3s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--klein-blue); }
.product-card-cover {
  height: 180px;
  background: linear-gradient(135deg, var(--klein-blue) 0%, var(--klein-blue-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 28px; font-weight: 700;
  position: relative; overflow: hidden;
}
.product-card-cover::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 50%);
}
.product-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-card-tag {
  display: inline-block; padding: 2px 10px; background: var(--klein-blue-pale);
  color: var(--klein-blue); border-radius: 12px; font-size: 12px; font-weight: 600;
  margin-bottom: 8px; align-self: flex-start;
}
.product-card h3 { font-size: 20px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.product-card .subtitle { color: var(--gray-500); font-size: 13px; margin-bottom: 12px; }
.product-card .desc { color: var(--gray-600); font-size: 14px; line-height: 1.6; flex: 1; }
.product-card .features { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.product-card .feature {
  font-size: 12px; padding: 3px 10px; background: var(--klein-blue-soft);
  color: var(--klein-blue); border-radius: 4px;
}
.product-card .actions { margin-top: 20px; }

/* ============== 文章卡 ============== */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.article-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--gray-100); transition: all .3s; display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--klein-blue); }
.article-cover {
  height: 180px; background: linear-gradient(135deg, var(--klein-blue) 0%, var(--klein-blue-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 16px; font-weight: 500; padding: 20px; text-align: center;
  position: relative;
}
.article-cover.has-img { background: var(--gray-100); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-meta { display: flex; gap: 12px; font-size: 12px; color: var(--gray-500); margin-bottom: 12px; }
.article-meta .cat { color: var(--klein-blue); font-weight: 600; }
.article-card h3 { font-size: 17px; font-weight: 600; color: var(--gray-900); margin-bottom: 8px; line-height: 1.5; }
.article-card h3 a:hover { color: var(--klein-blue); }
.article-card .summary { color: var(--gray-600); font-size: 14px; line-height: 1.6; flex: 1; }
.article-card .footer { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--gray-500); }
.read-more { color: var(--klein-blue); font-weight: 600; }

/* ============== 页脚 ============== */
.footer {
  background: var(--klein-blue-dark); color: rgba(255,255,255,0.85);
  padding: 60px 0 24px; margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: var(--white); font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.footer ul li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer a:hover { color: var(--white); }
.footer .brand { color: var(--white); font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.footer .contact-item { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.footer .qr { width: 100px; height: 100px; background: var(--white); border-radius: var(--radius-md); margin-top: 12px; overflow: hidden; }
.footer .qr img { width: 100%; height: 100%; object-fit: cover; display: block; }
.footer .qr-label { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* ============== 分页 ============== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); color: var(--gray-700); font-size: 14px;
}
.pagination a:hover { border-color: var(--klein-blue); color: var(--klein-blue); }
.pagination .active { background: var(--klein-blue); color: var(--white); border-color: var(--klein-blue); }
.pagination .disabled { color: var(--gray-400); cursor: not-allowed; }

/* ============== 表单 ============== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--gray-700); }
.form-group .required { color: var(--danger); }
.form-control {
  width: 100%; padding: 12px 16px; font-size: 15px; font-family: inherit;
  background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius-md);
  transition: all .2s; color: var(--gray-900);
}
.form-control:focus { outline: none; border-color: var(--klein-blue); box-shadow: 0 0 0 3px rgba(0,47,167,0.1); }
textarea.form-control { min-height: 120px; resize: vertical; }

/* ============== 文章详情 ============== */
.article-detail { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.article-detail h1 { font-size: 36px; font-weight: 700; color: var(--gray-900); line-height: 1.3; margin-bottom: 16px; }
.article-detail .meta { color: var(--gray-500); font-size: 14px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-200); }
.article-content { font-size: 16px; line-height: 1.85; color: var(--gray-800); }
.article-content h2 { font-size: 26px; font-weight: 700; margin: 40px 0 16px; color: var(--gray-900); }
.article-content h3 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; color: var(--gray-900); }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 16px 0 16px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote { border-left: 4px solid var(--klein-blue); padding: 12px 20px; margin: 24px 0; background: var(--klein-blue-soft); color: var(--gray-700); }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 16px 0; display: block; }
.article-content video { width: 100%; max-height: 560px; border-radius: var(--radius-md); margin: 20px 0; background: #000; }
.article-content audio { width: 100%; margin: 20px 0; }
.article-content .media-wrap { margin: 20px 0; }
.article-content .media-caption { text-align: center; font-size: 13px; color: var(--gray-500); margin-top: 8px; }
.article-content code { background: var(--gray-100); padding: 2px 6px; border-radius: 3px; font-family: "SF Mono", Consolas, monospace; font-size: 14px; }
.article-content pre { background: var(--gray-900); color: var(--gray-100); padding: 16px; border-radius: var(--radius-md); overflow-x: auto; margin: 16px 0; }
.article-share { margin: 48px 0; padding: 24px; background: var(--klein-blue-soft); border-radius: var(--radius-lg); }
.article-share h4 { font-size: 16px; margin-bottom: 16px; color: var(--gray-900); }
.share-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: var(--white); color: var(--gray-700);
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  font-size: 13px; transition: all .2s;
}
.share-btn:hover { background: var(--klein-blue); color: var(--white); border-color: var(--klein-blue); }

/* ============== 关于我们 / 解决方案 ============== */
.about-hero { background: var(--klein-blue); color: var(--white); padding: 80px 0; }
.about-hero h1 { font-size: 42px; margin-bottom: 16px; }
.about-content { max-width: 800px; margin: 0 auto; }
.about-content h2 { font-size: 28px; margin: 40px 0 16px; color: var(--klein-blue); }
.about-content p { font-size: 16px; line-height: 1.85; margin-bottom: 16px; color: var(--gray-700); }

/* ============== 响应式 ============== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 38px; }
  .hero .subtitle { font-size: 17px; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { min-height: auto; padding: 64px 0 48px; }
  .hero h1 { font-size: 30px; }
  .hero .subtitle { font-size: 15px; }
  .hero-stats { gap: 24px; margin-top: 40px; }
  .hero-stat-item .num { font-size: 26px; }
  .section-title h2 { font-size: 26px; }
  .nav-menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--gray-100); box-shadow: var(--shadow-md); }
  .nav-menu.open { display: flex; }
  .nav-menu a { width: 100%; padding: 12px 16px; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .nav-toggle { display: block; }
  .product-grid, .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .article-detail h1 { font-size: 26px; }
  .article-content { font-size: 15px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 26px; }
  .btn-lg { padding: 12px 24px; }
}

/* ============== 工具类 ============== */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.text-klein { color: var(--klein-blue); }
.text-muted { color: var(--gray-600); }
.text-small { font-size: 14px; }
.fw-bold { font-weight: 700; }
