﻿/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .jumbotron {
        margin-top: 20px;
    }
    .body-content {
        padding: 0;
    }
}

/* ===== 古棋谱自定义 ===== */
.navbar-brand-sub {
    color: #e8c98a;
    font-size: 13px;
    margin-left: 6px;
    vertical-align: middle;
}

.hero {
    background: linear-gradient(135deg, #5b4632, #3e2f22);
    color: #f5e9d0;
    padding: 60px 0 50px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    margin: 0 0 12px;
    letter-spacing: 6px;
    color: #f5e9d0;
}

.hero .lead {
    font-size: 22px;
    color: #e8c98a;
    margin-bottom: 14px;
}

.hero-sub {
    font-size: 15px;
    color: #d9c9a8;
    line-height: 1.8;
}

.hero-cta {
    margin-top: 24px;
}

.section {
    padding: 40px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 8px;
    color: #3e2f22;
}

.section > h1 {
    font-size: 24px;
    text-align: center;
    margin: 0 0 12px;
    color: #3e2f22;
}

.section-sub {
    text-align: center;
    color: #8a7a62;
    margin-bottom: 28px;
}

.game-card {
    border: 1px solid #e3d9c8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fffdf8;
    min-height: 215px;
    transition: box-shadow .2s, border-color .2s;
}

.game-card:hover {
    box-shadow: 0 4px 14px rgba(91, 70, 50, .18);
    border-color: #c0392b;
}

.game-card h3 {
    margin: 0 0 6px;
    color: #3e2f22;
}

.game-card .tag {
    display: inline-block;
    background: #c0392b;
    color: #f5e9d0;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.game-card .intro {
    color: #6b5d48;
    line-height: 1.7;
    min-height: 70px;
}

.card-btns .btn {
    margin-right: 8px;
}

.detail-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 28px;
    align-items: flex-start;
}
.detail-img-wrap {
    flex: 0 0 340px;
    max-width: 100%;
}
.detail-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}
.detail-placeholder {
    width: 100%;
    min-height: 200px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #999;
    background: #fafaf5;
    padding: 20px;
    box-sizing: border-box;
}
.detail-head {
    flex: 1;
    min-width: 0;
    border-bottom: 1px solid #e3d9c8;
    padding-bottom: 18px;
    margin-bottom: 24px;
}

.detail-head h1 {
    margin: 0 0 8px;
    color: #3e2f22;
}

.detail-head .lead {
    color: #6b5d48;
}

.detail-head .tag {
    display: inline-block;
    background: #c0392b;
    color: #f5e9d0;
    font-size: 13px;
    padding: 2px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.detail-block {
    margin-bottom: 22px;
}

.detail-block h2 {
    font-size: 20px;
    text-align: left;
    border-left: 4px solid #c0392b;
    padding-left: 10px;
    color: #3e2f22;
    margin-bottom: 10px;
}

.detail-block p {
    color: #5a4c3a;
    line-height: 1.9;
}

footer {
    text-align: center;
}

.footer-tech {
    font-size: 12px;
    color: #9a8c76;
}

.footer-beian {
    font-size: 12px;
    color: #9a8c76;
}

.footer-beian a {
    color: #9a8c76;
    text-decoration: none;
}

.footer-beian a:hover {
    color: #5a4c3a;
    text-decoration: underline;
}

.footer-gongan {
    margin-top: 2px;
}

.footer-gongan .gongan-icon {
    height: 16px;
    width: auto;
    border: 0;
    vertical-align: middle;
    margin-right: 4px;
}

.footer-tech a,
.footer-contact a {
    color: #c0392b;
    text-decoration: none;
}

.footer-contact {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.9;
    color: #9a8c76;
}

.footer-contact .footer-sep {
    margin: 0 6px;
    color: #d8cbb4;
}

/* 手机上切到电脑版后，页脚的“回到手机版”入口 */
.footer-mobile-switch {
    margin-top: 6px;
}

.footer-mobile-switch a {
    font-size: 13px;
    color: #c0392b;
    text-decoration: none;
}

.msg-item {
    border: 1px solid #e3d9c8;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: #fffdf8;
}

.msg-head {
    margin-bottom: 6px;
}

.msg-head strong {
    color: #3e2f22;
    margin-right: 10px;
}

.msg-game {
    display: inline-block;
    background: #c0392b;
    color: #f5e9d0;
    font-size: 12px;
    padding: 1px 10px;
    border-radius: 999px;
    margin-right: 10px;
}

.msg-time {
    color: #9a8c76;
    font-size: 12px;
}

.msg-content {
    color: #5a4c3a;
    line-height: 1.8;
    margin-bottom: 0;
    word-break: break-word;
}

.news-list {
    margin-top: 6px;
}

.news-item {
    border-left: 3px solid #c0392b;
    background: #fffdf8;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 0 8px 8px 0;
}

.news-time {
    color: #9a8c76;
    font-size: 12px;
    margin-right: 12px;
}

.news-title {
    color: #3e2f22;
    font-size: 17px;
    margin: 2px 0 4px;
}

.news-body {
    color: #5a4c3a;
    line-height: 1.8;
    margin-bottom: 0;
    word-break: break-word;
}