/* ===========================================
   河北科奥 WordPress 主题 CSS
   完全对应 React 版本的设计
   =========================================== */

/* ----------- CSS 变量（颜色/字体） ----------- */
:root {
  --primary-50:  #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --font: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.1);
  --shadow:    0 4px 20px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.15);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.2);
  --radius: .75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --transition: all .3s ease;
  /* 顶部导航高度 */
  --topbar-height: 34px;
  --navbar-height: 72px;
  --header-total: calc(var(--topbar-height) + var(--navbar-height));
}

/* ----------- 全局重置 ----------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ----------- 容器 ----------- */
.keao-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px)  { .keao-container { padding: 0 2rem; } }
@media (min-width: 1024px) { .keao-container { padding: 0 2.5rem; } }

/* ===========================================
   顶部联系栏
   =========================================== */
.keao-topbar {
  background: var(--gray-800);
  color: var(--gray-300);
  font-size: .8rem;
  padding: .4rem 0;
  position: relative;
  z-index: 1001;
}
.keao-topbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.keao-topbar-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.keao-topbar-item a { color: var(--gray-300); transition: var(--transition); }
.keao-topbar-item a:hover { color: #fff; }
.keao-topbar-addr { display: none; }
@media (min-width: 768px) { .keao-topbar-addr { display: flex; } }

/* ===========================================
   导航栏
   =========================================== */
.keao-navbar {
  position: fixed;
  top: var(--topbar-height); left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(to right, var(--primary-600), var(--primary-700));
  transition: var(--transition);
}
.keao-navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.12);
}
/* 无管理员工具栏时，导航栏紧贴顶部联系栏下方 */
body:not(.admin-bar) .keao-navbar { top: var(--topbar-height); }

.keao-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.keao-logo { display: flex; align-items: center; gap: .75rem; }
.keao-logo-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,1);
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
  color: var(--primary-600);
  flex-shrink: 0;
  transition: var(--transition);
}
.keao-navbar.scrolled .keao-logo-icon { background: var(--primary-600); color: #fff; }
.keao-logo-text { display: flex; flex-direction: column; }
.keao-logo-name { font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1.2; }
.keao-logo-sub  { font-size: .7rem; color: rgba(255,255,255,.75); }
.keao-navbar.scrolled .keao-logo-name { color: var(--gray-800); }
.keao-navbar.scrolled .keao-logo-sub  { color: var(--gray-500); }

/* 桌面端导航链接 */
.keao-nav-links { display: none; }
@media (min-width: 1024px) {
  .keao-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}
.keao-nav-link {
  position: relative;
  font-weight: 500;
  color: #fff;
  transition: var(--transition);
  padding: .25rem 0;
}
.keao-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: currentColor;
  transition: width .3s ease;
}
.keao-nav-link:hover::after,
.keao-nav-link.active::after { width: 100%; }
.keao-navbar.scrolled .keao-nav-link { color: var(--gray-700); }
.keao-navbar.scrolled .keao-nav-link:hover { color: var(--primary-600); }
.keao-navbar.scrolled .keao-nav-link.active { color: var(--primary-600); }

.keao-nav-divider {
  width: 1px; height: 20px;
  background: rgba(255,255,255,.3);
}
.keao-navbar.scrolled .keao-nav-divider { background: var(--gray-200); }

.keao-nav-phone {
  display: flex; align-items: center; gap: .4rem;
  font-size: .9rem; color: rgba(255,255,255,.85);
  transition: var(--transition);
}
.keao-nav-phone:hover { color: #fff; }
.keao-navbar.scrolled .keao-nav-phone { color: var(--gray-600); }
.keao-navbar.scrolled .keao-nav-phone:hover { color: var(--primary-600); }

/* 移动端按钮 */
.keao-menu-btn {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; padding: .5rem;
  background: rgba(255,255,255,.15); border: none;
  border-radius: .4rem; cursor: pointer;
  transition: var(--transition);
}
.keao-menu-btn span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: var(--transition);
}
.keao-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.keao-menu-btn.open span:nth-child(2) { opacity: 0; }
.keao-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.keao-navbar.scrolled .keao-menu-btn { background: var(--gray-100); }
.keao-navbar.scrolled .keao-menu-btn span { background: var(--gray-700); }
@media (min-width: 1024px) { .keao-menu-btn { display: none; } }

