/* =========================================================
   Hiwave – Ocean Energy  |  style.css
   ========================================================= */

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; }
body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 18px;
  color: #1a1a1a;
  background: #fff;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
main, #main { flex: 1; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.2em; }

/* ── Variables ───────────────────────────────────────────── */
:root {
    --green: #00B6CC;
    --green-dark: #2db85d;
    --navy: #1a1a2e;
    --text: #333;
    --muted: #555;
    --light-bg: #f0f0ec;
    --border: #e0e0e0;
    --ease: .3s ease;
}

/* ============================================================
   NAVBAR  —— 深色背景，与 Hero 融合
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 8vh;
    padding: 0 48px;
    background: #ffffff;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background var(--ease), box-shadow var(--ease);
}
.navbark {
    margin: 0 auto;
    max-width: 1024px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 8vh;
    padding: 0 48px;
    background: #ffffff;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background var(--ease), box-shadow var(--ease);
}
    /* 滚动后稍微加深，但依然保持深色 */
    .navbar.scrolled {
        background: #ffffff;
        box-shadow: 0 2px 20px rgba(0,0,0,0.35);
    }
.navbar img{
  width: 400px;
}

/* logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;          /* 白色文字 */
  letter-spacing: -0.2px;
}
.logo svg { width: 36px; height: 36px; flex-shrink: 0; }

/* nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
    .nav-links a {
        font-size: 0.89rem;
        font-weight: 500;
        color: rgba(4, 36, 61, 1); /* 白色导航文字 */
        transition: color var(--ease);
    }
        .nav-links a:hover {
            color: rgba(0, 182, 204, 1);
        }
    .nav-links .btn-contact {
        color: rgba(0, 182, 204, 1);
        border-radius: 3px;
        padding: 8px 22px;
        font-size: 0.89rem;
        font-weight:bold;
        letter-spacing: 0.5px;
        transition: background var(--ease), color var(--ease), border-color var(--ease);
    }
.nav-links .btn-contact:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}


    .nav-links .btn-contact2 {
        border: 1.5px solid rgba(4, 36, 61, 1);
        border-radius: 3px;
        padding: 8px 22px;
        font-size: 0.89rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        color: rgba(4, 36, 61, 1); /* 白色边框按钮 */
        transition: background var(--ease), color var(--ease), border-color var(--ease);
    }
        .nav-links .btn-contact2:hover {
            background: rgba(0, 182, 204, 1);
            color: #ffffff;
            border-color: rgba(0, 182, 204, 1);
        }




/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #00b6cc;   /* 白色汉堡线 */
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 50px; left: 0; right: 0;
  background: rgba(15, 28, 22, 0.97);
  padding: 12px 24px 20px;
  z-index: 998;
  box-shadow: 0 8px 24px rgba(0,0,0,0.30);
}
.mobile-menu a {
  display: block;
  padding: 11px 0;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}

/* ============================================================
   HERO  —— 与 Navbar 深色融合，无缝连接
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1e17;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-origin: center;
  transition: transform 0.1s linear;
}
.hero-bg-filter {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgba(13,30,23,0.75) 0%,
    rgba(10,22,18,0.30) 35%,
    rgba(0,0,0,0.55) 70%,
    rgba(0,0,0,0.92) 100%);
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  /* 内容整体向下推，避开 Navbar，视觉居中 */
  margin-top: 50px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.56rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.3px;
  opacity: 0;
  transform: translateY(22px);
  animation: slideUp .9s .15s forwards;
}
.hero-content p {
  margin-top: 16px;
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  opacity: 0;
  transform: translateY(16px);
  animation: slideUp .9s .35s forwards;
}
.btn-hero {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 32px;
  background: var(--green);
  color: #fff;
  font-size: 0.89rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  opacity: 0;
  animation: slideUp .9s .55s forwards;
}
.btn-hero:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(63,203,110,.38);
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  max-width: 1024px;
  margin: 0 auto;
  display: grid;
  /* 左文本区更宽，右图片区固定 */
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
  padding: 96px 40px 96px;
}

.section-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(4, 36, 61, 1);
    line-height: 1.25;
    letter-spacing: -0.2px;
    margin-bottom: 16px;
}

