/* 五行起名「宝宝姓名推荐」结果视图样式（作用域：#wx-result-page）
   来源：/gufeng/result.html 内联样式（与欢迎页宝宝姓名推荐详情页同一套视觉），
   全部选择器收窄到结果容器内，避免影响 /tools/wuxing/ 表单页与正文模块样式。 */

#wx-result-page .hidden {
    display: none !important;
}

#wx-result-page .tag-good {
    display: inline-block; padding: .125rem .5rem; border-radius: .25rem; font-size: .75rem; background-color: #f0fdf4; color: #166534; border: 1px solid #dcfce7;
}

#wx-result-page .tag-bad {
    display: inline-block; padding: .125rem .5rem; border-radius: .25rem; font-size: .75rem; background-color: #fef2f2; color: #dc2626; border: 1px solid #fee2e2;
}

#wx-result-page .sx-card {
    background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .05), 0 10px 30px -18px rgba(0, 0, 0, .18);
}

#wx-result-page .sx-status {
    padding: 26px 16px 20px; text-align: center;
}

#wx-result-page .sx-spin {
    width: 30px; height: 30px; margin: 0 auto 12px; border: 3px solid #fce7f3; border-top-color: #ec4899; border-radius: 50%; animation: sx-spin .9s linear infinite;
}

@keyframes sx-spin { to { transform: rotate(360deg); } }

#wx-result-page .sx-status-text {
    font-size: 14px; font-weight: 700; color: #be123c;
}

#wx-result-page .sx-steps {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 14px auto 12px;
}

#wx-result-page .sx-step {
    font-size: 12px; color: #9ca3af; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid #f3e4ec;
}

#wx-result-page .sx-step.on {
    color: #db2777; border-color: #f9a8d4; background: #fff5f9; font-weight: 700;
}

#wx-result-page .sx-step.done {
    color: #059669; border-color: #a7f3d0; background: #ecfdf5;
}

#wx-result-page .sx-status-sub {
    font-size: 12px; color: #9ca3af; margin: 0;
}

#wx-result-page .sx-error {
    padding: 18px 20px; text-align: center; color: #b91c1c; font-size: 13.5px; line-height: 1.9; background: #fef2f2; border: 1px solid #fecaca;
}

#wx-result-page .sx-error a {
    color: #db2777; font-weight: 700;
}

#wx-result-page .sx-baby {
    position: relative; padding: 20px 22px 46px; margin-bottom: 22px;
}

#wx-result-page .sx-baby-rows {
    display: flex; flex-direction: column; gap: 14px;
}

#wx-result-page .sx-row {
    display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px;
}

#wx-result-page .sx-row > i {
    color: #e54646; font-size: 17px; margin-top: 2px; width: 18px; text-align: center;
}

#wx-result-page .sx-row-label {
    color: #374151; font-weight: 600; min-width: 76px; flex: 0 0 auto;
}

#wx-result-page .sx-row-val {
    color: #4b5563; flex: 1; line-height: 1.75; word-break: break-word;
}

#wx-result-page .sx-row-val i.fa-heart {
    color: #e54646; margin: 0 3px;
}

#wx-result-page .sx-edit {
    position: absolute; right: 18px; bottom: 14px; color: #e54646; font-size: 13px; text-decoration: none; display: inline-flex; gap: 5px; align-items: center;
}

#wx-result-page .sx-edit:hover {
    color: #b81818;
}

#wx-result-page .sx-section {
    margin-bottom: 22px;
}

#wx-result-page .sx-section-title {
    display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: #e54646; margin: 0 0 12px;
}

#wx-result-page .sx-section-title i {
    font-size: 15px;
}

#wx-result-page .sx-panel {
    margin-bottom: 10px; overflow: hidden;
}

#wx-result-page .sx-panel-head {
    display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; user-select: none;
}

#wx-result-page .sx-panel-head > div {
    display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: #1f2937;
}

#wx-result-page .sx-panel-head > div > i {
    color: #e54646; font-size: 15px;
}

#wx-result-page .sx-panel-icon {
    color: #e54646; transition: transform .25s ease;
}

#wx-result-page .sx-panel.collapsed .sx-panel-icon {
    transform: rotate(180deg);
}

