/* ============ H5 建站 SaaS 平台页样式 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif; color: #3c322a; background: #faf6f0; line-height: 1.7; }
a { text-decoration: none; color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* 顶栏 */
.topbar { background: #fff; border-bottom: 1px solid #efe6da; position: sticky; top: 0; z-index: 10; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: #5c4a3a; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: #5c4a3a; color: #f5ede3; font-size: 14px; letter-spacing: 1px; }
.topnav { display: flex; align-items: center; gap: 18px; font-size: 14px; color: #6b5b4c; }
.topnav a:hover { color: #5c4a3a; }

/* 按钮 */
.pf-btn, .btn { display: inline-block; padding: 9px 22px; border-radius: 8px; border: 1px solid transparent; font-size: 15px; cursor: pointer; transition: all .2s; }
.pf-btn-primary, .btn-primary { background: #5c4a3a; color: #fff; }
.pf-btn-primary:hover, .btn-primary:hover { background: #4a3b2e; }
.pf-btn-ghost, .btn-ghost { border-color: #c9a96e; color: #7a6650; }
.pf-btn-ghost:hover, .btn-ghost:hover { background: #f5ede3; }
.btn-lg { padding: 13px 34px; font-size: 16px; }
.pf-btn-block, .btn-block { width: 100%; }

/* Hero */
.hero { background: linear-gradient(180deg, #5c4a3a 0%, #7a6650 100%); color: #faf6f0; text-align: center; padding: 90px 0 70px; }
.hero h1 { font-size: 44px; letter-spacing: 2px; margin-bottom: 14px; }
.hero-sub { font-size: 20px; color: #e6d5b8; margin-bottom: 22px; }
.hero-desc { max-width: 720px; margin: 0 auto 34px; font-size: 15px; color: #d9c9b4; }
.pf-hero-actions, .hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 46px; }
.hero .pf-btn-ghost, .hero .btn-ghost { border-color: #e6d5b8; color: #f5ede3; }
.hero-stats { display: flex; gap: 40px; justify-content: center; font-size: 14px; color: #d9c9b4; }
.hero-stats b { display: block; font-size: 28px; color: #f5ede3; }

/* 章节 */
section { padding: 70px 0; }
.sec-title { text-align: center; font-size: 30px; color: #5c4a3a; margin-bottom: 44px; position: relative; }
.sec-title::after { content: ""; display: block; width: 48px; height: 3px; border-radius: 2px; background: #c9a96e; margin: 14px auto 0; }

/* 能力卡片 */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pf-card, .card { background: #fff; border: 1px solid #efe6da; border-radius: 14px; padding: 28px 22px; text-align: center; transition: transform .2s, box-shadow .2s; }
.pf-card:hover, .card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(92, 74, 58, .12); }
.card-ico { width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%; background: #f5ede3; color: #7a6650; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.pf-card h3, .card h3 { font-size: 17px; color: #5c4a3a; margin-bottom: 10px; }
.pf-card p, .card p { font-size: 13px; color: #8a7a68; }

/* 演示站点 */
.demos { background: #fff; }
.demo-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.demo-item { display: block; background: #faf6f0; border: 1px solid #efe6da; border-radius: 12px; padding: 22px 26px; transition: all .2s; }
.demo-item:hover { border-color: #c9a96e; background: #f5ede3; }
.demo-name { font-size: 16px; font-weight: 600; color: #5c4a3a; margin-bottom: 4px; }
.demo-url { font-size: 13px; color: #8a7a68; margin-bottom: 10px; }
.demo-go { font-size: 13px; color: #a5874f; }
.empty { text-align: center; color: #8a7a68; }

/* CTA 与页脚 */
.cta { text-align: center; background: #f5ede3; }
.cta h2 { font-size: 26px; color: #5c4a3a; margin-bottom: 10px; }
.cta p { color: #8a7a68; margin-bottom: 28px; }
.foot { background: #4a3b2e; color: #c9b49a; text-align: center; padding: 34px 0; font-size: 13px; }
.foot-sub { margin-top: 6px; color: #9a8a72; }

/* 登录页 */
.pf-auth-body, .auth-body { background: linear-gradient(160deg, #5c4a3a, #7a6650); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.pf-auth-wrap, .auth-wrap { width: 100%; max-width: 420px; padding: 20px; }
.pf-auth-card, .auth-card { background: #fff; border-radius: 16px; padding: 40px 36px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.auth-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #5c4a3a; margin-bottom: 22px; }
.pf-auth-card h2, .auth-card h2 { font-size: 24px; color: #3c322a; margin-bottom: 8px; }
.pf-auth-tip, .auth-tip { font-size: 13px; color: #8a7a68; margin-bottom: 24px; }
.pf-auth-card label, .auth-card label { display: block; font-size: 13px; color: #6b5b4c; margin: 14px 0 6px; }
.pf-auth-card input, .auth-card input { width: 100%; padding: 11px 14px; border: 1px solid #e0d3c2; border-radius: 8px; font-size: 15px; outline: none; background: #fdfbf8; }
.pf-auth-card input:focus, .auth-card input:focus { border-color: #c9a96e; box-shadow: 0 0 0 3px rgba(201,169,110,.18); }
.pf-auth-card .pf-btn-block, .auth-card .btn-block { margin-top: 26px; }
.pf-auth-err, .auth-err { color: #c0392b; font-size: 13px; min-height: 20px; margin-top: 8px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 13px; color: #7a6650; }
.auth-links a:hover { color: #5c4a3a; }

@media (max-width: 768px) {
  .hero h1 { font-size: 30px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .demo-list { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .topnav { gap: 10px; }
  .topnav .pf-btn, .topnav .btn { padding: 7px 14px; font-size: 13px; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
  .pf-hero-actions, .hero-actions { flex-direction: column; align-items: center; }
}