/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #0a1628;
  --secondary: #1e6f9f;
  --accent: #00d4ff;
  --accent2: #0099cc;
  --glow: rgba(0, 212, 255, 0.3);
  --light-bg: #f0f4f8;
  --text: #1a2332;
  --text-light: #5a6b7d;
  --white: #ffffff;
  --border: #d0dce8;
  --card-bg: #ffffff;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  background: var(--white);
}

a { text-decoration: none; color: inherit; transition: all 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 导航 ===== */
.header {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}

.logo { display: flex; align-items: center; gap: 10px; }

/*
.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 700;
  box-shadow: 0 0 20px var(--glow);
}
*/
.logo-icon {
  width: 40px; 
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--secondary)); /* 保留原有科技蓝背景，如果你希望完全用图片的背景，可将这行删掉 */
  border-radius: 8px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  box-shadow: 0 0 20px var(--glow);
  overflow: hidden; /* 防止图片溢出圆角 */
}

/* 新增：让图标图片自适应填充 */
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 强制铺满，不留白；如果图片想完整显示不裁剪，改为 contain */
  display: block;
}

.logo-text { font-size: 20px; font-weight: 700; color: var(--white); letter-spacing: 1px; }
.logo-text small { display: block; font-size: 11px; color: var(--accent); font-weight: 400; letter-spacing: 2px; }

.nav ul { display: flex; gap: 8px; }
.nav a {
  padding: 8px 18px; border-radius: 6px; font-size: 15px; color: rgba(255,255,255,0.8); font-weight: 500;
  border: 1px solid transparent; transition: all 0.3s;
}
.nav a:hover, .nav a.active {
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.menu-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--accent); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #060d1a 0%, #0a1628 40%, #0d2840 100%);
  color: var(--white); padding: 90px 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero::after {
  content: ""; position: absolute; right: -150px; top: -150px; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,255,0.12), transparent 70%);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }

.hero h1 { font-size: 40px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.hero h1 span { color: var(--accent); text-shadow: 0 0 30px var(--glow); }
.hero p { font-size: 17px; opacity: 0.85; margin-bottom: 32px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 32px; border-radius: 6px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.3s; border: 2px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--primary);
  border-color: var(--accent); box-shadow: 0 0 25px var(--glow);
}
.btn-primary:hover { box-shadow: 0 0 40px var(--glow); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: rgba(0,212,255,0.1); box-shadow: 0 0 20px var(--glow); }

/* ===== 区块 ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--light-bg); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-size: 32px; color: var(--primary); margin-bottom: 12px; font-weight: 700; }
.section-header p { color: var(--text-light); font-size: 15px; max-width: 650px; margin: 0 auto; }
.section-header .line {
  width: 60px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--secondary));
  margin: 18px auto 0; border-radius: 2px; box-shadow: 0 0 12px var(--glow);
}

/* ===== 卡片 ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.card {
  background: var(--card-bg); border-radius: 14px; padding: 38px 30px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: all 0.4s;
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  opacity: 0; transition: opacity 0.4s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); border-color: rgba(0,212,255,0.3); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 58px; height: 58px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(30,111,159,0.1));
  color: var(--secondary); border: 1px solid rgba(0,212,255,0.15);
}
.card h3 { font-size: 18px; color: var(--primary); margin-bottom: 12px; }
.card p { color: var(--text-light); font-size: 14px; line-height: 1.8; margin-bottom: 18px; }
.card-link { color: var(--secondary); font-weight: 600; font-size: 14px; }
.card-link:hover { color: var(--accent); }

/* ===== 产品区块 ===== */
.product-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.product-block:last-child { margin-bottom: 0; }
.product-block.reverse { direction: rtl; }
.product-block.reverse > * { direction: ltr; }
/*
.product-visual {
  background: linear-gradient(135deg, #e8f2fa, #d0e4f4);
  border-radius: 18px; padding: 48px; min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  font-size: 90px; color: var(--secondary);
  position: relative; overflow: hidden;
  border: 1px solid rgba(0,212,255,0.1);
}
.product-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
*/