/* 移动端菜单 */
.keao-mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--gray-100);
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
}
.keao-mobile-menu.open { display: block; }
.keao-mobile-link {
  display: block;
  padding: .9rem 1.5rem;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-50);
  transition: var(--transition);
}
.keao-mobile-link:hover { background: var(--gray-50); color: var(--primary-600); }
.keao-mobile-contact { border-top: 1px solid var(--gray-100); padding: .75rem 0; }
.keao-mobile-contact-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.5rem;
  color: var(--gray-700);
}
.keao-mobile-contact-item svg { color: var(--primary-600); flex-shrink: 0; }

/* ===========================================
   通用 Section
   =========================================== */
.keao-section { padding: 6rem 0; }
.keao-section-white { background: #fff; }
.keao-section-gray  { background: var(--gray-50); }

.keao-section-header { text-align: center; margin-bottom: 3.5rem; }
.keao-section-header-flex {
  display: flex; flex-direction: column; gap: 1rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .keao-section-header-flex {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.keao-section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .75rem;
}
.keao-section-desc {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}
.keao-text-left { text-align: left; margin-left: 0; }
.keao-link-more {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--primary-600); font-weight: 600;
  transition: var(--transition); white-space: nowrap;
}
.keao-link-more:hover { color: var(--primary-700); }
.keao-link-more svg { transition: transform .3s ease; }
.keao-link-more:hover svg { transform: translateX(4px); }

/* ===========================================
   按钮
   =========================================== */
.keao-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2rem; border-radius: .625rem;
  font-weight: 600; font-size: .95rem;
  cursor: pointer; border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.keao-btn-primary {
  background: var(--primary-600); color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.keao-btn-primary:hover { background: var(--primary-700); transform: translateY(-1px); }
.keao-btn-white {
  background: #fff; color: var(--primary-600);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.keao-btn-white:hover { background: var(--primary-50); transform: scale(1.03); }
.keao-btn-outline {
  background: transparent;
  border: 2px solid var(--primary-600);
  color: var(--primary-600);
}
.keao-btn-outline:hover { background: var(--primary-50); }
.keao-btn-outline-white {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.keao-btn-outline-white:hover { background: rgba(255,255,255,.1); }
.keao-btn-block { width: 100%; justify-content: center; }

/* ===========================================
   Hero 区域
   =========================================== */
.keao-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700), var(--primary-800));
  overflow: hidden;
}
.keao-hero-bg {
  position: absolute; inset: 0;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.keao-hero-blur {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.keao-hero-blur-1 { top: 5rem; left: 2rem; width: 18rem; height: 18rem; background: rgba(255,255,255,.05); }
.keao-hero-blur-2 { bottom: 5rem; right: 2rem; width: 24rem; height: 24rem; background: rgba(255,255,255,.05); }

.keao-hero-inner {
  position: relative;
  display: grid;
  gap: 3rem;
  padding: calc(var(--header-total) + 4rem) 1.5rem 4rem;
}
@media (min-width: 1024px) {
  .keao-hero-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: calc(var(--header-total) + 4rem) 2.5rem 6rem;
  }
}

.keao-hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9999px;
  font-size: .85rem; color: #fff;
  margin-bottom: 1.5rem;
}
.keao-badge-dot {
  width: 8px; height: 8px;
  background: #4ade80; border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.keao-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.keao-hero-title-accent { color: var(--primary-200); }

.keao-hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.keao-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.keao-hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 2rem;
}
.keao-stat-num  { font-size: 2.5rem; font-weight: 700; color: #fff; line-height: 1; }
.keao-stat-label { font-size: .8rem; color: var(--primary-200); margin-top: .25rem; }

/* Hero 右侧产品卡片 */
.keao-hero-cards { display: none; }
@media (min-width: 1024px) { .keao-hero-cards { display: block; } }
.keao-hero-cards-inner {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.keao-hero-cards-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.keao-hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: var(--transition);
}
.keao-hero-card:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }
.keao-hero-card-img { height: 7rem; overflow: hidden; }
.keao-hero-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.keao-hero-card:hover .keao-hero-card-img img { transform: scale(1.05); }
.keao-hero-card-img-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.4);
}
.keao-hero-card-body { padding: .75rem 1rem; }
.keao-hero-card-body h3 { font-size: .85rem; font-weight: 600; color: #fff; margin-bottom: .25rem; }
.keao-hero-card-body p { font-size: .75rem; color: var(--primary-200); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* 滚动指示器 */
.keao-scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,.4); border-radius: 9999px;
  display: flex; align-items: flex-start; justify-content: center;
  padding: .3rem;
  animation: bounce 2s infinite;
}
.keao-scroll-dot { width: 4px; height: 12px; background: #fff; border-radius: 2px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===========================================
   特性卡片网格
   =========================================== */
.keao-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px)  { .keao-features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .keao-features-grid { grid-template-columns: repeat(4, 1fr); } }

