/* =========================================================================
   BlueSea (智航藍海企業社) - style.css
   全站共用樣式：深海軍藍主色、白色卡片、圓角按鈕、RWD。
   ========================================================================= */

/* ── Design Tokens ────────────────────────────────────────────────────── */
:root {
  --navy-900: #0a1e30;
  --navy-800: #12314f;
  --navy-700: #1a3a5c;
  --navy-600: #24496e;
  --navy-100: #e7edf3;

  --accent: #2fb6d9;
  --accent-dark: #1f93b3;
  --accent-light: #d6f2f8;

  --white: #ffffff;
  --gray-50: #f6f9fb;
  --gray-100: #eef2f6;
  --gray-200: #dde5ec;
  --gray-300: #c3cfd9;
  --gray-500: #748897;
  --gray-600: #5b6f80;
  --gray-700: #3c4c59;
  --text: #1c2b38;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(10, 30, 48, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 30, 48, 0.12);
  --shadow-lg: 0 20px 50px rgba(10, 30, 48, 0.18);

  --container-w: 1180px;
  --header-h: 76px;
}

/* ── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--gray-50); }
.section--navy { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: var(--white); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  background: var(--accent-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section--navy .section-eyebrow { color: var(--navy-900); background: var(--accent); }
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--navy-800); }
.section--navy .section-title { color: var(--white); }
.section-desc { margin-top: 14px; color: var(--gray-600); font-size: 16px; }
.section--navy .section-desc { color: var(--navy-100); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-outline-navy { background: transparent; border-color: var(--navy-700); color: var(--navy-700); }
.btn-outline-navy:hover { background: var(--navy-700); color: var(--white); }
.btn-block { width: 100%; }
.btn.is-loading { opacity: .6; pointer-events: none; }
.btn-sm { padding: 9px 20px; font-size: 13px; }

/* ── Header / Nav ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 30, 48, .92);
  backdrop-filter: blur(6px);
  height: var(--header-h);
  display: flex; align-items: center;
  box-shadow: var(--shadow-sm);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--white); }
.logo-img { height: 40px; width: auto; display: none; }
.logo-text { font-size: 19px; font-weight: 800; letter-spacing: .02em; color: var(--white); }
.logo-text small { display: block; font-size: 11px; font-weight: 400; color: var(--accent); letter-spacing: .12em; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  padding: 10px 16px; border-radius: var(--radius-pill); color: var(--navy-100);
  font-size: 15px; font-weight: 600; transition: background .15s, color .15s;
}
.nav-menu a:hover, .nav-menu a.is-active { background: rgba(255,255,255,.1); color: var(--white); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: transparent; border: none; padding: 0;
}
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: radial-gradient(ellipse at top right, var(--navy-600), var(--navy-900) 65%);
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: url('../images/hero-waves.svg') bottom / cover no-repeat;
  opacity: .5; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 100px 0 120px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: var(--radius-pill);
  background: rgba(47,182,217,.18); color: var(--accent); font-size: 13px; font-weight: 700;
  letter-spacing: .08em; margin-bottom: 20px; border: 1px solid rgba(47,182,217,.4);
}
.hero-title { font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.2; }
.hero-subtitle { margin-top: 16px; font-size: clamp(17px, 2vw, 20px); color: var(--navy-100); font-weight: 600; }
.hero-desc { margin-top: 14px; color: var(--navy-100); font-size: 16px; max-width: 520px; }
.hero-actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  background: var(--white); border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow-lg);
}
.hero-visual img { border-radius: var(--radius-md); width: 100%; }

/* ── Feature / Stat cards ─────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-grid--5 { grid-template-columns: repeat(5, 1fr); }
.feature-card {
  background: var(--white); border-radius: var(--radius-md); padding: 32px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 16px;
  background: var(--accent-light); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.section--navy .feature-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.section--navy .feature-card h3 { color: var(--white); }
.section--navy .feature-card p { color: var(--navy-100); }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--navy-800); }
.feature-card p { color: var(--gray-600); font-size: 14.5px; }

/* ── About ────────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.about-body h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--navy-800); margin-bottom: 18px; }
.about-body p { color: var(--gray-700); font-size: 16px; margin-bottom: 24px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-feature { display: flex; gap: 12px; align-items: flex-start; }
.about-feature .dot {
  flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-light);
  color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.about-feature strong { display: block; font-size: 15px; color: var(--navy-800); margin-bottom: 2px; }
.about-feature span { font-size: 13.5px; color: var(--gray-600); }

/* ── Product cards ────────────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card-media { aspect-ratio: 4/3; background: var(--gray-50); overflow: hidden; position: relative; }
.product-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.product-badge {
  position: absolute; top: 14px; left: 14px; background: var(--navy-800); color: var(--white);
  font-size: 12.5px; font-weight: 700; padding: 5px 14px; border-radius: var(--radius-pill);
}
.product-card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card-body h3 { font-size: 18px; font-weight: 800; color: var(--navy-800); }
.product-card-body p { color: var(--gray-600); font-size: 14px; flex: 1; }
.product-card-actions { margin-top: 10px; }

.product-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.chip {
  padding: 9px 20px; border-radius: var(--radius-pill); border: 1.5px solid var(--gray-300);
  color: var(--gray-700); font-size: 14px; font-weight: 700; background: var(--white);
}
.chip.is-active, .chip:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-light); }

/* ── Product detail ───────────────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: flex-start; }
.product-detail-media {
  background: var(--gray-50); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
}
.product-detail-hp {
  display: inline-block; background: var(--navy-800); color: var(--white); font-weight: 700;
  font-size: 13px; padding: 6px 16px; border-radius: var(--radius-pill); margin-bottom: 14px;
}
.product-detail-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--navy-800); }
.product-detail-summary { margin-top: 14px; color: var(--gray-700); font-size: 16px; }
.product-detail-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

.spec-table { margin-top: 40px; width: 100%; border-collapse: collapse; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-table th { display: none; }
.spec-table td { padding: 14px 20px; border-bottom: 1px solid var(--gray-100); font-size: 14.5px; }
.spec-table tr td:first-child { width: 34%; font-weight: 700; color: var(--navy-800); background: var(--gray-50); }
.spec-table tr:last-child td { border-bottom: none; }

/* ── FAQ Accordion ────────────────────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: transparent; border: none; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 16px; font-weight: 700; color: var(--navy-800);
}
.faq-question .icon { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-light); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; transition: transform .2s; font-weight: 800; }
.faq-item.is-open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer-inner { padding: 0 24px 22px; color: var(--gray-600); font-size: 15px; white-space: pre-line; }

/* ── News ─────────────────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card-media { aspect-ratio: 16/9; background: var(--gray-50); overflow: hidden; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-date { font-size: 13px; color: var(--accent-dark); font-weight: 700; }
.news-card-body h3 { font-size: 17px; font-weight: 800; color: var(--navy-800); }
.news-card-body p { color: var(--gray-600); font-size: 14px; flex: 1; }
.news-detail-header { max-width: 780px; margin: 0 auto 32px; text-align: center; }
.news-detail-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; box-shadow: var(--shadow-md); }
.news-detail-body { max-width: 780px; margin: 0 auto; font-size: 16px; color: var(--gray-700); white-space: pre-line; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 40px; border: 1px solid var(--gray-100); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 700; color: var(--navy-800); }
.form-field label .req { color: #d64545; }
.form-field input, .form-field select, .form-field textarea {
  padding: 13px 16px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text); background: var(--gray-50); transition: border-color .15s, background .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.field-honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-message { display: none; margin-bottom: 18px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; }
.form-message--success { display: block; background: #e6f7ee; color: #1c7d4c; }
.form-message--error { display: block; background: #fdeaea; color: #c23636; }

/* ── Contact section ──────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: flex-start; }
.contact-info-list { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); }
.contact-info-item .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-light); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.contact-info-item strong { display: block; color: var(--navy-800); font-size: 14px; margin-bottom: 4px; }
.contact-info-item span, .contact-info-item a { color: var(--gray-700); font-size: 15px; }
.contact-info-item a:hover { color: var(--accent-dark); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-900); color: var(--navy-100); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { margin-top: 14px; font-size: 14px; color: var(--navy-100); max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { font-size: 14px; color: var(--navy-100); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: 13px; color: var(--gray-500); text-align: center; }

/* ── Misc ─────────────────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: var(--white); padding: 64px 0; text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.page-hero p { margin-top: 12px; color: var(--navy-100); font-size: 15.5px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 37%, var(--gray-100) 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid, .feature-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--navy-900); flex-direction: column; align-items: stretch;
    padding: 20px 24px; gap: 4px; transform: translateX(100%); transition: transform .25s ease;
    overflow-y: auto;
  }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-menu a { padding: 14px 12px; font-size: 17px; }
  .nav-cta { margin: 12px 0 0; }
  .nav-toggle { display: flex; }

  .section { padding: 56px 0; }
  .form-card { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-features { grid-template-columns: 1fr; }
  .product-grid, .news-grid { grid-template-columns: 1fr; }
  .feature-grid, .feature-grid--5 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .feature-grid, .feature-grid--5 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
