﻿/* ============================================================
   布局：品牌头部、一级导航、内容容器、面包屑、页脚
   ============================================================ */
.container {
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部品牌栏 ---------- */
.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-900);
}

.brand:hover {
  color: var(--brand-900);
}

.brand-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(28, 99, 196, 0.25);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-text strong {
  font-size: 21px;
  letter-spacing: 1px;
}

.brand-text span {
  font-size: 14px;
  color: var(--text-2);
  letter-spacing: 0.5px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
}

.header-hint {
  color: var(--text-3);
}

.header-divider {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.header-link {
  color: var(--brand-600);
}

/* ---------- 一级导航 ---------- */
.main-nav {
  background: linear-gradient(90deg, var(--brand-800), var(--brand-600));
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 34px;
  height: 100%;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  letter-spacing: 1px;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}

.nav-link.active {
  color: #fff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 46%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #ffd166;
}

.nav-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.nav-meta span {
  color: #fff;
}

/* ---------- 内容区 ---------- */
.app-main {
  flex: 1;
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 18px 24px 40px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.breadcrumb .sep {
  color: #b9c4d4;
}

.breadcrumb .current {
  color: var(--text-2);
}

/* ---------- 页头 ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.page-head h1 {
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--brand-900);
}

.page-head h2 {
  font-size: 18px;
  color: var(--brand-900);
}

.page-head .sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-3);
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- 页脚 ---------- */
.app-footer {
  background: #e7ecf4;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  font-size: 12px;
  color: var(--text-3);
}

.footer-inner p {
  line-height: 1.9;
}

.footer-right {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .brand-text span,
  .header-hint,
  .nav-meta {
    display: none;
  }

  .app-main {
    padding: 14px 14px 30px;
  }

  .nav-link {
    padding: 0 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