.keao-feature-card {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: var(--transition);
}
.keao-section-white .keao-feature-card { background: var(--gray-50); }
.keao-feature-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px); }
.keao-feature-icon {
  width: 4rem; height: 4rem;
  background: var(--primary-100);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-600);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.keao-feature-card:hover .keao-feature-icon { background: var(--primary-600); color: #fff; }
.keao-feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .75rem; }
.keao-feature-card p { color: var(--gray-500); line-height: 1.7; }

/* ===========================================
   核心优势
   =========================================== */
.keao-advantage-grid {
  display: grid; gap: 4rem;
}
@media (min-width: 1024px) { .keao-advantage-grid { grid-template-columns: 1fr 1fr; align-items: center; } }

.keao-advantage-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.keao-advantage-item { display: flex; align-items: flex-start; gap: 1rem; }
.keao-advantage-icon {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  background: var(--primary-100);
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-600);
}
.keao-advantage-item h4 { font-weight: 700; margin-bottom: .25rem; color: var(--gray-900); }
.keao-advantage-item p  { color: var(--gray-500); font-size: .95rem; }

.keao-products-card {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  color: #fff;
  box-shadow: var(--shadow-xl);
}
.keao-products-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.keao-products-card p  { color: var(--primary-200); margin-bottom: 1.5rem; font-size: .95rem; }
.keao-products-list { display: flex; flex-direction: column; gap: .75rem; }
.keao-products-list li {
  display: flex; align-items: center; gap: .5rem;
  color: var(--primary-100); font-size: .9rem;
}
.keao-products-list li span {
  width: 6px; height: 6px;
  background: var(--primary-300); border-radius: 50%; flex-shrink: 0;
}

/* ===========================================
   产品卡片网格
   =========================================== */
.keao-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px)  { .keao-products-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .keao-products-grid { grid-template-columns: repeat(3, 1fr); } }
.keao-products-grid-large { gap: 2rem; }

.keao-product-card {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.keao-product-card:hover { box-shadow: var(--shadow-xl); border-color: var(--primary-200); transform: translateY(-4px); }

.keao-product-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-100);
}
.keao-product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.keao-product-card:hover .keao-product-img img { transform: scale(1.05); }
.keao-product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-300);
}
.keao-product-badge {
  position: absolute; top: 1rem; right: 1rem;
  padding: .25rem .75rem;
  background: var(--primary-600); color: #fff;
  font-size: .75rem; font-weight: 600; border-radius: 9999px;
}

