:root {
  /* 诺禾致源风格配色 */
  --navy: #003e7a;          /* 品牌主色 深海军蓝 */
  --navy-dark: #032e53;     /* 顶部细带 / 深一档 */
  --navy-mid: #093a87;
  --blue: #005bac;          /* 中蓝 */
  --teal: #3f6992;          /* 描边按钮悬停 */
  --teal-dark: #12454b;     /* 描边按钮边框 */
  --bg: #f6f6f8;            /* 内容浅灰底 */
  --card: #ffffff;
  --border: #e4e4e4;
  --text: #595757;          /* 暖灰正文 */
  --muted: #7c7c7d;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
  padding-top: 0;
}

a {
  text-decoration: none;
  color: var(--text);
}

ul {
  list-style: none;
}

/* ===== 顶部导航 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

/* 顶部深蓝细带 */
.header .topbar {
  background: var(--navy-dark);
  color: #ffffff;
  font-size: 13px;
  padding: 8px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .topbar .tb-right {
  opacity: 0.85;
}

/* 白色主菜单栏 */
.header .nav {
  background: var(--white);
  height: 88px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.headerin {
  max-width: 1200px;
  margin: 0 auto;
  height: 88px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1px;
}

.logo .logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
}

.nav {
  display: flex;
}

.navitem a {
  display: block;
  padding: 0 22px;
  height: 88px;
  line-height: 88px;
  color: #333333;
  font-size: 16px;
  position: relative;
  transition: color 0.2s ease;
}

.navitem a:hover,
.navitem a.active {
  color: var(--navy);
}

.navitem a.active::after,
.navitem a:hover::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  height: 3px;
  background: var(--navy);
}

/* ===== 横幅 / Hero ===== */
.banner {
  background: linear-gradient(135deg, #003e7a 0%, #032e53 100%);
  background-image: linear-gradient(135deg, #003e7a 0%, #032e53 100%);
  padding-top: 143px; /* 顶栏 + 导航高度 + 呼吸空间 */
}

.bannerin {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 320px;
  padding: 60px 24px 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.bannertext {
  color: #ffffff;
  max-width: 640px;
}

.bannertext h1 {
  font-size: 44px;
  margin-bottom: 18px;
  letter-spacing: 2px;
}

.bannertext p {
  font-size: 18px;
  line-height: 1.9;
  opacity: 0.92;
}

.btn-novo {
  display: inline-block;
  margin-top: 26px;
  padding: 12px 32px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-novo:hover {
  background: #ffffff;
  color: var(--navy);
}

.bannerimg {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background-color: #ffffff;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.bannerimg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ===== 主体内容 ===== */
.main {
  max-width: 1200px;
  margin: 36px auto;
  padding: 0 24px;
}

.box {
  background-color: var(--card);
  border: 1px solid var(--border);
  padding: 36px;
  margin-bottom: 30px;
}

.boxtitle {
  font-size: 24px;
  color: var(--navy);
  border-left: 5px solid var(--navy);
  padding-left: 16px;
  margin-bottom: 24px;
  font-weight: bold;
}

/* 关于果果 */
.about p {
  text-indent: 2em;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 15px;
}

/* 果果小档案（统计卡片） */
.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  background-color: var(--bg);
  border: 1px solid var(--border);
  padding: 30px 15px;
}

.stat-num {
  font-size: 32px;
  font-weight: bold;
  color: var(--navy);
}

.stat-label {
  color: var(--muted);
  margin-top: 8px;
}

/* 我的相册 */
.albumwrap {
  overflow: hidden;
}

.albumgrid {
  overflow: hidden;
}

.albumitem {
  float: left;
  width: calc(25% - 11.25px);
  height: 200px;
  margin: 10px 15px 10px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  cursor: zoom-in;
  background-color: #ffffff;
}

.albumitem:nth-child(4n) {
  margin-right: 0;
}

.albumitem img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.albumitem:hover img {
  transform: scale(1.08);
}

.albumtitle {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 36px;
  line-height: 36px;
  background-color: rgba(0, 62, 122, 0.85);
  color: #ffffff;
  text-align: center;
  font-size: 13px;
}

/* ===== 页脚（深蓝多栏） ===== */
.footer {
  width: 100%;
  background-color: var(--navy);
  color: #ffffff;
  margin-top: 36px;
}

.footerin {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 24px 40px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer .f-brand {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 14px;
}

.footer .f-desc {
  font-size: 14px;
  line-height: 1.9;
  opacity: 0.85;
  max-width: 380px;
}

.footer .f-col dt {
  font-size: 16px;
  margin-bottom: 14px;
  font-weight: bold;
}

.footer .f-col dd {
  font-size: 14px;
  line-height: 1.9;
  opacity: 0.85;
}

.footer .copy {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 24px;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

/* ===== 灯箱（保留点击放大查看能力） ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 32, 0.96);
  z-index: 100;
  padding: 20px;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox .btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.lightbox .btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}

.lightbox .close {
  top: 20px;
  right: 20px;
  font-size: 1.4rem;
}

.lightbox .arrow {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .arrow:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox .prev {
  left: 16px;
}

.lightbox .next {
  right: 16px;
}

.lightbox .counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .albumitem {
    width: calc(50% - 7.5px);
  }
  .albumitem:nth-child(4n) {
    margin-right: 15px;
  }
  .albumitem:nth-child(2n) {
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .header .topbar {
    display: none;
  }
  .bannerin {
    flex-direction: column;
    text-align: center;
    padding: 130px 24px 56px;
  }
  .bannertext h1 {
    font-size: 32px;
  }
  .navitem a {
    padding: 0 12px;
    font-size: 14px;
  }
  .logo {
    font-size: 20px;
  }
  .footerin {
    flex-direction: column;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .albumitem {
    width: 100%;
    height: 220px;
    margin-right: 0;
  }
  .albumitem:nth-child(4n),
  .albumitem:nth-child(2n) {
    margin-right: 0;
  }
  .headerin {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 16px;
  }
  .header .nav {
    height: auto;
  }
  .navitem a {
    height: 56px;
    line-height: 56px;
  }
  .navitem a.active::after,
  .navitem a:hover::after {
    bottom: 10px;
  }
}
