/* ===== 科伟泰官网主样式 ===== */
:root {
  --primary: #0066cc;
  --secondary: #0099ff;
  --dark: #1a2332;
  --gray: #f5f7fa;
  --text: #444;
  --border: #e8e8e8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif; color: var(--text); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-gray { background: var(--gray); }
.section-blue { background: linear-gradient(135deg, #0a1628 0%, #0d2244 50%, #0a1628 100%); color: #fff; }

/* ===== 导航栏 ===== */
.navbar-kwt {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  height: 70px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-text { font-size: 20px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.logo-text span { display: block; font-size: 10px; color: #888; font-weight: 400; letter-spacing: 1px; }
.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block; padding: 8px 14px; font-size: 14px; font-weight: 500;
  color: #333; border-radius: 6px; transition: all 0.2s; white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a { color: var(--primary); background: rgba(0,102,204,0.06); }
.dropdown-menu-kwt {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 160px; padding: 8px 0; z-index: 100;
  border-top: 3px solid var(--primary);
}
.nav-menu > li:hover .dropdown-menu-kwt { display: block; }
.dropdown-menu-kwt a {
  display: block; padding: 9px 18px; font-size: 13px; color: #555;
  transition: all 0.2s; white-space: nowrap;
}
.dropdown-menu-kwt a:hover { color: var(--primary); background: rgba(0,102,204,0.05); padding-left: 24px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: #333; border-radius: 2px; transition: all 0.3s; }

/* ===== 页面头部 ===== */
.page-hero {
  margin-top: 70px;
  background: linear-gradient(135deg, #0a1628 0%, #0d2244 60%, #0066cc 100%);
  padding: 60px 0; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 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="40" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="80" r="60" fill="rgba(255,255,255,0.02)"/></svg>');
}
.page-hero-content { position: relative; }
.page-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.breadcrumb {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ===== Banner ===== */
.banner-section { margin-top: 70px; }
.banner-swiper { width: 100%; height: 600px; }
.banner-slide { position: relative; overflow: hidden; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,22,40,0.8) 0%, rgba(10,22,40,0.4) 60%, transparent 100%);
  display: flex; align-items: center;
}
.banner-text { max-width: 600px; padding: 0 60px; color: #fff; }
.banner-text .tag {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  letter-spacing: 1px; margin-bottom: 20px;
}
.banner-text h1 { font-size: 44px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.banner-text p { font-size: 16px; color: rgba(255,255,255,0.85); line-height: 1.7; margin-bottom: 28px; }
.btn-banner {
  display: inline-block; padding: 13px 28px; background: var(--primary); color: #fff;
  border-radius: 8px; font-size: 15px; font-weight: 600; transition: all 0.3s;
  margin-right: 12px; margin-bottom: 8px;
}
.btn-banner:hover { background: #0052a3; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,102,204,0.4); }
.btn-banner.outline { background: transparent; border: 2px solid rgba(255,255,255,0.8); }
.btn-banner.outline:hover { background: rgba(255,255,255,0.1); }
.swiper-button-next, .swiper-button-prev { color: #fff !important; }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 20px !important; }
.swiper-pagination-bullet { background: rgba(255,255,255,0.6) !important; }
.swiper-pagination-bullet-active { background: #fff !important; }

/* ===== 区块标题 ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .en-title { font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: 3px; margin-bottom: 12px; }
.section-header h2 { font-size: 34px; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.section-header p { font-size: 15px; color: #888; max-width: 600px; margin: 0 auto; }
.section-blue .section-header h2 { color: #fff; }

/* ===== 关于我们 ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content .label { display: inline-block; background: rgba(0,102,204,0.08); color: var(--primary); padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.about-content h2 { font-size: 32px; font-weight: 700; color: var(--dark); line-height: 1.3; margin-bottom: 20px; }
.about-content p { font-size: 15px; color: #555; line-height: 1.9; margin-bottom: 16px; }
.about-stats { display: flex; gap: 32px; margin-top: 32px; }
.stat-item .num { font-size: 40px; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-item .num span { font-size: 22px; }
.stat-item .label2 { font-size: 13px; color: #888; margin-top: 4px; }
.about-image { position: relative; }
.about-image img { width: 100%; border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,0.12); }
.about-image .badge {
  position: absolute; bottom: -20px; right: -20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border-radius: 12px; padding: 16px 20px; text-align: center;
  box-shadow: 0 8px 24px rgba(0,102,204,0.4);
}
.about-image .badge .big { font-size: 28px; font-weight: 800; }
.about-image .badge .small { font-size: 12px; opacity: 0.8; }

/* ===== 服务领域 ===== */
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.service-card {
  background: #fff; border-radius: 12px; padding: 24px 16px; text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06); transition: all 0.3s;
  border-bottom: 3px solid transparent;
}
.service-card:hover { transform: translateY(-6px); border-bottom-color: var(--primary); box-shadow: 0 12px 32px rgba(0,102,204,0.12); }
.service-card .icon { font-size: 36px; margin-bottom: 10px; }
.service-card h3 { font-size: 14px; font-weight: 600; color: #333; }

/* ===== 视频区块 ===== */
.video-section { background: linear-gradient(135deg, #0a1628, #0d2244); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card { border-radius: 12px; overflow: hidden; background: rgba(255,255,255,0.05); }
.video-card video { width: 100%; display: block; }
.video-title { padding: 12px 16px; color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; }

/* ===== 产品标签 ===== */
.product-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; justify-content: center; }
.product-tab {
  padding: 10px 22px; border-radius: 24px; font-size: 14px; font-weight: 500;
  cursor: pointer; border: 2px solid #ddd; color: #666; transition: all 0.3s; background: #fff;
}
.product-tab.active, .product-tab:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.product-panel { display: none; }
.product-panel.active { display: block; }

/* ===== 产品卡片 ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07); transition: all 0.3s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,102,204,0.15); }
.product-card .img-wrap { height: 220px; overflow: hidden; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .img-wrap img { transform: scale(1.06); }
.product-card .card-body { padding: 20px; flex: 1; }
.product-card .card-body h3 { font-size: 16px; font-weight: 700; color: #222; margin-bottom: 10px; }
.product-card .card-body p { font-size: 13px; color: #888; line-height: 1.7; }
.product-card .card-footer { padding: 14px 20px; border-top: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.tag-blue { background: rgba(0,102,204,0.08); color: var(--primary); padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.link-more { font-size: 13px; color: var(--primary); font-weight: 600; transition: gap 0.2s; }
.link-more:hover { text-decoration: underline; }

/* ===== 优势区块 ===== */
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.advantage-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 32px 24px; text-align: center; transition: all 0.3s;
}
.advantage-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.advantage-card .icon { font-size: 44px; margin-bottom: 16px; }
.advantage-card h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.advantage-card p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.8; }

/* ===== 案例轮播 ===== */
.cases-swiper { padding-bottom: 40px !important; }
.case-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.case-card .img-wrap { height: 200px; overflow: hidden; }
.case-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.case-card:hover .img-wrap img { transform: scale(1.06); }
.case-card .case-info { padding: 16px; }
.case-card .case-info h4 { font-size: 14px; font-weight: 700; color: #222; margin-bottom: 4px; }
.case-card .case-info p { font-size: 12px; color: #aaa; }

/* ===== 合作伙伴 ===== */
.partner-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner-item {
  background: #fff; border-radius: 10px; padding: 20px 16px; text-align: center;
  font-size: 13px; font-weight: 600; color: #555; box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: all 0.3s; border: 1px solid #eee;
}
.partner-item:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }

/* ===== 联系区块 ===== */
.contact-section { background: var(--gray); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.contact-info { background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 16px; padding: 40px; color: #fff; }
.contact-info h2 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.contact-info .sub { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 32px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.contact-item .icon-box { width: 42px; height: 42px; background: rgba(255,255,255,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-item .info-text strong { display: block; font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 3px; }
.contact-item .info-text span { font-size: 14px; color: #fff; }
.contact-form { background: #fff; border-radius: 16px; padding: 36px; box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.contact-form h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 2px solid #eee; border-radius: 8px;
  font-size: 14px; color: #333; transition: border-color 0.3s; outline: none; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }
.form-group textarea { height: 110px; resize: vertical; }
.btn-submit {
  width: 100%; padding: 13px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.3s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,102,204,0.3); }

/* ===== 时间轴 ===== */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--primary), var(--secondary)); }
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before { content: ''; position: absolute; left: -32px; top: 6px; width: 14px; height: 14px; background: var(--primary); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 3px rgba(0,102,204,0.2); }
.timeline-year { margin-bottom: 8px; }
.timeline-year .year { background: var(--primary); color: #fff; padding: 3px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.timeline-content { background: #fff; border-radius: 10px; padding: 20px 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.timeline-content h3 { font-size: 16px; font-weight: 700; color: #222; margin-bottom: 8px; }
.timeline-content p { font-size: 14px; color: #666; line-height: 1.7; }

/* ===== 图片画廊 ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
  position: absolute; inset: 0; background: rgba(0,102,204,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .overlay { opacity: 1; }

/* ===== 页脚 ===== */
.footer { background: #0d1a2d; color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-brand .logo-text span { font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 400; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.5); }
.footer-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--secondary); }
.contact-line { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.contact-line .ico { flex-shrink: 0; font-size: 14px; margin-top: 1px; }
.contact-line span:last-child { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }

/* ===== 右侧浮动联系 ===== */
.float-contact { position: fixed; right: 20px; bottom: 80px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.float-btn {
  background: var(--primary); color: #fff; padding: 10px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.3s;
  display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 16px rgba(0,102,204,0.3);
  white-space: nowrap;
}
.float-btn:hover { background: #0052a3; transform: translateX(-4px); }
.float-btn .ico { font-size: 16px; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-logos { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .navbar-kwt { height: 60px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1); gap: 0;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 12px 20px; border-radius: 0; }
  .dropdown-menu-kwt { display: none; position: static; box-shadow: none; border-top: none; background: #f8f9fa; padding: 0; border-radius: 0; }
  .nav-menu > li.open .dropdown-menu-kwt { display: block; }
  .dropdown-menu-kwt a { padding: 10px 32px; }
  .banner-section { margin-top: 60px; }
  .banner-swiper { height: 400px; }
  .banner-text { padding: 0 24px; }
  .banner-text h1 { font-size: 28px; }
  .banner-text p { font-size: 14px; }
  .section { padding: 48px 0; }
  .section-header h2 { font-size: 26px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image .badge { right: 10px; bottom: 10px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .partner-logos { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { gap: 20px; }
  .float-contact { right: 12px; bottom: 60px; }
}

@media (max-width: 480px) {
  .banner-swiper { height: 300px; }
  .banner-text h1 { font-size: 22px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item img { height: 140px; }
}
