@charset "utf-8";
/* 神将三国辅助工具 - 墨金（深色）皮肤 */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font: 14px/1.6 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "SimSun", Arial, sans-serif;
    color: #ded5c6;
    background: #100e0c;
    background-image:
        radial-gradient(1200px 420px at 50% -120px, rgba(211, 172, 109, .16), rgba(16, 14, 12, 0) 70%),
        radial-gradient(900px 500px at 50% 100%, rgba(211, 172, 109, .05), rgba(16, 14, 12, 0) 70%);
    -webkit-text-size-adjust: 100%;
}

a { color: #d3ac6d; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
img { border: 0; vertical-align: top; max-width: 100%; }
[hidden] { display: none !important; }

/* 顶部条 */
.topbar { background: #0b0a09; border-bottom: 1px solid #2b241c; }
.topbar-inner {
    max-width: 1000px;
    height: 44px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    color: #e7c88f;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    text-decoration: none;
}
.brand:hover { color: #fff2d6; text-decoration: none; }
.slogan { color: #7d7364; font-size: 12px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.skin-switch {
    padding: 4px 10px;
    font-size: 12px;
    color: #d3ac6d;
    border: 1px solid #4a3d2c;
    border-radius: 3px;
    background: #17130f;
}
.skin-switch:hover { color: #17130f; background: #d3ac6d; border-color: #d3ac6d; text-decoration: none; }

/* 栏目导航 */
.mainnav { background: #17130f; border-bottom: 1px solid #3a3025; }
.mainnav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 6px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.mainnav-inner li { display: block; }
.mainnav-inner a {
    display: block;
    padding: 0 16px;
    line-height: 46px;
    color: #b6ab99;
    font-size: 15px;
}
.mainnav-inner a:hover { color: #ffe9c3; background: #241e18; text-decoration: none; }
.mainnav-inner .is-active a {
    color: #f0cf94;
    background: #241e18;
    box-shadow: inset 0 -2px 0 #d3ac6d;
}

/* 内容区 */
.page-wrap { max-width: 1000px; margin: 0 auto; padding: 18px 12px 0; }

.panel {
    background: #1b1713;
    border: 1px solid #352c22;
    border-radius: 6px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .45);
    padding: 20px 22px 18px;
}
.panel-head { margin-bottom: 14px; }
.panel-head h1 { font-size: 22px; color: #f0e2c8; line-height: 1.4; }
.panel-head p { margin-top: 6px; color: #9b8f7e; font-size: 13px; }

/* 搜索栏 */
.searchbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #14110e;
    border: 1px solid #332b22;
    border-radius: 6px;
    padding: 12px 14px;
}
.searchbar-label { color: #a99c89; font-size: 14px; }
.searchbar-input {
    flex: 1 1 220px;
    min-width: 160px;
    height: 38px;
    padding: 0 12px;
    font-size: 15px;
    color: #f2e9da;
    border: 1px solid #3c3328;
    border-radius: 4px;
    background: #1d1915;
    outline: none;
}
.searchbar-input::placeholder { color: #6f6557; }
.searchbar-input:focus { border-color: #c9a063; box-shadow: 0 0 0 3px rgba(201, 160, 99, .16); }
.searchbar-btn {
    height: 38px;
    padding: 0 22px;
    font-size: 15px;
    color: #1a150f;
    font-weight: bold;
    background: linear-gradient(#e0bd80, #c1974f);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}
.searchbar-btn:hover { background: linear-gradient(#eccd95, #cda45c); }
.searchbar-reset { color: #8b8071; font-size: 13px; }
.searchbar-stat { margin-left: auto; color: #9b8f7e; font-size: 13px; white-space: nowrap; }
.searchbar-stat b { color: #f0cf94; }

/* 列表表头 */
.list-head {
    display: flex;
    align-items: center;
    margin-top: 16px;
    padding: 10px 14px;
    background: #221d17;
    border: 1px solid #352c22;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    color: #d8c8ab;
    font-size: 14px;
    font-weight: bold;
}
.list-head .col-q { flex: 1; }
.list-head .col-a { width: 200px; text-align: right; }
.list-head.is-single .col-a { display: none; }

/* 答案列表 */
.answer-list {
    max-height: 620px;
    overflow-y: auto;
    border: 1px solid #352c22;
    border-radius: 0 0 6px 6px;
    background: #1b1713;
}
.answer-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 14px;
    border-bottom: 1px dashed #2f271e;
    line-height: 1.7;
}
.answer-list li:nth-child(even) { background: #1f1a15; }
.answer-list li:hover { background: #262019; }
.answer-list li.is-hide { display: none !important; }
.answer-list .q {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    color: #ded5c6;
    padding-left: 14px;
    background: radial-gradient(circle, #c9a063 0, #c9a063 2.5px, rgba(201, 160, 99, 0) 3.5px) 0 11px no-repeat;
}
.answer-list .a {
    width: 200px;
    flex: 0 0 200px;
    text-align: right;
    color: #7fd6a6;
    font-weight: bold;
    word-break: break-word;
}
.answer-list.is-single li { display: block; }
.answer-list.is-single .q { display: block; line-height: 1.9; letter-spacing: .2px; }
.answer-list.is-single .a { display: none; }

mark {
    background: rgba(211, 172, 109, .28);
    color: #ffd894;
    padding: 0 1px;
    border-radius: 2px;
}

.list-empty {
    padding: 46px 12px;
    text-align: center;
    color: #8b8071;
    font-size: 14px;
    border: 1px solid #352c22;
    border-top: 0;
    background: #1b1713;
}
.list-tip { margin-top: 12px; color: #8b8071; font-size: 12px; }

/* 图片页 */
.image-box { text-align: center; padding: 4px 0 10px; }
.image-box img { border: 1px solid #3a3025; border-radius: 4px; }

/* 首页 */
.hero { text-align: center; padding: 30px 12px 22px; }
.hero h1 { font-size: 28px; color: #f0e2c8; letter-spacing: 3px; }
.hero p { margin-top: 10px; color: #9b8f7e; font-size: 14px; }

.tool-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.tool-card {
    display: block;
    padding: 18px 14px;
    background: #1b1713;
    border: 1px solid #352c22;
    border-radius: 6px;
    text-align: center;
    transition: all .18s ease;
}
.tool-card:hover {
    border-color: #c9a063;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
    transform: translateY(-2px);
    text-decoration: none;
}
.tool-card-name { display: block; font-size: 17px; color: #e7c88f; font-weight: bold; }
.tool-card-desc { display: block; margin-top: 6px; font-size: 12px; color: #8b8071; }

.panel-tips h1, .panel-tips h2 { font-size: 18px; color: #f0e2c8; margin-bottom: 10px; }
.panel-tips p { color: #a99c89; margin-bottom: 10px; }
.panel-tips ul li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    color: #a99c89;
    font-size: 13px;
}
.panel-tips ul li:before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c9a063;
}
.link-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 8px 20px;
    background: linear-gradient(#e0bd80, #c1974f);
    color: #1a150f;
    font-weight: bold;
    border-radius: 4px;
}
.link-btn:hover { background: linear-gradient(#eccd95, #cda45c); text-decoration: none; }

/* 页脚 */
.footer {
    margin-top: 30px;
    padding: 18px 12px;
    background: #0b0a09;
    border-top: 1px solid #241e18;
    color: #7d7364;
    text-align: center;
    font-size: 12px;
    line-height: 1.9;
}
.footer-age { color: #c9624f; }

/* 响应式 */
@media (max-width: 900px) {
    .tool-grid { grid-template-columns: repeat(3, 1fr); }
    .mainnav-inner a { padding: 0 12px; font-size: 14px; }
}
@media (max-width: 640px) {
    .slogan { display: none; }
    .page-wrap { padding: 12px 8px 0; }
    .panel { padding: 16px 14px 14px; }
    .hero h1 { font-size: 22px; letter-spacing: 1px; }
    .tool-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .searchbar { padding: 10px; gap: 8px; }
    .searchbar-label { display: none; }
    .searchbar-input { flex: 1 1 100%; }
    .searchbar-btn { flex: 0 0 auto; }
    .searchbar-stat { margin-left: 0; width: 100%; }
    .list-head .col-a { width: 110px; }
    .answer-list { max-height: none; }
    .answer-list li { flex-direction: column; gap: 2px; }
    .answer-list .a { width: auto; flex: none; text-align: left; }
}