.keao-product-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.keao-product-cat {
  font-size: .75rem; font-weight: 500;
  color: var(--primary-600); background: var(--primary-50);
  padding: .2rem .75rem; border-radius: 9999px;
  display: inline-block; margin-bottom: .6rem;
}
.keao-product-title {
  font-size: 1.2rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: .5rem;
  transition: color .3s;
}
.keao-product-card:hover .keao-product-title { color: var(--primary-600); }
.keao-product-desc { color: var(--gray-500); font-size: .9rem; line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.keao-product-more {
  display: flex; align-items: center; gap: .25rem;
  color: var(--primary-600); font-weight: 600; font-size: .875rem;
  transition: var(--transition);
  margin-top: auto;
}
.keao-product-card:hover .keao-product-more { transform: translateX(4px); }

/* ===========================================
   行动号召
   =========================================== */
.keao-cta-section {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  overflow: hidden;
}
.keao-cta-inner { position: relative; text-align: center; }
.keao-cta-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: #fff; margin-bottom: 1rem; }
.keao-cta-desc  { font-size: 1.15rem; color: var(--primary-100); margin-bottom: 2.5rem; max-width: 580px; margin-left: auto; margin-right: auto; }
.keao-cta-btns  { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===========================================
   页面公共头部
   =========================================== */
.keao-page-wrap { padding-top: var(--header-total); } /* 顶部联系栏 + 导航栏高度 */
.keao-page-header {
  background: linear-gradient(to right, var(--primary-600), var(--primary-700));
  padding: 4rem 0;
}
.keao-page-header-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: #fff; margin-bottom: .5rem; }
.keao-page-header-desc  { font-size: 1.1rem; color: var(--primary-100); max-width: 500px; }

/* 面包屑 */
.keao-breadcrumb-bar { background: var(--gray-50); border-bottom: 1px solid var(--gray-100); padding: .75rem 0; }
.keao-breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--gray-500); }
.keao-breadcrumb a { color: var(--gray-600); transition: var(--transition); }
.keao-breadcrumb a:hover { color: var(--primary-600); }
.keao-breadcrumb span:last-child { color: var(--gray-900); font-weight: 500; }

/* ===========================================
   产品列表页
   =========================================== */
.keao-products-page { padding: 3rem 0; }

