/* ============================================================================
   广东祥龙船舶有限公司 - 重构版全站样式
   风格：深海蓝海洋主题 / 波浪动感 / 大幅留白
   ============================================================================ */

:root {
  --navy-900: #051433;
  --navy-800: #0d1f4a;
  --navy-700: #0d47a1;
  --navy-600: #01579b;
  --navy-100: #e3f2fd;
  --sky-50: #f5fbff;
  --sky-100: #d7ebff;
  --sky-200: #b6dcff;
  --accent-400: #ff6f00;
  --accent-300: #ffa040;
  --teal-300: #5ed0f5;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-200: #cbd5f5;
  --white: #ffffff;

  --font-base: "Source Han Sans", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --container-width: 1200px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 8px 20px rgba(5, 20, 51, 0.08);
  --shadow-lg: 0 40px 80px rgba(5, 20, 51, 0.18);
  --gradient-ocean: linear-gradient(125deg, #031b3d 0%, #043672 45%, #0a7bdc 100%);
  --gradient-dawn: linear-gradient(140deg, #0e2a5c, #0953a6, #07a3d8);
  --transition-base: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--slate-900);
  background-color: var(--sky-50);
  line-height: 1.7;
}

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

main {
  overflow: hidden;
}

.shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 20, 51, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: var(--white);
  text-transform: none;
  letter-spacing: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.brand-mark span {
  font-size: 22px;
  letter-spacing: 0;
  font-weight: 700;
}

.brand-mark small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.65);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 500;
}

.nav-item {
  position: relative;
  padding: 6px 0;
}

.nav-item > a {
  padding: 6px 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-item:hover > a,
.nav-item:focus-within > a {
  color: var(--accent-300);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: rgba(4, 14, 36, 0.95);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-400);
  color: var(--white);
  box-shadow: 0 20px 35px rgba(255, 111, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px rgba(255, 111, 0, 0.45);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent-300);
  color: var(--accent-300);
}

.hero {
  position: relative;
  background: var(--gradient-ocean);
  color: var(--white);
  padding: 140px 0 120px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 45%), radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.18), transparent 35%);
  opacity: 0.8;
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.hero .cta-group {
  margin-top: 24px;
}

.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  color: var(--white);
}

.stat-card span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.wave-divider {
  position: relative;
  width: 100%;
  height: 80px;
  margin-top: -80px;
  background: url("../images/wave.svg");
  background-size: cover;
  opacity: 0.8;
}

.section {
  padding: 90px 0;
  background: var(--white);
}

.section.alt {
  background: var(--sky-100);
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--navy-800);
}

.section-subtitle {
  text-align: center;
  margin: 0 auto 50px;
  max-width: 620px;
  color: var(--slate-500);
}

.ocean-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.ocean-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(7, 55, 118, 0.1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), border var(--transition-base);
}

.ocean-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(5, 79, 182, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.ocean-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-300);
}

.ocean-card:hover::after {
  opacity: 1;
}

.ocean-card h3 {
  margin-bottom: 12px;
  color: var(--navy-700);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(5, 87, 155, 0.1);
  color: var(--navy-600);
  margin-bottom: 14px;
}

.shipyard-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(5, 61, 138, 0.12);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 19, 45, 0.2), rgba(0, 0, 0, 0.65));
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.media-frame:hover::after {
  opacity: 0.35;
}

.shipyard-facts {
  display: grid;
  gap: 18px;
}

.shipyard-facts li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--slate-700);
}

.shipyard-facts strong {
  color: var(--navy-700);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.gallery-card span {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--white);
  font-size: 13px;
}

.timeline {
  border-left: 2px solid rgba(13, 71, 161, 0.2);
  padding-left: 28px;
  display: grid;
  gap: 28px;
}

.timeline-item {
  position: relative;
  padding-left: 12px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--accent-400);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.2);
}

.timeline-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy-700);
  margin-bottom: 6px;
}

.contact-panel {
  border-radius: var(--radius-lg);
  padding: 40px;
  background: var(--gradient-dawn);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.contact-panel h3 {
  margin-bottom: 12px;
  font-size: 1.8rem;
}

.contact-list {
  display: grid;
  gap: 12px;
  font-size: 0.95rem;
}

.contact-list span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-group .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
}

.page-hero {
  background: linear-gradient(140deg, #031b3d, #043672, #0b84df);
  color: var(--white);
  padding: 120px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 50%), radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.1), transparent 40%);
  opacity: 0.8;
}

.page-hero .shell {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin: 0 auto;
}

.page-section {
  padding: 80px 0;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.info-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(5, 61, 138, 0.12);
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  margin-bottom: 12px;
  color: var(--navy-700);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.spec-table th,
.spec-table td {
  border: 1px solid rgba(4, 27, 61, 0.12);
  padding: 12px 16px;
  font-size: 0.95rem;
  text-align: left;
}

.spec-table th {
  background: var(--sky-100);
  color: var(--navy-700);
  font-weight: 600;
}

.quote-card {
  padding: 24px;
  border-left: 4px solid var(--accent-400);
  background: rgba(255, 111, 0, 0.08);
  border-radius: 0 12px 12px 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(4, 55, 118, 0.08);
  color: var(--navy-600);
  font-size: 0.85rem;
}

.news-list {
  display: grid;
  gap: 28px;
}

.news-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(5, 61, 138, 0.12);
}

.news-card h3 {
  margin: 0 0 10px;
  color: var(--navy-700);
}

.news-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.careers-list {
  display: grid;
  gap: 24px;
}

.career-item {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(4, 27, 61, 0.1);
  background: var(--white);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  font-size: 0.9rem;
  color: var(--slate-700);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(5, 61, 138, 0.2);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-base);
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.site-footer {
  background: #020c1f;
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
}

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

.footer-grid h4 {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.footer-grid a:hover {
  color: var(--accent-300);
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

@media (max-width: 1024px) {
  .site-header .shell {
    flex-wrap: wrap;
    gap: 16px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 12px;
    border-radius: 10px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 110px 0 80px;
  }

  .hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .shipyard-showcase,
  .news-card {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 32px 24px;
  }

  .main-nav {
    flex-direction: column;
    align-items: flex-start;
  }
}
