:root {
  --bg-paper: #F5F1E8;
  --ink: #1A1A1A;
  --navy: #0A2342;
  --orange: #E67E22;
  --teal: #1ABC9C;
  --light-blue: #D6E4F0;
  --gray-line: #B8B2A6;
  --white: #FFFFFF;
  --dark-navy: #06182E;
  --font-headings: "Noto Sans SC", "Helvetica Neue", sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-width: 280px;
  --header-mobile-h: 64px;
  --content-max: 1200px;
  --radius: 12px;
  --shadow-card: 0 1px 2px rgba(10, 35, 66, 0.04);
  --shadow-hover: 0 14px 30px rgba(10, 35, 66, 0.14);
}

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

html,
body,
p,
h1,
h2,
h3,
h4,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg-paper);
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 26, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 769px) {
  body {
    padding-left: var(--header-width);
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  :root {
    --header-width: 240px;
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-headings);
  color: var(--ink);
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 1rem + 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.4rem, 0.8rem + 2vw, 1.75rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

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

strong {
  font-weight: 700;
}

blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--teal);
  background: rgba(214, 228, 240, 0.5);
  border-radius: 0 8px 8px 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--light-blue);
  padding: 2px 6px;
  border-radius: 4px;
}

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

.container {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.coordinate-label {
  font-family: var(--font-headings);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-line);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 110;
  width: var(--header-width);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--navy);
  color: var(--light-blue);
  border-right: 1px solid rgba(214, 228, 240, 0.1);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--orange);
  color: var(--dark-navy);
  border-radius: 6px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(-240%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 20px 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.brand:hover {
  color: var(--white);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px 10px 10px 2px;
  background: var(--orange);
  color: var(--dark-navy);
  font-family: var(--font-headings);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
}

.brand-text strong {
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--white);
}

.brand-text small {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--teal);
}

.nav-toggle {
  display: none;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(214, 228, 240, 0.3);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle-icon {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-active .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.header-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 8px 20px 22px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 228, 240, 0.3) transparent;
}

.site-nav {
  position: relative;
  margin: 16px 0 24px;
}

.site-nav::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(214, 228, 240, 0.16);
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-left: 2px solid transparent;
  color: rgba(214, 228, 240, 0.72);
  text-decoration: none;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-left-color: var(--teal);
}

.nav-link[aria-current="page"] {
  background: rgba(230, 126, 34, 0.12);
  color: var(--white);
  border-left-color: var(--orange);
}

.nav-marker {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--teal);
  background: var(--teal);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-link:hover .nav-marker,
.nav-link[aria-current="page"] .nav-marker {
  opacity: 1;
}

.nav-index {
  font-family: var(--font-headings);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(184, 178, 166, 0.85);
}

.nav-link[aria-current="page"] .nav-index {
  color: var(--orange);
}

.nav-label {
  line-height: 1.2;
}

.header-tools {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.header-search {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(214, 228, 240, 0.28);
  border-radius: 8px;
  background: var(--dark-navy);
  overflow: hidden;
  transition: border-color 0.2s;
}

.header-search:focus-within {
  border-color: var(--teal);
}

.search-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--white);
}

.search-input::placeholder {
  color: rgba(214, 228, 240, 0.5);
}

.search-btn {
  padding: 0 12px;
  border-left: 1px solid rgba(214, 228, 240, 0.2);
  background: transparent;
  color: var(--teal);
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.search-btn:hover {
  background: rgba(26, 188, 156, 0.14);
  color: var(--white);
}

.header-meta {
  display: grid;
  gap: 3px;
  margin-top: 6px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(214, 228, 240, 0.16);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(214, 228, 240, 0.55);
}

.header-meta-label {
  font-family: var(--font-headings);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(214, 228, 240, 0.4);
}

.header-meta-phone {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--light-blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, background-color 0.16s, color 0.16s, border-color 0.16s;
}

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

.btn-primary {
  background: var(--orange);
  color: var(--dark-navy);
}

.btn-primary:hover {
  background: #F08A35;
  color: var(--dark-navy);
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.32);
}

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

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

.btn-block {
  display: flex;
  width: 100%;
}

.btn-arrow {
  font-size: 1.1em;
  line-height: 1;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  height: 3px;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--orange));
}

@media (min-width: 769px) {
  .scroll-progress {
    left: var(--header-width);
  }
}

.site-footer {
  background-color: var(--dark-navy);
  color: rgba(214, 228, 240, 0.72);
  padding: 56px 24px 28px;
}

.footer-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer-col {
  min-width: 0;
}

.footer-about {
  max-width: 360px;
}

.brand-footer {
  margin-bottom: 18px;
}

