/* ========================================
   SEO白帽系统 - 全局样式
   ======================================== */
:root {
    --primary: #4a6cf7;
    --primary-dark: #3b5de7;
    --bg: #f5f7fa;
    --card-bg: #fff;
    --text: #333;
    --text-light: #888;
    --border: #e8e8e8;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky; top: 0; z-index: 100;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}
.logo {
    font-size: 20px; font-weight: 700; color: #1a1a2e;
    text-decoration: none !important;
}
.logo:hover { color: var(--primary); }
.site-nav a {
    margin-left: 24px; color: #555; font-size: 14px;
    transition: color 0.2s;
}
.site-nav a:hover { color: var(--primary); text-decoration: none; }

/* ===== Main ===== */
.site-main { min-height: calc(100vh - 180px); padding: 30px 0; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #4a6cf7 0%, #6c8cff 100%);
    color: #fff; padding: 60px 0; text-align: center; margin-bottom: 30px;
}
.hero h1 { font-size: 32px; margin-bottom: 12px; }
.hero p { font-size: 16px; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* ===== Hero Nav 搜索型 ===== */
.hero-nav { padding: 40px 0 50px; }
.hero-nav h1 { font-size: 28px; margin-bottom: 6px; }
.hero-nav .hero-sub { font-size: 14px; margin-bottom: 24px; opacity: 0.85; }

/* 搜索 Tab 切换 */
.search-tabs {
    display: flex; justify-content: center; gap: 0; margin-bottom: 16px;
}
.search-tab {
    padding: 10px 28px; border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9);
    font-size: 14px; cursor: pointer; transition: all 0.2s;
    font-family: inherit;
}
.search-tab:first-child { border-radius: 8px 0 0 8px; }
.search-tab:last-child { border-radius: 0 8px 8px 0; }
.search-tab:hover { background: rgba(255,255,255,0.2); }
.search-tab.active { background: #fff; color: #4a6cf7; font-weight: 700; border-color: #fff; }

/* 搜索框 */
.search-form { max-width: 680px; margin: 0 auto; }
.search-box { display: flex; box-shadow: 0 8px 30px rgba(0,0,0,0.15); border-radius: 10px; overflow: hidden; }
.search-input {
    flex: 1; padding: 14px 20px; border: none; font-size: 16px;
    font-family: inherit; outline: none;
}
.search-btn {
    padding: 14px 32px; background: #fff; color: var(--primary);
    border: none; font-size: 15px; font-weight: 700; cursor: pointer;
    white-space: nowrap; font-family: inherit;
    transition: background 0.2s;
    border-left: 1px solid #eee;
}
.search-btn:hover { background: #f0f2ff; }

/* ===== Section Titles ===== */
.section-title {
    font-size: 20px; color: #1a1a2e; margin-bottom: 16px;
    padding-bottom: 10px; border-bottom: 2px solid #f0f0f0;
}

/* ===== 分类导航 ===== */
.cat-nav-section { margin-bottom: 30px; }
.cat-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.cat-nav-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 16px 20px;
    display: flex; align-items: center; gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none !important; color: var(--text);
}
.cat-nav-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.cat-nav-card .cat-icon { font-size: 22px; }
.cat-nav-card .cat-name { font-size: 15px; font-weight: 600; flex: 1; }
.cat-nav-card .cat-arrow { color: #ccc; font-size: 14px; }
.cat-baidu { border-left: 3px solid #4e6ef2; }
.cat-bing { border-left: 3px solid #00a4ef; }

/* ===== 热门关键词 ===== */
.hot-keys-section { margin-bottom: 30px; }
.hot-keys-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.hot-key-link {
    display: inline-block; padding: 6px 16px;
    background: #fff; border: 1px solid var(--border);
    border-radius: 20px; font-size: 13px; color: #555;
    transition: all 0.2s; text-decoration: none !important;
}
.hot-key-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.hot-baidu { border-color: #4e6ef2; color: #4e6ef2; }
.hot-baidu:hover { background: #4e6ef2; color: #fff; }
.hot-bing { border-color: #00a4ef; color: #00a4ef; }
.hot-bing:hover { background: #00a4ef; color: #fff; }

/* ===== 域名区 ===== */
.domain-section { margin-bottom: 30px; }

/* ===== 最新内容区 ===== */
.latest-section { margin-bottom: 30px; }

/* ===== 搜索结果 ===== */
.search-results-section { margin-bottom: 30px; }
.search-info {
    font-size: 14px; color: #888; margin-bottom: 20px;
    padding: 10px 0; border-bottom: 1px solid #eee;
}
.search-result-item {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 20px 24px; margin-bottom: 14px;
    transition: box-shadow 0.2s;
}
.search-result-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.search-result-item h3 { font-size: 18px; margin-bottom: 4px; }
.search-result-item h3 a { color: #1a0dab; }
.search-result-item h3 a:hover { text-decoration: underline; }
.search-result-url {
    font-size: 12px; color: #1a7a1a; margin-bottom: 8px;
    word-break: break-all;
}
.search-result-desc { font-size: 14px; color: #555; line-height: 1.7; }
.search-result-tags { margin-top: 10px; }
.tag-link {
    display: inline-block; padding: 2px 10px; background: #f0f5ff;
    color: #4a6cf7; border-radius: 12px; font-size: 12px; margin-right: 6px;
    text-decoration: none !important;
}
.tag-link:hover { background: #d6e4ff; }

/* 空结果 */
.no-results {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 50px 30px; text-align: center;
}
.btn-ext {
    display: inline-block; padding: 10px 24px; background: #667eea;
    color: #fff !important; border-radius: 6px; font-size: 14px;
    text-decoration: none !important; margin: 0 6px; font-weight: 600;
    transition: background 0.2s;
}
.btn-ext:hover { background: #5a6fd6; }

/* ===== Cards ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px; margin-bottom: 30px;
}
.card {
    background: var(--card-bg); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 24px; transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.card h3 { font-size: 18px; margin-bottom: 10px; color: #1a1a2e; }
.card .meta { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.card .desc { font-size: 14px; color: #555; line-height: 1.6; }

/* ===== Breadcrumb ===== */
.breadcrumb {
    font-size: 13px; color: #888; margin-bottom: 20px;
    padding: 10px 0;
}
.breadcrumb a { color: #4a6cf7; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #555; }

/* ===== Article Body ===== */
.article-body { font-size: 15px; line-height: 1.9; color: #333; }
.article-body h2 { font-size: 22px; margin: 24px 0 12px; color: #1a1a2e; }
.article-body h3 { font-size: 18px; margin: 20px 0 10px; color: #333; }
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 10px 0 10px 24px; }
.article-body li { margin-bottom: 6px; }
.article-body img { max-width: 100%; height: auto; border-radius: 6px; }
.article-body blockquote {
    border-left: 4px solid #4a6cf7; background: #f8f9ff;
    padding: 12px 20px; margin: 16px 0; color: #555; border-radius: 0 6px 6px 0;
}
.article-body code {
    background: #f0f0f0; padding: 2px 6px; border-radius: 4px; font-size: 13px;
}
.article-body pre {
    background: #1a1a2e; color: #e8e8e8; padding: 16px;
    border-radius: 8px; overflow-x: auto; font-size: 13px; line-height: 1.6;
}
.article-body pre code { background: none; color: inherit; }

/* ===== 分页 ===== */
.pagination {
    margin-top: 24px; text-align: center;
}
.pagination a, .pagination span {
    display: inline-block; padding: 8px 14px; margin: 0 3px;
    border: 1px solid #ddd; border-radius: 6px; font-size: 14px;
    color: #555; text-decoration: none; transition: all 0.2s;
}
.pagination a:hover { background: #4a6cf7; color: #fff; border-color: #4a6cf7; }
.pagination .current { background: #4a6cf7; color: #fff; border-color: #4a6cf7; font-weight: 700; }
.card .read-more {
    display: inline-block; margin-top: 12px; font-size: 14px;
    color: var(--primary); font-weight: 600;
}

/* ===== Domain list ===== */
.domain-list { margin-bottom: 30px; }
.domain-item {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 16px 20px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
    text-decoration: none; color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.domain-item:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.domain-item .d-name { font-weight: 600; font-size: 16px; color: var(--primary); }
.domain-item:hover .d-name { text-decoration: underline; }
.domain-item .d-url { color: var(--text-light); font-size: 13px; }
.domain-item .d-keywords { font-size: 13px; color: #666; }
.domain-item .d-tag {
    background: #e6f7ff; color: #1890ff; padding: 2px 10px;
    border-radius: 12px; font-size: 12px; white-space: nowrap;
}

/* ===== Footer ===== */
.site-footer {
    background: #1a1a2e; color: rgba(255,255,255,0.7);
    padding: 30px 0; font-size: 14px;
}
.footer-links { margin-bottom: 16px; }
.footer-links a {
    color: rgba(255,255,255,0.6); margin: 0 8px;
    transition: color 0.2s;
}
.footer-links a:hover { color: #fff; text-decoration: none; }
.copyright { font-size: 13px; color: rgba(255,255,255,0.4); }

/* ===== Page ===== */
.page-content {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 30px;
}
.page-content h1 { font-size: 26px; margin-bottom: 12px; }
.page-content .article-body { margin-top: 20px; line-height: 1.9; }
.page-content .article-body h2 { font-size: 20px; margin: 24px 0 12px; color: #1a1a2e; }
.page-content .article-body p { margin-bottom: 14px; }
.page-content .article-body ul, .article-body ol { margin: 10px 0 10px 24px; }

/* ===== Breadcrumb ===== */
.breadcrumb { font-size: 13px; color: #888; margin-bottom: 16px; }
.breadcrumb a { color: var(--primary); }

/* ===== Pagination ===== */
.pagination { text-align: center; margin-top: 30px; }
.pagination a, .pagination span {
    display: inline-block; padding: 6px 14px; border: 1px solid var(--border);
    border-radius: 4px; margin: 0 3px; font-size: 14px; color: #555;
}
.pagination a:hover { background: var(--primary); color: #fff; text-decoration: none; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 24px; }
    .hero-nav h1 { font-size: 22px; }
    .card-grid { grid-template-columns: 1fr; }
    .site-header .container { flex-direction: column; height: auto; padding: 12px 20px; }
    .site-nav { margin-top: 10px; }
    .site-nav a { margin: 0 10px; }
    .domain-item { flex-wrap: wrap; }
    .search-tabs { flex-wrap: wrap; }
    .search-tab { padding: 8px 16px; font-size: 13px; border-radius: 6px !important; margin: 2px; }
    .search-box { flex-direction: column; }
    .search-btn { border-left: none; border-top: 1px solid #eee; }
    .cat-nav-grid { grid-template-columns: repeat(2, 1fr); }
    .hot-keys-cloud { gap: 6px; }
    .hot-key-link { padding: 5px 12px; font-size: 12px; }
    .search-result-item { padding: 14px 16px; }
}
