:root {
  --primary: #0A4F6B;
  --accent: #00A8CC;
  --light-bg: #E8F4F8;
  --cta: #F5A623;
  --text: #1A1A1A;
  --muted: #666666;
  --white: #FFFFFF;
  --border: #D0E3EA;
  --shadow: 0 4px 12px rgba(10, 79, 107, 0.12);
  --radius: 8px;
  --container: 1200px;
  --nav-height: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Offset anchor scroll for sticky nav (64px + 16px buffer) */
[id] {
  scroll-margin-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  list-style: none;
}

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

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--light-bg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--cta);
  color: var(--text);
  border-color: var(--cta);
}

.btn-primary:hover {
  background-color: #e09400;
  border-color: #e09400;
  color: var(--text);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Focus-visible styles for keyboard navigation */
.btn:focus-visible,
.nav-menu a:focus-visible,
.nav-toggle:focus-visible,
.nav-logo:focus-visible,
.product-card:focus-visible,
.video-preview:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(10, 79, 107, 0.16);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-menu a[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 60px 0 24px;
}

.footer a {
  color: var(--white);
  opacity: 0.85;
}

.footer a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  opacity: 0.8;
}

.footer-brand h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.footer h4 {
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-brand p,
.footer-contact p,
.footer-store p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.85;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  font-size: 14px;
}

.footer-store .btn {
  margin-top: 12px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.params-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.params-table th,
.params-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.params-table th {
  background-color: var(--light-bg);
  color: var(--primary);
  font-weight: 600;
}

.params-table tr:last-child td {
  border-bottom: none;
}

.params-table td:first-child {
  color: var(--muted);
  width: 35%;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll .params-table {
  min-width: 480px;
}

@media (max-width: 1023px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  :root {
    --nav-height: 56px;
  }

  .section {
    padding: 56px 0;
  }

  .container {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 16px 24px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu .nav-cta {
    display: inline-flex;
    width: auto;
    margin-top: 12px;
    padding: 12px 28px;
    border-bottom: 2px solid var(--cta);
    border-radius: var(--radius);
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .product-grid,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Homepage sections */
.hero {
  background-color: var(--light-bg);
  padding: 80px 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-content {
  flex: 1 1 45%;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-image {
  flex: 1 1 55%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--muted);
}

.product-card {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.product-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

.product-card-body {
  padding: 24px;
}

.product-card-body h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--primary);
}

.product-card-body p {
  font-size: 15px;
  color: var(--muted);
}

.feature-list {
  text-align: center;
}

.feature-item {
  padding: 24px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.feature-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  color: var(--muted);
}

.video-preview {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.video-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--primary);
}

.cred-grid {
  text-align: center;
}

.cred-card {
  padding: 32px 24px;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cert-thumb {
  aspect-ratio: 3 / 4;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--light-bg);
  border: 1px solid var(--border);
}

.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cred-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cred-card p {
  font-size: 14px;
  color: var(--muted);
}

/* About page */
.about-intro-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
}

.about-story-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}

.about-story-text p + p {
  margin-top: 16px;
}

.guarantee-grid {
  text-align: center;
}

.guarantee-card {
  padding: 32px 24px;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guarantee-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(10, 79, 107, 0.16);
}

.guarantee-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
}

.guarantee-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.guarantee-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.guarantee-card p {
  font-size: 14px;
  color: var(--muted);
}

.cta-bottom {
  text-align: center;
}

.cta-bottom h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

@media (max-width: 767px) {
  .hero-inner {
    flex-direction: column-reverse;
  }

  .hero-content {
    text-align: center;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-actions {
    justify-content: center;
  }

  .section-title {
    font-size: 26px;
  }

  .cta-bottom h2 {
    font-size: 24px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Boat page sections */
.product-hero .hero-inner {
  flex-direction: row-reverse;
}

.video-player video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.scene-gallery {
  gap: 24px;
}

.scene-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.scene-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.scene-card figcaption {
  padding: 16px;
  text-align: center;
  font-weight: 600;
  color: var(--primary);
}

.warning-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 24px 24px 28px;
  background-color: #FFF8E1;
  border-left: 4px solid var(--cta);
  border-radius: var(--radius);
}

.warning-box ul {
  list-style: disc;
  padding-left: 20px;
}

.warning-box li + li {
  margin-top: 12px;
}

.warning-box strong {
  color: var(--primary);
}

@media (max-width: 767px) {
  .product-hero .hero-inner {
    flex-direction: column;
  }
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-company h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.6;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-label {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--primary);
  min-width: 80px;
}

.contact-label::after {
  content: '：';
}

.contact-value {
  color: var(--text);
}

.contact-qr {
  text-align: center;
}

.contact-qr h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

.qr-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  display: block;
  border-radius: var(--radius);
}

.contact-qr > p {
  font-size: 14px;
  color: var(--muted);
}

.contact-cta-action {
  text-align: center;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 18px;
}

@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-company h2 {
    font-size: 20px;
  }

  .qr-image {
    width: 180px;
    height: 180px;
  }
}
