/* ============================================================
   润雨云官网 · 雫雫风格
   ============================================================ */

:root {
  --brand: #ff6fa8;
  --brand-2: #5fb6ee;
  --brand-soft: #ffeaf4;
  --grad: linear-gradient(135deg, #f1609b 0%, #ff8fc2 48%, #5cb9ee 100%);
  --bg: #fff7fb;
  --bg-2: #fff2f8;
  --card: #ffffff;
  --line: #ffe2ef;
  --line-strong: #ffcbe1;
  --text: #4b3d57;
  --text-2: #7d6c8c;
  --text-3: #a998b8;
  --ok: #2fbf93;
  --warn: #eda32f;
  --shadow: 0 14px 34px rgba(255, 140, 185, 0.16);
  --radius: 24px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', 'PingFang SC', 'HarmonyOS Sans SC',
    'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  --mono: 'SF Mono', 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(760px 480px at 6% -10%, #ffe1ef 0%, transparent 62%),
    radial-gradient(620px 440px at 100% 2%, #ddf3ff 0%, transparent 62%),
    radial-gradient(760px 520px at 50% 108%, #fff0e6 0%, transparent 66%),
    var(--bg);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 150, 190, 0.2) 1.5px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(circle at 50% -10%, #000 0%, transparent 60%);
  mask-image: radial-gradient(circle at 50% -10%, #000 0%, transparent 60%);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--brand-soft);
  border-radius: 6px;
  padding: 1px 5px;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.cloud {
  position: absolute;
  opacity: 0.5;
}
.cloud--tr {
  top: -24px;
  right: -50px;
}
.cloud--bl {
  bottom: -30px;
  left: -60px;
  opacity: 0.35;
}

/* ---------------------------------------------- 导航 */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(255, 247, 251, 0.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 2px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 850;
  font-size: 17px;
  letter-spacing: 0.3px;
}
.brand img {
  border-radius: 11px;
  box-shadow: 0 6px 14px rgba(255, 140, 190, 0.3);
}

.nav-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 650;
  color: var(--text-2);
}
.nav-links a:hover {
  color: var(--brand);
}

/* ---------------------------------------------- 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 20px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.16s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 26px rgba(255, 140, 190, 0.34);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand);
}
.btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 13px;
}

/* ---------------------------------------------- Hero */

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
  padding: clamp(28px, 6vw, 72px) 0 clamp(20px, 4vw, 40px);
}

.eyebrow {
  font-size: 13px;
  font-weight: 750;
  color: var(--brand);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  display: inline-block;
  margin: 0 0 14px;
  box-shadow: 0 8px 18px rgba(255, 150, 195, 0.14);
}

h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
  font-weight: 900;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--text-2);
  margin: 0 0 20px;
  max-width: 46ch;
}

.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-meta {
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 650;
}
.hero-meta li {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.phone {
  width: min(300px, 74%);
  border-radius: 34px;
  padding: 10px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 0 26px 60px rgba(255, 140, 190, 0.3);
  transform: rotate(-2deg);
}
.phone img {
  width: 100%;
  display: block;
  border-radius: 26px;
}

.hero-face {
  position: absolute;
  right: -6px;
  bottom: -14px;
}
.hero-face svg {
  width: 118px;
  height: 118px;
  filter: drop-shadow(0 12px 22px rgba(130, 190, 255, 0.4));
}

.mascot {
  animation: bob 3.6s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-7px) rotate(2deg);
  }
}

/* ---------------------------------------------- 截图 */

.shots {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 10px 0 30px;
}
.shot {
  border-radius: 26px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.shot img {
  width: 100%;
  display: block;
}
.shot--main {
  transform: translateY(-10px);
}

/* ---------------------------------------------- 通用 section */

.section {
  padding: clamp(30px, 5vw, 60px) 0;
  scroll-margin-top: 80px;
}

.section h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.section-sub {
  margin: 0 0 22px;
  color: var(--text-2);
  font-size: 14px;
}

/* ---------------------------------------------- 功能卡 */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.ico {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: var(--brand-soft);
  font-size: 21px;
  margin-bottom: 10px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 850;
}

.card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
}