.keao-filter-bar {
  display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2.5rem;
}
.keao-filter-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem 1.25rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 9999px;
  font-size: .875rem; font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition); cursor: pointer;
  background: #fff;
}
.keao-filter-btn:hover,
.keao-filter-btn.active {
  background: var(--primary-600); border-color: var(--primary-600);
  color: #fff;
}
.keao-filter-count {
  background: var(--gray-100); color: var(--gray-500);
  font-size: .75rem; padding: .1rem .4rem; border-radius: 9999px;
}
.keao-filter-btn.active .keao-filter-count,
.keao-filter-btn:hover .keao-filter-count { background: rgba(255,255,255,.2); color: #fff; }

.keao-empty-tip {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; padding: 4rem;
  color: var(--gray-400); text-align: center;
}

/* ===========================================
   产品详情页
   =========================================== */
.keao-product-detail-wrap { padding: 2.5rem 0 4rem; }
.keao-product-detail {
  display: grid; gap: 3rem; margin-bottom: 3rem;
}
@media (min-width: 1024px) {
  .keao-product-detail {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.keao-product-detail-img { border-radius: var(--radius-xl); overflow: hidden; }
.keao-detail-main-img { width: 100%; height: 100%; object-fit: cover; }
.keao-detail-img-placeholder {
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); color: var(--gray-300);
  border-radius: var(--radius-xl);
}

.keao-detail-cat-tag {
  display: inline-block;
  padding: .3rem .9rem;
  background: var(--primary-50); color: var(--primary-600);
  border-radius: 9999px; font-size: .8rem; font-weight: 500;
  margin-bottom: .75rem;
}
.keao-detail-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700;
  color: var(--gray-900); margin-bottom: .5rem; line-height: 1.3;
}
.keao-detail-model {
  font-size: .9rem; color: var(--gray-500); margin-bottom: 1.25rem;
}
.keao-detail-desc {
  color: var(--gray-600); line-height: 1.8; margin-bottom: 1.75rem;
  font-size: .95rem;
}

.keao-detail-features { margin-bottom: 2rem; }
.keao-detail-features h3 { font-weight: 700; margin-bottom: .75rem; color: var(--gray-900); }
.keao-detail-features ul { display: flex; flex-direction: column; gap: .6rem; }
.keao-detail-features li {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .9rem; color: var(--gray-700);
}
.keao-detail-features li svg { color: var(--primary-500); flex-shrink: 0; margin-top: 2px; }
.keao-detail-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* 单品详情页（single.php） */
.keao-single-product-wrap { padding: 3rem 0 4rem; }
.keao-single-product-grid {
  display: grid; gap: 3rem; margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .keao-single-product-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.keao-single-product-gallery img.keao-single-product-img,
.keao-product-img-placeholder-lg {
  width: 100%; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); display: block;
}
.keao-product-img-placeholder-lg {
  aspect-ratio: 4/3; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400);
}
.keao-single-product-title {
  font-size: 1.75rem; font-weight: 700;
  color: var(--gray-900); margin: .5rem 0 1rem;
}
.keao-single-product-excerpt {
  color: var(--gray-600); line-height: 1.8;
  margin-bottom: 1.5rem; font-size: 1rem;
}
/* 产品正文内容排版 */
.keao-single-product-content {
  background: #fff; border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl); padding: 2.5rem;
}
.keao-single-product-content h2 {
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 1.25rem; padding-bottom: .75rem;
  border-bottom: 2px solid var(--primary-100);
}
.keao-prose p  { color: var(--gray-700); line-height: 1.9; margin-bottom: 1rem; }
.keao-prose ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.keao-prose li { color: var(--gray-700); line-height: 1.8; }
.keao-prose img { max-width: 100%; border-radius: var(--radius-lg); margin: 1rem 0; }

/* 技术参数表 */
.keao-specs-section { margin-bottom: 3rem; }
.keao-specs-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.25rem; }
.keao-specs-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
.keao-specs-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.keao-specs-table th {
  background: var(--primary-600); color: #fff;
  padding: .875rem 1.25rem; text-align: left; font-weight: 600;
}
.keao-specs-table td { padding: .875rem 1.25rem; border-bottom: 1px solid var(--gray-100); }
.keao-specs-table tr:last-child td { border-bottom: none; }
.keao-specs-table tr:nth-child(even) td { background: var(--gray-50); }

/* 相关产品 */
.keao-related-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }

/* ===========================================
   公司简介
   =========================================== */
.keao-about-wrap { padding: 3rem 0 4rem; }
.keao-about-section { margin-bottom: 4rem; }

.keao-about-overview {
  display: grid; gap: 3rem;
  background: #fff; border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl); padding: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 1024px) {
  .keao-about-overview { grid-template-columns: 1fr 1fr; align-items: center; }
}
.keao-about-overview-text h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; }
.keao-about-overview-text p { color: var(--gray-600); line-height: 1.8; margin-bottom: .75rem; }
.keao-about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.keao-about-stat {
  background: var(--primary-50); border-radius: var(--radius-lg);
  padding: 1.5rem; text-align: center;
}
.keao-about-stat-num  { font-size: 2.2rem; font-weight: 700; color: var(--primary-600); }
.keao-about-stat-label { font-size: .85rem; color: var(--gray-600); }

