/* 航海 — 灵动卡片风（海青调，少装饰噪点） */

.hh-wrap {
  --hh: var(--primary, #0d9488);
  --hh-deep: var(--primary-hover, #0f766e);
  --hh-soft: #ccfbf1;
  --hh-ink: #134e4a;
  margin: -16px 0 0;
  padding-bottom: 48px;
  background:
    radial-gradient(900px 320px at 10% -10%, rgba(45, 212, 191, .18), transparent 60%),
    radial-gradient(700px 280px at 95% 0%, rgba(56, 189, 248, .12), transparent 55%),
    #f4f7f6;
  min-height: 60vh;
}

.hh-banner {
  position: relative;
  overflow: hidden;
  padding: 28px 0 22px;
  border-bottom: 1px solid rgba(13, 148, 136, .12);
}
.hh-banner::before {
  content: '';
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 160px;
  background: radial-gradient(circle at 30% 40%, rgba(13, 148, 136, .15), transparent 65%);
  pointer-events: none;
}
.hh-banner-inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.hh-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--hh);
}
.hh-banner h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #0f172a;
  line-height: 1.15;
}
.hh-banner-copy p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}
.hh-banner-count {
  flex-shrink: 0;
  text-align: center;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(13, 148, 136, .18);
  backdrop-filter: blur(8px);
  animation: hh-pop .5s ease both;
}
.hh-banner-count b {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--hh-deep);
  line-height: 1.1;
}
.hh-banner-count span {
  font-size: 12px;
  color: #64748b;
}

.hh-page { padding-top: 18px; }

.hh-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hh-tabs::-webkit-scrollbar { display: none; }
.hh-tabs a {
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  background: rgba(255, 255, 255, .8);
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.hh-tabs a:hover {
  color: var(--hh-deep);
  transform: translateY(-1px);
}
.hh-tabs a.on {
  color: #fff;
  background: linear-gradient(135deg, var(--hh), #0891b2);
  box-shadow: 0 6px 16px rgba(13, 148, 136, .28);
}

.hh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hh-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  color: inherit;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  animation: hh-up .45s ease both;
  animation-delay: calc(var(--d, 0) * 45ms);
}
.hh-card:hover {
  color: inherit;
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, .28);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .08);
}
.hh-card-shine {
  position: absolute;
  inset: 0 auto auto 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: .55;
  pointer-events: none;
  transform: translate(-30%, -30%);
}
.hh-card.tone-1 .hh-card-shine { background: radial-gradient(circle, rgba(45, 212, 191, .35), transparent 70%); }
.hh-card.tone-2 .hh-card-shine { background: radial-gradient(circle, rgba(56, 189, 248, .32), transparent 70%); }
.hh-card.tone-3 .hh-card-shine { background: radial-gradient(circle, rgba(251, 191, 36, .28), transparent 70%); }
.hh-card.tone-4 .hh-card-shine { background: radial-gradient(circle, rgba(244, 114, 182, .22), transparent 70%); }

.hh-logo,
img.hh-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(13, 148, 136, .25);
  transition: transform .22s ease;
}
.hh-card:hover .hh-logo { transform: scale(1.04) rotate(-2deg); }
.hh-logo-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--hh-deep);
  background: linear-gradient(145deg, var(--hh-soft), #e0f2fe);
}