#wx-result-page .sx-panel-body {
    padding: 14px 16px 16px; border-top: 1px solid #f3f4f6;
}

#wx-result-page .sx-panel.collapsed .sx-panel-body {
    display: none;
}

#wx-result-page .analysis-table {
    width: 100%; font-size: 12px; border-collapse: collapse; margin-bottom: 12px;
}

/* 四柱排盘表格：内边距 / 首列字重 / 悬浮底色与欢迎页「宝宝姓名推荐 · 传统分析」一致 */
#wx-result-page .analysis-table th {
    padding: 8px 12px; text-align: center; color: #666; font-weight: 500; border-bottom: 2px solid rgba(217, 33, 33, .1); background-color: rgba(217, 33, 33, .05);
}

#wx-result-page .analysis-table td {
    padding: 8px 12px; color: #666; border-bottom: 1px solid #f5f5f5; text-align: center;
}

#wx-result-page .analysis-table td:first-child {
    font-weight: 500;
}

#wx-result-page .analysis-table tr:nth-child(even) {
    background-color: #fafafa;
}

#wx-result-page .analysis-table tr:hover {
    background-color: rgba(217, 33, 33, .05);
}

/* 五行用神：标题与表格样式对齐欢迎页（<h5>五行用神</h5> + .god-table） */
#wx-result-page .sx-god-title {
    font-size: 16px; font-weight: 700; color: #374151; margin: 16px 0 8px;
}

#wx-result-page .god-table {
    width: 100%; font-size: 12px; border-collapse: collapse;
}

#wx-result-page .god-table td {
    padding: 8px 12px; color: #666; border-bottom: 1px solid #f5f5f5; text-align: center;
}

#wx-result-page .god-table td.sx-god-key {
    font-weight: 500;
}

/* 窄屏收紧单元格内边距，保证四柱表 5 列、五行用神 5 格不被裁切 */
@media (max-width: 560px) {
    #wx-result-page .analysis-table th,
    #wx-result-page .analysis-table td { padding: 7px 6px; }
    #wx-result-page .god-table td { padding: 7px 4px; }
}

#wx-result-page .tag-good {
    display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; background-color: #f0fdf4; color: #166534; border: 1px solid #dcfce7;
}

#wx-result-page .tag-bad {
    display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; background-color: #fef2f2; color: #dc2626; border: 1px solid #fee2e2;
}

#wx-result-page .sx-sub-title {
    font-size: 14px; font-weight: 700; color: #374151; margin: 4px 0 8px;
}

#wx-result-page .sx-muted {
    color: #6b7280; font-size: 13px; line-height: 1.9;
}

#wx-result-page .sx-block {
    border-radius: 10px; padding: 12px; font-size: 13px; line-height: 1.9; color: #4b5563;
}

#wx-result-page .sx-block-title {
    display: flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 6px; font-size: 13.5px;
}

#wx-result-page .sx-block-blue {
    background: #eff6ff; border: 1px solid #bfdbfe;
}

#wx-result-page .sx-block-purple {
    background: #faf5ff; border: 1px solid #e9d5ff;
}

#wx-result-page .sx-block-green {
    background: #f0fdf4; border: 1px solid #bbf7d0;
}

#wx-result-page .sx-kvline {
    margin-bottom: 2px;
}

#wx-result-page .sx-wuge-grid {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px;
}

@media (max-width: 560px) {
  #wx-result-page .sx-wuge-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

#wx-result-page .sx-wuge-item {
    background: #fdf2f8; border: 1px solid #fbd5e4; border-radius: 10px; padding: 8px 6px; text-align: center;
}

#wx-result-page .sx-wuge-item .k {
    font-size: 12px; color: #9d174d;
}

#wx-result-page .sx-wuge-item .v {
    font-size: 19px; font-weight: 800; color: #be123c; line-height: 1.4;
}

#wx-result-page .sx-wuge-detail {
    font-size: 12.5px; color: #6b7280; line-height: 1.9; padding-left: 14px; margin: 0;
}

#wx-result-page .sx-wuge-detail li {
    margin-bottom: 4px;
}