.keao-about-overview-img { position: relative; }
.keao-about-factory-icon {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-600);
}
/* 特色图片模式（设置了特色图时显示） */
.keao-about-featured-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.keao-about-featured-img .keao-about-photo {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  max-height: 400px;
}
.keao-about-mission-card {
  position: absolute; bottom: -1rem; right: -1rem;
  background: var(--primary-600); color: #fff;
  padding: 1.25rem 1.5rem; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.keao-about-mission-label { font-size: .8rem; color: var(--primary-200); margin-bottom: .25rem; }
.keao-about-mission-text  { font-size: 1.1rem; font-weight: 700; }

/* 价值观 */
.keao-values-section {
  background: #fff; border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl); padding: 3rem;
}
.keao-values-grid {
  display: grid; gap: 2.5rem; margin-top: 2.5rem;
}
@media (min-width: 768px) { .keao-values-grid { grid-template-columns: repeat(3, 1fr); } }
.keao-value-item { text-align: center; }
.keao-value-icon {
  width: 5rem; height: 5rem;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin: 0 auto 1.25rem;
  box-shadow: 0 4px 20px rgba(37,99,235,.3);
}
.keao-value-item h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .75rem; }
.keao-value-item p  { color: var(--gray-500); line-height: 1.7; }

/* 时间线 */
.keao-timeline { position: relative; }
.keao-timeline::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  top: 0; bottom: 0; width: 2px;
  background: var(--primary-200); display: none;
}
@media (min-width: 768px) { .keao-timeline::before { display: block; } }

.keao-timeline-item {
  display: flex; flex-direction: column;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .keao-timeline-item {
    flex-direction: row;
    align-items: center;
  }
  .keao-timeline-item.keao-timeline-right { flex-direction: row-reverse; }
}
.keao-timeline-year {
  display: none;
}
.keao-timeline-dot {
  display: none;
}
@media (min-width: 768px) {
  .keao-timeline-year {
    display: block;
    width: calc(50% - 1.5rem);
    text-align: right;
    font-size: 1.75rem; font-weight: 700;
    color: var(--primary-600); padding-right: 1.5rem;
  }
  .keao-timeline-right .keao-timeline-year { text-align: left; padding-right: 0; padding-left: 1.5rem; }
  .keao-timeline-dot {
    display: block;
    width: 1rem; height: 1rem;
    background: var(--primary-600); border-radius: 50%;
    border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary-600);
    flex-shrink: 0;
  }
}
.keao-timeline-content {
  background: #fff; border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem; box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .keao-timeline-content { width: calc(50% - 1.5rem); margin-left: 1.5rem; }
  .keao-timeline-right .keao-timeline-content { margin-left: 0; margin-right: 1.5rem; }
}
.keao-timeline-content p { color: var(--gray-700); }

/* 产品系列（关于页面全宽版） */
.keao-products-card-full {
  display: grid; gap: 2rem; margin-bottom: 3rem;
}
@media (min-width: 1024px) {
  .keao-products-card-full { grid-template-columns: 1fr 2fr; align-items: center; }
}
.keao-products-card-left h3 { font-size: 1.75rem; font-weight: 700; margin-bottom: .5rem; }
.keao-products-card-left p { color: var(--primary-200); line-height: 1.7; }
.keao-products-list-large { display: flex; flex-direction: column; gap: .9rem; }
.keao-products-list-large li {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(255,255,255,.08); border-radius: .75rem;
  padding: .9rem 1.25rem; color: #fff; font-weight: 500;
}
.keao-products-list-large li svg { color: var(--primary-300); flex-shrink: 0; }

/* 地理位置 */
.keao-about-location {
  display: flex; align-items: flex-start; gap: 1.5rem;
  background: #fff; border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl); padding: 2.5rem;
}
.keao-about-location-icon {
  width: 4rem; height: 4rem; flex-shrink: 0;
  background: var(--primary-100); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-600);
}
.keao-about-location h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .35rem; }
.keao-about-location p  { color: var(--gray-600); line-height: 1.7; }
.keao-location-note { font-size: .9rem; color: var(--gray-500); margin-top: .35rem; }

