/* =============================================================
   qitianqing.com 全局样式
   清新少女感 · 浅粉/米白/浅灰 · 手机优先响应式
   ============================================================= */

/* ---------- 主题变量 ---------- */
:root {
  --pink: #f6c6d2;        /* 主色：浅粉 */
  --pink-deep: #e79cab;
  --pink-light: #fbe3ea;  /* 浅粉背景 */
  --cream: #fffaf5;       /* 米白背景 */
  --gray: #f4f1ef;        /* 浅灰 */
  --gray-line: #ece7e3;   /* 分隔线 */
  --text: #3d3533;        /* 主文字 */
  --text-sub: #857d79;    /* 次要文字 */
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(180, 140, 150, 0.12);
  --shadow-hover: 0 10px 30px rgba(180, 140, 150, 0.22);
  --maxw: 1180px;
}

/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* 视觉隐藏（用于 SEO 标题/无障碍，不影响布局与爬虫读取） */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- 通用布局 ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 44px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 22px;
}
.section-head h2 { font-size: 22px; font-weight: 700; }
.section-head h2::before {
  content: ""; display: inline-block; width: 6px; height: 18px;
  background: var(--pink-deep); border-radius: 3px; margin-right: 10px;
  vertical-align: -2px;
}
.section-head .more { font-size: 13px; color: var(--text-sub); }
.section-head .more:hover { color: var(--pink-deep); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.logo span { color: var(--pink-deep); }
.nav-search { display: flex; align-items: center; background: var(--gray); border-radius: 20px; padding: 6px 12px; }
.nav-search input { border: none; background: transparent; outline: none; width: 120px; font-size: 13px; }
.nav-search button { color: var(--text-sub); font-size: 14px; }

.nav-links { display: flex; gap: 20px; }
.nav-links a { font-size: 15px; color: var(--text); padding: 6px 2px; position: relative; }
.nav-links a:hover,
.nav-links a.active { color: var(--pink-deep); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--pink-deep); border-radius: 2px;
}
.nav-toggle { display: none; font-size: 22px; }

/* 移动端菜单 */
@media (max-width: 820px) {
  .nav-links {
    position: fixed; top: 60px; left: 0; right: 0;
    flex-direction: column; background: var(--cream); gap: 0;
    padding: 8px 20px 16px; box-shadow: var(--shadow);
    transform: translateY(-150%); transition: transform .3s;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--gray-line); }
  .nav-toggle { display: block; }
  .nav-search input { width: 90px; }
}

/* ---------- 轮播 ---------- */
.hero { position: relative; overflow: hidden; background: var(--pink-light); }
.carousel { position: relative; height: 420px; }
.carousel-track { display: flex; height: 100%; transition: transform .55s ease; }
.carousel-slide {
  min-width: 100%; position: relative; height: 100%;
}
.carousel-slide img { width: 100%; height: 420px; object-fit: cover; }
.carousel-caption {
  position: absolute; left: 4%; bottom: 16%; right: 4%;
  color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.carousel-caption .tag {
  background: var(--pink-deep); padding: 3px 12px; border-radius: 20px;
  font-size: 12px; display: inline-block; margin-bottom: 10px;
}
.carousel-caption h3 { font-size: 26px; margin-bottom: 6px; }
.carousel-caption p { font-size: 14px; opacity: .95; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.7);
  color: var(--text); font-size: 20px; z-index: 5; box-shadow: var(--shadow);
}
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }
.carousel-dots {
  position: absolute; bottom: 6%; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 5;
}
.carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.7);
}
.carousel-dots button.on { background: var(--pink-deep); width: 22px; border-radius: 6px; }

@media (max-width: 820px) {
  .carousel, .carousel-slide img { height: 300px; }
  .carousel-caption h3 { font-size: 20px; }
}

/* ---------- 卡片网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card .thumb { overflow: hidden; position: relative; background: var(--gray); }
.card .thumb img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  transition: transform .4s;
}
.card:hover .thumb img { transform: scale(1.06); }
.card .body { padding: 12px 14px; }
.card .body h4 { font-size: 15px; margin-bottom: 4px; }
.card .body p { font-size: 13px; color: var(--text-sub); }
.card .badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px;
  padding: 2px 10px; border-radius: 20px;
}

/* ---------- 垂直信息卡 ---------- */
.info-list { display: flex; flex-direction: column; gap: 16px; }
.info-item {
  display: flex; gap: 14px; background: var(--white);
  border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow);
}
.info-item .date { color: var(--pink-deep); font-size: 13px; flex-shrink: 0; width: 74px; }
.info-item .txt h5 { font-size: 15px; margin-bottom: 3px; }
.info-item .txt p { font-size: 13px; color: var(--text-sub); }

