/* ============================================================
   爱永恒 · 前台样式（按 KKiSS LGNewUi Pro 视觉复刻换皮）
   白底漫射光晕 / 悬浮胶囊导航 / 双头像+心形+距离 Hero /
   圆角白卡柔影 / 玫瑰粉强调。仅自用复刻，数据仍为爱永恒自有。
   ============================================================ */

:root {
  --rose: #f43f5e;
  --rose-soft: #fda4af;
  --ink: #1f2937;
  --ink-2: #4b5563;
  --muted: #9ca3af;
  --line: #eef0f3;
  --card: #ffffff;
  --bg: #f7f8fa;
}

/* 中文手写体（原版字体栈成员 Ma Shan Zheng，本地化） */
@font-face {
  font-family: 'Ma Shan Zheng';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/mashanzheng.woff2') format('woff2');
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
/* 漫射光晕背景（复刻 bg-diffuse-glow） */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 15% 8%, rgba(253,164,175,0.25), transparent 60%),
    radial-gradient(700px 500px at 85% 20%, rgba(147,197,253,0.18), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(196,181,253,0.12), transparent 60%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 顶部 fixed header（复刻 KKiSS：三栏 space-around 居中 logo） ---------- */
body { padding-top: 60px; } /* 与导航条 60px 对齐：原值 70px → 60px */
.header-wrap {
  position: fixed; top: 0; left: 0; width: 100%; height: 60px; /* 导航条高度调整：原值 70px → 60px */
  display: flex; align-items: center;
  background: rgba(255,255,255,0.62);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid #e5e5e5;
  z-index: 9999;
}
.header {
  width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap;
  padding: 0 20px; gap: 16px;
}
.lgnewui-header-left-avatar {
  display: flex; align-items: center; flex: none;
}
.stuck-logo { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #333; }
.stuck-logo__heart { color: #f87171; display: inline-flex; }
.lgnewui-header-actions {
  display: flex; align-items: center; flex: none;
}
.header .lgnewui-nav-island-container {
  flex: 1; justify-content: center; min-width: 0;
}

/* 居中品牌标 .alogo（爱永恒） */
.header .logo h1 { margin: 0; }
.alogo {
  color: #181818 !important;
  text-shadow: 0 2px 4px rgb(0 0 0 / 15%);
  font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: 0.05em;
  display: inline-block;
  position: relative;
  transition: color .3s, text-shadow .3s, opacity .3s, transform .35s cubic-bezier(0.34,1.56,0.64,1);
}
.alogo-home-icon {
  position: absolute; top: 50%; left: 50%;
  width: 42px; height: 42px; border-radius: 50%;
  background: #111; color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translate(-50%,-50%) scale(0.4);
  pointer-events: none;
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
  transition: all .3s cubic-bezier(0.34,1.56,0.64,1);
}
.alogo:hover { color: transparent; text-shadow: none; }
.alogo:hover .alogo-home-icon { opacity: 1; transform: translate(-50%,-50%) scale(1); pointer-events: auto; }
.alogo:active .alogo-home-icon { transform: translate(-50%,-50%) scale(0.82); box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.alogo.lgnewui-logo-faded { opacity: 0.3; transform: scale(0.92); }

.music-btn {
  border: 1px solid #e5e5e5; background: rgba(255,255,255,0.7); border-radius: 999px;
  padding: 5px 14px; font-size: 13px; color: #4b5563;
}

/* ---------- Hero（KKiSS 一比一：双头像+距离胶囊+心跳爱心） ---------- */
.hero {
  position: relative; text-align: center;
  background: linear-gradient(180deg, #e9edf3 0%, #f7f8fa 100%);
  padding: 40px 18px 30px;
}
.bg-wrap.central.limg { max-width: 907px; margin: 0 auto; } /* hero 内容区宽度缩小 10%：原值 1008px → 新值 907px */
.middle.Blurkg {
  display: flex; align-items: center; justify-content: space-around;
  flex-wrap: nowrap; padding: 42px 70px 28px;
  backdrop-filter: none !important; background: transparent !important; border: none !important;
}
@media (min-width: 1200px) and (max-width: 1578px) {
  .middle.Blurkg { padding: 6rem 5rem; }
}
.img-male, .img-female { display: flex; flex-direction: column; align-items: center; }

/* 头像照片（占位渐变圆，140×140 正圆） */
.avatarArea {
  position: relative; width: 140px; height: 140px;
  border-radius: 50%; cursor: pointer;
  transition: transform .5s ease;
}
.avatarArea:hover { transform: scale(1.02); }
.aiv_touxiang {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; display: block;
  box-shadow: 0 2px 8px rgba(255,255,255,0.03), 0 16px 48px 8px rgba(31,41,55,0.18);
  transition: filter .7s, transform .7s;
}
.img-male .aiv_touxiang { object-position: 50% 38%; }
.img-female .aiv_touxiang { object-position: 50% 30%; }
.avatarArea:hover .aiv_touxiang { filter: blur(4px); transform: scale(1.1); }

/* 圆形深色遮罩：默认隐藏，hover 浮现 */
.lgewui-head-avatar-mask {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: rgba(0,0,0,0.4); opacity: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 17px 0; transition: all .3s ease; z-index: 2;
}
.avatarArea:hover .lgewui-head-avatar-mask { opacity: 1; background: rgba(15,23,42,0.7); }

.lgewui-head-avatar-anim-item {
  transition: transform .5s cubic-bezier(0.34,1.56,0.64,1), opacity .5s;
}
.lgewui-head-avatar-top { transform: translateY(-8px); opacity: 0; transition-delay: 75ms; }
.lgewui-head-avatar-middle { transform: scale(0.9); opacity: 0; transition-delay: 100ms; }
.lgewui-head-avatar-bottom { transform: translateY(8px); opacity: 0; transition-delay: 150ms; }
.avatarArea:hover .lgewui-head-avatar-anim-item { transform: translate(0,0) scale(1); opacity: 1; }

/* 性别圆（top） */
.lgewui-head-avatar-gender-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.lgewui-head-avatar-gender-icon svg { width: 16px; height: 16px; }
.gender-male { color: #60a5fa; }
.gender-female { color: #f472b6; }

/* 状态行（middle） */
.lgewui-head-avatar-status-text {
  display: flex; align-items: center; gap: 5px; font-size: 13px;
}
.lgewui-head-avatar-status-text svg { width: 14px; height: 14px; color: #94a3b8; }
.lgewui-head-avatar-status-text em { color: #cbd5e1; font-style: normal; }
.lgewui-head-avatar-divider {
  width: 49px; height: 1px; margin: 6px auto 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}

/* 地名（bottom） */
.lgewui-head-avatar-location {
  display: flex; align-items: center; gap: 3px; font-size: 10px;
  background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.05);
}
.lgewui-head-avatar-location svg { width: 12px; height: 12px; color: #cbd5e1; }
.lgewui-head-avatar-location em { color: #cbd5e1; font-style: normal; }

/* 名字胶囊（白字深色 blur14） */
.shadow-blur {
  position: relative;
  display: block;
  margin-top: 16px;
  width: fit-content; align-self: center;
  color: #fff; font-size: 24px; font-weight: 700;
  padding: 5px 16px; border-radius: 999px;
  background: rgba(0,0,0,0.22);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(143,143,143,0.22);
  letter-spacing: 2px;
  font-family: 'Pacifico', 'Ma Shan Zheng', 'Noto Serif SC', cursive;
  line-height: 1.2;
}
.shadow-blur::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: inherit; filter: blur(8px);
  top: 5px; left: 5px; opacity: 0.4; border-radius: inherit;
}

/* ---------- 中间爱心 + 距离胶囊 ---------- */
.love-icon { display: flex; flex-direction: column; align-items: center; position: relative; }
.love-info-wrapper {
  position: absolute; top: -98px; left: 50%; transform: translateX(-50%);
  z-index: 50; text-align: center; pointer-events: none;
}
.distance-bubble {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.15);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px; padding: 6px; padding-right: 18px;
  white-space: nowrap; user-select: none; pointer-events: auto;
  transition: all .3s cubic-bezier(0.4,0,0.2,1);
}
.distance-bubble:hover {
  background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.distance-bubble:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.distance-icon-box {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.distance-bubble:hover .distance-icon-box { background: rgba(255,255,255,0.3); transform: scale(1.05); }
.distance-icon-box i { font-size: 18px; color: #fff; transition: transform .3s; }
.distance-bubble:hover .distance-icon-box i { transform: rotate(45deg); }
.distance-text { margin-left: 10px; color: #fff; font-size: 15px; display: flex; gap: 5px; align-items: center; }
.distance-text-sm { font-weight: 400; opacity: 0.9; }
.distance-bubble:hover .distance-text-sm { opacity: 1; }
.km-value { font-weight: 700; font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; }
.heart-img {
  width: 81px; height: 81px; cursor: pointer;
  animation: stuckHeartPulse 2s linear infinite;
  filter: drop-shadow(0 6px 14px rgba(244,63,94,0.35));
  transition: filter 0.3s ease;
}
/* 原站 hover：粉色光晕展开，随心跳 scale 同步放大缩小 */
.heart-img:hover {
  filter: drop-shadow(0 0 15px rgba(252,93,121,0.8)) drop-shadow(0 0 25px rgba(252,93,121,0.5)) brightness(1.1);
}
.heart-img:active {
  filter: drop-shadow(0 0 20px rgba(252,93,121,1)) brightness(1.2);
}
@keyframes stuckHeartPulse {
  0% { transform: scale(0.8); opacity: 0.7; }
  70% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.7; }
}
/* ---------- 倒数区块 fusion-card（macOS 窗口风） ---------- */
#countdown { padding: 1rem 1.5rem 4rem; max-width: 1152px; margin: 0 auto; } /* padding 调整：原值 3rem 1.5rem 4rem → 1rem 1.5rem 4rem */
.hero-cozy { font-size: 14px; letter-spacing: 2.1px; color: #888; font-style: italic; margin: 0 0 10px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.hero-cozy .fa-solid { font-size: 10px; color: #bbb; flex: none; }
.hero-main-title {
  font-family: 'Noto Serif SC', serif; font-weight: 700; font-size: 2rem;
  color: #1a202c; text-align: center; margin: 0 0 1rem; letter-spacing: 0.05em; /* margin 调整：原值 0 0 1.75rem → 0 0 1rem */
}
.lgnewui-day-fusion-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 2.5rem;
  width: 100%; margin: 0 auto;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 24px; padding: 3rem 2rem;
  border: 1px solid rgba(227,227,227,0.6);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05), 0 10px 20px -10px rgba(0,0,0,0.02);
}
.lgnewui-day-ambient-light {
  position: absolute; bottom: -150px; right: -100px; width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(255,182,193,0.4) 0%, rgba(230,230,250,0.25) 40%, transparent 70%);
  filter: blur(60px); border-radius: 50%; z-index: 0;
}
.lgnewui-day-mac-dots { position: absolute; top: 1.5rem; left: 1.5rem; display: flex; gap: 0.5rem; z-index: 2; }
.lgnewui-day-mac-dots .dot { width: 10px; height: 10px; border-radius: 50%; }
.lgnewui-day-mac-dots .dot.red { background: #FF5F57; }
.lgnewui-day-mac-dots .dot.yellow { background: #FFBD2E; }
.lgnewui-day-mac-dots .dot.green { background: #28C840; }
.lgnewui-day-left-section { position: relative; z-index: 1; text-align: left; }
.lgnewui-day-poetic-title {
  font-family: 'Noto Serif SC', serif; font-size: 1.6rem; font-weight: 700; color: #1a202c;
  line-height: 1.6; letter-spacing: 0.05em; margin: 0 0 1.5rem;
}
.lgnewui-day-start-date-capsule {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.05);
  padding: 5px 12px 5px 5px; border-radius: 50px;
}
.lgnewui-day-icon-circle {
  width: 28px; height: 28px; border-radius: 50%; background: #E53E3E; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none;
}
.lgnewui-day-icon-circle i { animation: lgnewui-day-heartbeat 2s infinite ease-in-out; }
.lgnewui-day-date-text-group { display: flex; flex-direction: column; }
.date-label-small { font-size: 0.55rem; font-weight: 700; uppercase; color: #A0AEC0; letter-spacing: 0.05em; }
.date-value-clean { font-size: 0.85rem; font-weight: 600; color: #718096; }
@keyframes lgnewui-day-heartbeat { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }
.lgnewui-day-right-section { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.lgnewui-day-main-days-wrapper { display: flex; flex-direction: column; align-items: flex-end; }
.lgnewui-day-main-days-number {
  font-family: 'Inter', sans-serif; font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  font-size: 6rem;
  background: linear-gradient(135deg, #1A202C, #4A5568);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.days-divider { width: 40px; height: 4px; background: #E53E3E; border-radius: 2px; margin-top: 0.5rem; }
.days-label { font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 600; uppercase; color: #A0AEC0; letter-spacing: 0.4em; margin-top: 0.35rem; }
.lgnewui-day-digital-timer { display: flex; gap: 2rem; margin-top: 2rem; }
.timer-block { display: flex; flex-direction: column; align-items: center; }
.timer-val { font-family: 'Inter', sans-serif; font-size: 1.8rem; font-weight: 500; color: #2D3748; font-variant-numeric: tabular-nums; }
.timer-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: #A0AEC0; margin-top: 0.5rem; }
@media (min-width: 1024px) {
  .lgnewui-day-fusion-card { padding: 56px 70px; gap: 70px; }
  .lgnewui-day-poetic-title { font-size: 39.2px; line-height: 1.6; letter-spacing: 1.96px; }
  .lgnewui-day-main-days-number { font-size: 112px; line-height: 0.95; }
  .days-label { font-size: 15.4px; letter-spacing: 6.16px; }
  .lgnewui-day-digital-timer { gap: 49px; }
  .timer-val { font-size: 30.8px; }
  .hero-main-title { font-size: 36px; font-weight: 600; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .lgnewui-day-fusion-card { padding: 3rem 3.5rem; gap: 3rem; }
  .lgnewui-day-poetic-title { font-size: 2.8rem; }
  .lgnewui-day-main-days-number { font-size: 7.5rem; }
  .timer-val { font-size: 2rem; }
}
@media (max-width: 767px) {
  .lgnewui-day-fusion-card { flex-direction: column; text-align: center; padding: 2.5rem 1.5rem; gap: 2rem; }
  .lgnewui-day-left-section { text-align: center; }
  .lgnewui-day-right-section { align-items: center; text-align: center; }
  .lgnewui-day-main-days-wrapper { align-items: center; }
  .lgnewui-day-main-days-number { font-size: 20vw; }
  .lgnewui-day-digital-timer { gap: 1.2rem; margin-top: 1.5rem; }
  .timer-val { font-size: 1.5rem; }
}
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  z-index: 99; overflow: hidden; pointer-events: none;
}
.hero-wave .waves { display: block; width: 100%; height: 100%; }
.hero-wave .parallax use { animation: move-forever linear infinite; }
.hero-wave .parallax use:nth-child(1) { animation-duration: 7s; animation-delay: -2s; }
.hero-wave .parallax use:nth-child(2) { animation-duration: 10s; animation-delay: -3s; }
.hero-wave .parallax use:nth-child(3) { animation-duration: 13s; animation-delay: -4s; }
.hero-wave .parallax use:nth-child(4) { animation-duration: 20s; animation-delay: -5s; }
@keyframes move-forever {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}

/* ---------- 容器 ---------- */
.container { max-width: 860px; margin: 0 auto; padding: 26px 18px 60px; }
section[id], #home { scroll-margin-top: 96px; }

/* ---------- 区域2 统计行：4 张 .lgnewui-widget 渐变计数卡 ---------- */
.lgnewui-grid.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px;
}
.lgnewui-widget {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 100%;
  border-radius: 24px; padding: 24px; color: #fff; overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.03);
  transition: opacity .6s ease-out, transform .3s cubic-bezier(0.25,0.8,0.25,1), box-shadow .3s;
}
.lgnewui-widget:hover {
  transform: translateY(-5px) scale(1.01); z-index: 10;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.05);
}
.lgnewui-widget--blue    { background: linear-gradient(135deg, #45bdff 0%, #1782ff 100%); }
.lgnewui-widget--gray    { background: linear-gradient(135deg, #78716c 0%, #44403c 100%); }
.lgnewui-widget--black   { background: linear-gradient(to bottom right, #111827, #000000); }
.lgnewui-widget--rose    { background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%); }
.lgnewui-widget__bg-icon {
  position: absolute; right: -6px; bottom: -10px; z-index: 0;
  font-size: 96px; opacity: 0.1; color: #fff; transform: rotate(-12deg);
}
.lgnewui-widget__inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.lgnewui-stats-header-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.lgnewui-icon-circle-glass {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.2); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px;
}
.lgnewui-stats-title { font-size: 14px; font-weight: 800; color: #fff; letter-spacing: 0.05em; white-space: nowrap; }
.lgnewui-mt { margin-top: 16px; }
.lgnewui-stats-num {
  font-size: 31.5px; font-weight: 900; letter-spacing: -0.05em; line-height: 1;
  color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.1); font-variant-numeric: tabular-nums;
}
.lgnewui-stats-label--en {
  font-size: 8.75px; font-weight: 700; opacity: 0.8; text-transform: uppercase;
  letter-spacing: 0.1em; margin-top: 4px;
}

/* ---------- 区块 ---------- */
.section { margin-bottom: 34px; }
.section-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.section-title .en { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 8px; letter-spacing: 1px; }
.section-sub { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.loading { color: var(--muted); font-size: 14px; padding: 12px 0; }

/* ---------- 区域3 两地天气：左蓝洲哥杭州 / 右橙兰姐苏州 渐变双卡 ---------- */
.weather-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.lgnewui-home-weather-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 24px; padding: 18px; min-height: 180px; height: 100%; color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  transition: transform .3s ease;
}
.lgnewui-home-weather-card:hover { transform: scale(1.02); }
.lgnewui-home-weather-card.blue   { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.lgnewui-home-weather-card.orange { background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%); }
.lgnewui-home-weather-bg-decoration { position: absolute; border-radius: 50%; filter: blur(40px); z-index: 0; }
.lgnewui-home-weather-card.blue .lgnewui-home-weather-bg-decoration { top: -40px; right: -40px; width: 120px; height: 120px; background: #fff; opacity: 0.15; }
.lgnewui-home-weather-card.orange .lgnewui-home-weather-bg-decoration { bottom: 0; left: 0; width: 100px; height: 100px; background: #fde047; opacity: 0.2; }
.lgnewui-home-weather-row-top { position: relative; z-index: 10; display: flex; justify-content: space-between; align-items: center; }
.lgnewui-home-weather-user-pill {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35); border-radius: 9999px; padding: 4px 10px 4px 4px;
}
.lgnewui-home-weather-avatar {
  width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #333;
}
.lgnewui-home-weather-username { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: 0.025em; }
.lgnewui-home-weather-time-tag {
  background: rgba(0,0,0,0.1); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 3px 7px; border-radius: 6px; font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.9);
}
.lgnewui-home-weather-row-main {
  position: relative; z-index: 10; margin-top: 8px; margin-bottom: 2px;
  display: flex; justify-content: space-between; align-items: center;
}
.lgnewui-home-weather-text-temp {
  font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.05em; margin-left: -2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.lgnewui-home-weather-icon-main { font-size: 48px; opacity: 0.9; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.07)); }
.lgnewui-home-weather-row-location {
  position: relative; z-index: 10; display: flex; align-items: center; gap: 5px;
  opacity: 0.95; margin-bottom: 12px;
}
.lgnewui-home-weather-row-location i { font-size: 12px; }
.lgnewui-home-weather-text-city { font-size: 13px; font-weight: 700; }
.lgnewui-home-weather-dot-divider { font-size: 11px; opacity: 0.6; padding: 0 2px; }
.lgnewui-home-weather-text-status { font-size: 13px; font-weight: 500; }
.lgnewui-home-weather-grid-stats {
  position: relative; z-index: 10; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.lgnewui-home-weather-stat-pill {
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.25); border-radius: 10px;
  padding: 6px 0; display: flex; align-items: center; justify-content: center; gap: 5px;
}
.lgnewui-home-weather-stat-pill i { font-size: 11px; opacity: 0.9; }
.lgnewui-home-weather-text-stat { font-size: 11px; font-weight: 700; }

/* ---------- 区域4 共赴之约：slate 摘要卡 + 半透条目网格 ---------- */
.lgnewui-widget--lovelist {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border-radius: 24px; padding: 24px; color: #fff;
  background: linear-gradient(to bottom right, #94a3b8, #71717a);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.03);
  transition: transform .3s cubic-bezier(0.25,0.8,0.25,1), box-shadow .3s;
}
.lgnewui-widget--lovelist:hover { transform: translateY(-5px) scale(1.01); box-shadow: 0 20px 50px -12px rgba(0,0,0,0.05); }
.lgnewui-lovelist-bg-icon {
  position: absolute; right: -2rem; bottom: -2rem; z-index: 0;
  font-size: 8rem; opacity: 0.05; color: #fff; transform: rotate(12deg);
}
.lgnewui-lovelist-header {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.lgnewui-icon-box-glass {
  width: 28px; height: 28px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,0.15); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px;
}
.lgnewui-card-title-lg { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: 0.05em; }
.lgnewui-card-subtitle { font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,0.7); letter-spacing: 0.05em; margin-left: auto; }
.lgnewui-lovelist-stats {
  position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px;
}
.lgnewui-lovelist-completed { font-size: 35px; font-weight: 900; color: #fff; line-height: 1; }
.lgnewui-lovelist-divider { font-size: 21px; font-weight: 600; color: rgba(255,255,255,0.6); margin: 0 2px; }
.lgnewui-lovelist-total { font-size: 21px; font-weight: 700; color: rgba(255,255,255,0.8); }
.lgnewui-num-huge { font-size: 49px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.lgnewui-num-suffix { font-size: 17.5px; font-weight: 600; opacity: 0.6; margin-left: 4px; }
.lgnewui-progress {
  position: relative; z-index: 1; height: 6px; background: rgba(255,255,255,0.2);
  border-radius: 16px; overflow: hidden; margin-bottom: 16px;
}
.lgnewui-progress-fill {
  height: 100%; background: #fff; border-radius: 16px;
  box-shadow: 0 0 10px rgba(255,255,255,0.5); transition: width .6s ease;
}
.lgnewui-lovelist-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 4px;
}
@media (min-width: 640px) {
  .lgnewui-lovelist-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.lgnewui-lovelist-item {
  background: rgba(255,255,255,0.1); border-radius: 8px; padding: 7px;
  display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px;
}
.lgnewui-lovelist-item i { font-size: 14px; opacity: 0.9; flex-shrink: 0; }
.lgnewui-lovelist-item.done { opacity: 0.6; }
.lgnewui-lovelist-item.done .lgnewui-lovelist-item-title { text-decoration: line-through; }

/* ---------- 区域5 随机一言：epilogue 未完·待续 ---------- */
.lgnewui-epilogue { text-align: center; }
.lgnewui-epilogue__header {
  display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 24px;
}
.lgnewui-epilogue__title {
  font-family: "Noto Serif SC", serif; font-size: 18px; font-weight: 300;
  color: #c7c7c7; letter-spacing: 0.3em;
}
.lgnewui-epilogue__header::before,
.lgnewui-epilogue__header::after {
  content: ""; width: 60px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.1));
}
.lgnewui-epilogue__header::after { background: linear-gradient(to left, transparent, rgba(0,0,0,0.1)); }
.lgnewui-epilogue__quote-container {
  width: 100%; min-height: 140px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.lgnewui-epilogue__quote-text {
  font-family: "Inter", sans-serif; font-weight: 200; font-size: 23px; line-height: 2;
  color: #222; letter-spacing: 0.05em; max-width: 90%; text-align: center; margin: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.lgnewui-epilogue__quote-text.switching { opacity: 0; filter: blur(12px); transform: scale(0.98); }
.lgnewui-epilogue__actions {
  width: 100%; display: flex; flex-direction: column; gap: 20px; align-items: center;
  padding-top: 20px; position: relative;
}
.lgnewui-epilogue__actions::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, #fff, rgba(0,0,0,0.06), #fff);
}
.lgnewui-epilogue__nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.lgnewui-epilogue__tools { display: flex; gap: 10px; }
.lgnewui-epilogue .btn-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  background: #f7f7f7; color: #666; border-radius: 10px; font-size: 11px; text-decoration: none;
  transition: all .2s ease;
}
.lgnewui-epilogue .btn-pill i { font-size: 14px; opacity: 0.6; }
.lgnewui-epilogue .btn-pill:hover { background: #f0f0f0; color: #000; transform: translateY(-1px); }
.lgnewui-epilogue .btn-pill:active { transform: scale(0.96); }
.lgnewui-epilogue .btn-icon {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: #f7f7f7; color: #666; display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: all .2s ease;
}
.lgnewui-epilogue .btn-icon:hover { background: #f0f0f0; color: #000; transform: translateY(-1px); }
.lgnewui-epilogue .btn-icon:active { transform: scale(0.96); }
@media (min-width: 600px) {
  .lgnewui-epilogue__quote-text { font-size: 32.5px; max-width: 80%; }
  .lgnewui-epilogue__actions { flex-direction: row; justify-content: space-between; }
}
@media (max-width: 599px) {
  .lgnewui-epilogue__header::before, .lgnewui-epilogue__header::after { width: 25px; }
}

/* ---------- 时间线（点滴） ---------- */
/* ---------- 区域6 点滴 smart-card 单卡轮换 ---------- */
.lgnewui-smart-card {
  position: relative; overflow: hidden; min-height: 420px;
  background: #171717; border-radius: 24px; cursor: pointer; user-select: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 25px 50px -12px rgba(0,0,0,0.25);
}
.lgnewui-smart-card__media { position: absolute; inset: 0; }
.lgnewui-smart-card__media-layer {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform .5s ease;
}
.lgnewui-smart-card:hover .lgnewui-smart-card__media-layer { transform: scale(1.05); }
.lgnewui-smart-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 40%, rgba(0,0,0,0.8) 100%);
}
.lgnewui-smart-card__header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: flex-start; padding: 20px;
}
.lgnewui-smart-card__capsule {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 9999px; padding: 4px 16px 4px 4px;
}
.lgnewui-smart-card__avatar {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #333;
}
.lgnewui-smart-card__user-info { display: flex; flex-direction: column; }
.lgnewui-smart-card__name { font-size: 13px; font-weight: 700; color: #fff; }
.lgnewui-smart-card__album-link {
  display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  background: rgba(255,255,255,0.1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 9999px; color: #fff; font-size: 12px; text-decoration: none;
}
.lgnewui-smart-card__album-text { max-width: 0; overflow: hidden; transition: max-width .3s ease; }
.lgnewui-smart-card__album-link:hover .lgnewui-smart-card__album-text { max-width: 80px; }
.lgnewui-smart-card__content {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 10; padding: 20px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.lgnewui-smart-card__loc-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 6px; padding: 4px 10px; font-size: 13px; color: rgba(255,255,255,0.9); margin-bottom: 10px;
}
.lgnewui-smart-card__title {
  font-family: 'Noto Serif SC', serif; font-size: 26px; font-weight: 700; color: #fff;
  line-height: 1.1; letter-spacing: -0.025em; text-shadow: 0 2px 8px rgba(0,0,0,0.4); margin: 0 0 8px;
}
.lgnewui-smart-card__meta { display: flex; flex-direction: column; }
.lgnewui-smart-card__date { font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 400; margin-bottom: 6px; }
.lgnewui-smart-card__desc {
  font-size: 13px; line-height: 1.6; font-weight: 300; color: rgba(255,255,255,0.85); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lgnewui-smart-card__switch-btn {
  position: absolute; bottom: 20px; right: 20px; z-index: 20;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.25);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px;
  transition: transform .2s ease;
}
.lgnewui-smart-card__switch-btn:hover { transform: scale(1.1); }
.lgnewui-smart-card__switch-btn:active { transform: scale(0.95); }
.lgnewui-smart-card__switch-btn.loading i { animation: lgnewui-spin 1s linear infinite; }
@keyframes lgnewui-spin { to { transform: rotate(360deg); } }
@media (max-width: 767px) {
  .lgnewui-smart-card { min-height: 320px; }
}

/* ---------- 留言（对话式） ---------- */
.msg-form {
  background: var(--card); border-radius: 18px; padding: 16px;
  box-shadow: 0 6px 20px rgba(31,41,55,0.06); margin-bottom: 18px;
}
.nick-chips { display: flex; gap: 8px; margin-bottom: 10px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 4px 14px; font-size: 14px; color: var(--ink-2);
}
.chip.active { background: var(--rose); color: #fff; border-color: var(--rose); }
.msg-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px; font-size: 15px; resize: vertical; min-height: 70px; font-family: inherit;
}
.btn-primary {
  margin-top: 10px; background: var(--rose); color: #fff; border: none;
  border-radius: 999px; padding: 9px 22px; font-size: 15px;
}
.msg-tip { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- 区域7 留言横向白卡轮播 ---------- */
.lgnewui-home-message-container {
  width: 100%; overflow-x: auto; overflow-y: hidden; cursor: grab; touch-action: pan-y;
  -webkit-mask: linear-gradient(90deg, transparent, #fff 3%, #fff 97%, transparent);
  mask: linear-gradient(90deg, transparent, #fff 3%, #fff 97%, transparent);
  scrollbar-width: none;
}
.lgnewui-home-message-container::-webkit-scrollbar { display: none; }
.lgnewui-home-message-container:active { cursor: grabbing; }
.lgnewui-home-message-track {
  display: flex; gap: 24px; padding: 30px 0 50px; width: max-content;
}
.lgnewui-home-message-card {
  width: min(380px, 85vw); background: #fff; border-radius: 20px; padding: 24px 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.025); display: flex; flex-direction: column;
  transition: all .3s ease; flex-shrink: 0;
}
.lgnewui-home-message-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.06); }
.lgnewui-home-message-card.fade-in { animation: msgSlideIn .5s ease; }
@keyframes msgSlideIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lgnewui-home-message-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.lgnewui-home-message-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: #f5f5f5; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: #888;
}
.lgnewui-home-message-user-info { display: flex; flex-direction: column; gap: 2px; }
.lgnewui-home-message-name-row { display: flex; align-items: center; gap: 6px; }
.lgnewui-home-message-name { font-size: 15px; font-weight: 600; color: #1a1a1a; letter-spacing: 0.2px; }
.lgnewui-home-message-badge { font-size: 10px; font-weight: 600; padding: 3px 6px; border-radius: 5px; background: #eff6ff; color: #2563eb; }
.lgnewui-home-message-time { font-size: 12px; color: #999; font-family: ui-monospace, monospace; }
.lgnewui-home-message-content {
  font-size: 14px; color: #9ca3af; line-height: 1.6; margin-bottom: 24px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lgnewui-home-message-divider { height: 1px; background: #f0f0f0; margin-top: auto; margin-bottom: 16px; }
.lgnewui-home-message-footer { display: flex; gap: 8px; }
.lgnewui-home-message-chip {
  font-size: 11px; color: #999; background: #f7f7f7; border-radius: 999px; padding: 3px 10px;
  max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 100;
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 10px; }
.lb-close {
  position: absolute; top: 20px; right: 26px; background: none; border: none;
  color: #fff; font-size: 34px;
}

/* ---------- 岛式导航（复刻 KKiSS） ---------- */
.lgnewui-nav-placeholder { height: 0; }
.lgnewui-nav-wrapper {
  position: sticky; top: 70px; z-index: 9999;
  display: flex; justify-content: center; width: 100%;
  padding: 10px 0; pointer-events: none;
}
.lgnewui-nav-island-container {
  position: relative;
  display: flex; align-items: center;
  background: rgba(255,255,255,0.75);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  padding: 8px; border-radius: 60px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.03), 0 2px 8px rgba(0,0,0,0.02);
  user-select: none; pointer-events: auto; will-change: transform;
  transition: transform .4s cubic-bezier(0.34,1.56,0.64,1), padding .25s, border-radius .25s, background .25s, box-shadow .25s;
}
.lgnewui-nav-island-item {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px; color: #6f6f6f; border-radius: 32px;
  white-space: nowrap; font-size: 14px; font-weight: 300;
  transition: padding .25s, font-size .25s, gap .25s, color .2s, background .2s;
}
.lgnewui-nav-island-item i { font-size: 16px; }
.lgnewui-nav-island-item:not(.active):hover { background: rgba(248,113,113,0.09); color: #f87171; }
.lgnewui-nav-island-item.active { color: #fff; font-weight: 600; }
.lgnewui-nav-island-item.nav-home { padding: 10px 32px; margin: 0 4px; color: #1d1d1f; opacity: 0.8; }
.lgnewui-nav-island-item.nav-home i { font-size: 18px; }
.lgnewui-nav-island-item.nav-home.active { opacity: 1; color: #fff; }
.lgnewui-nav-island-item.nav-home::before,
.lgnewui-nav-island-item.nav-home::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 1px; height: 12px; background: rgba(0,0,0,0.1);
}
.lgnewui-nav-island-item.nav-home::before { left: -4px; }
.lgnewui-nav-island-item.nav-home::after { right: -4px; }
.lgnewui-nav-indicator {
  position: absolute; top: 8px; left: 0; height: calc(100% - 16px);
  background: #f87171; border-radius: 100px; z-index: 0;
  transition: all .35s cubic-bezier(0.175,0.885,0.32,1.1);
}
.lgnewui-nav-indicator::before {
  content: ""; position: absolute; inset: 0; background: #f87171;
  filter: blur(8px); opacity: 0.5; border-radius: 100px;
}
/* 吸顶缩小态 */
.lgnewui-nav-island-container.lgnewui-is-stuck {
  padding: 5px; background: rgba(248,248,248,0.65);
  border-radius: 50px; box-shadow: none; transform: scale(0.88);
}
.lgnewui-nav-island-container.lgnewui-is-stuck .lgnewui-nav-island-item { padding: 10px 18px; font-size: 16px; }
.lgnewui-nav-island-container.lgnewui-is-stuck .lgnewui-nav-island-item i { font-size: 13px; }
.lgnewui-nav-island-container.lgnewui-is-stuck .nav-home { padding: 8px 24px; }
.lgnewui-nav-island-container.lgnewui-is-stuck .nav-home i { font-size: 15px; }
.lgnewui-nav-island-container.lgnewui-is-stuck .lgnewui-nav-indicator { top: 5px; height: calc(100% - 10px); }

/* ---------- 右侧浮动按钮 ---------- */
.message_btn { position: fixed; right: 14px; top: 84px; z-index: 9999; display: flex; }
.mesly.shadow-blur {
  width: 50px; height: 50px; padding: 0; margin-top: 0;
  background: #fb6e6e; color: #fff; border: none;
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 2px 8px rgba(28,31,35,0.03), 0 16px 48px 8px rgba(28,31,35,0.08);
}
.mesly.shadow-blur::before { display: none; }
.mesly.shadow-blur:hover { transform: scale(1.08); }

#lgnewuiFloatingActions { position: fixed; right: 17.5px; bottom: 112px; z-index: 9999; display: flex; }
#scrollTopBtn {
  width: 49px; height: 49px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  color: #03A9F4; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(28,31,35,0.03), 0 16px 48px 8px rgba(28,31,35,0.08);
  opacity: 0; visibility: hidden; transform: scale(0.6);
  transition: transform .3s cubic-bezier(0.34,1.56,0.64,1), opacity .3s, visibility .3s, background .2s, color .2s;
}
#scrollTopBtn.lgnewui-fab-visible { opacity: 1; visibility: visible; transform: scale(1); }
#scrollTopBtn:hover { background: #03A9F4; color: #fff; border-color: #03A9F4; transform: scale(1.15); }
#scrollTopBtn:active { transform: scale(0.95); }

@media (max-width: 768px) {
  .lgnewui-nav-island-container { max-width: 92vw; overflow-x: auto; justify-content: flex-start; padding: 4px; scrollbar-width: none; }
  .lgnewui-nav-island-container::-webkit-scrollbar { display: none; }
  .lgnewui-nav-island-item { padding: 8px 16px; flex-shrink: 0; }
  .lgnewui-nav-island-item.nav-home { padding: 8px 20px; }
  .middle.Blurkg { padding: 42px 14px 28px; }

  /* 区域2 统计行：≤767 两列 2×2 */
  .lgnewui-grid.stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* 区域3 天气：两卡纵向堆叠 + 字号缩放 */
  .weather-wrap { grid-template-columns: 1fr; }
  .lgnewui-home-weather-card { padding: 16px; min-height: 160px; }
  .lgnewui-home-weather-text-temp { font-size: 48px; }
  .lgnewui-home-weather-icon-main { font-size: 40px; }
  .lgnewui-home-weather-grid-stats { gap: 6px; }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .lgnewui-grid.stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
  .seg { min-width: 66px; padding: 10px 12px; }
  .seg-num { font-size: 24px; }
}

/* ---------- 时间线视图（方案 B：左竖线单侧单列） ---------- */
#timeline-view { display: none; padding: 90px 0 60px; }
body.body--timeline-view .hero,
body.body--timeline-view #countdown,
body.body--timeline-view main.container { display: none !important; }
body.body--timeline-view #timeline-view { display: block; }

.tlv-head { text-align: center; padding: 24px 20px 10px; }
.tlv-title { font-family: 'Noto Serif SC', serif; font-size: 30px; font-weight: 700; letter-spacing: .05em; color: #2d3748; }
.tlv-sub { color: #718096; font-style: italic; letter-spacing: .15em; margin-top: 8px; font-size: 14px; }

.tlv-body { position: relative; max-width: 860px; margin: 0 auto; padding: 24px 24px 40px 52px; }
.tlv-body::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 16px; width: 2px;
  background: linear-gradient(#fca5a5, #E53E3E, #f87171, #fca5a5);
}
.tlv-year { position: relative; margin: 36px 0 18px; }
.tlv-year::before {
  content: ""; position: absolute; left: -40px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid #f87171; z-index: 2;
}
.tlv-year-label { font-family: 'Noto Serif SC', serif; font-size: 26px; font-weight: 700; color: #E53E3E; letter-spacing: .1em; }

.tlv-node { position: relative; margin: 0 0 22px; opacity: 0; transform: translateX(20px); transition: opacity .6s ease, transform .6s ease; }
.tlv-node.show { opacity: 1; transform: translateX(0); }
.tlv-node::before {
  content: ""; position: absolute; left: -40px; top: 22px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid #f87171; box-shadow: 0 0 0 4px rgba(248,113,113,.15); z-index: 2;
}
.tlv-card {
  background: rgba(255,255,255,0.85); backdrop-filter: blur(20px);
  border-radius: 24px; padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.03);
  border: 1px solid rgba(255,255,255,0.6); transition: transform .25s ease, box-shadow .25s ease;
}
.tlv-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(248,113,113,.14); }
.tlv-dateblock {
  display: flex; align-items: center; gap: 14px; padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px dashed rgba(248,113,113,.25);
}
.tlv-date-num { font-family: 'Noto Serif SC', serif; font-size: 30px; font-weight: 700; color: #f87171; line-height: 1; }
.tlv-date-meta { display: flex; flex-direction: column; gap: 2px; }
.tlv-date-meta .d { font-size: 13px; color: #2d3748; font-weight: 600; }
.tlv-date-meta .n { font-size: 11.5px; color: #718096; font-style: italic; }
.tlv-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; color: #2d3748; }
.tlv-text { font-size: 13.5px; line-height: 1.7; color: #4a5568; }
.tlv-text.clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tlv-expand { font-size: 12px; color: #f87171; cursor: pointer; margin-top: 6px; display: inline-block; }
.tlv-photos { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.tlv-photos img { width: 90px; height: 90px; border-radius: 14px; object-fit: cover; cursor: pointer; }
.tlv-who { margin-top: 12px; font-size: 12px; color: #718096; display: flex; align-items: center; gap: 8px; }
.tlv-who .avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg,#fc5d79,#f87171); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.tlv-empty { text-align: center; color: #718096; padding: 60px 20px; font-size: 15px; }

@media (max-width: 480px) {
  .tlv-body { padding-left: 36px; }
  .tlv-body::before { left: 12px; }
  .tlv-year::before, .tlv-node::before { left: -28px; }
  .tlv-date-num { font-size: 24px; }
  .tlv-card { padding: 16px; }
}

/* ---------- 留言视图（方案一双列 masonry） ---------- */
#messages-view { display: none; padding: 90px 0 0; background: #fff; }
body.body--messages-view .hero,
body.body--messages-view #countdown,
body.body--messages-view main.container { display: none !important; }
body.body--messages-view #messages-view { display: block; }
body.body--timeline-view #messages-view { display: none; }
body.body--messages-view #timeline-view { display: none; }
body.body--timeline-view #footer-animal, body.body--messages-view #footer-animal { display: none; }
body.body--timeline-view #timeline-view #footer-animal, body.body--messages-view #messages-view #footer-animal { display: block; }

.msv-head { text-align: center; padding: 20px 20px 8px; }
.msv-cozy { color: #888; font-style: italic; font-size: 14px; letter-spacing: .2em; display: flex; align-items: center; justify-content: center; gap: 12px; }
.msv-cozy .fa-solid { font-size: 10px; color: #bbb; }
.msv-title { font-family: 'Noto Serif SC', serif; font-size: 32px; font-weight: 700; margin-top: 8px; }

.msv-body { max-width: 1200px; margin: 0 auto; padding: 30px 40px; columns: 2; column-gap: 50px; }
.msv-form { max-width: 1200px; margin: 0 auto; padding: 0 40px; display: flex; flex-direction: column; gap: 10px; }
.msv-form textarea { width: 100%; min-height: 80px; border: 1px solid #eee; border-radius: 16px; padding: 14px 16px; font-size: 14px; font-family: inherit; resize: vertical; background: #fff; }
.msv-form .btn-primary { align-self: flex-start; border: none; border-radius: 999px; background: #f87171; color: #fff; padding: 10px 22px; font-size: 14px; cursor: pointer; }
.msv-item { position: relative; break-inside: avoid; margin: 0 0 40px; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
.msv-item.show { opacity: 1; transform: none; }
.msv-av { position: absolute; top: -8px; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg,#fc5d79,#f87171); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.15); z-index: 2; }
.msv-item:nth-child(odd) .msv-av { left: -28px; }
.msv-item:nth-child(even) .msv-av { right: -28px; }
.msv-card { background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); border-radius: 24px; padding: 22px 24px; border: 1px solid rgba(255,255,255,.6); box-shadow: 0 10px 30px rgba(0,0,0,.05); transition: transform .25s, box-shadow .25s; }
.msv-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(248,113,113,.14); }
.msv-timecap { display: inline-block; background: #4a5568; color: #fff; font-size: 11px; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; letter-spacing: .05em; }
.msv-name { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.msv-name .nick { font-weight: 600; font-size: 15px; }
.msv-badge { font-size: 10px; padding: 2px 8px; border-radius: 999px; }
.msv-badge.user { background: #e6f7ec; color: #16a34a; }
.msv-badge.admin { background: #fff3e0; color: #ea8c00; }
.msv-text { font-size: 14px; line-height: 1.8; color: #4a5568; margin-bottom: 12px; }
.msv-info { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.msv-chip { font-size: 11.5px; color: #888; background: #f5f5f7; border-radius: 999px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 4px; }
.msv-chip.like { cursor: pointer; user-select: none; }
.msv-chip.like.on { color: #f87171; background: #fff0f2; }
.msv-empty { text-align: center; color: #888; padding: 60px 20px; }

.msv-end { text-align: center; color: #bbb; margin: 20px 0; font-size: 13px; letter-spacing: .2em; }
#footer-animal { position: relative; height: 118px; margin: 0; padding: 0; background: none; }
#footer-animal::before { content: ""; position: absolute; top: 82px; bottom: 0; left: 0; right: 0; display: block; background: url('/img/animalBg.jpg?v=1') 50% 50% / auto 100% repeat; }
img.animal { display: block; position: relative; width: 974px; height: 118px; margin: 0 auto; }

@media (max-width: 768px) {
  .msv-body { columns: 1; padding: 20px; }
  .msv-item:nth-child(odd) .msv-av, .msv-item:nth-child(even) .msv-av { left: 0; right: auto; }
}
