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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f0f2f5;
    line-height: 1.6;
}

a { color: #209944; text-decoration: none; }
a:hover { color: #177534; text-decoration: underline; }

.wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* 头部 */
.site-header {
    background: #209944;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.site-brand h1 { font-size: 24px; font-weight: bold; }
.site-brand h1 a { color: #fff; }
.site-brand h1 a:hover { color: #fff; text-decoration: none; }
.site-brand p { color: #d5f0dd; font-size: 13px; }
.site-nav a {
    color: #fff;
    margin-left: 18px;
    padding: 6px 10px;
    border-radius: 4px;
    display: inline-block;
}
.site-nav a:hover { background: rgba(255,255,255,.2); color: #fff; text-decoration: none; }
.site-nav a.active { background: rgba(255,255,255,.25); }

/* 主体 */
.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

.breadcrumbs {
    margin-bottom: 12px;
    color: #888;
    font-size: 13px;
}

/* 查询框 */
.tool-box {
    background: #fff;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.tool-box h2 { font-size: 18px; margin-bottom: 14px; color: #222; }
.query-form { display: flex; gap: 10px; flex-wrap: wrap; }
.txt-input {
    flex: 1;
    min-width: 260px;
    height: 42px;
    padding: 0 14px;
    font-size: 15px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    outline: none;
    transition: border-color .2s;
}
.txt-input:focus { border-color: #209944; }
.btn-query {
    height: 42px;
    padding: 0 30px;
    font-size: 15px;
    color: #fff;
    background: #209944;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.btn-query:hover { background: #177534; }
.tip { color: #999; font-size: 12px; margin-top: 10px; }
.error { color: #e33; margin-top: 12px; }

/* 面板 */
.columns { display: flex; gap: 20px; flex-wrap: wrap; }
.col { flex: 1; min-width: 300px; }
.panel {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    overflow: hidden;
    margin-bottom: 20px;
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background: #fafbfc;
}
.panel-head h3 { font-size: 16px; color: #222; }
.panel-count { color: #999; font-size: 12px; }

/* 记录表格 */
.records-table { width: 100%; border-collapse: collapse; }
.records-table th, .records-table td {
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    vertical-align: top;
}
.records-table th {
    background: #f7f8fa;
    color: #666;
    font-weight: normal;
    white-space: nowrap;
}
.records-table tr:hover td { background: #f8fbf9; }
.records-table .col-domain { white-space: nowrap; font-weight: bold; }
.records-table .col-title { color: #555; word-break: break-all; }
.records-table .col-count { text-align: center; color: #999; white-space: nowrap; width: 50px; }
.records-table .empty { text-align: center; color: #aaa; padding: 30px 0; }

/* 查询结果表 */
.meta-table { width: 100%; border-collapse: collapse; }
.meta-table tr td, .meta-table tr th { border: 1px solid #e5e5e5; padding: 12px 14px; font-size: 14px; }
.meta-table .m-name {
    width: 160px;
    background: #f6f6f6;
    text-align: center;
    font-weight: bold;
    color: #209944;
    vertical-align: middle;
}
.meta-table .m-value { word-break: break-all; line-height: 1.8; }
.meta-table .m-len { color: #e33; font-size: 12px; margin-left: 10px; white-space: nowrap; }
.meta-table .m-hint { color: #999; font-size: 12px; }
.meta-table .m-empty { color: #bbb; }

.hot-links { padding: 14px 16px; }
.hot-links a {
    display: inline-block;
    background: #f0f7f2;
    color: #209944;
    padding: 4px 12px;
    margin: 4px 6px 4px 0;
    border-radius: 3px;
    font-size: 13px;
}
.hot-links a:hover { background: #209944; color: #fff; text-decoration: none; }

/* 管理后台 */
.admin-table th { font-weight: normal; }
.form-row { margin-bottom: 16px; }
.form-row label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-size: 14px;
}
.form-row textarea { width: 100%; resize: vertical; }
.pager {
    padding: 14px 16px;
    text-align: center;
    font-size: 13px;
}
.pager a {
    display: inline-block;
    margin: 2px;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #555;
}
.pager a:hover { border-color: #209944; color: #209944; text-decoration: none; }
.pager .cur {
    display: inline-block;
    margin: 2px;
    padding: 4px 10px;
    border: 1px solid #209944;
    border-radius: 3px;
    background: #209944;
    color: #fff;
}

/* 页脚 */
.site-footer {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 20px;
    border-top: 1px solid #e3e3e3;
    margin-top: 20px;
}
