/* ============================================================
   assets/css/style.css — 主页与功能区样式（v2）
   依赖 assets/css/liquid-glass.css 的设计令牌
   ============================================================ */

/* ---------- 头部 ---------- */
.v2-hero {
  padding: clamp(22px, 4vw, 38px);
  margin-bottom: 20px;
  overflow: hidden;
}

.v2-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.v2-hero__title {
  margin: 0 0 16px;
  font-size: clamp(27px, 5.2vw, 42px);
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(
    120deg,
    var(--lg-text) 0%,
    color-mix(in srgb, var(--lg-text) 76%, var(--lg-accent)) 58%,
    var(--lg-accent) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.v2-hero__dim {
  font-size: 0.5em;
  font-weight: 600;
  opacity: 0.62;
  white-space: nowrap;
}

.v2-bio {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--lg-text-soft);
  max-width: 62ch;
}

.v2-bio p {
  margin: 0 0 0.75em;
}

.v2-bio p:last-child {
  margin-bottom: 0;
}

.v2-bio strong {
  color: var(--lg-text);
  font-weight: 700;
}

/* ---------- 功能区标题 ---------- */
.v2-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 12px;
  padding-left: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lg-text-mute);
}

.v2-section-label span {
  color: var(--lg-accent);
}

/* ---------- 功能区卡片 ---------- */
.v2-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.v2-feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--lg-radius);
  transition: transform var(--lg-base) var(--lg-ease), box-shadow var(--lg-base) var(--lg-ease);
}

.v2-feature:hover {
  transform: translateY(-3px);
}

.v2-feature__head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.v2-feature__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 22px;
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.32));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 18px -12px rgba(16, 24, 40, 0.7);
}

:root[data-theme="dark"] .v2-feature__icon {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07));
}

.v2-feature__titles {
  flex: 1 1 auto;
  min-width: 0;
}

.v2-feature__title {
  margin: 0;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.015em;
}

.v2-feature__sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--lg-text-mute);
}

.v2-feature__go {
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
  color: var(--lg-text-mute);
  transition: transform var(--lg-base) var(--lg-ease), color var(--lg-base) var(--lg-ease);
}

.v2-feature:hover .v2-feature__go {
  transform: translateX(4px);
  color: var(--lg-accent);
}

/* 卡片里的统计行 */
.v2-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--lg-text-soft);
}

.v2-meta__dim {
  color: var(--lg-text-mute);
  font-size: 12.5px;
}

/* 缩略图条 */
.v2-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: auto;
}

.v2-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(120, 135, 165, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* ---------- 通用区块 ---------- */
.v2-section {
  padding: clamp(18px, 3vw, 24px);
  margin-top: 18px;
}

.v2-section__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- 精选网格 ---------- */
.v2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.v2-tile {
  position: relative;
  display: block;
  border-radius: var(--lg-radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(120, 135, 165, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  transition: transform var(--lg-base) var(--lg-ease), box-shadow var(--lg-base) var(--lg-ease);
}

.v2-tile:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 18px 30px -20px rgba(16, 24, 40, 0.8);
}

.v2-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v2-tile__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 10px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 相册列表 ---------- */
.v2-albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v2-album {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--lg-radius-sm);
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.34);
  transition: transform var(--lg-fast) var(--lg-ease), background var(--lg-base) var(--lg-ease);
}

.v2-album:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.52);
}

:root[data-theme="dark"] .v2-album {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .v2-album:hover {
  background: rgba(255, 255, 255, 0.13);
}

.v2-album img,
.v2-album .v2-album__empty {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(120, 135, 165, 0.2);
}

.v2-album__body {
  min-width: 0;
}

.v2-album__title {
  display: block;
  font-size: 14.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-album__meta {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--lg-text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 外链 ---------- */
.v2-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.v2-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px;
  border-radius: var(--lg-radius);
  text-decoration: none;
  color: inherit;
}

.v2-link__text {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.005em;
}

.v2-link__arrow {
  font-size: 18px;
  color: var(--lg-text-mute);
  transition: transform var(--lg-base) var(--lg-ease), color var(--lg-base) var(--lg-ease);
}

.v2-link:hover .v2-link__arrow {
  transform: translate(3px, -3px);
  color: var(--lg-accent);
}

/* ---------- 备注 ---------- */
.v2-note {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--lg-text-mute);
  text-align: center;
}

/* ---------- 图片加载失败 ---------- */
img.is-broken {
  background:
    repeating-linear-gradient(45deg, rgba(120, 135, 165, 0.14) 0 8px, transparent 8px 16px),
    rgba(120, 135, 165, 0.12);
  object-fit: contain;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .v2-features {
    grid-template-columns: 1fr;
  }
  .v2-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .v2-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .v2-bio {
    font-size: 15px;
  }
}
