/* ===== HDM Robotics - 科技蓝主题 ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: linear-gradient(135deg, #0a1628 0%, #132044 40%, #1a2a5e 100%);
  color: #e0e8f0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

nav {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
}
.logo {
  font-size: 1.5rem; font-weight: 600;
  color: #66ccff; text-decoration: none; letter-spacing: -0.5px;
}
.logo img { height: 80px; vertical-align: middle; }
.nav-links { list-style: none; display: flex; gap: 28px; align-items: center; }
.nav-links > li { position: relative; }
.nav-links a {
  text-decoration: none; color: #c0d8f0; font-size: 0.95rem;
  padding: 8px 0; display: block; transition: color 0.2s;
}
.nav-links a:hover { color: #66ccff; }

.dropdown-content {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(10px);
  min-width: 195px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border-radius: 8px; padding: 8px 0; z-index: 999;
  border: 1px solid rgba(102,204,255,0.15);
}
.dropdown-content a {
  padding: 10px 20px; color: #c0d8f0; white-space: nowrap;
}
.dropdown-content a:hover { background: rgba(102,204,255,0.1); color: #66ccff; }
.nav-links li:hover .dropdown-content { display: block; }

.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span { width: 26px; height: 3px; background: #c0d8f0; border-radius: 2px; }

.hero {
  padding: 80px 24px; text-align: center;
  background: transparent; position: relative;
}
.hero::before {
  content: '';
  position: absolute; top:0; left:0; right:0; bottom:0;
  background: url('images/hero-robot.jpg') center/cover no-repeat;
  opacity: 0.35; z-index: 0;
}
.hero h1, .hero p, .hero .btn-primary { position: relative; z-index: 1; }
.hero h1 {
  font-size: 2.8rem; font-weight: 700; color: #ffffff;
  text-shadow: 0 2px 15px rgba(0,150,255,0.3);
  margin-bottom: 16px;
}
.hero p { font-size: 1.15rem; color: #c0d8f0; max-width: 720px; margin: 0 auto 36px; }
.btn-primary {
  display: inline-block; background: #0066cc; color: #fff;
  padding: 14px 42px; border-radius: 48px; text-decoration: none;
  font-weight: 600; font-size: 1.05rem;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 15px rgba(0,102,204,0.3);
}
.btn-primary:hover { background: #0088ff; transform: translateY(-2px); }

.section { max-width: 1240px; margin: 0 auto; padding: 64px 24px; }
.section-title {
  font-size: 2rem; font-weight: 600; text-align: center;
  margin-bottom: 38px; color: #88ddff;
  text-shadow: 0 1px 5px rgba(0,150,255,0.2);
}

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-text p { margin-bottom: 16px; color: #c0d8f0; font-size: 1.02rem; }
.about-text .btn-outline {
  display: inline-block; border: 2px solid #66ccff; color: #66ccff;
  padding: 10px 34px; border-radius: 48px; text-decoration: none; font-weight: 600;
  transition: all 0.2s;
}
.about-text .btn-outline:hover { background: #66ccff; color: #0a1628; }
.about-image {
  background: rgba(255,255,255,0.05);
  height: 310px; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(102,204,255,0.15);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 24px;
}
.card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(102,204,255,0.15);
  border-radius: 12px; padding: 28px 20px; text-align: center;
  transition: all 0.2s; cursor: default;
}
.card:hover {
  border-color: #66ccff;
  box-shadow: 0 8px 30px rgba(0,100,255,0.15);
  transform: translateY(-4px);
}
.card-icon { font-size: 2.4rem; margin-bottom: 11px; }
.card h3 { font-size: 1.1rem; font-weight: 600; color: #88ddff; margin-bottom: 8px; }
.card p { font-size: 0.91rem; color: #aaccee; }

.youtube-area {
  background: rgba(5,14,30,0.75);
  text-align: center; padding: 56px 24px;
  border-top: 1px solid rgba(102,204,255,0.1);
  border-bottom: 1px solid rgba(102,204,255,0.1);
}
.youtube-area h2 { color: #ffffff; font-size: 1.8rem; margin-bottom: 12px; }
.youtube-area p { margin-bottom: 28px; color: #aaccee; }
.youtube-placeholder {
  max-width: 650px; margin: 0 auto;
  aspect-ratio: 16/9; background: #112233;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(102,204,255,0.2);
}
.youtube-placeholder img { width: 100%; height: 100%; object-fit: cover; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 28px;
}
.contact-item {
  background: rgba(255,255,255,0.05);
  border-radius: 12px; padding: 28px 20px;
  border: 1px solid rgba(102,204,255,0.1);
}
.contact-item h4 { color: #66ccff; margin-bottom: 8px; font-size: 1.05rem; }
.contact-item p { color: #aaccee; font-size: 0.94rem; margin-bottom: 4px; }

footer {
  background: #050e1e;
  color: #8899bb; padding: 32px 24px; text-align: center; font-size: 0.93rem;
  border-top: 1px solid rgba(102,204,255,0.1);
}
footer a { color: #88bbee; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* 产品详情页 */
.product-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px; margin: 40px 0;
}
.product-gallery .gallery-item { text-align: center; }
.product-gallery img {
  width: 75%; border-radius: 12px;
  aspect-ratio: 4/3; object-fit: cover;
  border: 1px solid rgba(102,204,255,0.15);
}
.product-gallery .gallery-item p {
  margin-top: 8px; color: #aaccee; font-size: 0.95rem;
}
.product-desc {
  columns: 2; column-gap: 45px; margin-top: 20px;
}
.product-desc p {
  break-inside: avoid; margin-bottom: 17px; color: #c0d8f0;
}

/* 服务页 */
.sim-hero {
  display: flex; justify-content: center; gap: 55px;
  margin: 40px 0; flex-wrap: wrap;
}
.sim-item { flex: 0 1 370px; text-align: center; }
.sim-item img {
  width: 100%; border-radius: 12px;
  aspect-ratio: 4/3; object-fit: cover;
  border: 1px solid rgba(102,204,255,0.15);
}
.sim-item p { margin-top: 12px; font-weight: 550; color: #88ddff; font-size: 1.05rem; }
.sim-content { max-width: 850px; margin: 0 auto; }
.sim-content p { margin-bottom: 16px; color: #c0d8f0; }

/* 视频页 */
.video-container { max-width: 870px; margin: 40px auto; text-align: center; }
.video-container iframe {
  width: 100%; aspect-ratio: 16/9;
  border-radius: 12px;
  border: 1px solid rgba(102,204,255,0.2);
}

/* 响应式 */
@media (max-width: 920px) {
  .nav-links {
    display: none; flex-direction: column;
    background: rgba(10,22,40,0.98);
    position: absolute; top: 57px; left: 0; right: 0;
    padding: 18px; box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    z-index: 998;
  }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }
  .nav-links > li { width: 100%; }
  .dropdown-content {
    position: static; box-shadow: none;
    padding-left: 20px; border: none;
    background: transparent;
  }
  .hero h1 { font-size: 2rem; }
  .about-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.6rem; }
  .product-gallery { grid-template-columns: 1fr; }
  .product-desc { columns: 1; }
  .sim-hero { flex-direction: column; align-items: center; }
}