/* 1. 外层容器 */
.product-visual {
  padding: 0;                  /* 清空内边距 */
  overflow: hidden;            /* 裁剪掉超出容器的部分 */
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(0,212,255,0.1);
  aspect-ratio: 4 / 3;         /* 【关键】限制容器的宽高比（可按需调整为 3/2 或 1/1） */
  background: #f0f4f8;         /* 图片未加载时的占位底色 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 2. 内部图片 */
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* 【核心】强制铺满容器，超出部分自动裁剪 */
  object-position: left center;/* 【核心】定位到图片的“左侧居中”，从而隐藏右侧空白 */
  display: block;
  position: relative;
  z-index: 2;
}

/* 3. 清理之前的伪元素干扰 */
.product-visual::before {
  display: none;               /* 隐藏之前的网格纹理 */
}

.product-info h3 { font-size: 26px; color: var(--primary); margin-bottom: 8px; }
.product-info .partner-tag {
  display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(30,111,159,0.1));
  color: var(--secondary); border: 1px solid rgba(0,212,255,0.2); margin-bottom: 16px;
}
.product-info p { color: var(--text-light); margin-bottom: 20px; line-height: 1.9; }

.product-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.feature-item { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text); }
.feature-item::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; text-shadow: 0 0 8px var(--glow); }

/* ===== 参数表 ===== */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 14px; }
.spec-table th, .spec-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.spec-table th { background: linear-gradient(135deg, #f0f6fb, #e4eef7); color: var(--primary); font-weight: 600; width: 170px; }
.spec-table tr:hover td { background: #f7fafd; }

/* ===== 关于 ===== */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.about-text h3 { font-size: 22px; color: var(--primary); margin-bottom: 16px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; line-height: 1.9; }

.info-list {
  background: var(--white); border-radius: 14px; padding: 36px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06); border: 1px solid var(--border);
}
.info-list h3 { font-size: 18px; color: var(--primary); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--light-bg); }
.info-item { display: flex; gap: 12px; margin-bottom: 16px; font-size: 14px; }
.info-item .label { color: var(--text-light); min-width: 80px; flex-shrink: 0; }
.info-item .value { color: var(--text); word-break: break-all; }

/* ===== 联系 ===== */
.contact-simple { max-width: 560px; margin: 0 auto; text-align: center; }
.contact-simple .contact-icon-large {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 28px;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(30,111,159,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--secondary);
  border: 2px solid rgba(0,212,255,0.2); box-shadow: 0 0 30px rgba(0,212,255,0.1);
}
.contact-simple h3 { font-size: 22px; color: var(--primary); margin-bottom: 32px; }
.contact-row {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 24px; margin-bottom: 16px;
  background: var(--white); border-radius: 12px; border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04); transition: all 0.3s;
}
.contact-row:hover { border-color: rgba(0,212,255,0.4); box-shadow: 0 4px 20px rgba(0,212,255,0.1); }
.contact-row .icon { font-size: 22px; }
.contact-row .info { text-align: left; }
.contact-row .info strong { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 2px; }
.contact-row .info span { font-size: 17px; color: var(--primary); font-weight: 600; }

/* ===== 页脚 ===== */
.footer { background: var(--primary); color: rgba(255,255,255,0.7); padding: 52px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer p { line-height: 1.8; font-size: 13px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255,255,255,0.6); font-size: 13px; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-beian { margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.footer-beian .icp-number { color: rgba(255,255,255,0.75); }
.footer-beian a { color: rgba(255,255,255,0.6); font-size: 12px; }
.footer-beian a:hover { color: var(--accent); }

/* ===== 页面标题 ===== */
.page-banner {
  background: linear-gradient(135deg, #060d1a, #0a1628);
  color: var(--white); padding: 52px 0; text-align: center; position: relative; overflow: hidden;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}
.page-banner h1 { font-size: 30px; font-weight: 700; position: relative; }
.page-banner p { opacity: 0.65; margin-top: 8px; font-size: 14px; position: relative; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .product-block { grid-template-columns: 1fr; gap: 32px; }
  .product-block.reverse { direction: ltr; }
  .about-content { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,0.2); padding: 12px 0; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 12px 24px; border-radius: 0; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 28px; }
  .hero { padding: 60px 0; }
  .cards { grid-template-columns: 1fr; }
  .product-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section-header h2 { font-size: 24px; }
}