:root {
  --header-height: 70px;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
               "Noto Sans JP", "Segoe UI", sans-serif;
  color: #333;
  line-height: 1.6;
  padding-top: var(--header-height); /* 与 .site-header 高度一致 */
} 

a {
  text-decoration: none;
  color: #005bac;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}


.header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  max-width: 200px;
}

.nav a {
  margin-left: 20px;
  font-size: 14px;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
} 

.hero {
  background: #005bac;
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.section {
  padding: 60px 0;
}

.section.gray {
  background: #f7f7f7;
}

.section h3 {
  margin-bottom: 30px;
  font-size: 24px;
}

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

.table th,
.table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.table th {
  background: #f0f0f0;
  width: 180px;
}

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

.footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
}
.logo img {
  max-height: calc(var(--header-height) - 16px);
  height: auto;
  width: auto;
} 
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
} 

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
  
}

.main-nav a {
  text-decoration: none;
  font-size: 14px;
  color: #333;
}

a:focus {
  outline: 2px solid #005bac;
  outline-offset: 2px;
}

/* 联系页表单样式 */
.contact-form {
  max-width: 700px;
  margin: 0 auto 60px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
}
.contact-form h2 {
  margin-top: 0;
}
.contact-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 6px;
}
.contact-form .form-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.contact-form button {
  background: #005bac;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
}
.contact-form button[type="button"] {
  background: #6c757d;
}
.contact-form .note {
  font-size: 13px;
  color: #666;
  margin-top: 12px;
}

.form-message {
  margin-top: 12px;
  font-size: 14px;
}
.form-message.success {
  color: #155724;
  background: #d4edda;
  padding: 8px 10px;
  border-radius: 6px;
}
.form-message.error {
  color: #721c24;
  background: #f8d7da;
  padding: 8px 10px;
  border-radius: 6px;
}

/* 确认模态样式 */
.modal[aria-hidden="true"] {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.modal-dialog {
  position: relative;
  background: #fff;
  max-width: 640px;
  width: 90%;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 2001;
}
.modal-header h3 {
  margin: 0 0 10px;
}
.modal-body {
  max-height: 60vh;
  overflow: auto;
  margin-bottom: 14px;
}
.confirm-message {
  white-space: pre-wrap;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #eee;
}
.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.modal-footer button {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}
.modal-footer #sendConfirmBtn {
  background: #005bac;
  color: #fff;
}
.modal-footer #closeConfirmBtn {
  background: #6c757d;
  color: #fff;
}