.hh-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hh-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.hh-card h2 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  letter-spacing: -.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hh-card:hover h2 { color: var(--hh-deep); }
.hh-card-body p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hh-card-ft {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  color: #94a3b8;
}
.hh-go {
  margin-left: auto;
  color: var(--hh);
  font-weight: 600;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.hh-card:hover .hh-go {
  opacity: 1;
  transform: translateX(0);
}

.hh-stars {
  display: inline-flex;
  gap: 1px;
  line-height: 1;
}
.hh-stars i {
  font-style: normal;
  font-size: 13px;
  color: #e2e8f0;
}
.hh-stars i.on { color: #f59e0b; }

.hh-st {
  flex-shrink: 0;
  height: 22px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
}
.hh-st-run { background: #d1fae5; color: #047857; }
.hh-st-soon { background: #e0f2fe; color: #0369a1; }
.hh-st-done { background: #f1f5f9; color: #64748b; }

.hh-empty {
  padding: 56px 16px;
  text-align: center;
  color: #94a3b8;
  background: rgba(255, 255, 255, .7);
  border-radius: 18px;
  border: 1px dashed #cbd5e1;
}

/* ========== 详情内页：主栏 + 侧栏 ========== */
.hh-wrap-detail {
  padding-top: 8px;
  padding-bottom: 88px;
}
.hh-wrap-detail.tone-1 {
  background:
    radial-gradient(720px 280px at 8% -8%, rgba(45, 212, 191, .2), transparent 55%),
    radial-gradient(520px 240px at 100% 0%, rgba(56, 189, 248, .1), transparent 50%),
    #f4f7f6;
}
.hh-wrap-detail.tone-2 {
  background:
    radial-gradient(720px 280px at 8% -8%, rgba(56, 189, 248, .18), transparent 55%),
    radial-gradient(520px 240px at 100% 0%, rgba(45, 212, 191, .1), transparent 50%),
    #f4f7f6;
}
.hh-wrap-detail.tone-3 {
  background:
    radial-gradient(720px 280px at 8% -8%, rgba(251, 191, 36, .16), transparent 55%),
    radial-gradient(520px 240px at 100% 0%, rgba(45, 212, 191, .1), transparent 50%),
    #f4f7f6;
}
.hh-wrap-detail.tone-4 {
  background:
    radial-gradient(720px 280px at 8% -8%, rgba(244, 114, 182, .12), transparent 55%),
    radial-gradient(520px 240px at 100% 0%, rgba(56, 189, 248, .1), transparent 50%),
    #f4f7f6;
}

.hh-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
  padding-top: 12px;
}

.hh-detail-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hh-back {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 13px;
  color: #64748b;
  transition: color .15s ease, transform .15s ease;
}
.hh-back:hover {
  color: var(--hh-deep);
  transform: translateX(-2px);
}

.hh-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
  animation: hh-up .4s ease both;
}
.hh-comments { animation-delay: .05s; }

.hh-project-hd {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid #f1f5f9;
}
.hh-detail-logo,
img.hh-detail-logo {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .1);
}
.hh-project-info { flex: 1; min-width: 0; }
.hh-detail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.hh-project-info h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.25;
  color: #0f172a;
}
.hh-summary {
  margin: 0 0 10px;
  font-size: 15px;
  color: #475569;
  line-height: 1.65;
}
.hh-project-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
}
.hh-muted,
.hh-side-muted { font-size: 12px; color: #94a3b8; }

.hh-detail-body {
  padding-top: 16px;
  font-size: 15px;
  line-height: 1.85;
  color: #334155;
}
.hh-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 8px 0;
}
.hh-detail-body p { margin: 0 0 1em; }
.hh-detail-body p:last-child { margin-bottom: 0; }
.hh-body-empty { color: #94a3b8 !important; }

.hh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
}
.hh-btn:hover { transform: translateY(-1px); }
.hh-btn-block { width: 100%; }
.hh-btn-main {
  color: #fff;
  background: linear-gradient(135deg, var(--hh), #0891b2);
  box-shadow: 0 8px 18px rgba(13, 148, 136, .28);
}
.hh-btn-main:hover { color: #fff; filter: brightness(1.05); }
.hh-btn-ghost {
  color: var(--hh-deep);
  background: #fff;
  border: 1px solid rgba(13, 148, 136, .25);
}
.hh-btn-ghost:hover {
  color: var(--hh-deep);
  background: var(--hh-soft);
}

/* 侧栏 */
.hh-detail-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: calc(var(--header-h, 52px) + 12px);
  animation: hh-up .45s ease both;
  animation-delay: .08s;
}
.hh-side-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}
.hh-side-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.hh-side-card > p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}
.hh-side-kicker {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--hh);
  text-transform: uppercase;
}
.hh-side-cta {
  background: linear-gradient(160deg, #f0fdfa 0%, #fff 55%, #ecfeff 100%);
  border-color: rgba(13, 148, 136, .18);
}
.hh-side-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hh-side-facts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.hh-side-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.hh-side-facts li:first-child { padding-top: 2px; }
.hh-side-facts span { color: #94a3b8; }
.hh-side-facts b {
  font-weight: 600;
  color: #0f172a;
  text-align: right;
}
.hh-side-vip {
  background: linear-gradient(160deg, #ecfeff, #f8fafc);
}

/* 评论 */
.hh-comments-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.hh-comments-hd h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}
.hh-comments-hd > span {
  font-size: 12px;
  color: #94a3b8;
}
.hh-vip-tag {
  height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e !important;
  font-weight: 700;
  font-size: 11px !important;
}

.hh-comment-form { margin-bottom: 4px; }
.hh-comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 10px;
  font-family: inherit;
  background: #f8fafc;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.hh-comment-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .2);
}
.hh-comment-actions {
  display: flex;
  justify-content: flex-end;
}
.hh-err {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
}

.hh-lock {
  text-align: center;
  padding: 40px 16px 32px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(45, 212, 191, .14), transparent 55%),
    #f8fafc;
  border: 1px dashed rgba(13, 148, 136, .22);
}
.hh-lock-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--hh), #0891b2);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(13, 148, 136, .25);
}
.hh-lock h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.hh-lock p {
  margin: 0 0 16px;
  font-size: 13px;
  color: #64748b;
}