.about-text > p.intro {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 14px;
}
.about-text ol {
  margin: 0 0 20px 1.1em;
}
.about-text ol li {
  font-size: 0.89rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 8px;
}
.about-text ol li strong { font-weight: 700; color: #111; }
.link-get {
  font-size: 0.89rem;
  color: #333;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
  transition: color var(--ease), border-color var(--ease);
}
.link-get:hover { color: var(--green); border-color: var(--green); }

.about-img-wrap {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.about-img-wrap.visible { opacity: 1; transform: translateY(0); }
.about-img-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform .5s ease;
}
.about-img-wrap:hover img { transform: scale(1.04); }

/* ============================================================
   PRODUCTS / CARDS SECTION
   ============================================================ */
.products {
  background: var(--light-bg);
  padding: 96px 40px 96px;
}
.products-inner {
  max-width: 1024px;
  margin: 0 auto;
}
.products .section-title { margin-bottom: 32px; font-size: 2rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease, box-shadow .25s ease;
  cursor: pointer;
}
.card.visible { opacity: 1; transform: translateY(0); }
.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.13); transform: translateY(-3px) !important; }
.card-img-wrap { overflow: hidden; }
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.card:hover .card-img { transform: scale(1.06); }
.card-body { padding: 16px 16px 20px; }
.card-title {
    font-size: 0.89rem;
    font-weight: 700;
    color: rgba(4, 36, 61, 1);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: color var(--ease);
}
.card:hover .card-title {
    color: var(--green);
}
.card:nth-child(2) .card-title,
.card:nth-child(3) .card-title { color: #111; }
.card-title .arr {
  font-size: 0.9rem;
  transition: transform var(--ease);
}
.card:hover .card-title .arr { transform: translateX(3px); }
.card-desc {
  font-size: 0.83rem;
  line-height: 1.6;
  color: #555;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  padding: 96px 40px 96px;
  max-width: 1024px;
  margin: 0 auto;
}
.contact .section-label { margin-bottom: 8px; }
.contact .section-title { font-size: 2rem; margin-bottom: 32px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
}

/* Form */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.89rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}
.form-group label span { color: var(--green); }
.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 11px 14px;
  font-size: 0.89rem;
  color: #555;
  font-family: inherit;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(63,203,110,0.15);
}
.form-group textarea { height: 120px; resize: vertical; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
}
.form-check input[type=checkbox] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  flex-shrink: 0;
}
.form-check label {
  font-size: 0.83rem;
  color: #555;
  line-height: 1.5;
  cursor: pointer;
}

.btn-submit {
  display: inline-block;
  width: 100%;
  padding: 14px;
  background: var(--green);
  color: #fff;
  font-size: 0.89rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.btn-submit:hover { background: var(--green-dark); transform: translateY(-1px); }

/* Contact info box */
.contact-info {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 24px;
}
.contact-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.89rem;
  color: var(--muted);
}
.contact-info-item svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--green);
}
.contact-info-item a {
  color: var(--green);
  transition: color var(--ease);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-info-item a:hover { color: var(--green-dark); }
.contact-info h4 {
  font-size: 0.89rem;
  font-weight: 700;
  color: #111;
  margin: 20px 0 8px;
}

/* ============================================================
   FOOTER  —— 深色，左对齐链接，底部版权
   ============================================================ */
footer {
    background: rgba(4, 36, 61, 1);
    padding: 82px 40px 52px;
}
.footer-links {
  display: flex;
  gap: 32px;
  /* 左对齐，和内容区对齐 */
  justify-content: flex-start;
  max-width: 1024px;
  margin: 0 auto 28px;
}
.footer-links a {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--ease);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: 1024px;
  margin: 0 auto;
  font-size: 0.89rem;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 18px;
}
.footer-bottom strong {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* ============================================================
   SCROLL REVEAL UTILITY
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
    background: var(--green);
    padding: 64px 40px;
}

.cta-inner {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.cta-text h2 {
    font-size: 3.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.cta-text p {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.85);
}

.btn-cta-outline {
    display: inline-block;
    padding: 14px 32px;
    border: 1.5px solid rgba(255,255,255,0.9);
    border-radius: 3px;
    font-size: 0.89rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    transition: background .3s ease, color .3s ease;
}

    .btn-cta-outline:hover {
        background: #fff;
        color: var(--green);
    }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
    padding: 72px 24px 72px;
    gap: 32px;
  }
  .navbar img {
    width: 300px;
}
  .navbark{padding: 0 20px;}
  .about-img-wrap { order: -1; }
  .about-img-wrap img { height: 240px; }

  .products { padding: 72px 24px 72px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }

  .contact { padding: 72px 24px 72px; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 540px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero { min-height: 60vh; }
  .navbar { padding: 0 18px; }
}
