/* ===== 基础重置 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== 视频背景 ===== */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  /* 慢速缩放呼吸感（桌面端 GPU 可轻松处理） */
  animation: breathe 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes breathe {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* 暗色蒙层（让前景文字清晰） */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(40, 10, 30, 0.55) 0%, rgba(60, 15, 45, 0.45) 50%, rgba(40, 10, 30, 0.65) 100%),
    radial-gradient(ellipse at 50% 30%, rgba(255, 182, 200, 0.18) 0%, transparent 70%);
}

/* ===== 飘落猫爪 ===== */
.paw-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.paw-bg span {
  position: absolute;
  font-size: 28px;
  opacity: 0.18;
  animation: paw-fall linear infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}
.paw-bg span:nth-child(1)  { left:  5%; animation-duration: 22s; animation-delay:  0s; }
.paw-bg span:nth-child(2)  { left: 15%; animation-duration: 28s; animation-delay: -5s; }
.paw-bg span:nth-child(3)  { left: 30%; animation-duration: 25s; animation-delay: -10s; font-size: 36px; }
.paw-bg span:nth-child(4)  { left: 45%; animation-duration: 30s; animation-delay: -3s; }
.paw-bg span:nth-child(5)  { left: 55%; animation-duration: 24s; animation-delay: -8s; font-size: 32px; }
.paw-bg span:nth-child(6)  { left: 70%; animation-duration: 27s; animation-delay: -12s; }
.paw-bg span:nth-child(7)  { left: 80%; animation-duration: 23s; animation-delay: -2s; font-size: 34px; }
.paw-bg span:nth-child(8)  { left: 92%; animation-duration: 29s; animation-delay: -7s; }
@media (hover: none) and (pointer: coarse) {
  .paw-bg span:nth-child(n+5) { display: none; }
}
@keyframes paw-fall {
  0%   { transform: translateY(-10vh) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.25; }
  50%  { transform: translateY(50vh) rotate(180deg); opacity: 0.3; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* ===== 主体 ===== */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 30px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* ===== Hero 头图 ===== */
.hero {
  text-align: center;
  padding: 20px 0 10px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: 1px;
}
.hero-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  margin-bottom: 18px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  letter-spacing: 2px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.title-emoji { font-size: 1em; }
/* 动态 logo 视频（圆形头像） */
.title-logo {
  display: inline-flex;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: middle;
  border: 2.5px solid rgba(255, 182, 200, 0.85);
  box-shadow: 0 4px 18px rgba(255, 107, 157, 0.55), 0 0 0 4px rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  animation: logo-bob 3.2s ease-in-out infinite;
  will-change: transform;
}
.logo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes logo-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-5px) rotate(2deg); }
}
.title-text { color: #fff; }
.title-gradient {
  background: linear-gradient(135deg, #ffb6c8, #ffd6a5, #ffb6c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.title-divider { color: #ffb6c8; opacity: 0.7; }
.hero-domains {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.tld-pink { color: #ffb6c8; }
.tld-red  { color: #ff8c8c; }
.domain-x { color: #ffb6c8; font-size: 1.2em; opacity: 0.6; }
.hero-quote {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  font-style: italic;
  font-weight: 500;
}
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b9d, #ff8db3);
  color: white;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.5);
  transition: all 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(255, 107, 157, 0.7);
}

/* ===== 域名卡片三栏 ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 28px 22px;
  transition: all 0.3s;
  text-align: center;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 182, 200, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.card-best {
  background: linear-gradient(160deg, rgba(255, 107, 157, 0.25), rgba(255, 182, 200, 0.2));
  border: 2.5px solid #ff8db3;
  transform: scale(1.04);
  box-shadow: 0 12px 36px rgba(255, 107, 157, 0.3);
}
.card-best:hover { transform: translateY(-6px) scale(1.04); }
.card-best-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b9d, #ff8db3);
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}
.card-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.badge-com    { background: linear-gradient(135deg, #ff8db3, #ff6b9d); color: white; }
.badge-cn     { background: linear-gradient(135deg, #ff6b6b, #ff8c8c); color: white; }
.badge-bundle { background: linear-gradient(135deg, #ff8db3, #ffb6c8); color: white; }
.badge-cn-soft{ background: rgba(255, 255, 255, 0.2); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.card-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  word-break: break-all;
  color: #fff;
}
.card-tld { color: #ffb6c8; }
/* 打包卡名字含两个域名，缩小并允许换行 */
.card-name-bundle {
  font-size: 17px;
  line-height: 1.45;
}
.card-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.3);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}
.card-price-bundle {
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
}
.price-old {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: line-through;
}
.price-bundle { display: flex; align-items: baseline; gap: 4px; }
.price-tip {
  font-size: 12px;
  color: #ffd6a5;
  font-weight: 600;
}
.price-symbol { font-size: 22px; color: #ffd6a5; font-weight: 600; }
.price-num {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffd6a5, #ffb6c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}
.card-feats {
  text-align: left;
  margin-bottom: 0;
}
.card-feats li {
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  padding-left: 22px;
  position: relative;
}
.card-feats li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ffb6c8;
  font-weight: 800;
}
.card-cta {
  display: block;
  margin-top: 16px;
  background: linear-gradient(135deg, #ff6b9d, #ff8db3);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}
.card-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 157, 0.6);
}

/* ===== 底部 about + contact ===== */
.bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.about, .contact {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 28px;
  text-align: center;
}
.about h2, .contact h2 {
  color: #ffd6a5;
  font-size: 20px;
  margin-bottom: 14px;
  font-weight: 800;
}
.about p, .contact p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}
.about b { color: #ffb6c8; }
.contact-link {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b9d, #ff8db3);
  color: white !important;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  margin: 8px 0 6px;
  word-break: break-all;
  transition: all 0.3s;
  box-shadow: 0 6px 18px rgba(255, 107, 157, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.contact-link:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 22px rgba(255, 107, 157, 0.6);
}
.contact-hint { font-size: 13px; color: rgba(255, 255, 255, 0.7); margin-bottom: 12px; }
.reminder {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

/* ===== 友情链接 ===== */
.links { text-align: center; }
.links-title {
  color: #ffd6a5;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
}
.links-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 12px 22px;
  transition: all 0.3s;
  text-decoration: none;
  white-space: nowrap;
}
.link-card:hover {
  background: rgba(255, 182, 200, 0.25);
  border-color: rgba(255, 182, 200, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 157, 0.25);
}
.link-icon { font-size: 18px; line-height: 1; }
.link-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.link-url {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 16px 0 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== 语言切换按钮（右上角）===== */
.lang-btn {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 9px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.3s;
  font-family: inherit;
}
.lang-btn:hover {
  background: rgba(255, 107, 157, 0.4);
  transform: translateY(-2px) scale(1.04);
  border-color: #ffb6c8;
}
.lang-globe { font-size: 17px; line-height: 1; }
.lang-label { line-height: 1; }

/* ===== 音乐按钮（右下角）===== */
.music-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 12px 20px 12px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  font-family: inherit;
}
.music-btn:hover {
  background: rgba(255, 107, 157, 0.4);
  transform: translateY(-2px) scale(1.03);
  border-color: #ffb6c8;
}
.music-icon {
  font-size: 20px;
  display: inline-block;
  transition: transform 0.3s;
}
.music-btn.playing .music-icon {
  animation: spin 4s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.music-dot {
  width: 8px;
  height: 8px;
  background: #ffb6c8;
  border-radius: 50%;
  box-shadow: 0 0 8px #ffb6c8;
  animation: pulse 1.2s ease-in-out infinite;
}
.music-btn.playing .music-dot {
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}
/* 静音待激活：黄点呼吸 + 整体轻微脉动，提示用户点一下开声 */
.music-btn.muted-hint {
  animation: btn-breathe 1.6s ease-in-out infinite;
  border-color: #ffd6a5;
}
.music-btn.muted-hint .music-dot {
  background: #ffd6a5;
  box-shadow: 0 0 8px #ffd6a5;
}
@keyframes btn-breathe {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
  50%      { box-shadow: 0 8px 28px rgba(255,182,200,0.7); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.6; }
}
.music-label { white-space: nowrap; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .main { padding: 30px 16px; gap: 32px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card-best { transform: scale(1); }
  .card-best:hover { transform: translateY(-6px) scale(1); }
  .bottom { grid-template-columns: 1fr; gap: 16px; }
  .music-label { display: none; }
  .music-btn { padding: 12px 14px; }
  .lang-btn { padding: 8px 13px; font-size: 13px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 32px; gap: 4px; }
  .title-divider { display: none; }
  .hero-domains { font-size: 14px; gap: 8px; }
  .price-num { font-size: 32px; }
}
/* 小屏手机（iPhone SE / 360px 窄屏） */
@media (max-width: 380px) {
  .main { padding: 20px 12px; gap: 24px; }
  .hero { padding: 10px 0 5px; }
  .hero-title { font-size: 26px; gap: 3px; }
  .title-logo { width: 1.3em; height: 1.3em; }
  .hero-badge { font-size: 12px; padding: 6px 14px; }
  .hero-domains { font-size: 13px; gap: 6px; }
  .hero-quote { font-size: 13px; margin-bottom: 20px; }
  .btn-primary { padding: 12px 28px; font-size: 14px; }
  .card { padding: 22px 16px; border-radius: 18px; }
  .card-name { font-size: 18px; }
  .card-name-bundle { font-size: 14px; }
  .price-num { font-size: 28px; }
  .price-symbol { font-size: 18px; }
  .about, .contact { padding: 22px 16px; border-radius: 18px; }
  .about h2, .contact h2 { font-size: 18px; }
  .about p, .contact p { font-size: 13px; }
  .contact-link { font-size: 14px; padding: 10px 20px; }
  .music-btn { right: 12px; bottom: 12px; padding: 10px 12px; }
  .lang-btn { right: 12px; top: 12px; padding: 7px 11px; font-size: 12px; }
  .paw-bg span { font-size: 20px; }
  .links-grid { flex-direction: column; align-items: center; gap: 10px; }
  .link-card { width: 100%; max-width: 280px; justify-content: center; }
}
/* 移动端：禁用耗 GPU 的视频动画 */
@media (hover: none) and (pointer: coarse) {
  .bg-video { animation: none; transform: scale(1.04); }
  .title-logo { animation: none; }
}
/* 微信 X5 内核专用：.is-wechat 由 <head> 里的检测脚本添加 */
.is-wechat .bg-video {
  animation: none !important;
  transform: scale(1.04);
}
.is-wechat .title-logo {
  animation: none !important;
}
.is-wechat .paw-bg {
  display: none;   /* X5 内核跑 emoji 动画也卡，直接关掉 */
}
/* 微信/backdrop-filter 不支持时：用浅粉透明色替代毛玻璃（保持二次元粉嫩感） */
.is-wechat .card,
.is-wechat .about,
.is-wechat .contact,
.is-wechat .hero-badge,
.is-wechat .lang-btn,
.is-wechat .music-btn {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(255, 182, 200, 0.22);
  border-color: rgba(255, 182, 200, 0.35);
}
.is-wechat .card-best {
  background: rgba(255, 107, 157, 0.22);
  border-color: rgba(255, 141, 179, 0.7);
}
.is-wechat .lang-btn,
.is-wechat .music-btn {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}
.is-wechat .link-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(255, 182, 200, 0.22);
  border-color: rgba(255, 182, 200, 0.35);
}
