/* ===== 魔卡少女樱主题搜索站 ===== */
:root {
  --pink: #ff8fb8;
  --pink-deep: #e85d9a;
  --pink-soft: #ffd1dc;
  --pink-pale: #fff0f5;
  --gold: #e8b84b;
  --gold-light: #f7d98a;
  --sky: #bfe8f7;
  --sky-deep: #8fd4ef;
  --cream: #fffaf5;
  --text: #5a4a52;
  --text-muted: #9a8a92;
}

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

html, body { height: 100%; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  background: linear-gradient(180deg, #d8f1fb 0%, #c3e9fa 35%, #fdeef4 70%, #fff5f0 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== 魔法阵背景 ===== */
.magic-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.magic-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.10;
  border: 2px solid var(--gold);
  animation: rotate 60s linear infinite;
}
.magic-circle::before, .magic-circle::after {
  content: "";
  position: absolute;
  border: 1.5px dashed var(--gold);
  border-radius: 50%;
}
.magic-circle.c1 { width: 520px; height: 520px; top: -140px; right: -120px; }
.magic-circle.c1::before { inset: 22px; }
.magic-circle.c1::after { inset: 48px; border-style: solid; }
.magic-circle.c2 { width: 380px; height: 380px; bottom: -120px; left: -100px; animation-direction: reverse; animation-duration: 80s; }
.magic-circle.c2::before { inset: 18px; }
.magic-circle.c2::after { inset: 40px; border-style: solid; }
.magic-circle.c3 { width: 200px; height: 200px; top: 42%; left: 6%; animation-duration: 100s; }
.magic-circle.c3::before { inset: 12px; }

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== 樱花飘落 ===== */
.sakura-fall { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.sakura-fall .petal {
  position: absolute;
  top: -30px;
  color: var(--pink-soft);
  font-size: var(--ps, 18px);
  animation: fall var(--pd, 9s) linear infinite;
  animation-delay: var(--dd, 0s);
  opacity: 0.75;
}
.sakura-fall .petal::after { content: "🌸"; }
@keyframes fall {
  0% { transform: translateY(-30px) rotate(0deg) translateX(0); }
  100% { transform: translateY(105vh) rotate(340deg) translateX(60px); }
}

/* ===== 顶部导航 ===== */
.top-nav {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232, 184, 75, 0.25);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left { display: flex; align-items: center; gap: 26px; }
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-logo-badge {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pink-soft), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  box-shadow: 0 2px 8px rgba(232, 93, 154, 0.35);
}
.nav-logo-text { font-weight: 700; font-size: 16px; color: var(--pink-deep); letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 18px; }
.nav-link {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  padding: 5px 4px;
  border-bottom: 2px solid transparent;
  display: flex; align-items: center; gap: 4px;
  transition: color .2s;
}
.nav-link:hover { color: var(--pink-deep); }
.nav-link.active { color: var(--pink-deep); border-bottom-color: var(--pink); font-weight: 600; }
.nl-ico { font-size: 13px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-login { color: var(--text); text-decoration: none; font-size: 14px; }
.nav-login:hover { color: var(--pink-deep); }
.nav-fav {
  display: flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #fff7d6, #ffe9a8);
  border: 1.5px solid var(--gold-light);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: #9a7a2a;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(232, 184, 75, 0.25);
  transition: transform .2s;
}
.nav-fav:hover { transform: translateY(-1px); }
.nav-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3b8, #f5c44f);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(232, 184, 75, 0.4);
  text-decoration: none;
}

/* ===== 主区域 ===== */
.hero-wrap { position: relative; z-index: 5; max-width: 1100px; margin: 0 auto; padding: 30px 24px 20px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 20px;
  min-height: 480px;
}

/* ===== 左侧角色 ===== */
.side-art { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.kero-float {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(232, 184, 75, 0.45);
  animation: bob 3.2s ease-in-out infinite;
  margin-bottom: -24px;
  position: relative;
  z-index: 6;
  background: #d8f1fb;
}
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }

.sakura-standee { position: relative; width: 300px; height: 420px; }
.standee-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 10px 24px rgba(232, 93, 154, 0.3));
  animation: standee-sway 5s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes standee-sway { 0%,100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
.art-caption { margin-top: 10px; font-size: 12px; color: var(--text-muted); letter-spacing: 1px; }

/* ===== 中央搜索 ===== */
.search-center { text-align: center; }
.arc-slogan {
  font-size: 14px;
  color: var(--pink-deep);
  letter-spacing: 1px;
  margin-bottom: 14px;
  text-shadow: 0 1px 0 #fff;
  font-weight: 600;
}
.main-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}
.title-sakura {
  font-size: 64px;
  font-weight: 900;
  background: linear-gradient(180deg, #ff9dc0, #ff6ea8, #ff9dc0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 rgba(232, 93, 154, 0.25));
  line-height: 1.1;
  letter-spacing: 2px;
}
.wing { font-size: 30px; animation: wing-flap 4s ease-in-out infinite; }
.wing-r { animation-delay: 0.2s; }
@keyframes wing-flap { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(0.85) scaleX(1.1); } }