/* ---------------------------------------------- 价格 */

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: 18px;
  margin-bottom: 18px;
}

.tab {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-3);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.16s;
}
.tab.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 4px 12px rgba(255, 150, 195, 0.24);
}

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

.price-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 15px;
  box-shadow: var(--shadow);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-card .name {
  font-size: 15px;
  font-weight: 850;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-card .region {
  font-size: 11px;
  font-weight: 750;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 8px;
  padding: 1px 7px;
}

.price-card .price {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.price-card .price small {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 700;
  margin-left: 3px;
}

.price-card .specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.price-card .spec {
  font-size: 11.5px;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
  font-weight: 650;
}

.price-card .stock {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: auto;
}
.price-card .stock b {
  color: var(--ok);
}

.skeleton {
  background: linear-gradient(100deg, #fff5fa 20%, #ffe6f1 40%, #fff5fa 60%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -60% 0;
  }
}

.price-note {
  font-size: 12px;
  color: var(--text-3);
  margin: 14px 0 0;
}

/* ---------------------------------------------- 下载 */

.download {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.dl-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 20px 48px rgba(255, 140, 190, 0.2);
}

.dl-head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.dl-head img {
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(255, 140, 190, 0.3);
}
.dl-head h2 {
  font-size: 20px;
  margin: 0;
}
.dl-sub {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
  font-weight: 650;
}

.dl-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}

.dl-more {
  margin-top: 12px;
  border-top: 2px dashed var(--line);
  padding-top: 12px;
  font-size: 13px;
  color: var(--text-2);
}
.dl-more summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--text-2);
}
.dl-more ol {
  padding-left: 20px;
}
.hash {
  font-size: 11.5px;
  color: var(--text-3);
  word-break: break-all;
}

.dl-side {
  background: rgba(255, 255, 255, 0.7);
  border: 2px dashed var(--line-strong);
  border-radius: 24px;
  padding: 18px 20px;
}
.dl-side h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 850;
}
.dl-side ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-2);
}
.dl-side li + li {
  margin-top: 6px;
}

/* ---------------------------------------------- FAQ */

.faq {
  display: grid;
  gap: 10px;
  max-width: 780px;
}
.faq details {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 14.5px;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before {
  content: '🐾';
  margin-right: 8px;
  font-size: 13px;
}
.faq p {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--text-2);
}

/* ---------------------------------------------- 页脚 */

.foot {
  margin-top: 20px;
  border-top: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}
.foot-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 40px) calc(28px + env(safe-area-inset-bottom, 0px));
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 850;
  font-size: 14px;
}
.foot-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-2);
}
.foot-links a:hover {
  color: var(--brand);
}
.foot-note {
  font-size: 12px;
  color: var(--text-3);
  margin: 0;
  line-height: 1.8;
}

/* ---------------------------------------------- 响应式 / 横屏 */

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .cta,
  .hero-meta {
    justify-content: center;
  }
  .hero-art {
    order: -1;
  }
  .phone {
    width: min(260px, 66%);
  }
  .hero-face svg {
    width: 96px;
    height: 96px;
  }
  .shots {
    grid-template-columns: 1fr 1fr;
  }
  .shot--main {
    display: none;
  }
  .download {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .shots {
    grid-template-columns: 1fr;
  }
  .shot:first-child {
    display: none;
  }
  .nav .btn {
    padding: 0 12px;
  }
  .hero-face {
    right: 2px;
    bottom: 0;
  }
}

/* 手机横屏：矮屏，压缩留白 */
@media (orientation: landscape) and (max-height: 560px) {
  .nav {
    padding: 8px 20px;
  }
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    padding: 18px 0 10px;
    gap: 20px;
    text-align: left;
  }
  .hero-art {
    order: 0;
  }
  .phone {
    width: min(200px, 60%);
  }
  .hero-face svg {
    width: 76px;
    height: 76px;
  }
  h1 {
    font-size: 28px;
  }
  .lead {
    font-size: 13px;
    margin-bottom: 12px;
  }
  .shots {
    grid-template-columns: repeat(3, 1fr);
  }
  .shot--main {
    display: block;
    transform: none;
  }
  .section {
    padding: 20px 0;
  }
}
