﻿/* =========================================================
   小苹果乐园 · 主题样式表
   Theme: Little Apple Wonderland
   ---------------------------------------------------------
   设计系统（Design Tokens）
   --cream   暖奶油底色   #FFF6EC
   --paper   卡片白       #FFFFFF
   --apple   苹果红（主色） #F26B5E
   --mint    薄荷绿（辅色） #8FDBC3
   --sun     暖阳黄       #FFC94D
   --sky     天空蓝       #A8D8EA
   --ink     深棕文字     #4A3F35
   --ink-soft 柔和灰棕    #8A7A6C
   ========================================================= */

:root {
  --cream:  #FFF6EC;
  --paper:  #FFFFFF;
  --apple:  #F26B5E;
  --apple-deep: #D9513F;
  --mint:   #8FDBC3;
  --mint-deep: #5F9C86;
  --sun:    #FFC94D;
  --sun-deep: #C9A03C;
  --sky:    #A8D8EA;
  --sky-deep: #5E87A8;
  --ink:    #4A3F35;
  --ink-soft: #8A7A6C;
  --line:   #F3E3D3;
  --radius: 22px;
  --shadow: 0 14px 40px rgba(242, 107, 94, 0.12);
  --shadow-soft: 0 8px 24px rgba(74, 63, 53, 0.08);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "YouYuan", "幼圆", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--apple); color: #fff; }

a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ---------------- 背景装饰 ---------------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.cloud {
  position: absolute;
  width: 120px; height: 34px;
  background: #fff;
  border-radius: 30px;
  opacity: 0.75;
  animation: drift 26s linear infinite;
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}
.cloud::before { width: 46px; height: 46px; top: -20px; left: 18px; }
.cloud::after  { width: 34px; height: 34px; top: -12px; left: 60px; }
.c1 { top: 12%; left: -140px; animation-duration: 34s; }
.c2 { top: 38%; left: -180px; animation-duration: 46s; animation-delay: -12s; transform: scale(0.8); }
.c3 { top: 62%; left: -120px; animation-duration: 40s; animation-delay: -24s; transform: scale(0.65); opacity: 0.5; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 300px)); }
}

.leaf {
  position: absolute;
  width: 22px; height: 30px;
  background: var(--mint);
  border-radius: 90% 10% 90% 10%;
  opacity: 0.4;
  animation: fall 18s linear infinite;
}
.leaf:nth-child(odd) { background: var(--sun); opacity: 0.35; }
.l1 { top: -40px; left: 8%; animation-duration: 20s; }
.l2 { top: -40px; left: 30%; animation-duration: 24s; animation-delay: -6s; transform: rotate(30deg); }
.l3 { top: -40px; left: 68%; animation-duration: 18s; animation-delay: -12s; }
.l4 { top: -40px; left: 88%; animation-duration: 26s; animation-delay: -3s; transform: rotate(45deg); }

@keyframes fall {
  to { transform: translateY(110vh) rotate(360deg); }
}

.dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: twinkle 4s ease-in-out infinite;
}
.d1 { width: 10px; height: 10px; background: var(--apple); top: 20%; right: 12%; }
.d2 { width: 8px; height: 8px; background: var(--sky); top: 55%; right: 22%; animation-delay: 1s; }
.d3 { width: 12px; height: 12px; background: var(--sun); top: 78%; right: 8%; animation-delay: 2s; }
.d4 { width: 6px; height: 6px; background: var(--mint); top: 32%; right: 4%; animation-delay: 3s; }