/* ---------- 桌签 / 标签 ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 6px 16px; border-radius: 20px; background: var(--gray);
  font-size: 13px; color: var(--text-sub); transition: all .25s;
}
.tag:hover { background: var(--pink-light); color: var(--pink-deep); }
.tag.on { background: var(--pink-deep); color: #fff; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 24px;
  font-size: 14px; transition: all .3s; text-align: center;
}
.btn-primary { background: var(--pink-deep); color: #fff; }
.btn-primary:hover { background: var(--pink); color: var(--text); }
.btn-outline { border: 1px solid var(--pink-deep); color: var(--pink-deep); }
.btn-outline:hover { background: var(--pink-light); }
.btn-block { display: block; width: 100%; }

/* ---------- 领取资料浮动按钮 ---------- */
.float-download {
  position: fixed; right: 20px; bottom: 88px; z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.float-download .circle {
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink));
  color: #fff; display: flex; flex-direction: column; align-items: center;
  justify-content: center; font-size: 20px; box-shadow: 0 6px 18px rgba(231,156,171,.5);
  animation: pulse 2.4s infinite;
}
.float-download .label {
  font-size: 11px; background: var(--white); padding: 3px 10px;
  border-radius: 12px; box-shadow: var(--shadow); color: var(--pink-deep);
}
@keyframes pulse {
  0%,100% { box-shadow: 0 6px 18px rgba(231,156,171,.45); }
  50% { box-shadow: 0 6px 26px rgba(231,156,171,.85); }
}

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.55);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--cream); border-radius: 20px; max-width: 420px; width: 100%;
  padding: 28px 24px; position: relative; text-align: center;
}
.modal .close {
  position: absolute; top: 12px; right: 16px; font-size: 22px; color: var(--text-sub);
}
.modal .icon { font-size: 40px; }
.modal h3 { margin: 10px 0 6px; }
.modal p { font-size: 14px; color: var(--text-sub); margin-bottom: 18px; }
.modal .qrcode {
  width: 160px; height: 160px; margin: 0 auto 16px; background: var(--white);
  border: 1px dashed var(--pink-deep); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: var(--text-sub); font-size: 13px;
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.9);
  display: none; align-items: center; justify-content: center;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox .lb-close,
.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute; color: #fff; font-size: 34px; background: transparent;
  padding: 8px;
}
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { right: 16px; }
.lightbox .lb-caption {
  position: absolute; bottom: 4%; left: 0; right: 0; text-align: center;
  color: #fff; font-size: 14px;
}

/* ---------- 分享按钮 ---------- */
.share-bar { display: flex; gap: 10px; justify-content: center; }
.share-bar button {
  width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 18px;
}
.share-bar .wb { background: #e8443a; }
.share-bar .wx { background: #09bb07; }
.share-bar .link { background: var(--pink-deep); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--gray); border-top: 1px solid var(--gray-line);
  padding: 28px 0 96px; text-align: center; color: var(--text-sub); font-size: 13px;
}
.site-footer .f-links { display: flex; justify-content: center; gap: 18px; margin-bottom: 12px; flex-wrap: wrap; }
.site-footer .f-links a:hover { color: var(--pink-deep); }

/* ---------- 底部固定入口 ---------- */
.fixed-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--white); border-top: 1px solid var(--gray-line);
  box-shadow: 0 -4px 12px rgba(0,0,0,.05);
}
.fixed-footer a {
  padding: 12px; font-size: 14px; text-align: center; font-weight: 600;
}
.fixed-footer .wb { color: #e8443a; }
.fixed-footer .chaohua { color: var(--pink-deep); background: var(--pink-light); }

/* ---------- 资料领取 banner（页面内） ---------- */
.get-banner {
  background: linear-gradient(120deg, var(--pink-light), #fff);
  border: 1px solid var(--gray-line); border-radius: var(--radius);
  padding: 22px; margin: 30px 0; text-align: center;
}
.get-banner h3 { margin-bottom: 6px; }
.get-banner p { font-size: 14px; color: var(--text-sub); margin-bottom: 14px; }

/* ---------- 关于页/详情 ---------- */
.about-hero { text-align: center; padding: 40px 20px; }
.about-hero .avatar {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; border: 5px solid var(--white); box-shadow: var(--shadow);
}
.about-rows .row {
  display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gray-line);
}
.about-rows .row .k { width: 90px; color: var(--text-sub); flex-shrink: 0; }
.about-rows .row .v { flex: 1; }

/* ---------- 空状态 / 提示 ---------- */
.empty { text-align: center; color: var(--text-sub); padding: 30px 0; }
.toast {
  position: fixed; top: 74px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff; padding: 10px 20px; border-radius: 20px;
  font-size: 13px; z-index: 400; opacity: 0; transition: opacity .3s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* ---------- 排序控件 ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 20px; }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: var(--text-sub); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--pink-deep); }
.breadcrumb .current { color: var(--text); font-weight: 600; }
.breadcrumb span { margin: 0 6px; color: #bfb6b1; }

/* ---------- 响应式网格 ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 32px 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section-head h2 { font-size: 19px; }
}