#wx-result-page .sx-bars {
    display: flex; justify-content: space-around; align-items: flex-end; gap: 12px; height: 150px; background: #fff; border: 1px solid #f1f2f4; border-radius: 10px; padding: 10px;
}

#wx-result-page .sx-bar-col {
    display: flex; flex-direction: column; align-items: center;
}

#wx-result-page .sx-bar-val {
    font-size: 12px; font-weight: 600; margin-bottom: 4px;
}

#wx-result-page .sx-bar-track {
    position: relative; width: 32px; height: 92px; background: #e5e7eb; border-radius: 9999px 9999px 0 0;
}

#wx-result-page .sx-bar-fill {
    position: absolute; bottom: 0; width: 100%; border-radius: 9999px 9999px 0 0;
}

#wx-result-page .sx-bar-name {
    display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px;
}

#wx-result-page .sx-name-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}

@media (max-width: 768px) {
  #wx-result-page .sx-name-grid {
      grid-template-columns: 1fr;
  }
}

#wx-result-page .sx-name-card {
    background: #fff; border-radius: 14px; padding: 16px 16px 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); border-left: 4px solid #e54646; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}

#wx-result-page .sx-name-card:hover {
    transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
}

#wx-result-page .sx-pinyin {
    font-size: 13px; color: #9ca3af; margin: 0 0 4px;
}

#wx-result-page .sx-name-row {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px;
}

#wx-result-page .sx-name-row h4 {
    margin: 0; font-size: 21px; font-weight: 800; color: #111827; letter-spacing: 1px;
}

#wx-result-page .sx-score {
    color: #e54646; font-size: 17px; font-weight: 800; white-space: nowrap;
}

#wx-result-page .sx-kv {
    font-size: 13px; line-height: 1.8; color: #6b7280; margin-bottom: 6px; word-break: break-word;
}

#wx-result-page .sx-kv .sx-k {
    color: #374151; font-weight: 600;
}

#wx-result-page .sx-wx {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px;
}

#wx-result-page .sx-wx span.one {
    display: inline-flex; align-items: center; gap: 4px; font-weight: 600;
}

#wx-result-page .sx-wx span.one i {
    font-size: 10px; font-style: normal;
}

#wx-result-page .sx-tags {
    display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px;
}

#wx-result-page .sx-tag {
    font-size: 12px; color: #db2777; background: #fdf2f8; border-radius: 5px; padding: 2px 8px;
}

#wx-result-page .sx-card-actions {
    display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f6f7f8; padding-top: 10px; margin-top: auto;
}

#wx-result-page .sx-card-actions button {
    border: none; background: none; color: #e54646; font-size: 13px; display: inline-flex; gap: 5px; align-items: center; cursor: pointer; padding: 2px 0;
}

#wx-result-page .sx-card-actions button:hover {
    color: #b81818;
}

#wx-result-page .sx-card-actions button .fa-heart.fa-solid {
    color: #e54646;
}

#wx-result-page .sx-bottom-actions {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 6px 0 4px;
}

#wx-result-page .sx-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 10px 24px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; border: none; transition: transform .2s ease, box-shadow .2s ease;
}

#wx-result-page .sx-btn:active {
    transform: scale(.97);
}

#wx-result-page .sx-btn-main {
    background: linear-gradient(135deg, #ec4899, #f43f5e); color: #fff; box-shadow: 0 8px 18px -8px rgba(236, 72, 153, .55);
}

#wx-result-page .sx-btn-main:hover {
    box-shadow: 0 10px 22px -8px rgba(236, 72, 153, .7);
}

#wx-result-page .sx-btn-ghost {
    background: #fff; color: #be123c; border: 1.5px solid #fbd5e4;
}

#wx-result-page .sx-btn[disabled] {
    opacity: .55; cursor: not-allowed;
}

#wx-result-page .sx-btn .naming-remaining-wrap {
    display: inline-flex; align-items: center; margin-left: 2px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 12px; font-weight: 600; line-height: 1.4;
}

#wx-result-page .sx-btn .naming-remaining-wrap.hidden {
    display: none !important;
}

#wx-result-page .sx-note {
    text-align: center; color: #9ca3af; font-size: 12.5px; margin-top: 14px;
}

#wx-result-page .sx-note i {
    color: #f472b6; margin-right: 4px;
}