@keyframes twinkle {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 1; }
}

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 246, 236, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-apple { width: 34px; height: 34px; }
.brand-logo-wrap { display: inline-flex; align-items: center; justify-content: center; }
.brand-logo { display: block; border-radius: 10px; object-fit: contain; }
.brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--apple-deep);
}
.menu { display: flex; gap: 26px; }
.menu a {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 3px;
  border-radius: 3px;
  background: var(--apple);
  transition: width 0.25s;
}
.menu a:hover, .menu a.active { color: var(--apple-deep); }
.menu a:hover::after, .menu a.active::after { width: 100%; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 24px; height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 72px 24px 40px; }
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-text { flex: 1.1; z-index: 1; }
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--apple-deep);
  background: #FFE4DC;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 2px;
}
.hero h1 span {
  color: var(--apple);
  position: relative;
  display: inline-block;
}
.hero h1 span::after {
  content: "";
  position: absolute;
  left: 0; bottom: 6px;
  width: 100%; height: 14px;
  background: rgba(255, 201, 77, 0.45);
  border-radius: 6px;
  z-index: -1;
}
/* 第一行标题（t1）保持原色，不被红色强调样式影响 */
.hero h1 span.t1 { color: inherit; }
.hero h1 span.t1::after { display: none; }
.hero-sub {
  margin: 22px 0;
  font-size: 17px;
  color: var(--ink-soft);
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.tag {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}
.tag-red  { background: #FFE4DC; color: var(--apple-deep); }
.tag-mint { background: #E0F5ED; color: var(--mint-deep); }
.tag-sun  { background: #FFF3CF; color: var(--sun-deep); }

.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--apple), var(--apple-deep));
  padding: 14px 30px;
  border-radius: 40px;
  box-shadow: 0 12px 28px rgba(242, 107, 94, 0.4);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(242, 107, 94, 0.5); }

.hero-art {
  flex: 0.9;
  position: relative;
  display: flex;
  justify-content: center;
}
.sun-ring {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,201,77,0.5), rgba(255,201,77,0.08) 70%);
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-apple {
  width: 300px; height: 300px;
  position: relative;
  filter: drop-shadow(0 24px 30px rgba(242,107,94,0.3));
}
/* 封面换成宝宝照片时的样式 */
.law-hero-svg { position: relative; width: 300px; height: 300px; }
.hero-photo {
  width: 300px; height: 300px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  border: 8px solid #fff;
  box-shadow: 0 24px 30px rgba(242,107,94,0.3);
  animation: floaty 4.5s ease-in-out infinite;
}

