/* 顶栏：全宽底边 + 内容区与主区域同宽对齐 */
.h5-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.h5-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  padding: 8px 12px;
  max-width: 1108px;
  margin: 0 auto;
}

.h5-logo {
  flex-shrink: 0;
  width: 62px;
  height: 36px;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}

.h5-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.h5-search {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: var(--color-primary-light);
  border-radius: 18px;
  border: 1px solid rgba(206, 220, 228, 0.9);
}

.h5-search svg {
  flex-shrink: 0;
  opacity: 0.55;
}

.h5-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
}

.h5-search input::placeholder {
  color: var(--color-muted);
}

.h5-header-actions {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.h5-link-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.h5-link-text:hover {
  color: var(--color-primary);
}

.h5-btn-login {
  padding: 0 18px;
  height: 32px;
  line-height: 32px;
  border: none;
  border-radius: 16px;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
}

.h5-btn-login:hover {
  filter: brightness(1.05);
}

.h5-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  position: relative;
  color: var(--color-text);
}

.h5-badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #ff4d4f;
  border-radius: 50%;
}

@media (min-width: 992px) {
  .h5-header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* 底栏：仅移动端 */
.h5-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
}

@media (min-width: 992px) {
  .h5-bottom-nav {
    display: none;
  }
}

.h5-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px;
  font-size: 10px;
  color: var(--color-text-secondary);
}

.h5-bottom-nav a.active {
  color: var(--color-primary);
}

.h5-bottom-nav svg {
  opacity: 0.85;
}

/* 页脚 */
.h5-footer {
  padding: 20px 16px 28px;
  text-align: center;
}

.h5-footer-inner {
  max-width: 1108px;
  margin: 0 auto;
}

.h5-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.h5-footer-links a {
  font-size: 13px;
  color: #2a4f88;
}

.h5-footer-meta {
  font-size: 11px;
  color: var(--color-footer-text);
  line-height: 1.6;
}

.h5-footer-meta a {
  color: var(--color-footer-text);
}

/* 关于我们弹窗（首页/详情共用） */
.h5-about-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.h5-about-modal[hidden] {
  display: none !important;
}

.h5-about-modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.h5-about-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 8px;
  padding: 24px 24px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.h5-about-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.h5-about-modal-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  line-height: 28px;
  text-align: center;
  font-family: Georgia, serif;
}

.h5-about-modal-title {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.h5-about-modal-body {
  padding-left: 40px;
  margin-bottom: 24px;
}

.h5-about-modal-body p {
  margin: 0 0 8px;
  font-size: 14px;
  color: #666;
  line-height: 1.65;
}

.h5-about-modal-body p:last-child {
  margin-bottom: 0;
}

.h5-about-modal-wechat {
  font-weight: 500;
  color: #444;
}

.h5-about-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.h5-about-modal-btn {
  min-width: 88px;
  height: 34px;
  padding: 0 20px;
  border: none;
  border-radius: 4px;
  background: #40a9ff;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.h5-about-modal-btn:hover {
  background: #1890ff;
}
