/* 木剑竞技 · 捉鸡麻将专题 · 关键词页面共享样式 */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; line-height: 1.6; color: #333; background: #fff; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* 导航栏 */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-content { display: flex; justify-content: space-between; align-items: center; height: 66px; }
.logo { font-size: 21px; font-weight: 700; color: #1a3a5c; letter-spacing: 1px; }
.logo span { color: #e67e22; }
nav ul { display: flex; gap: 26px; }
nav a { font-size: 14.5px; color: #555; font-weight: 500; position: relative; padding: 5px 0; }
nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: #e67e22; transition: width 0.3s; }
nav a:hover { color: #1a3a5c; }
nav a:hover::after { width: 100%; }

/* 面包屑 */
.crumb { padding: 92px 0 0; font-size: 13.5px; color: #95a5b5; }
.crumb a { color: #7b8a99; }
.crumb a:hover { color: #e67e22; }
.crumb span.sep { margin: 0 8px; color: #c3ccd6; }

/* 页头 */
.page-head { padding: 26px 0 34px; border-bottom: 1px solid #eef2f6; margin-bottom: 40px; }
.page-head h1 { font-size: 32px; color: #1a3a5c; font-weight: 700; line-height: 1.4; margin-bottom: 14px; }
.page-head .lead { font-size: 16px; color: #5a6b7d; line-height: 1.9; max-width: 900px; }
.page-head .meta-line { margin-top: 16px; font-size: 13px; color: #95a5b5; }
.page-head .meta-line .chip { display: inline-block; padding: 3px 12px; background: #fff2e3; color: #d35400; border-radius: 50px; font-weight: 600; margin-right: 8px; }

/* 区块 */
.block { margin-bottom: 46px; }
.block h2 { font-size: 23px; color: #1a3a5c; font-weight: 700; margin-bottom: 18px; padding-left: 14px; border-left: 4px solid #e67e22; line-height: 1.4; }
.block h3 { font-size: 17.5px; color: #1a3a5c; font-weight: 600; margin: 26px 0 10px; }
.block p { font-size: 15.5px; color: #555; line-height: 2; margin-bottom: 16px; }
.block p strong { color: #d35400; }
.block ul { margin-bottom: 16px; }
.block li { font-size: 15.5px; color: #555; line-height: 2; padding-left: 22px; position: relative; }
.block li::before { content: '\f0da'; font-family: FontAwesome; position: absolute; left: 0; color: #e67e22; }

/* 答案盒 */
.answer { background: #fff8ec; border-left: 4px solid #e67e22; border-radius: 10px; padding: 24px 28px; margin-bottom: 28px; }
.answer .q { font-size: 17px; color: #1a3a5c; font-weight: 700; margin-bottom: 10px; }
.answer p { margin-bottom: 0; color: #6b5638; }

/* 卡片网格 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: 12px; padding: 24px 22px; box-shadow: 0 4px 18px rgba(0,0,0,0.06); border: 1px solid #f0f0f0; transition: all 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.11); border-color: #e67e22; }
.card .ico { width: 44px; height: 44px; background: linear-gradient(135deg, #e67e22, #f39c12); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 15px; }
.card h3 { font-size: 16.5px; color: #1a3a5c; margin-bottom: 9px; font-weight: 600; }
.card p { font-size: 14px; color: #666; line-height: 1.85; margin-bottom: 0; }

/* 表格 */
.table-wrap { overflow-x: auto; background: #fff; border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,0.06); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th { background: #1a3a5c; color: #fff; padding: 14px 18px; text-align: left; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
td { padding: 13px 18px; border-bottom: 1px solid #f0f0f0; color: #555; font-size: 14px; line-height: 1.8; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f0f7ff; }
td:first-child { font-weight: 600; color: #1a3a5c; white-space: nowrap; }
.fan { display: inline-block; min-width: 48px; text-align: center; padding: 3px 11px; background: #fff2e3; color: #d35400; font-weight: 700; border-radius: 50px; font-size: 13px; }

/* 麻将牌图解 */
.tile { width: 50px; height: 68px; background: #fff; border-radius: 8px; box-shadow: 0 5px 14px rgba(0,0,0,0.22), inset 0 -4px 0 rgba(0,0,0,0.06); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; }
.tile .num { font-size: 23px; color: #1a3a5c; line-height: 1; }
.tile .suit { font-size: 13px; color: #e67e22; margin-top: 5px; }
.tile.chicken { background: #fff7e8; outline: 3px solid #e67e22; }
.tile.laizi { background: #eaf6ff; outline: 3px solid #3182ce; }
.tile.dark { background: #f4f4f4; outline: 2px dashed #c3ccd6; }

.figure { background: #fff; border-radius: 12px; padding: 28px 24px; box-shadow: 0 4px 18px rgba(0,0,0,0.06); margin-bottom: 20px; }
.figure .fig-title { font-size: 16.5px; color: #1a3a5c; font-weight: 600; text-align: center; margin-bottom: 5px; }
.figure .fig-sub { font-size: 13px; color: #95a5b5; text-align: center; margin-bottom: 20px; }
.figure figcaption { text-align: center; font-size: 13px; color: #8898aa; margin-top: 16px; }
.hand { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.hand .tile { width: 38px; height: 53px; }
.hand .tile .num { font-size: 17px; }
.hand .tile .suit { font-size: 11px; margin-top: 3px; }
.hand-sep { width: 2px; background: #e2e8f0; margin: 0 9px; align-self: stretch; }
.demo-row { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.demo-tile { text-align: center; }
.demo-tile .label { display: block; margin-top: 11px; font-size: 13px; color: #555; font-weight: 600; }
.arrow { font-size: 28px; color: #e67e22; }

/* 提示框 */
.callout { border-radius: 10px; padding: 20px 24px; margin: 22px 0; font-size: 14.5px; line-height: 1.95; }
.callout.warn { background: #fff8ec; border-left: 4px solid #e67e22; color: #7a5a2e; }
.callout.info { background: #eef5fc; border-left: 4px solid #3182ce; color: #2c5282; }
.callout strong { color: #d35400; }

/* 相关关键词 */
.rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rel a { display: block; padding: 14px 18px; background: #f8fafc; border: 1px solid #eef2f6; border-radius: 10px; font-size: 14.5px; color: #4a5a6a; transition: all 0.25s; }
.rel a:hover { background: #e67e22; border-color: #e67e22; color: #fff; transform: translateY(-2px); }
.rel a::before { content: '\f105'; font-family: FontAwesome; margin-right: 8px; color: #e67e22; }
.rel a:hover::before { color: #fff; }

/* FAQ */
.faq-item { background: #fff; border-radius: 10px; margin-bottom: 12px; box-shadow: 0 3px 14px rgba(0,0,0,0.06); overflow: hidden; }
.faq-q { padding: 17px 22px; font-size: 15.5px; font-weight: 600; color: #1a3a5c; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-q i { color: #e67e22; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 22px 18px; color: #666; font-size: 14.5px; line-height: 1.95; }
.faq-item.open .faq-a { max-height: 420px; }

/* 温馨提示 */
.notice { background: linear-gradient(135deg, #1a3a5c, #2c5282); border-radius: 12px; padding: 34px; color: #fff; text-align: center; margin-bottom: 46px; }
.notice h3 { font-size: 20px; margin-bottom: 12px; }
.notice p { font-size: 14.5px; line-height: 1.9; opacity: 0.92; max-width: 720px; margin: 0 auto; }
.notice strong { color: #f8b26a; }

/* 上/下一篇 */
.pager { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.pager a { flex: 1; min-width: 200px; padding: 18px 22px; background: #f8fafc; border-radius: 10px; font-size: 14.5px; color: #4a5a6a; transition: all 0.25s; }
.pager a:hover { background: #1a3a5c; color: #fff; }
.pager a small { display: block; font-size: 12px; color: #95a5b5; margin-bottom: 5px; }
.pager a:hover small { color: #a0b8d0; }

/* 页脚 */
footer { background: #1a3a5c; color: #cbd5e0; padding: 52px 0 0; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; padding-bottom: 34px; }
.footer-column h3 { color: #fff; font-size: 17px; margin-bottom: 16px; font-weight: 600; }
.footer-column p { font-size: 13.5px; line-height: 1.85; color: #a0aec0; }
.footer-links li { padding: 5px 0; }
.footer-links a { color: #a0aec0; font-size: 13.5px; }
.footer-links a:hover { color: #e67e22; padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; text-align: center; font-size: 12.5px; color: #a0aec0; }

/* 返回顶部 */
#toTop { position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; background: #e67e22; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(230,126,34,0.4); opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 999; }
#toTop.show { opacity: 1; pointer-events: auto; }

@media (max-width: 768px) {
    .header-content { flex-direction: column; height: auto; padding: 12px 0; }
    nav ul { gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
    .crumb { padding-top: 118px; }
    .page-head h1 { font-size: 24px; }
    .page-head .lead { font-size: 15px; }
    .block h2 { font-size: 20px; }
    .footer-content { grid-template-columns: 1fr; gap: 26px; }
    .hand .tile { width: 30px; height: 42px; }
    .hand .tile .num { font-size: 13px; }
    .hand .tile .suit { font-size: 9px; }
    .notice { padding: 26px 20px; }
}