#wx-result-page .sx-note a {
    color: #db2777; font-weight: 700;
}

#wx-result-page .sx-modal {
    position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px;
}

#wx-result-page .sx-modal-mask {
    position: absolute; inset: 0; background: rgba(0, 0, 0, .5);
}

#wx-result-page .sx-modal-box {
    position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 680px; max-height: 88vh; overflow-y: auto; padding: 22px 20px;
}

#wx-result-page .sx-modal-close {
    position: absolute; right: 12px; top: 10px; border: none; background: none; font-size: 18px; color: #9ca3af; cursor: pointer;
}

#wx-result-page .sx-modal-head {
    text-align: center; border-bottom: 1px solid #f3f4f6; padding-bottom: 14px; margin-bottom: 16px;
}

#wx-result-page .sx-modal-head h3 {
    margin: 0 0 6px; font-size: 25px; font-weight: 800; letter-spacing: 1px;
}

#wx-result-page .sx-modal-head .score {
    color: #e54646; font-weight: 800; font-size: 15px; margin: 0;
}

#wx-result-page .sx-modal-head .py {
    color: #9ca3af; font-size: 13px; margin: 6px 0 0;
}

#wx-result-page .sx-modal-sec {
    margin-bottom: 18px;
}

#wx-result-page .sx-modal-sec h5 {
    font-size: 15px; font-weight: 800; margin: 0 0 8px; padding-left: 9px; border-left: 3px solid #e54646; color: #1f2937;
}

#wx-result-page .sx-modal-sec .row {
    display: flex; gap: 8px; font-size: 13px; line-height: 1.85; color: #6b7280; margin-bottom: 4px;
}

#wx-result-page .sx-modal-sec .row .k {
    color: #374151; font-weight: 600; min-width: 72px; flex: 0 0 auto;
}

#wx-result-page .sx-modal-sec .chars {
    width: 100%; border-collapse: collapse; font-size: 12px;
}

#wx-result-page .sx-modal-sec .chars th {
    background: #fdf2f8; color: #9d174d; padding: 7px 4px; font-weight: 600;
}

#wx-result-page .sx-modal-sec .chars td {
    text-align: center; padding: 7px 4px; color: #4b5563; border-bottom: 1px solid #f5f5f5;
}

#wx-result-page .sx-toast {
    position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: rgba(17, 24, 39, .9); color: #fff; font-size: 13px; padding: 9px 18px; border-radius: 999px; z-index: 10001;
}

#wx-result-page .sx-share-modal {
    position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px;
}

#wx-result-page .sx-share-mask {
    position: absolute; inset: 0; background: rgba(0, 0, 0, .5);
}

#wx-result-page .sx-share-box {
    position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 420px; padding: 24px 20px;
}

#wx-result-page .sx-share-title {
    font-size: 17px; font-weight: 700; text-align: center; margin: 0 0 20px; color: #1f2937;
}

#wx-result-page .sx-share-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px;
}

#wx-result-page .sx-share-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s;
}

#wx-result-page .sx-share-item:hover {
    transform: scale(1.08);
}

#wx-result-page .sx-share-icon {
    font-size: 30px; margin-bottom: 8px;
}

#wx-result-page .sx-share-item span {
    font-size: 13px; color: #4b5563;
}

#wx-result-page .sx-share-xhs {
    width: 36px; height: 36px; margin-bottom: 8px;
}

#wx-result-page .sx-share-close {
    display: block; width: 100%; background: #f3f4f6; border: none; border-radius: 12px; padding: 12px; font-size: 15px; font-weight: 500; color: #ef4444; cursor: pointer;
}

#wx-result-page .sx-share-close:hover {
    background: #e5e7eb;
}

#wx-result-page .sx-suggest-btn {
    position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 40;
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    width: 44px; padding: 13px 0; border: none; border-radius: 12px;
    background: linear-gradient(135deg, #ec4899, #f43f5e); color: #fff; cursor: pointer;
    box-shadow: 0 10px 24px -10px rgba(236, 72, 153, .7);
    animation: sx-suggest-in .35s ease both;
}

#wx-result-page .sx-suggest-btn i {
    font-size: 17px;
}

