/* ============================================================
   命理术 · 数字命理AI平台 共享主题样式 theme.css
   宇宙星盘 · 紫金配色（命理文化 + 现代科技感）
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; margin: 0; padding: 0; }
body {
  background: #0a0a12;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  color: #cbd0e0;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

/* 标题 */
.section-title { text-align: center; margin: 0 auto 40px; }
.section-title h2 { color: #e8c979; font-size: 28px; margin: 0; font-weight: 900; letter-spacing: 4px; }
.section-title p { color: rgba(200,190,230,0.62); font-size: 15px; margin: 12px 0 0; letter-spacing: 1px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 30px; font-size: 16px; font-weight: 700; letter-spacing: 2px; cursor: pointer; transition: all 0.3s; border: 1px solid transparent; font-family: inherit; }
.btn-primary { background: linear-gradient(135deg, #7b5cff, #b98bff, #e8c979); color: #12101f; box-shadow: 0 6px 26px rgba(123,92,255,0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(123,92,255,0.46); }
.btn-ghost { background: rgba(180,160,255,0.05); color: #c9b6ff; border-color: rgba(180,160,255,0.32); }
.btn-ghost:hover { background: rgba(180,160,255,0.13); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 14px; }

/* 公告栏 */
.header-top { background: linear-gradient(90deg, #2a1f52, #4a3a8a, #2a1f52); padding: 9px 15px; text-align: center; color: #e8dcff; font-size: 13px; letter-spacing: 3px; }
.header-top a { color: #e8c979; font-weight: 700; }

/* 导航 */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(10,10,18,0.82); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(180,160,255,0.1); }
.navbar .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.logo { font-size: 24px; font-weight: 900; letter-spacing: 3px; color: #f0e6ff; display: flex; align-items: center; gap: 8px; }
.logo .logo-mark { width: 30px; height: 30px; }
.logo span { background: linear-gradient(135deg, #b98bff, #e8c979); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; font-size: 15px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: #b3b8cc; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #e8c979; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-actions .login { color: #c9b6ff; font-weight: 600; font-size: 14px; padding: 8px 16px; }
.nav-actions .register { background: linear-gradient(135deg, #7b5cff, #b98bff); color: #fff; padding: 8px 20px; border-radius: 22px; font-size: 14px; font-weight: 700; }
.nav-actions .nav-search { font-size: 17px; padding: 6px 10px; border-radius: 50%; line-height: 1; transition: background .2s; text-decoration: none; }
.nav-actions .nav-search:hover { background: rgba(123,92,255,0.16); }

/* 导航下拉菜单（更多 / 全部功能） */
.nav-links .nav-more { position: relative; }
.nav-links .nav-more > a::after { content: ' \25be'; font-size: 11px; opacity: 0.8; }
.nav-dropdown { position: absolute; top: 130%; left: 50%; transform: translateX(-50%) translateY(6px); display: flex; gap: 22px; padding: 20px 24px; background: rgba(16,14,30,0.98); border: 1px solid rgba(180,160,255,0.22); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.55); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: all 0.22s; z-index: 200; white-space: nowrap; }
.nav-links .nav-more:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.ndd-col { display: flex; flex-direction: column; gap: 2px; }
.ndd-col > span { color: #e8c979; font-size: 12px; font-weight: 800; letter-spacing: 2px; margin-bottom: 8px; opacity: 0.85; }
.ndd-col a { color: rgba(210,200,235,0.75); font-size: 13.5px; padding: 6px 0; font-weight: 500; }
.ndd-col a:hover { color: #f0e6ff; }
@media (max-width: 820px) { .nav-dropdown { display: none !important; } }

/* 页面通用 Hero 头 */
.page-hero { position: relative; padding: 66px 20px 54px; overflow: hidden; text-align: center;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(123,92,255,0.2), transparent 62%),
    #08080f; border-bottom: 1px solid rgba(180,160,255,0.08); }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image:
  radial-gradient(1.4px 1.4px at 20% 30%, rgba(255,255,255,0.5), transparent),
  radial-gradient(1.6px 1.6px at 40% 70%, rgba(232,201,121,0.5), transparent),
  radial-gradient(1.2px 1.2px at 85% 60%, rgba(200,180,255,0.4), transparent);
  opacity: 0.6; pointer-events: none; }
.page-hero .ph-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.page-hero .ph-glyph { font-size: 54px; font-weight: 900; color: #e8c979; font-family: 'KaiTi','STKaiti',serif; line-height: 1; margin-bottom: 12px; text-shadow: 0 2px 24px rgba(232,201,121,0.3); }
.page-hero h1 { color: #f4ecff; font-size: 38px; margin: 0 0 14px; font-weight: 900; letter-spacing: 3px; }
.page-hero p { color: #b8bad0; font-size: 16px; line-height: 1.9; margin: 0 auto; max-width: 620px; }
.page-hero .ph-crumb { font-size: 13px; color: rgba(200,190,230,0.6); margin-bottom: 20px; letter-spacing: 1px; }
.page-hero .ph-crumb a:hover { color: #e8c979; }

/* 卡片通用 */
.panel { background: linear-gradient(160deg, rgba(123,92,255,0.07), rgba(18,16,34,0.5)); border: 1px solid rgba(180,160,255,0.14); border-radius: 18px; padding: 30px 28px; }

/* 表单 */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; color: rgba(200,190,230,0.6); margin-bottom: 6px; letter-spacing: 1px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(180,160,255,0.2); background: rgba(10,10,20,0.6); color: #e8dcff; font-size: 14px; font-family: inherit; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: #b98bff; }

/* 通用内容区 */
.section { padding: 56px 0; }
.section.alt { background: radial-gradient(900px 400px at 50% 0%, rgba(123,92,255,0.08), transparent 60%); border-top: 1px solid rgba(180,160,255,0.07); border-bottom: 1px solid rgba(180,160,255,0.07); }

/* 方法 / 工具卡片网格 */
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mgrid.cols2 { grid-template-columns: repeat(2, 1fr); }
.mgrid.cols4 { grid-template-columns: repeat(4, 1fr); }
.mcard { display: flex; flex-direction: column; padding: 26px 24px; background: linear-gradient(160deg, rgba(123,92,255,0.07), rgba(18,16,34,0.5)); border: 1px solid rgba(180,160,255,0.14); border-radius: 16px; transition: all 0.3s; }
.mcard:hover { transform: translateY(-5px); border-color: rgba(185,139,255,0.5); box-shadow: 0 12px 34px rgba(0,0,0,0.38); }
.mcard .mc-icon { font-size: 34px; margin-bottom: 12px; }
.mcard h3 { color: #f0e6ff; font-size: 19px; margin: 0 0 8px; font-weight: 800; letter-spacing: 1px; }
.mcard p { color: rgba(200,190,230,0.66); font-size: 14px; line-height: 1.8; margin: 0 0 14px; flex: 1; }
.mcard .mc-tags { font-size: 12px; color: #c9b6ff; line-height: 1.9; margin-bottom: 14px; }
.mcard .mc-go { color: #e8c979; font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.mcard:hover .mc-go { color: #f0e6ff; }

/* 特性小条 */
.feat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.feat-item { padding: 20px; background: rgba(180,160,255,0.04); border: 1px solid rgba(180,160,255,0.1); border-radius: 14px; }
.feat-item .fi-icon { font-size: 26px; margin-bottom: 8px; }
.feat-item .fi-step { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#7b5cff,#e8c979); color: #12101f; font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.feat-item h4 { color: #e8c979; font-size: 15px; margin: 0 0 6px; letter-spacing: 1px; }
.feat-item p { color: rgba(200,190,230,0.62); font-size: 13px; line-height: 1.7; margin: 0; }

/* 相关推荐 / 交叉链接 */
.related-nav { padding: 8px 0 4px; }
.rel-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.rel-links a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid rgba(180,160,255,0.2); border-radius: 30px; color: rgba(220,212,240,0.85); font-size: 14px; background: rgba(123,92,255,0.06); transition: all .2s; text-decoration: none; }
.rel-links a:hover { border-color: rgba(232,201,121,0.5); color: #f0e6ff; background: rgba(123,92,255,0.14); transform: translateY(-2px); }
.rel-links a .ric { font-size: 15px; }

/* 常见问题 FAQ 手风琴 */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid rgba(180,160,255,0.16); border-radius: 12px; margin-bottom: 12px; background: rgba(123,92,255,0.04); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-size: 15px; color: #f0e6ff; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: #e8c979; font-size: 20px; line-height: 1; flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-a { padding: 0 20px 16px; color: rgba(210,200,235,0.75); font-size: 13.5px; line-height: 1.8; }

/* 富文本 / 说明块 */
.prose { max-width: 760px; margin: 0 auto; }
.prose h3 { color: #e8c979; font-size: 19px; margin: 26px 0 10px; letter-spacing: 1px; }
.prose p { color: rgba(210,200,235,0.78); font-size: 15px; line-height: 1.95; margin: 0 0 14px; }
.prose ul { color: rgba(210,200,235,0.78); font-size: 15px; line-height: 1.9; padding-left: 22px; }

@media (max-width: 900px) {
  .mgrid, .mgrid.cols4 { grid-template-columns: repeat(2, 1fr); }
  .feat-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mgrid, .mgrid.cols2, .mgrid.cols4 { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { background: #06060c; border-top: 1px solid rgba(180,160,255,0.1); padding: 50px 0 0; margin-top: 20px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand .footer-logo { color: #f0e6ff; font-size: 22px; font-weight: 900; letter-spacing: 3px; margin-bottom: 14px; }
.footer-brand .footer-logo span { background: linear-gradient(135deg, #b98bff, #e8c979); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer-brand p { color: rgba(200,190,230,0.62); font-size: 13px; line-height: 1.9; margin: 0; max-width: 360px; }
.footer-col h4 { color: #c9b6ff; font-size: 15px; margin: 0 0 16px; letter-spacing: 2px; font-weight: 700; }
.footer-col a { display: block; color: rgba(200,190,230,0.55); font-size: 14px; padding: 7px 0; transition: color 0.2s; }
.footer-col a:hover { color: #e8c979; }
.footer-bottom { margin-top: 40px; padding: 22px 20px 30px; border-top: 1px solid rgba(180,160,255,0.08); text-align: center; color: rgba(200,190,230,0.58); font-size: 12px; line-height: 1.9; }
.footer-bottom .fb-brand { color: #c9b6ff; font-weight: 700; letter-spacing: 1px; }

/* 响应式 */
@media (max-width: 980px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .page-hero h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .page-hero h1 { font-size: 25px; letter-spacing: 2px; }
  .section-title h2 { font-size: 23px; }
}

/* ===== 临时隐藏区块：平台生态 + 登录/注册（恢复时整段删除即可） ===== */
/* 1) 顶部「更多」下拉中的「平台生态」列 */
.nav-dropdown .ndd-col:nth-child(3){ display:none !important; }
/* 2) 右上角「登录」「免费注册」按钮（保留站内搜索图标） */
.nav-actions .login,
.nav-actions .register{ display:none !important; }
/* 3) 首页「更多命理服务」中的「平台生态」分类 */
.more-serv .ms-cat:nth-child(4){ display:none !important; }
/* ===== 隐藏区块结束 ===== */