.hh-comment-list { display: flex; flex-direction: column; margin-top: 8px; }
.hh-comment {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #f1f5f9;
}
.hh-comment:first-child { border-top: 0; }
.hh-c-main { flex: 1; min-width: 0; }
.hh-cav,
img.hh-cav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.hh-c-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  color: #94a3b8;
}
.hh-c-meta strong {
  font-size: 13px;
  color: #0f172a;
  font-weight: 600;
}
.hh-c-body {
  font-size: 14px;
  color: #334155;
  line-height: 1.65;
  word-break: break-word;
}
.hh-empty-c {
  padding: 28px 0 8px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

.hh-pager { margin-top: 18px; justify-content: center; }

/* 手机底部飞书栏 */
.hh-mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92);
  border-top: 1px solid rgba(15, 23, 42, .06);
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, .06);
}
.hh-mobile-bar .hh-btn,
.hh-mobile-bar .hh-side-muted {
  width: 100%;
}

@keyframes hh-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hh-pop {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .hh-detail-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hh-detail-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hh-side-cta { grid-column: 1 / -1; }
  .hh-side-vip { grid-column: 1 / -1; }
  .hh-mobile-bar { display: block; }
  .hh-side-cta .hh-btn,
  .hh-side-cta .hh-side-muted { display: none; }
}

@media (max-width: 720px) {
  .hh-grid { grid-template-columns: 1fr; gap: 12px; }
  .hh-card { gap: 12px; padding: 14px; }
  .hh-logo, img.hh-logo { width: 60px; height: 60px; border-radius: 14px; }
  .hh-banner { padding: 20px 0 16px; }
  .hh-banner-inner { align-items: flex-start; }
  .hh-banner-count { padding: 10px 14px; }
  .hh-banner-count b { font-size: 22px; }
  .hh-detail-side { grid-template-columns: 1fr; }
  .hh-detail-logo, img.hh-detail-logo { width: 60px; height: 60px; border-radius: 14px; }
  .hh-panel { padding: 16px; border-radius: 16px; }
  .hh-project-hd { gap: 12px; }
  .hh-project-info h1 { font-size: 20px; }
}