/* ===========================================
   联系我们
   =========================================== */
.keao-contact-wrap { padding: 3rem 0 4rem; }
.keao-contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .keao-contact-grid { grid-template-columns: 1fr 2fr; } }

.keao-contact-card {
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow); padding: 2rem;
  margin-bottom: 1.5rem;
}
.keao-contact-card h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.5rem; }
.keao-contact-items { display: flex; flex-direction: column; gap: 1.5rem; }
.keao-contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.keao-contact-icon {
  flex-shrink: 0; width: 3rem; height: 3rem;
  background: var(--primary-100); border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-600);
}
.keao-contact-item h4 { font-weight: 600; margin-bottom: .25rem; color: var(--gray-900); }
.keao-contact-item a, .keao-contact-item p { color: var(--gray-600); font-size: .9rem; display: block; line-height: 1.8; }
.keao-contact-item a:hover { color: var(--primary-600); }

.keao-quick-contact {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  border-radius: var(--radius-xl); padding: 2rem; color: #fff;
}
.keao-quick-contact h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.keao-quick-contact p  { color: var(--primary-100); margin-bottom: 1.25rem; font-size: .9rem; }

/* 留言表单 */
.keao-contact-form-card {
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow); padding: 2rem; margin-bottom: 2rem;
}
.keao-contact-form-card h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: .35rem; }
.keao-contact-form-card > p { color: var(--gray-500); margin-bottom: 1.75rem; font-size: .9rem; }

