/* ============ Rubii Ai 官网落地页样式 ============ */

:root {
  --primary: #FF5C8A;
  --primary-deep: #F03D74;
  --primary-soft: #FFE4EE;
  --deep: #2A1A3D;
  --text: #3E2C50;
  --muted: #6F5E7C;
  --bg: #FFF9FB;
  --bg-soft: #FFF0F6;
  --card: #FFFFFF;
  --border: #F4D8E5;
  --green: #2EC57E;
  --gold: #FFB84D;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(240, 61, 116, .08);
  --shadow-hover: 0 18px 42px rgba(240, 61, 116, .16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* 卡片与按钮通用公式 */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.btn { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(90deg, var(--primary), var(--primary-deep)); color: #fff; border-radius: 999px; font-weight: 600; line-height: 1.4; text-align: center; transition: transform .25s, box-shadow .25s; box-shadow: 0 8px 22px rgba(240, 61, 116, .25); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(240, 61, 116, .35); }
.btn-lg { padding: 15px 38px; font-size: 17px; }

/* 模块标题 */
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-tag { display: inline-block; background: var(--primary-soft); color: var(--primary-deep); font-size: 13px; font-weight: 600; padding: 5px 16px; border-radius: 999px; margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(26px, 3vw, 34px); color: var(--deep); line-height: 1.35; }
.sec-sub { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* 1 顶部固定导航 */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255, 249, 251, .93); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.nav.scrolled { box-shadow: 0 6px 20px rgba(42, 26, 61, .07); border-color: var(--border); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { font-size: 22px; font-weight: 800; color: var(--primary-deep); letter-spacing: .5px; white-space: nowrap; }
.nav-menu { display: flex; gap: 26px; }
.nav-menu a { font-size: 15px; font-weight: 500; color: var(--text); transition: color .2s; }
.nav-menu a:hover { color: var(--primary); }
.nav-btn { padding: 8px 20px; font-size: 13px; }

/* 2 首屏 Hero */
.hero { background: var(--bg-soft); padding: 112px 0 80px; }
.hero-in { display: grid; grid-template-columns: 1.12fr .88fr; gap: 48px; align-items: center; }
.hero-badge { display: inline-block; background: var(--primary-soft); color: var(--primary-deep); font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 52px); line-height: 1.2; color: var(--deep); }
.hero h1 em { font-style: normal; color: var(--primary); font-size: .56em; font-weight: 800; margin-left: 10px; vertical-align: middle; }
.hero-desc { margin: 20px 0 30px; max-width: 560px; font-size: 16.5px; color: var(--text); }
.hero-text .btn-lg { min-width: 260px; }

.hero-personas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 36px; max-width: 640px; }
.persona { text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 6px 10px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.persona:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.persona img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 2px solid var(--primary-soft); }
.persona-name { font-size: 14px; font-weight: 700; color: var(--deep); }
.persona-tag { font-size: 12px; color: var(--muted); }

.hero-chat { width: 100%; max-width: 420px; justify-self: end; background: var(--card); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-hover); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .35); background: linear-gradient(90deg, var(--primary), var(--primary-deep)); }
.chat-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.chat-name { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.3; }
.chat-status { font-size: 12.5px; color: rgba(255, 255, 255, .92); display: flex; align-items: center; gap: 6px; line-height: 1.3; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; flex-shrink: 0; }
.chat-body { height: 300px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--card); }
.msg { max-width: 80%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.65; word-break: break-word; animation: msgIn .3s ease; }
.msg-ai { background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg-user { background: linear-gradient(90deg, var(--primary), var(--primary-deep)); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat-input { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--card); }
.chat-input input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; font-size: 16px; color: var(--text); background: var(--bg-soft); outline: none; }
.send-btn { border: none; background: linear-gradient(90deg, var(--primary), var(--primary-deep)); color: #fff; border-radius: 999px; padding: 0 24px; height: 44px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform .2s; }
.send-btn:active { transform: scale(.96); }
.send-btn.is-off { background: #E3D6E2; color: #A08FA6; box-shadow: none; cursor: not-allowed; }

/* 3 三步上手 */
.steps { padding: 80px 0; background: var(--bg); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { padding: 32px 28px; }
.step-num { display: block; font-size: 40px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 16px; }
.step-card h3 { font-size: 20px; color: var(--deep); margin-bottom: 10px; }
.step-card p { font-size: 15px; color: var(--muted); }

/* 4 产品介绍 */
.product { padding: 80px 0; background: var(--bg-soft); }
.product-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.product-pic img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.product-text h2 { font-size: clamp(26px, 3vw, 34px); color: var(--deep); line-height: 1.35; margin: 14px 0 18px; }
.product-text p { font-size: 16px; color: var(--text); margin-bottom: 24px; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; font-size: 15.5px; font-weight: 500; color: var(--text); }
.check-list li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); }
.check-list li::after { content: ''; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* 5 四大核心功能 */
.features { padding: 80px 0; background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feat-card { padding: 30px 24px; }
.feat-card h3 { font-size: 19px; color: var(--deep); margin-bottom: 12px; }
.feat-pain { font-size: 13px; color: var(--primary-deep); background: var(--primary-soft); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; line-height: 1.55; }
.feat-card > p:last-child { font-size: 14.5px; color: var(--muted); }

/* 6 优势对比 */
.compare { padding: 80px 0; background: var(--bg-soft); }
.cmp-wrap { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.cmp-table th, .cmp-table td { padding: 14px 18px; font-size: 15px; border-bottom: 1px solid var(--border); white-space: nowrap; text-align: center; }
.cmp-table th { background: var(--deep); color: #fff; font-weight: 600; }
.cmp-table th.col-best { background: linear-gradient(90deg, var(--primary), var(--primary-deep)); color: #fff; }
.cmp-table td { color: var(--text); }
.cmp-table td:first-child { font-weight: 600; color: var(--deep); }
.cmp-table td.col-best { background: var(--primary-soft); color: var(--primary-deep); font-weight: 700; }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-tip { display: none; text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* 7 使用场景 */
.scenes { padding: 80px 0; background: var(--bg); }
.scene-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 34px; max-width: 940px; margin: 0 auto 52px; }
.scene-list li { position: relative; padding-left: 34px; font-size: 15.5px; color: var(--text); line-height: 1.7; }
.scene-list li::before { content: '✔'; position: absolute; left: 2px; top: 0; color: var(--primary); font-weight: 700; }
.vs-wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: stretch; max-width: 940px; margin: 0 auto; }
.vs-card { padding: 30px 28px; border-radius: var(--radius); text-align: center; transition: transform .25s, box-shadow .25s; }
.vs-alone { background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.vs-alone:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.vs-rubii { background: linear-gradient(150deg, var(--primary), var(--primary-deep)); color: #fff; box-shadow: 0 14px 34px rgba(240, 61, 116, .3); }
.vs-rubii:hover { transform: translateY(-6px); }
.vs-card h3 { font-size: 19px; margin-bottom: 12px; }
.vs-card p { font-size: 14.5px; line-height: 1.75; }
.vs-rubii p { color: rgba(255, 255, 255, .94); }
.vs-badge { align-self: center; width: 64px; height: 64px; border-radius: 50%; background: var(--deep); color: #fff; font-weight: 800; font-size: 18px; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }

/* 8 数据模块 */
.stats { padding: 68px 0; background: var(--deep); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: clamp(34px, 4vw, 48px); font-weight: 800; color: var(--primary); line-height: 1.2; }
.stat-label { color: rgba(255, 255, 255, .74); font-size: 15px; margin-top: 8px; }

/* 9 人设定制 */
.custom { padding: 80px 0; background: var(--bg-soft); }
.custom-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.custom-text h2 { font-size: clamp(26px, 3vw, 34px); color: var(--deep); line-height: 1.35; margin: 14px 0 18px; }
.custom-text p { font-size: 16px; color: var(--text); margin-bottom: 30px; }
.custom-pic img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* 10 用户评价 */
.reviews { padding: 80px 0; background: var(--bg); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { padding: 24px; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.review-name { font-size: 15.5px; font-weight: 700; color: var(--deep); line-height: 1.4; }
.review-stars { font-size: 14px; color: var(--gold); letter-spacing: 2px; }
.review-text { font-size: 14.5px; color: var(--muted); line-height: 1.75; }

/* 11 隐私安全 */
.privacy { padding: 80px 0; background: var(--bg-soft); }
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pri-card { padding: 30px 24px; text-align: center; }
.pri-card h3 { font-size: 18px; color: var(--deep); margin-bottom: 12px; }
.pri-card p { font-size: 14.5px; color: var(--muted); }

/* 12 版本更新 */
.version { padding: 80px 0; background: var(--bg); }
.version-card { max-width: 860px; margin: 0 auto; padding: 34px 40px; }
.version-list li { position: relative; padding: 11px 0 11px 30px; font-size: 15.5px; color: var(--text); border-bottom: 1px dashed var(--border); }
.version-list li:last-child { border-bottom: none; }
.version-list li::before { content: ''; position: absolute; left: 2px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }

/* 13 FAQ */
.faq { padding: 80px 0; background: var(--bg-soft); }
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item:hover { transform: none; box-shadow: var(--shadow); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 24px; font-size: 16px; font-weight: 600; color: var(--deep); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--primary); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--muted); font-size: 15px; line-height: 1.75; }

/* 14 下载区域 */
.download { padding: 88px 0; background: linear-gradient(160deg, var(--primary), var(--primary-deep)); text-align: center; color: #fff; }
.dl-title { font-size: clamp(32px, 4vw, 46px); color: #fff; line-height: 1.25; }
.dl-title em { font-style: normal; font-size: .58em; font-weight: 800; color: #FFE9F1; margin-left: 10px; vertical-align: middle; }
.dl-meta { margin: 16px 0 32px; font-size: 15px; color: rgba(255, 255, 255, .92); }
.dl-btns { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.dl-btns .btn { background: #fff; color: var(--primary-deep); box-shadow: 0 10px 26px rgba(42, 26, 61, .18); }
.dl-btns .btn:hover { box-shadow: 0 16px 36px rgba(42, 26, 61, .28); }
.dl-tip { margin-top: 28px; font-size: 15px; color: #FFE9F1; }

/* 15 页脚 */
.footer { padding: 28px 0; background: var(--deep); text-align: center; }
.footer-copy { color: rgba(255, 255, 255, .72); font-size: 14px; }
.footer-link { color: #fff; font-weight: 600; text-decoration: none; transition: color .2s; }
.footer-link:hover { color: var(--primary); }

/* 16 返回顶部 */
.to-top { position: fixed; right: 26px; bottom: 30px; z-index: 99; width: 46px; height: 46px; border: none; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(240, 61, 116, .35); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none; animation: none; }
}

/* ============ 响应式断点 ============ */
@media (max-width: 1100px) {
  .hero-personas { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .hero h1 { font-size: 40px; }
}

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-chat { justify-self: center; }
  .product-in { grid-template-columns: 1fr; gap: 36px; }
  .product-pic { order: 2; }
  .product-text { order: 1; }
  .custom-in { grid-template-columns: 1fr; gap: 36px; }
  .vs-wrap { grid-template-columns: 1fr; gap: 18px; }
  .vs-badge { margin: 0 auto; }
  .scene-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-in { height: 60px; }
  .nav-btn { padding: 13px 22px; font-size: 13px; }
  .hero { padding: 92px 0 60px; }
  .hero-text .btn-lg { width: 100%; }
  .custom-text .btn-lg { width: 100%; }
  .chat-body { height: 280px; }
  .cmp-tip { display: block; }
  .dl-btns { flex-direction: column; align-items: stretch; }
  .dl-btns .btn { width: 100%; }
  .dl-meta { font-size: 13px; white-space: nowrap; }
  .sec-head { margin-bottom: 36px; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .chat-body { height: 230px; }
  .hero h1 { font-size: 32px; }
  .hero-personas { gap: 8px; }
  .persona img { width: 62px; height: 62px; }
  .to-top { right: 16px; bottom: 20px; width: 42px; height: 42px; }
}
