:root {
  --ink: #0b1f3a;
  --muted: #5a6b85;
  --primary: #0c3c7b;
  --accent: #1e63c6;
  --surface: #ffffff;
  --surface-alt: #f3f6fb;
  --border: #d9e2ef;
  --shadow: 0 24px 60px rgba(12, 60, 123, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #f9fbff 0%, #eef3fb 55%, #ffffff 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(12, 60, 123, 0.1);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary);
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 200ms ease, color 200ms ease;
}

.nav-links a:hover {
  background: var(--surface-alt);
  color: var(--primary);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: "Source Serif 4", "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 0 0 16px;
}

.hero p {
  color: var(--muted);
  line-height: 1.7;
}

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

.btn {
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 36px rgba(12, 60, 123, 0.25);
}

.btn.ghost {
  border: 1px solid var(--border);
  color: var(--primary);
  background: transparent;
}

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

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

.section h2 {
  font-family: "Source Serif 4", "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

.media-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.media-card img {
  border-radius: var(--radius-md);
}

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

.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.product-card a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-list li {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}

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

.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.gallery img {
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.notice {
  background: var(--surface-alt);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  line-height: 1.7;
}

.legacy-table {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.legacy-table table {
  width: 100% !important;
  border-collapse: collapse;
}

.legacy-table td {
  padding: 12px;
  border: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.95rem;
  line-height: 1.6;
}

.legacy-table font {
  color: inherit !important;
  font-size: inherit !important;
}

.legacy-table tr[bgcolor="#3366FF" i] td,
.legacy-table tr[bgcolor="#000099" i] td {
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
}

.legacy-table tr:first-child td {
  background: var(--surface-alt);
  font-weight: 700;
  font-size: 1.1rem;
}

.legacy-table img {
  max-width: 240px;
  height: auto;
}

.site-footer {
  margin-top: 40px;
  padding: 24px 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero,
  .media-card,
  .card-grid,
  .product-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page {
    padding: 32px 20px 80px;
  }

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