#wx-result-page .sx-suggest-btn span {
    writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 2px; font-size: 12px; font-weight: 700;
}

#wx-result-page .sx-suggest-btn:hover {
    filter: brightness(1.06);
}

@keyframes sx-suggest-in { from { opacity: 0; transform: translate(16px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }

@media (max-width: 640px) {
  #wx-result-page .sx-suggest-btn {
      right: 8px; width: 40px; padding: 11px 0;
  }
}

#wx-result-page .sx-drawer {
    position: fixed; inset: 0; z-index: 9990;
}

#wx-result-page .sx-drawer-mask {
    position: absolute; inset: 0; background: rgba(0, 0, 0, .35);
}

#wx-result-page .sx-drawer-panel {
    position: absolute; right: 0; top: 0; bottom: 0; width: 100%; max-width: 420px;
    background: #fff; box-shadow: -10px 0 30px -18px rgba(0, 0, 0, .35);
    display: flex; flex-direction: column; animation: sx-drawer-in .28s ease both;
}

@keyframes sx-drawer-in { from { transform: translateX(24px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }

#wx-result-page .sx-drawer-head {
    display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f3f4f6;
}

#wx-result-page .sx-drawer-head h3 {
    margin: 0; font-size: 16px; font-weight: 800; color: #e54646;
}

#wx-result-page .sx-drawer-head button {
    border: none; background: none; color: #9ca3af; font-size: 17px; cursor: pointer;
}

#wx-result-page .sx-drawer-body {
    flex: 1; overflow-y: auto; padding: 16px 20px 28px;
}

#wx-result-page .sx-sug + .sx-sug {
    margin-top: 18px;
}

#wx-result-page .sx-sug h4 {
    margin: 0 0 8px; font-size: 14px; font-weight: 800; color: #1f2937;
}

#wx-result-page .sx-sug h4 span {
    font-size: 12px; font-weight: 400; color: #9ca3af;
}

#wx-result-page .sx-sug-box {
    background: #f9fafb; border: 1px solid #f1f2f4; border-radius: 10px; padding: 12px; font-size: 12.5px; line-height: 1.9; color: #4b5563;
}

#wx-result-page .sx-sug-box .tag {
    display: inline-block; margin: 2px 4px 2px 0;
}

#wx-result-page .sx-sug-box .sx-sug-empty {
    color: #9ca3af;
}

/* ---------- 结果视图顶部栏（返回 + 标题，与欢迎页详情页一致） ---------- */
#wx-result-page .wxr-topbar {
    display: flex; align-items: center; justify-content: space-between; margin: 4px 0 16px;
}
#wx-result-page .wxr-back {
    display: inline-flex; align-items: center; gap: 6px; color: #e54646; font-weight: 600;
    font-size: 14px; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer;
}
#wx-result-page .wxr-back:hover { color: #b81818; }
#wx-result-page .wxr-title { font-size: 20px; font-weight: 800; color: #111827; margin: 0; letter-spacing: .5px; }
#wx-result-page .wxr-topbar-ghost { width: 64px; }
@media (max-width: 640px) {
    #wx-result-page .wxr-title { font-size: 18px; }
    #wx-result-page .wxr-topbar-ghost { width: 40px; }
}

/* ---------- 结果容器：与 /gufeng/result.html 相同的浅灰底，卡片层次一致 ---------- */
#wx-result-page { background: #f7f8fa; }
/* 「修改信息」由链接改成按钮，去掉浏览器默认按钮外观 */
#wx-result-page .sx-edit {
    border: 0; background: none; padding: 0; cursor: pointer; font-family: inherit;
}

/* ---------- 结果页额度提示（#result 不弹充值弹框，改在页面顶部常驻展示） ---------- */
#wx-result-page .wx-quota-notice {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
    margin: 14px 0 16px; padding: 11px 16px; border-radius: 12px;
    border: 1px solid #fbcfe8; background: #fff5f9;
    color: #be123c; font-size: 13.5px; font-weight: 600; line-height: 1.7; text-align: center;
}
#wx-result-page .wx-quota-notice.hidden { display: none; }
#wx-result-page .wx-quota-notice i { color: #ec4899; font-size: 15px; }
