/* ============================================================
   rui-next 官网样式（单层重写）
   设计 token 与控制台一致: 底 #f6f7fb / 主色 #5b6bd6 / 墨 #1a1d24
   ============================================================ */
:root {
  --rm-c1: #5b6bd6;
  --rm-c2: #8a90ff;
  --rm-ink: #1a1d24;
  --rm-soft: #8a90a0;
  --rm-line: #eceef2;
  --rm-bg: #f6f7fb;
  --rm-card: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--rm-bg); color: var(--rm-ink);
  font: 14px/1.7 "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.rm-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.rm-section { padding: 90px 0; }
.rm-gray { background: #fbfcfe; }

/* ---------- 导航 ---------- */
.rm-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: border .3s, box-shadow .3s;
}
.rm-nav.rm-solid { border-bottom-color: var(--rm-line); box-shadow: 0 6px 24px rgba(26,29,36,.06); }
.rm-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; gap: 34px; }
.rm-brand { display: flex; align-items: center; gap: 10px; }
.rm-brand-logo {
  width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #7c9eff, #a78bfa); color: #fff; font-size: 17px;
  box-shadow: 0 6px 16px rgba(91,107,214,.35);
}
.rm-brand b { font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.rm-menu { display: flex; gap: 30px; margin-left: 12px; }
.rm-menu a { color: #4a4f5c; font-size: 14px; transition: color .2s; }
.rm-menu a:hover { color: var(--rm-c1); }
.rm-nav-btns { margin-left: auto; display: flex; gap: 10px; }
.rm-burger { display: none; margin-left: auto; font-size: 20px; color: var(--rm-ink); }
.rm-menu-mobile { display: none; background: #fff; border-top: 1px solid var(--rm-line); padding: 10px 24px 16px; }
.rm-menu-mobile a { display: block; padding: 9px 0; color: #4a4f5c; border-bottom: 1px dashed var(--rm-line); }

/* ---------- 按钮 ---------- */
.rm-btn {
  display: inline-block; padding: 12px 32px; border-radius: 999px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; border: 1px solid transparent; text-align: center;
}
.rm-btn:hover { transform: translateY(-2px); }
.rm-btn-gradient {
  color: #fff; background: linear-gradient(135deg, var(--rm-c1), var(--rm-c2));
  box-shadow: 0 10px 24px rgba(91,107,214,.35);
}
.rm-btn-ghost { background: #fff; color: var(--rm-ink); border-color: #e3e6ef; }
.rm-btn-sm { padding: 9px 22px; font-size: 13px; }

/* ---------- Hero ---------- */
.rm-hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 90px 0 70px; overflow: hidden; }
.rm-ripple {
  position: absolute; inset: 0; z-index: 0;
  background-color: var(--rm-bg);
  background-image: url(../img/water-texture.png); background-size: cover; background-position: center;
}
.rm-hero .rm-container { position: relative; z-index: 1; width: 100%; }
.rm-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.rm-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,.75); border: 1px solid #e2e6f0; color: #4a4f5c; font-size: 13px;
  box-shadow: 0 4px 14px rgba(26,29,36,.05);
}
.rm-badge .fa { color: var(--rm-c1); }
.rm-h1 { margin: 22px 0 14px; font-size: 46px; line-height: 1.25; font-weight: 800; letter-spacing: 1px; }
.rm-h1 span {
  background: linear-gradient(135deg, var(--rm-c1), var(--rm-c2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rm-typing { min-height: 58px; margin-bottom: 10px; }
.rm-type-word { font-size: 15px; color: var(--rm-soft); }
.rm-type-caret { display: inline-block; width: 2px; height: 15px; background: var(--rm-c1); margin-left: 3px; animation: rm-caret .8s infinite; vertical-align: -2px; }
@keyframes rm-caret { 50% { opacity: 0; } }
.rm-vip-tip { font-size: 12.5px; color: var(--rm-soft); }
.rm-vip-tip .fa { color: var(--rm-c2); }
.rm-hero-btns { display: flex; gap: 14px; margin-top: 26px; }
.rm-hero-vis { position: relative; }
.rm-hero-art { width: 100%; animation: rm-float 6s ease-in-out infinite alternate; }
@keyframes rm-float { from { transform: translateY(0); } to { transform: translateY(-14px); } }
.rm-down {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--rm-c1);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: 0 8px 20px rgba(26,29,36,.1); animation: rm-bounce 2s infinite;
}
@keyframes rm-bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- 标题 ---------- */
.rm-title { text-align: center; margin-bottom: 46px; }
.rm-title h3 { font-size: 30px; font-weight: 800; letter-spacing: 2px; }
.rm-title span { display: inline-block; margin-top: 8px; color: var(--rm-soft); font-size: 13px; letter-spacing: 3px; }

/* ---------- 关于 ---------- */
.rm-quote {
  background: var(--rm-card); border-left: 4px solid var(--rm-c1); border-radius: 13px;
  padding: 20px 24px; color: #4a4f5c; box-shadow: 0 8px 30px rgba(26,29,36,.05); margin-bottom: 40px;
}
.rm-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.rm-about-img img { border-radius: 14px; box-shadow: 0 26px 60px rgba(26,29,36,.16); }
.rm-step { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.rm-step .fa {
  flex: 0 0 46px; height: 46px; border-radius: 13px; background: #eef0fc; color: var(--rm-c1);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.rm-step b { display: block; font-size: 15px; }
.rm-step p { color: var(--rm-soft); font-size: 13px; }
.rm-jquery-tip { margin-top: 18px; background: #fffbf2; border: 1px solid #f2e3c4; border-radius: 10px; padding: 12px 14px; }
.rm-jquery-tip-label { font-size: 12.5px; color: #9a7b2d; margin-bottom: 8px; }
.rm-jquery-tip-label .fa { color: #e8b73e; }
.rm-jquery-tip code { background: #f6efd9; padding: 1px 6px; border-radius: 4px; }
.rm-jquery-tip textarea {
  width: 100%; height: 62px; border: 1px solid #eee0b8; border-radius: 8px; background: #fffdf6;
  padding: 8px 10px; font: 12px/1.6 Consolas, monospace; color: #8a6d1f; resize: none;
}

/* ---------- 功能卡片 ---------- */
.rm-feature-grid, .rm-adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rm-card {
  background: var(--rm-card); border: 1px solid var(--rm-line); border-radius: 13px; padding: 30px 26px;
  transition: transform .25s, box-shadow .25s;
}
.rm-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(26,29,36,.09); }
.rm-icon {
  width: 52px; height: 52px; border-radius: 14px; background: #eef0fc; color: var(--rm-c1);
  display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px;
}
.rm-card h3, .rm-adv h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.rm-card p, .rm-adv p { color: var(--rm-soft); font-size: 13.5px; }

/* ---------- 统计带 ---------- */
#stats { position: relative; background: url(../img/bing.jpg) center/cover no-repeat; padding: 100px 0; }
#stats::before { content: ""; position: absolute; inset: 0; background: rgba(13,18,38,.45); }
#stats .rm-container { position: relative; z-index: 1; }
.rm-stats-band { display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; align-items: center; }
.rm-stats-copy { text-align: center; }
.rm-stats-copy::before { content: ""; display: block; width: 30px; height: 3px; border-radius: 999px; background: var(--rm-c2); margin: 0 auto 16px; }
.rm-stats-copy h3 { font-size: 26px; font-weight: 800; margin-bottom: 10px; color: #fff; }
.rm-stats-copy p { color: rgba(255,255,255,.85); font-size: 14px; }
.rm-stats-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.rm-count { background: rgba(255,255,255,.94); border-radius: 14px; padding: 20px; text-align: center; box-shadow: 0 10px 28px rgba(0,10,40,.3); }
.rm-count-icon { color: var(--rm-c1); font-size: 20px; margin-bottom: 6px; }
.rm-count-num { font-size: 30px; font-weight: 800; color: var(--rm-c1); }
.rm-count-name { color: var(--rm-soft); font-size: 12.5px; }

/* ---------- 用户墙 ---------- */
.rm-hex-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 30px; }
.rm-hex-list a { text-align: center; transition: transform .25s; }
.rm-hex-list a:hover { transform: translateY(-5px); }
.rm-hex {
  display: block; width: 84px; height: 94px; overflow: hidden; margin: 0 auto 10px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: #e6e9f5;
}
.rm-hex img { width: 100%; height: 100%; object-fit: cover; }
.rm-hex-list p { color: #4a4f5c; font-size: 13px; }

/* ---------- 优势 ---------- */
.rm-adv { display: flex; gap: 18px; background: var(--rm-card); border: 1px solid var(--rm-line); border-radius: 13px; padding: 26px 24px; }
.rm-adv .rm-icon { margin-bottom: 0; flex: 0 0 52px; }

/* ---------- 定价 ---------- */
.rm-plan-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.rm-plan {
  position: relative; background: var(--rm-card); border: 1px solid var(--rm-line); border-radius: 16px;
  padding: 34px 30px; text-align: center; overflow: visible; transition: transform .25s, box-shadow .25s;
}
.rm-plan:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(26,29,36,.1); }
.rm-plan-hot { border-color: var(--rm-c1); box-shadow: 0 16px 44px rgba(91,107,214,.18); }
.rm-ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--rm-c1), var(--rm-c2)); color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 4px 20px; border-radius: 999px;
  box-shadow: 0 6px 14px rgba(91,107,214,.35);
}
.rm-plan-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.rm-plan-price { font-size: 14px; color: var(--rm-soft); margin-bottom: 18px; }
.rm-plan-price span { font-size: 34px; font-weight: 800; color: var(--rm-c1); }
.rm-plan ul { list-style: none; text-align: left; }
.rm-plan li { padding: 9px 2px; border-bottom: 1px dashed var(--rm-line); color: #4a4f5c; font-size: 13.5px; }
.rm-plan li:last-child { border-bottom: none; }

/* ---------- 页脚 ---------- */
.rm-footer { background: #fff; border-top: 1px solid var(--rm-line); padding-top: 46px; }
.rm-footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 30px; }
.rm-footer-brand { display: flex; align-items: center; gap: 12px; }
.rm-footer-brand b { font-size: 16px; }
.rm-footer-brand p { color: var(--rm-soft); font-size: 12.5px; }
.rm-footer-links { display: flex; gap: 26px; }
.rm-footer-links a { color: #4a4f5c; font-size: 13.5px; }
.rm-footer-links a:hover { color: var(--rm-c1); }
.rm-footer-copy { border-top: 1px solid var(--rm-line); padding: 16px 0; }
.rm-footer-copy p { color: var(--rm-soft); font-size: 12.5px; text-align: center; margin: 0; }
.rm-footer-copy .fa { color: #e36c6c; }
.rm-footer-copy a { color: var(--rm-c1); }

/* ---------- 回顶部 ---------- */
.rm-totop {
  position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--rm-c1); border: 1px solid var(--rm-line);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: 0 10px 26px rgba(26,29,36,.12); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.rm-totop.rm-on { opacity: 1; pointer-events: auto; }
.rm-totop:hover { transform: translateY(-3px); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .rm-h1 { font-size: 36px; }
  .rm-feature-grid, .rm-adv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .rm-menu { display: none; }
  .rm-burger { display: block; }
  .rm-nav-btns { display: none; }
  .rm-menu-mobile.rm-open { display: block; }
  .rm-hero { padding-top: 120px; }
  .rm-hero-grid, .rm-about-grid, .rm-stats-band { grid-template-columns: 1fr; }
  .rm-plan-row { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .rm-section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .rm-h1 { font-size: 28px; }
  .rm-feature-grid, .rm-adv-grid { grid-template-columns: 1fr; }
  .rm-stats-cards { grid-template-columns: 1fr 1fr; }
}
