/* 主题色 & 基础排版 */
:root {
  --dp-bg: #fdf8f9;
  --dp-panel: #ffffff;
  --dp-accent: #ff97a0;
  --dp-accent-secondary: #ffcad4;
  --dp-accent-soft: #ffe1e5;
  --dp-text-main: #1f1f1f;
  --dp-text-sub: #797a7e;
  --dp-radius-card: 18px;
  --dp-shadow-soft: 0 18px 45px rgba(255, 154, 158, 0.25);
  --dp-shadow-card: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Loading 动画 */
.dp-loading {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #ffe1ec 0%, #fff6f9 45%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.dp-loading.dp-loading--hidden {
  opacity: 0;
  visibility: hidden;
}

.dp-loading-content {
  text-align: center;
  animation: loadingPulse 2s ease-in-out infinite;
}

.dp-loading-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(255, 154, 158, 0.4);
  animation: loadingFloat 3s ease-in-out infinite;
}

.dp-loading-text {
  font-size: 14px;
  color: var(--dp-accent);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.dp-loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 154, 158, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.dp-loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #ff9a9e, #fecfef);
  border-radius: 999px;
  animation: loadingProgress 1.5s ease-in-out infinite;
}

@keyframes loadingFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes loadingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes loadingProgress {
  0% { width: 0%; margin-left: 0; }
  50% { width: 70%; margin-left: 15%; }
  100% { width: 100%; margin-left: 0; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "HarmonyOS Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui,
    -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--dp-bg);
  color: var(--dp-text-main);
  line-height: 1.5;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../img/hero-bg.jpg") center/cover;
  opacity: 0.12;
  filter: blur(4px);
  z-index: -1;
}

button {
  font: inherit;
}

.dp-hidden {
  display: none !important;
}

.dp-hero {
  padding: 70px 20px 60px;
  text-align: center;
  background: radial-gradient(circle at 0% 0%, rgba(255, 220, 240, 0.9), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(207, 229, 255, 0.8), transparent 50%),
    linear-gradient(135deg, #ffe1ec 0%, #fff6f9 45%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.dp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hero-bg.jpg") center/cover;
  opacity: 0.25;
  filter: blur(1px);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.dp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.8), rgba(255, 246, 249, 0.9));
  pointer-events: none;
}

.dp-hero-inner {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.dp-hero-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 154, 158, 0.4);
  font-size: 11px;
  color: var(--dp-accent);
  margin-bottom: 12px;
}

.dp-hero-title {
  margin: 0 0 8px;
  line-height: 1.1;
}

.dp-hero-title-main {
  display: block;
  font-size: 44px;
  letter-spacing: 0.12em;
  font-weight: 800;
  text-shadow: 0 12px 30px rgba(255, 154, 158, 0.5);
  transform: skewX(-3deg);
}

.dp-hero-title-sub {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dp-text-sub);
}

.dp-subtitle {
  margin: 0 0 20px;
  color: var(--dp-text-sub);
  font-size: 15px;
}

.dp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.dp-hero-meta {
  color: var(--dp-text-sub);
  font-size: 13px;
  margin-top: 12px;
}

.dp-primary-btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
  color: #ffffff;
  box-shadow: var(--dp-shadow-soft);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dp-primary-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.dp-primary-btn:hover::before {
  width: 300px;
  height: 300px;
}

.dp-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(255, 154, 158, 0.35);
}

.dp-primary-btn:active {
  transform: translateY(0);
}

.dp-ghost-link {
  font-size: 13px;
  color: var(--dp-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dp-main {
  padding: 32px 16px 90px;
  max-width: 720px;
  margin: 0 auto;
}

.dp-section {
  margin-bottom: 36px;
  background: var(--dp-panel);
  border-radius: 24px;
  padding: 20px 18px 24px;
  box-shadow: var(--dp-shadow-card);
}

.dp-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.dp-section-title {
  margin: 0 0 16px;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dp-section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dp-section-hint {
  font-size: 12px;
  color: var(--dp-text-sub);
}

.dp-pill-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #ffd5e1;
  background: #fff7fa;
  font-size: 12px;
  color: var(--dp-accent);
  cursor: pointer;
}

.dp-pill-btn-secondary {
  border-color: #e5e5e5;
  background: #ffffff;
  color: var(--dp-text-sub);
}

.dp-section-footer {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.dp-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.dp-entry-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: var(--dp-radius-card);
  border: none;
  padding: 12px 10px;
  text-align: left;
  background: linear-gradient(160deg, #ffffff, #fff6f8);
  box-shadow: var(--dp-shadow-card);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dp-entry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dp-shadow-soft);
}

.dp-entry-title {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.dp-entry-desc {
  display: block;
  font-size: 13px;
  color: var(--dp-text-sub);
}

.dp-companion-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
  box-shadow: 0 8px 24px rgba(255, 154, 158, 0.4);
  cursor: pointer;
  background-image: url("../img/avatar.png");
  background-size: cover;
  background-position: center;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fabPulse 2s ease-in-out infinite;
}

.dp-companion-fab:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(255, 154, 158, 0.5);
}

.dp-companion-fab:active {
  transform: scale(0.95);
}

@keyframes fabPulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(255, 154, 158, 0.4);
  }
  50% {
    box-shadow: 0 8px 32px rgba(255, 154, 158, 0.6);
  }
}