.ribbon {
  display: inline-block;
  background: linear-gradient(90deg, var(--pink), var(--pink-deep), var(--pink));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 6px 22px;
  border-radius: 999px;
  margin: 10px 0 22px;
  box-shadow: 0 4px 12px rgba(232, 93, 154, 0.35);
  position: relative;
}
.ribbon::before, .ribbon::after {
  content: "★";
  position: absolute;
  top: 50%; transform: translateY(-50%);
  color: var(--gold-light);
  font-size: 10px;
}
.ribbon::before { left: 8px; }
.ribbon::after { right: 8px; }

.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 3px solid var(--pink-soft);
  border-radius: 999px;
  padding: 8px 10px 8px 26px;
  box-shadow: 0 8px 24px rgba(232, 93, 154, 0.18), inset 0 2px 6px rgba(255, 209, 220, 0.35);
  max-width: 560px;
  margin: 0 auto;
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: var(--pink); box-shadow: 0 8px 28px rgba(232, 93, 154, 0.3); }
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--text);
  background: transparent;
}
.search-box input::placeholder { color: #c9b6bd; }
.search-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 30%, var(--pink), var(--pink-deep));
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(232, 93, 154, 0.45);
  transition: transform .15s;
  display: flex; align-items: center; justify-content: center;
}
.search-btn:hover { transform: scale(1.06); }
.search-btn:active { transform: scale(0.96); }

.quick-tags { display: flex; justify-content: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.qtag {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--pink-soft);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 6px rgba(232, 93, 154, 0.1);
}
.qtag:hover { border-color: var(--pink); color: var(--pink-deep); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(232, 93, 154, 0.2); }

/* ===== 右侧幸运卡 ===== */
.lucky-card {
  width: 210px;
  background: linear-gradient(160deg, #fff, #ffeef5);
  border: 3px solid var(--gold-light);
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(232, 184, 75, 0.3);
  position: relative;
}
.lucky-card::before {
  content: "✦";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 26px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(232, 184, 75, 0.6);
}
.lc-head { font-size: 14px; font-weight: 700; color: var(--pink-deep); margin: 4px 0 10px; }
.lc-card-face {
  position: relative;
  height: 240px;
  background: linear-gradient(180deg, #3b1d5e, #6b2d8f, #a04b9d);
  border-radius: 12px;
  border: 2px solid var(--gold-light);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  overflow: hidden;
}
.lc-card-face::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(247, 217, 138, 0.5);
  border-radius: 8px;
}
.lc-card-face::after {
  content: "✨ ✨ ✨";
  position: absolute;
  top: 8px; left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  color: var(--gold-light);
  letter-spacing: 6px;
  opacity: 0.8;
}
.lc-star { font-size: 54px; animation: star-pulse 2.8s ease-in-out infinite; filter: drop-shadow(0 0 12px rgba(247, 217, 138, 0.9)); }
@keyframes star-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.lc-rune { color: var(--gold-light); font-size: 22px; letter-spacing: 10px; margin-left: 10px; opacity: 0.9; }
.lc-wings { font-size: 18px; color: rgba(255,255,255,0.9); }
.lc-name {
  display: inline-block;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  color: #6b4a10;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  padding: 5px 18px;
  border-radius: 999px;
}
.lc-foot { font-size: 12px; color: var(--pink-deep); margin-top: 10px; font-weight: 600; }

/* ===== 底部小部件 ===== */
.bottom-widgets {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.bw-tip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid var(--pink-soft);
  border-radius: 999px;
  padding: 10px 22px 10px 10px;
  box-shadow: 0 4px 14px rgba(232, 93, 154, 0.12);
  max-width: 420px;
}
.bw-tip-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3b8, #f5c44f);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  border: 2px solid #fff;
  flex-shrink: 0;
}
.bw-tip-bubble { font-size: 13px; color: var(--text); line-height: 1.6; }
.bw-shortcuts { display: flex; gap: 12px; flex-wrap: wrap; }
.bw-sc {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  width: 76px;
}
.sc-ico {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, var(--pink-pale));
  border: 1.5px solid var(--pink-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 3px 10px rgba(232, 93, 154, 0.15);
  transition: transform .2s;
}
.bw-sc:hover .sc-ico { transform: translateY(-3px) rotate(-4deg); }
.bw-sc:hover { color: var(--pink-deep); }

/* ===== 页脚 ===== */
.site-footer { position: relative; z-index: 5; margin-top: 10px; padding: 16px 24px; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.f-links a { color: var(--text-muted); text-decoration: none; margin-left: 14px; }
.f-links a:hover { color: var(--pink-deep); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .side-art { order: 2; }
  .search-center { order: 1; }
  .art-caption { display: none; }
  .sakura-standee { height: 260px; }
  .kero-float { width: 84px; height: 84px; }
  .nav-links { display: none; }
  .bottom-widgets { justify-content: center; }
}