/* ---- Hero 横屏 Banner 模式（沉浸式） ---- */
.hero.hero-banner { padding: 0; overflow: hidden; }
.hero-banner-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #FFE4DC 0%, #FFF3CF 50%, #E0F5ED 100%);
}
.hero-banner-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(62, 50, 43, 0.55) 0%, rgba(62, 50, 43, 0.22) 50%, rgba(62, 50, 43, 0) 100%);
}
.hero-banner .hero-inner {
  position: relative;
  z-index: 2;
  min-height: 430px;
  padding: 96px 24px;
  justify-content: flex-start;
}
.hero-banner .hero-text { max-width: 680px; }
.hero-banner .eyebrow { background: rgba(255, 255, 255, 0.92); }
.hero-banner h1 { color: #fff; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35); }
.hero-banner h1 span { color: #FFD9A0; }
.hero-banner h1 span.t1 { color: #fff; }
.hero-banner .hero-sub { color: #FFF7EE; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
@media (max-width: 720px) {
  /* 手机端 Banner 改为"图片在上、文字在下"分段布局，避免图文重叠 */
  .hero-banner-bg { position: static; height: 240px; }
  .hero-banner-bg img { height: 100%; object-fit: cover; }
  .hero-banner-shade { display: none; }
  .hero-banner .hero-inner {
    position: static;
    z-index: auto;
    min-height: 0;
    padding: 36px 20px 44px;
    background: linear-gradient(135deg, #FFE4DC 0%, #FFF3CF 50%, #E0F5ED 100%);
    justify-content: flex-start;
  }
  .hero-banner h1 { color: var(--ink); text-shadow: none; font-size: 32px; }
  .hero-banner h1 span { color: var(--apple); }
  .hero-banner h1 span.t1 { color: var(--ink); }
  .hero-banner .hero-sub { color: var(--ink); text-shadow: none; font-size: 15px; }
  .hero-banner .eyebrow { background: #fff; }
}
.float { animation: floaty 4.5s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.bubble {
  position: absolute;
  background: #fff;
  border-radius: 18px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  animation: floaty 5s ease-in-out infinite;
}
.b1 { top: 6%; right: 2%; animation-delay: 0.4s; }
.b2 { bottom: 12%; left: 0; animation-delay: 1.2s; }
.b3 { top: 38%; left: -4%; font-size: 26px; animation-delay: 0.8s; }

/* ---------------- 数据条 ---------------- */
.stats { position: relative; padding: 10px 24px 30px; }
.stats-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.stat-num {
  font-size: 40px;
  font-weight: 900;
  color: var(--apple);
  font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }

/* ---------------- 通用区块 ---------------- */
.section { position: relative; padding: 64px 24px; }
.section-head { text-align: center; margin-bottom: 44px; }
.kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--mint-deep);
}
.section-head h2 {
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: 2px;
  margin: 8px 0 6px;
}
.section-sub { color: var(--ink-soft); }

/* ---------------- 宝宝档案 ---------------- */
.about-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 40px;
  display: flex;
  gap: 36px;
  align-items: flex-start;
}
.about-avatar {
  position: relative;
  flex-shrink: 0;
  width: 160px; height: 160px;
}
.about-avatar svg { width: 100%; height: 100%; }
.avatar-tag {
  position: absolute;
  right: -6px; bottom: -6px;
  font-size: 26px;
  background: #fff;
  border-radius: 50%;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}
.about-info { flex: 1; }
.about-info h3 { font-size: 30px; font-weight: 900; letter-spacing: 1px; }
.about-role { color: var(--apple-deep); font-weight: 600; margin: 4px 0 18px; }
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}
.info-grid div {
  background: #FDF3E8;
  border-radius: 14px;
  padding: 12px 16px;
}
.info-grid dt { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.info-grid dd { font-size: 15px; font-weight: 700; margin-top: 2px; }

/* ---------------- 成长时光轴 ---------------- */
.timeline-wrap {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.tl-line {
  position: absolute;
  left: 26px; top: 8px; bottom: 8px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--apple), var(--sun), var(--mint), var(--sky));
}
.tl-item { position: relative; padding-left: 74px; margin-bottom: 26px; }
.tl-dot {
  position: absolute;
  left: 11px; top: 22px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: var(--shadow-soft);
  z-index: 1;
}
.tl-dot-red  { background: var(--apple); }
.tl-dot-sun  { background: var(--sun); }
.tl-dot-mint { background: var(--mint); }
.tl-dot-sky  { background: var(--sky); }
.tl-dot-next { background: #fff; border: 6px dashed var(--sun); }
.tl-card {
  background: var(--paper);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s;
}
.tl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tl-card.now { border: 2px solid var(--apple); }
.tl-card.upcoming { opacity: 0.75; background: #FFFBF3; }
.tl-date {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--apple-deep);
  background: #FFE4DC;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.tl-card.upcoming .tl-date { background: #FFF3CF; color: var(--sun-deep); }
.tl-card h4 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.tl-card p { font-size: 14.5px; color: var(--ink-soft); }

/* 时间轴配图：全出血圆角卡片 */
.tl-photo {
  margin: -20px -24px 16px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: var(--line);
}
.tl-photo {
  height: 200px;
}
.tl-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.tl-card:hover .tl-photo img { transform: scale(1.03); }

/* ---------------- 相册 ---------------- */
.gallery-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.photo {
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s;
}
.photo:hover { transform: translateY(-6px) rotate(-0.5deg); box-shadow: var(--shadow); }
.photo-inner svg { width: 100%; height: auto; }
.photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-inner {
  aspect-ratio: var(--law-ratio, 4 / 3);
}
.photo figcaption {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  padding: 12px;
  color: var(--ink);
}
.gallery-tip {
  max-width: 980px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: #FFF3CF;
  border-radius: 12px;
  padding: 10px;
}

/* ---------------- 小趣事 ---------------- */
.fun-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.fun-card {
  background: var(--paper);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s;
}
.fun-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.fun-icon {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  font-size: 28px;
  border-radius: 18px;
  background: #FFE4DC;
  margin-bottom: 14px;
}
.fun-card:nth-child(2) .fun-icon { background: #E0F5ED; }
.fun-card:nth-child(3) .fun-icon { background: #FFF3CF; }
.fun-card:nth-child(4) .fun-icon { background: #E4F0FB; }
.fun-card:nth-child(5) .fun-icon { background: #F2E8FF; }
.fun-card:nth-child(6) .fun-icon { background: #FFE8F2; }
.fun-card h4 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.fun-card p { font-size: 14px; color: var(--ink-soft); }

/* ---------------- 页脚 ---------------- */
.footer {
  position: relative;
  background: #3E322B;
  color: #F6E9DC;
  text-align: center;
  padding: 44px 24px 36px;
  margin-top: 30px;
}
.footer-apple { width: 46px; height: 46px; margin: 0 auto 14px; }
.footer-logo-wrap { display: block; margin: 0 auto 14px; text-align: center; }
.footer-logo { display: inline-block; border-radius: 12px; object-fit: contain; }
.footer p { font-size: 15px; font-weight: 600; }
.footer-small { margin-top: 8px; font-size: 13px; opacity: 0.7; font-weight: 400; }

/* ---------------- 入场动画 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.show { opacity: 1; transform: translateY(0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 860px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-tags, .hero-sub { justify-content: center; }
  .hero-art { order: -1; }
  .hero-apple { width: 220px; height: 220px; }
  .hero-photo, .law-hero-svg { width: 220px; height: 220px; }
  .sun-ring { width: 230px; height: 230px; }
  .bubble { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .about-card { flex-direction: column; align-items: center; text-align: center; padding: 28px 20px; }
  .info-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .fun-grid { grid-template-columns: 1fr 1fr; }
  .menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 18px;
    border-bottom: 1px solid var(--line);
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 2px; border-bottom: 1px dashed var(--line); }
  .menu a:last-child { border-bottom: none; }
  .burger { display: flex; }
}

@media (max-width: 520px) {
  .fun-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .section { padding: 48px 18px; }
  .nav-inner { padding: 12px 18px; }
  .stat-num { font-size: 32px; }
  .gallery-grid { gap: 16px; }
  .timeline-wrap { padding-left: 8px; }
  .tl-item { padding-left: 64px; }
}

/* ---------------- 图片可视化舞台（缩放 + 聚焦点 + 比例） ---------------- */
.law-img-stage {
  position: relative;
  overflow: hidden;
  display: block;
}
.law-img-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--law-posx, 50%) var(--law-posy, 50%);
  transform: scale(var(--law-zoom, 1));
  transform-origin: var(--law-posx, 50%) var(--law-posy, 50%);
}
/* 圆形（Hero / 头像）舞台 */
.hero-banner-bg .law-img-stage {
  width: 100%;
  height: 100%;
}
.hero-photo.law-img-stage {
  border-radius: 50%;
  overflow: hidden;
}
.law-avatar-stage {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}


/* ==================== 音乐播放器（v1.5） ==================== */
.law-player {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 9998; font-family: inherit; -webkit-font-smoothing: antialiased;
}
.law-player button {
  font-family: inherit; cursor: pointer; border: none; background: none; color: inherit;
}
/* ---- 迷你条 ---- */
.law-player-mini {
  display: flex; align-items: center; gap: 11px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border: 1px solid #F6DDCF; border-radius: 999px;
  padding: 8px 10px 8px 8px; box-shadow: 0 12px 30px rgba(217,81,63,.22);
  max-width: 92vw;
}
.law-player-thumb {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(74,63,53,.18); flex: none;
}
.law-player-meta { min-width: 0; max-width: 150px; line-height: 1.2; }
.law-player-mtitle { font-size: 14px; font-weight: 700; color: #4A3F35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.law-player-martist { font-size: 11px; color: #A08E7E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.law-player-mini-play, .law-player-mini-expand {
  position: relative; width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; background: linear-gradient(135deg, #F26B5E, #D9513F);
  box-shadow: 0 6px 14px rgba(217,81,63,.35); transition: transform .15s;
}
.law-player-mini-play:active, .law-player-mini-expand:active { transform: scale(.92); }
.law-player-mini-expand { width: 30px; height: 30px; background: #F6E3D6; color: #D9513F; box-shadow: none; font-size: 15px; }
/* ---- 展开面板 ---- */
.law-player-panel {
  position: fixed; bottom: 82px; left: 50%; transform: translateX(-50%) translateY(12px);
  width: min(660px, 94vw); max-height: 78vh; overflow: auto;
  background: linear-gradient(160deg, #ffffff, #FFF3E7);
  border: 1px solid #F6DDCF; border-radius: 26px;
  box-shadow: 0 24px 60px rgba(74,63,53,.28);
  padding: 20px 22px 22px;
  opacity: 0; visibility: hidden; transition: opacity .22s, transform .22s, visibility .22s;
}
.law-player.open .law-player-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.law-player-panel-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.law-player-live { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #D9513F; letter-spacing: 1px; }
.law-player-live i {
  width: 8px; height: 8px; border-radius: 50%; background: #F26B5E;
  box-shadow: 0 0 0 0 rgba(242,107,94,.5); animation: lawPulse 1.6s infinite;
}
@keyframes lawPulse {
  0% { box-shadow: 0 0 0 0 rgba(242,107,94,.5); }
  70% { box-shadow: 0 0 0 9px rgba(242,107,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,107,94,0); }
}
.law-player-collapse {
  width: 30px; height: 30px; border-radius: 50%; background: #F6E3D6; color: #D9513F;
  font-size: 16px; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
/* 内容区 */
.law-player-body { display: flex; gap: 20px; align-items: center; }
.law-player-cover-wrap { flex: none; width: 128px; height: 128px; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 26px rgba(217,81,63,.25); background: #fff; }
.law-player-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.law-player-cover-wrap.spin .law-player-cover { animation: lawSpin 9s linear infinite; }
@keyframes lawSpin { to { transform: rotate(360deg); } }
.law-player-cover-empty { display: flex; align-items: center; justify-content: center; font-size: 52px; background: linear-gradient(135deg,#FFE9E0,#FFF6EC); }
.law-player-info { flex: 1; min-width: 0; }
.law-player-title { font-size: 20px; font-weight: 800; color: #4A3F35; line-height: 1.3; }
.law-player-artist { font-size: 14px; color: #D9513F; font-weight: 600; margin-top: 3px; }
.law-player-album { font-size: 12px; color: #A08E7E; margin-top: 2px; }
.law-player-progress { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.law-player-time { font-size: 11px; color: #A08E7E; font-variant-numeric: tabular-nums; min-width: 34px; }
.law-player-bar {
  flex: 1; height: 6px; border-radius: 99px; background: #F0DDD0; cursor: pointer; position: relative;
}
.law-player-fill { height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, #F26B5E, #F4A259); }
.law-player-knob {
  position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid #F26B5E; transform: translateY(-50%);
  box-shadow: 0 2px 6px rgba(74,63,53,.25); pointer-events: none;
}
.law-player-controls { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.law-player-btn {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #D9513F; background: #FFEFE5; transition: transform .12s;
}
.law-player-btn:hover { background: #F8E2D4; }
.law-player-btn:active { transform: scale(.9); }
.law-player-btn.play {
  width: 52px; height: 52px; font-size: 17px; color: #fff;
  background: linear-gradient(135deg, #F26B5E, #D9513F); box-shadow: 0 8px 18px rgba(217,81,63,.4);
}
.law-player-vol { display: flex; align-items: center; gap: 7px; margin-left: auto; color: #D9513F; font-size: 13px; }
.law-player-vbar { width: 60px; height: 5px; border-radius: 99px; background: #F0DDD0; cursor: pointer; }
.law-player-vfill { height: 100%; width: 80%; border-radius: 99px; background: #F26B5E; }
/* ---- 歌词 ---- */
.law-player-lyrics { margin-top: 16px; border-top: 1px dashed #F2D9C8; padding-top: 12px; }
.law-player-lyrics-title { font-size: 12px; font-weight: 700; color: #D9513F; margin-bottom: 8px; letter-spacing: 1px; }
.law-player-lyrics-scroll {
  max-height: 172px; overflow-y: auto; padding: 4px 6px;
  -webkit-overflow-scrolling: touch;
}
.law-player-lyrics-inner p {
  font-size: 13.5px; color: #A08E7E; line-height: 1.9; text-align: center;
  padding: 3px 0; transition: color .25s, transform .25s;
}
.law-player-lyrics-inner p.on { color: #D9513F; font-weight: 700; font-size: 15px; transform: scale(1.04); }
/* 更换歌曲 */
.law-player-change {
  margin-top: 14px; width: 100%; padding: 10px; border-radius: 12px;
  background: #FFEFE5; color: #D9513F; font-size: 13px; font-weight: 700; border: 1px dashed #F4A259;
}
.law-player-change:hover { background: #F8E2D4; }
/* Toast */
#law-player-toast {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%) translateY(-8px);
  background: rgba(74,63,53,.94); color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 99px;
  z-index: 99999; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: 88vw;
}
#law-player-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ---- 待自动播放：底部播放键柔和脉冲提示（不弹大按钮，首次任意点击即自动开播） ---- */
.law-player.hint-start .law-player-mini-play {
  animation: lawHintPulse 1.7s ease-in-out infinite;
}
.law-player.hint-start .law-player-mini-play::after {
  content: '♪'; position: absolute; top: -5px; right: -5px;
  width: 19px; height: 19px; border-radius: 50%;
  background: #F26B5E; color: #fff; font-size: 11px; line-height: 19px;
  text-align: center; animation: lawHintPulse 1.7s ease-in-out infinite;
}
@keyframes lawHintPulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217,81,63,.45); }
  50% { transform: scale(1.07); box-shadow: 0 0 0 9px rgba(217,81,63,0); }
}

/* ---- 移动端 ---- */
@media (max-width: 520px) {
  .law-player-panel { width: 96vw; padding: 16px; }
  .law-player-body { flex-direction: column; align-items: center; text-align: center; }
  .law-player-cover-wrap { width: 110px; height: 110px; }
  .law-player-lyrics-scroll { max-height: 150px; }
  .law-player-meta { max-width: 120px; }
}
