/* ===== 乐伴无界 - 温暖灵动品牌设计系统 ===== */

/* CSS 自定义属性 */
:root {
  --warm-peach: #FFD1B8;
  --warm-coral: #FF9A9E;
  --warm-cream: #FFF5EE;
  --warm-blush: #FFE4D6;
  --warm-rose: #F8C8D4;
  --text-primary: #4A3728;
  --text-secondary: #8B7355;
  --card-bg: #FFFFFF;
  --bg-glass: rgba(255,255,255,0.75);
  --shadow-warm: 0 8px 32px rgba(180, 120, 80, 0.08);
  --shadow-card: 0 4px 24px rgba(180, 120, 80, 0.06);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-full: 999px;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(160deg, #FFF5EE 0%, #FFE4D6 40%, #FFD1B8 100%);
  min-height: 100vh;
  background-attachment: fixed;
}

/* ===== 动画定义 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* 动画辅助类 */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ===== 布局 ===== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== 头部区 ===== */
.hero {
  text-align: center;
  padding: 50px 20px 30px;
  color: var(--text-primary);
  animation: fadeInUp 0.6s ease-out;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--warm-coral);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logo::before {
  content: "🧸";
  font-size: 26px;
  animation: gentleBounce 2s ease-in-out infinite;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #FF7F7F, #FF9A9E, #FAD0C4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ===== 内容卡片 ===== */
.content {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-warm);
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: fadeInUp 0.6s ease-out 0.15s both;
}

.intro-section {
  margin-bottom: 40px;
}

.intro-section h2 {
  font-size: 26px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.intro-section p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.8;
}

/* ===== 维度卡片 ===== */
.dimensions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.dimension-card {
  background: #FFFAF5;
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 200, 160, 0.3);
  cursor: default;
}

.dimension-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-warm);
  border-color: rgba(255, 150, 130, 0.5);
}

.dimension-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: bold;
  margin: 0 auto 14px;
  transition: transform 0.3s;
}

.dimension-card:hover .dimension-icon {
  transform: scale(1.1);
}

.dimension-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-weight: 600;
}

.dimension-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 各维度图标颜色 */
.dim-O .dimension-icon { background: linear-gradient(135deg, #C4B5FD, #8B5CF6); color: #fff; }
.dim-C .dimension-icon { background: linear-gradient(135deg, #93C5FD, #3B82F6); color: #fff; }
.dim-E .dimension-icon { background: linear-gradient(135deg, #FED7AA, #FF8C42); color: #fff; }
.dim-A .dimension-icon { background: linear-gradient(135deg, #A7F3D0, #34D399); color: #fff; }
.dim-N .dimension-icon { background: linear-gradient(135deg, #BFDBFE, #60A5FA); color: #fff; }

/* ===== 测试说明 ===== */
.test-info {
  margin-bottom: 40px;
}

.test-info h2 {
  font-size: 26px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.test-info ul {
  list-style: none;
  padding: 0;
}

.test-info li {
  padding: 14px 18px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #FFFAF5, #FFF5EE);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-primary);
  border-left: 3px solid var(--warm-coral);
  transition: transform 0.2s;
}

.test-info li:hover {
  transform: translateX(4px);
}

.test-info li::before {
  content: "✦ ";
  color: var(--warm-coral);
  font-weight: bold;
  margin-right: 8px;
}

/* ===== CTA 按钮 ===== */
.cta-section {
  text-align: center;
  padding: 30px 0 10px;
}

.btn-start {
  display: inline-block;
  padding: 16px 56px;
  background: linear-gradient(135deg, #FF9A9E 0%, #FAD0C4 100%);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-full);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 24px rgba(255, 154, 158, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-start::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite;
}

.btn-start:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(255, 154, 158, 0.5);
}

/* ===== 页脚 ===== */
.footer {
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
  opacity: 0.8;
  font-size: 13px;
}

.footer a {
  color: var(--warm-coral);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ===== 浮动分享按钮 ===== */
.floating-share {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.floating-share-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF9A9E, #FAD0C4);
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(255, 154, 158, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.floating-share-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(255, 154, 158, 0.55);
}

.floating-share-btn:active {
  transform: scale(0.95);
}

.floating-share-btn .dot-pulse {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34D399;
  animation: gentlePulse 1.5s ease-in-out infinite;
}

/* 浮动按钮展开面板 */
.floating-panel {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: none;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
  animation: fadeInUp 0.3s ease-out;
}

.floating-panel.active {
  display: flex;
}

.floating-panel .panel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #4A3728;
  transition: background 0.2s;
  width: 100%;
  text-align: left;
}

.floating-panel .panel-item:hover {
  background: #FFFAF5;
}

.floating-panel .panel-item .item-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

/* ===== 增强版分享邀请区（首页）===== */
.share-invite-enhanced {
  text-align: center;
  padding: 30px 0 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 30px;
}

.share-invite-enhanced h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.share-invite-enhanced .invite-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.share-invite-enhanced .qr-wrapper {
  display: inline-block;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 12px;
}

.share-invite-enhanced .qr-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.share-buttons-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-buttons-group button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-buttons-group button:hover {
  transform: translateY(-2px);
}

.btn-wechat-share {
  background: #07C160;
  color: #fff;
}

.btn-weibo-share {
  background: #E6162D;
  color: #fff;
}

.btn-copy-share {
  background: #F5F0EB;
  color: var(--text-primary);
}

.btn-more-share {
  background: linear-gradient(135deg, #FF9A9E, #FAD0C4);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 154, 158, 0.3);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero { padding: 40px 16px 24px; }
  .hero h1 { font-size: 30px; }
  .subtitle { font-size: 16px; }

  .content { padding: 24px 16px; border-radius: var(--radius-md); }
  .dimensions { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dimension-card { padding: 16px 10px; }

  .btn-start { padding: 14px 40px; font-size: 16px; }
}