.keao-form { display: flex; flex-direction: column; gap: 1.25rem; }
.keao-form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .keao-form-row { grid-template-columns: 1fr 1fr; } }
.keao-form-group { display: flex; flex-direction: column; gap: .35rem; }
.keao-form-group label { font-size: .875rem; font-weight: 500; color: var(--gray-700); }
.keao-form-group input,
.keao-form-group textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200); border-radius: .75rem;
  font-family: var(--font); font-size: .95rem; color: var(--gray-800);
  transition: var(--transition); outline: none; resize: none;
}
.keao-form-group input:focus,
.keao-form-group textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.keao-form-actions { display: flex; align-items: center; gap: 1rem; }
.keao-form-msg { font-size: .875rem; padding: .5rem .75rem; border-radius: .5rem; }
.keao-form-msg.success { background: #dcfce7; color: #166534; }
.keao-form-msg.error   { background: #fee2e2; color: #991b1b; }

/* 常见问题 */
.keao-faq-section h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.25rem; }
.keao-faq-list { display: flex; flex-direction: column; gap: .75rem; }
.keao-faq-item {
  background: #fff; border-radius: .75rem;
  border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.keao-faq-item summary {
  padding: 1.1rem 1.5rem;
  cursor: pointer; font-weight: 600;
  color: var(--gray-900); font-size: .95rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.keao-faq-item summary::after {
  content: '+'; font-size: 1.4rem; color: var(--gray-400);
  transition: var(--transition);
}
.keao-faq-item[open] summary::after { content: '–'; color: var(--primary-600); }
.keao-faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--gray-600); line-height: 1.7; font-size: .9rem;
}

/* ===========================================
   页脚
   =========================================== */
.keao-footer { background: var(--gray-900); color: var(--gray-400); }
.keao-footer-main { padding: 4rem 0; }
.keao-footer-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .keao-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .keao-footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.keao-footer-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.keao-footer-logo-icon {
  width: 3rem; height: 3rem;
  background: var(--primary-600); border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.keao-footer-logo-name { font-size: 1rem; font-weight: 700; color: #fff; }
.keao-footer-logo-sub  { font-size: .72rem; color: var(--gray-500); }
.keao-footer-desc { font-size: .85rem; line-height: 1.75; color: var(--gray-500); }

.keao-footer-title { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }
.keao-footer-links { display: flex; flex-direction: column; gap: .6rem; }
.keao-footer-links li a {
  font-size: .875rem; color: var(--gray-400);
  transition: var(--transition);
  display: flex; align-items: center; gap: .5rem;
}
.keao-footer-links li a::before {
  content: ''; width: 6px; height: 6px;
  background: var(--primary-500); border-radius: 50%; flex-shrink: 0;
}
.keao-footer-links li a:hover { color: var(--primary-400); }

.keao-footer-contact-list { display: flex; flex-direction: column; gap: 1rem; }
.keao-footer-contact-list li { display: flex; align-items: flex-start; gap: .75rem; }
.keao-footer-contact-list svg { color: var(--primary-500); flex-shrink: 0; margin-top: 2px; }
.keao-footer-contact-label { font-size: .8rem; color: var(--gray-500); display: block; margin-bottom: .15rem; }
.keao-footer-contact-value { color: #fff; font-weight: 500; font-size: .875rem; display: block; }
.keao-footer-contact-sub   { color: var(--gray-500); font-size: .8rem; display: block; }
.keao-footer-contact-list a:hover { color: var(--primary-400); }

.keao-footer-bottom { border-top: 1px solid var(--gray-800); }
.keao-footer-bottom-inner {
  padding: 1.5rem 1.5rem;
  display: flex; flex-direction: column; gap: .75rem; align-items: center;
}
@media (min-width: 768px) {
  .keao-footer-bottom-inner { flex-direction: row; justify-content: space-between; }
}
.keao-footer-copy { font-size: .8rem; color: var(--gray-600); text-align: center; }
.keao-footer-copy p { margin-bottom: .2rem; }
.keao-footer-copy a { color: var(--gray-500); transition: var(--transition); }
.keao-footer-copy a:hover { color: var(--primary-400); }
.keao-footer-legal { display: flex; gap: 1.25rem; }
.keao-footer-legal a { font-size: .8rem; color: var(--gray-600); transition: var(--transition); }
.keao-footer-legal a:hover { color: var(--primary-400); }

/* ===========================================
   分页
   =========================================== */
.keao-pagination { margin-top: 3rem; text-align: center; }
.keao-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; margin: 0 .2rem;
  border: 1.5px solid var(--gray-200); border-radius: .5rem;
  font-size: .875rem; font-weight: 500; color: var(--gray-600);
  transition: var(--transition);
}
.keao-pagination .page-numbers:hover,
.keao-pagination .page-numbers.current {
  background: var(--primary-600); border-color: var(--primary-600); color: #fff;
}
.keao-pagination .prev,
.keao-pagination .next { padding: 0 1rem; width: auto; }

/* ===========================================
   通用工具类
   =========================================== */
.keao-page-content { padding: 3rem 0; }
.keao-entry-content { max-width: 800px; line-height: 1.8; color: var(--gray-700); }
.keao-entry-content h1, .keao-entry-content h2, .keao-entry-content h3 { color: var(--gray-900); margin: 1.5rem 0 .75rem; font-weight: 700; }
.keao-entry-content p { margin-bottom: 1rem; }

/* WP 管理员工具栏适配 */
@media screen and (min-width: 600px) {
  body.admin-bar .keao-topbar { top: 32px; position: fixed; left: 0; right: 0; z-index: 1001; }
  body.admin-bar .keao-navbar  { top: calc(32px + var(--topbar-height)); }
  body.admin-bar .keao-page-wrap { padding-top: calc(32px + var(--header-total)); }
}
@media screen and (max-width: 782px) {
  body.admin-bar .keao-topbar { top: 46px; }
  body.admin-bar .keao-navbar  { top: calc(46px + var(--topbar-height)); }
  body.admin-bar .keao-page-wrap { padding-top: calc(46px + var(--header-total)); }
}
