/* ============================================================
   网页meta信息查询 - 前台样式
   ============================================================ */
* { 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; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* 顶部导航 */
.site-header {
    background: #209944;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 60px;
}
.logo { color: #fff; display: flex; align-items: center; }
.logo:hover { color: #fff; }
.logo-icon { font-size: 22px; margin-right: 8px; }
.logo-text { font-size: 20px; font-weight: bold; }
.logo-text em { font-style: normal; font-size: 12px; color: #d5f0dd; margin-left: 8px; }
.top-nav { display: flex; flex-wrap: wrap; }
.top-nav a {
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    margin-left: 4px;
    font-size: 14px;
}
.top-nav a:hover { background: rgba(255,255,255,.2); color: #fff; }
.top-nav a.active { background: rgba(255,255,255,.25); }

/* Hero 查询区 (白色卡片, 与绿色头部形成对比) */
.hero {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    padding: 34px 24px 30px;
    color: #333;
    margin-top: 20px;
    margin-bottom: 20px;
}
.hero-title { font-size: 24px; font-weight: bold; text-align: center; color: #222; }
.hero-subtitle { text-align: center; color: #888; margin: 8px 0 22px; font-size: 14px; }
.search-form { max-width: 680px; margin: 0 auto; }
.search-box {
    display: flex;
    background: #fff;
    border: 1px solid #dde3e9;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.search-icon { display: flex; align-items: center; padding: 0 14px; font-size: 18px; }
.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 4px;
    font-size: 15px;
    color: #333;
}
.btn-search {
    background: #ff8c00;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    cursor: pointer;
    display: inline-block;
}
.btn-search:hover { background: #e67e00; color: #fff; }
.btn-small { padding: 8px 18px; font-size: 13px; border-radius: 4px; }
.hot-hint { text-align: center; margin-top: 14px; font-size: 13px; color: #999; }
.hot-hint a { color: #209944; margin: 0 6px; }
.form-tip { color: #999; font-size: 12px; margin-top: 8px; }

/* 面包屑 */
.breadcrumb { margin: 16px 0 12px; color: #888; font-size: 13px; }
.breadcrumb a { color: #209944; }

/* 卡片 */
.main-content { padding-bottom: 30px; }
.card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    padding: 20px;
    margin-bottom: 20px;
}
.card-title {
    font-size: 17px;
    color: #222;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}
.card-icon { margin-right: 8px; }
.more-link { margin-left: auto; font-size: 13px; font-weight: normal; }

/* 表格 */
.records-table { width: 100%; border-collapse: collapse; }
.records-table th, .records-table td {
    padding: 10px 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; }
.ip-link { font-weight: bold; }
.title-link { color: #444; }
.title-link:hover { color: #209944; }
.time-cell { color: #999; font-size: 12px; white-space: nowrap; }
.empty { text-align: center; color: #aaa; padding: 26px 0; }

/* 徽标 */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: #fff;
}
.badge-green { background: #16a34a; }
.badge-red { background: #e33; }
.badge-yellow { background: #f59e0b; }
.badge-blue { background: #2563eb; }

/* 热门网格 */
.popular-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.popular-item {
    border: 1px solid #e6e9ee;
    border-radius: 6px;
    padding: 14px;
    display: block;
    transition: all .2s;
}
.popular-item:hover { border-color: #209944; box-shadow: 0 2px 8px rgba(32,153,68,.15); }
.popular-ip { font-weight: bold; color: #209944; font-size: 15px; }
.popular-title { color: #888; font-size: 12px; margin: 4px 0 8px; height: 18px; overflow: hidden; }
.popular-stats { color: #999; font-size: 12px; }
.stat { margin-right: 10px; }

/* 文章 */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.article-item {
    border: 1px solid #e6e9ee;
    border-radius: 6px;
    padding: 14px;
    display: block;
}
.article-item:hover { border-color: #209944; }
.article-title { font-size: 15px; color: #222; font-weight: bold; }
.article-excerpt { color: #888; font-size: 13px; margin: 6px 0; }
.article-date { color: #aaa; font-size: 12px; }

.article-list .article-list-item { padding: 12px 0; border-bottom: 1px dashed #eee; }
.article-list-item:last-child { border-bottom: none; }
.article-list .article-title { font-size: 16px; }
.article-list .article-excerpt { margin: 4px 0; }

.article-detail-title { font-size: 22px; margin-bottom: 6px; }
.article-detail-date { color: #999; font-size: 13px; border-bottom: 1px solid #eee; padding-bottom: 12px; margin-bottom: 14px; }
.article-detail-content { line-height: 1.9; font-size: 15px; }
.article-detail-content p { margin-bottom: 12px; }
.article-prev-next { margin-top: 20px; padding-top: 14px; border-top: 1px solid #eee; font-size: 13px; }

/* 问答 */
.ask-list .ask-item { display: block; padding: 10px 0; border-bottom: 1px dashed #eee; }
.ask-item:last-child { border-bottom: none; }
.ask-item-title { font-size: 15px; color: #333; }
.ask-item-meta { color: #999; font-size: 12px; margin-top: 2px; }
.ask-item-meta span { margin-right: 14px; }
.ask-item-block { padding: 12px 0; border-bottom: 1px dashed #eee; }
.ask-item-block:last-child { border-bottom: none; }
.ask-item-block .ask-item-title { font-size: 16px; }

.question-title { font-size: 20px; margin-bottom: 6px; }
.question-meta { color: #999; font-size: 12px; margin-bottom: 12px; }
.question-meta span { margin-right: 14px; }
.question-content { font-size: 15px; line-height: 1.8; background: #f8f9fb; padding: 14px; border-radius: 6px; }

.answer-item { padding: 14px; border: 1px solid #e6e9ee; border-radius: 6px; margin-bottom: 12px; }
.answer-content { font-size: 14px; line-height: 1.8; }
.answer-meta { color: #999; font-size: 12px; margin-top: 8px; }
.answer-meta span { margin-right: 14px; }

/* 提问/回答表单 */
.ask-form-tip { color: #888; font-size: 13px; margin-bottom: 14px; }
.ask-form-row { margin-bottom: 16px; }
.ask-form-row label { display: block; margin-bottom: 6px; color: #555; font-size: 13px; }
.ask-form-row input, .ask-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}
.ask-form-row input:focus, .ask-form-row textarea:focus { border-color: #209944; }
.answer-form { max-width: 700px; }

.alert-success { background: #ecfdf3; color: #16a34a; padding: 12px 14px; border-radius: 4px; margin-bottom: 14px; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #dc2626; padding: 12px 14px; border-radius: 4px; margin-bottom: 14px; border: 1px solid #fecaca; }
.ask-tip a { text-decoration: underline; }
.btn-back { color: #888; margin-left: 12px; }

/* 友链 */
.links-list { display: flex; flex-wrap: wrap; }
.link-tag {
    border: 1px solid #e6e9ee;
    border-radius: 4px;
    padding: 6px 14px;
    margin: 4px;
    font-size: 13px;
    color: #555;
}
.link-tag:hover { border-color: #209944; color: #209944; }

/* 标签 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #dbe7de;
    background: #f0f7f2;
    color: #209944;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 13px;
}
.tag-link:hover { background: #209944; color: #fff; text-decoration: none; border-color: #209944; }
.tag-link em { font-style: normal; font-size: 11px; background: #209944; color: #fff; border-radius: 8px; padding: 0 6px; }
.tag-link:hover em { background: #fff; color: #209944; }
.tag-active { background: #209944; color: #fff; border-color: #209944; }
.tag-active em { background: #fff; color: #209944; }
.article-tags { margin: 0 0 14px; }
.article-tags-label { color: #888; font-size: 13px; margin-right: 8px; }
.tag-sm { padding: 2px 8px; font-size: 12px; margin: 2px 2px 2px 0; }

/* 专题 */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.topic-item {
    border: 1px solid #e6e9ee;
    border-radius: 6px;
    padding: 14px;
    display: block;
    transition: all .2s;
}
.topic-item:hover { border-color: #209944; box-shadow: 0 2px 8px rgba(32,153,68,.15); }
.topic-name { font-weight: bold; color: #209944; font-size: 16px; }
.topic-desc { color: #888; font-size: 13px; margin: 6px 0; min-height: 38px; overflow: hidden; }
.topic-meta { color: #aaa; font-size: 12px; }
.topic-header .topic-desc { color: #666; font-size: 14px; margin: 4px 0 8px; }
.record-checkbox-grid { max-height: 380px; overflow-y: auto; border: 1px solid #e5e7eb; border-radius: 6px; padding: 12px; }
.record-checkbox { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px dashed #f0f0f0; cursor: pointer; font-size: 13px; }
.record-checkbox:hover { background: #f8fbf9; }
.rc-domain { font-weight: bold; color: #209944; min-width: 160px; }
.rc-title { color: #666; }
.record-search-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.record-search-bar input {
    flex: 1;
    min-width: 220px;
    padding: 9px 12px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
}
.record-search-bar input:focus { border-color: #209944; }
.record-search-info { color: #888; font-size: 12px; margin-bottom: 8px; }
.record-search-info b { color: #209944; }

/* 评论 */
.comment-list { margin-bottom: 16px; }
.comment-item { padding: 12px 14px; border: 1px solid #e6e9ee; border-radius: 6px; margin-bottom: 10px; background: #fafbfc; }
.comment-content { font-size: 14px; line-height: 1.7; }
.comment-meta { color: #999; font-size: 12px; margin-top: 6px; }
.comment-meta span { margin-right: 14px; }
.comment-form { max-width: 700px; }

/* 最佳答案 */
.best-answer-card { border: 2px solid #f59e0b; }
.best-answer-card .card-title { color: #b45309; }
.best-answer-item { border-color: #f59e0b; background: #fffbeb; }
.best-tag { color: #b45309; font-weight: bold; }

/* meta结果表 */
.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 { 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; }
.detail-meta { color: #999; font-size: 13px; margin-bottom: 14px; }
.detail-meta span { margin-right: 18px; }
.tool-box { background: #f8f9fb; border: 1px solid #eef0f3; border-radius: 6px; padding: 18px; margin-bottom: 16px; }

/* 页脚 */
.site-footer {
    background: #fff;
    border-top: 1px solid #e3e3e3;
    padding: 24px 0;
    text-align: center;
    color: #999;
    font-size: 13px;
}
.site-footer a { margin: 0 6px; }
.copyright { margin-top: 8px; color: #aaa; font-size: 12px; }

/* 响应式 */
@media (max-width: 768px) {
    .site-header .container { flex-direction: column; padding: 12px 16px; }
    .top-nav { margin-top: 8px; }
    .btn-search { padding: 14px 20px; }
    .records-table { display: block; overflow-x: auto; white-space: nowrap; }
}