.footer-about-text {
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(214, 228, 240, 0.62);
}

.footer-archive-link {
  display: inline-block;
  color: var(--teal);
  font-family: var(--font-headings);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-archive-link:hover {
  color: var(--orange);
}

.footer-trust-note {
  margin: 18px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--teal);
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(214, 228, 240, 0.46);
}

.footer-heading {
  margin: 4px 0 16px;
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-blue);
}

.footer-heading::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 2px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--orange);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(214, 228, 240, 0.72);
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
}

.footer-links a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.footer-bottom {
  max-width: var(--content-max);
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(214, 228, 240, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 0.8rem;
  color: rgba(214, 228, 240, 0.55);
}

.footer-bottom-left,
.footer-bottom-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.footer-icp {
  padding: 3px 10px;
  border: 1px solid rgba(214, 228, 240, 0.22);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(214, 228, 240, 0.6);
}

.footer-copyright {
  color: rgba(214, 228, 240, 0.5);
}

.footer-phone::before {
  content: 'TEL ';
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer-email::before {
  content: 'MAIL ';
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer-address::before {
  content: 'ADR ';
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

#main-content {
  display: block;
  min-height: 70vh;
  padding: 24px 20px 64px;
  scroll-margin-top: 20px;
}

@media (max-width: 768px) {
  #main-content {
    padding-top: calc(var(--header-mobile-h) + 20px);
  }
}

@media (min-width: 769px) {
  #main-content {
    padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 72px) 88px;
  }
}

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

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

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

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

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

@media (min-width: 769px) and (max-width: 1023px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--navy);
  box-shadow: var(--shadow-hover);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-headings);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.tag-orange {
  background: rgba(230, 126, 34, 0.12);
  border: 1px solid rgba(230, 126, 34, 0.28);
  color: #A95E14;
}

.tag-teal {
  background: rgba(26, 188, 156, 0.1);
  border: 1px solid rgba(26, 188, 156, 0.28);
  color: #0E7E6B;
}

.tag-navy {
  background: var(--navy);
  border: 1px solid var(--navy);
  color: var(--light-blue);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 24px;
  font-size: 0.8rem;
  color: #777;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: '/';
  color: var(--gray-line);
  font-family: var(--font-headings);
}

.breadcrumb a {
  color: var(--navy);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 600;
}

.page-header {
  margin-bottom: 40px;
}

.page-title {
  position: relative;
  margin: 0 0 10px;
  padding-left: 22px;
}

.page-title::before {
  content: '//';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-family: var(--font-headings);
  font-weight: 800;
}

.page-desc {
  max-width: 640px;
  margin: 0;
  color: #555;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
}

.section-index {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gray-line), rgba(184, 178, 166, 0));
}

.photo-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  background-color: var(--light-blue);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(214, 228, 240, 0.2));
}

.photo-frame-tall {
  aspect-ratio: 3 / 4;
}

.photo-frame-square {
  aspect-ratio: 1 / 1;
}

.photo-frame::before {
  content: attr(data-label);
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(10, 35, 66, 0.78);
  color: var(--light-blue);
  font-family: var(--font-headings);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.photo-frame::after {
  content: attr(data-caption);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 12px 8px;
  background: linear-gradient(transparent, rgba(6, 24, 46, 0.72));
  color: var(--light-blue);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.callout {
  margin: 24px 0;
  padding: 16px 20px;
  background: rgba(230, 126, 34, 0.07);
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(184, 178, 166, 0.35);
}

.data-table th {
  background: var(--navy);
  color: var(--light-blue);
  font-family: var(--font-headings);
  font-weight: 700;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: rgba(26, 188, 156, 0.06);
}

@media (max-width: 768px) {
  .site-footer {
    padding: 44px 20px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    margin-top: 32px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .site-header {
    width: 100%;
    height: var(--header-mobile-h);
    flex-direction: row;
    align-items: center;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(214, 228, 240, 0.1);
  }

  .header-top {
    flex: 1;
    min-width: 0;
    padding: 0;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
    border-radius: 8px 8px 8px 2px;
  }

  .brand-text strong {
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-panel {
    position: fixed;
    top: var(--header-mobile-h);
    right: 0;
    bottom: 0;
    z-index: 120;
    width: min(320px, 88vw);
    margin: 0;
    padding: 24px 20px 28px;
    background: var(--navy);
    border-left: 1px solid rgba(214, 228, 240, 0.12);
    box-shadow: -14px 0 36px rgba(0, 0, 0, 0.3);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
  }

  .header-panel[data-open] {
    transform: translateX(0);
    visibility: visible;
  }

  .header-tools {
    margin-top: 40px;
  }
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
