/* ===== 全局重置与基础样式 ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f2f5;
}

/* 页面背景 */
.tool-page {
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    padding-top: 0 !important;
}

/* ===== 容器修复 ===== */
.container {
    max-width: 1200px;
}

/* 修复工具页面宽度超出 */
.tool-panel img,
.tool-panel table,
.tool-panel pre,
.tool-panel .form-control {
    max-width: 100%;
}

/* ===== 工具页面内容区域 ===== */
.tool-content-wrap {
    padding: 20px 0 40px;
}

.tool-content-wrap > .container {
    max-width: 1200px;
}

/* 页面头部 - 现代渐变色 */
.page-header-modern {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    padding: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-modern::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(79,172,254,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0,242,254,0.1) 0%, transparent 50%);
}

.page-header-modern .container {
    position: relative;
    z-index: 1;
}

.page-header-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.page-header-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* 面包屑导航 - 现代风格 */
.breadcrumb-modern {
    padding: 12px 0;
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

.breadcrumb-modern a {
    color: #4facfe;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-modern a:hover {
    color: #2d8cf0;
    text-decoration: none;
}

.breadcrumb-modern .divider {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb-modern .active {
    color: #666;
}

.breadcrumb-modern .back-home-btn {
    color: #4facfe;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid #4facfe;
    transition: all 0.2s;
}

.breadcrumb-modern .back-home-btn:hover {
    background: #4facfe;
    color: #fff;
    text-decoration: none;
}

/* 面包屑访问统计 */
.breadcrumb-stats {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
    margin-right: 20px;
    vertical-align: middle;
}
.breadcrumb-stats-icon { 
    font-size: 13px; 
    line-height: 1;
    vertical-align: middle;
    position: relative;
    top: -1px;
}
.breadcrumb-stats strong {
    color: #4facfe;
    font-weight: 700;
    font-size: 13px;
}
.breadcrumb-stats-divider {
    color: #ddd;
    margin: 0 4px;
}

@media (max-width: 768px) {
    .breadcrumb-stats { display: none !important; }
}

/* ===== 工具面板 - 白色卡片 ===== */
.tool-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 30px;
    margin: 0;
    overflow: hidden;
    max-width: 100%;
}

/* Tab 导航修复 */
.nav-tabs {
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}

.nav-tabs > li {
    margin-bottom: -2px;
}

.nav-tabs > li > a {
    color: #666;
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 10px 13px;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-tabs > li > a:hover {
    color: #4facfe;
    background: #f8f9fa;
    border-color: transparent;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: #4facfe;
    background: #fff;
    border: none;
    border-bottom: 2px solid #4facfe;
}

.hbflag {
    margin-bottom: 20px !important;
    background: #fff !important;
    border-bottom: 2px solid #f0f0f0;
    padding: 10px 15px 0 !important;
    border-radius: 0;
}

.hbflag li a:hover {
    background-color: #f8f9fa;
    color: #4facfe !important;
}

/* Panel 面板修复 - 让工具面板有白色卡片背景 */
.panel {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 20px;
    overflow: hidden;
}

.panel-defaul,
.panel-default {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* Accordion 旧类兼容 - 作为最外层卡片容器 */
.accordion {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    background: #fff;
    overflow: hidden;
    padding: 0;
}

.accordion-group {
    border: none;
    margin-bottom: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

/* Panel 面板 - 与外层 accordion 融为一体，避免重复边线 */
.accordion .panel,
.accordion .panel-default,
.accordion .panel-defaul {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    margin-bottom: 0;
    padding: 24px 28px;
}

/* 嵌套 accordion 不再重复显示卡片效果，避免边线/阴影重叠 */
.accordion .accordion {
    box-shadow: none;
    background: transparent;
    border-radius: 0;
}

/* 底部说明文字区域统一内边距 */
.bs-docs-demoexample {
    padding: 24px 28px;
    line-height: 1.8;
}
.bs-docs-demoexample h4 {
    margin-top: 18px;
    margin-bottom: 10px;
    color: #333;
}
.bs-docs-demoexample h4:first-child {
    margin-top: 0;
}
.bs-docs-demoexample p {
    margin-bottom: 10px;
    color: #555;
}
.bs-docs-demoexample hr {
    margin: 18px 0;
    border: 0;
    border-top: 1px solid #eee;
}

@media (max-width:768px) {
    .bs-docs-demoexample {
        padding: 16px 18px;
    }
}
@media (max-width:480px) {
    .bs-docs-demoexample {
        padding: 14px 15px;
    }
}
@media (max-width:768px) {
    .accordion .panel,
    .accordion .panel-default,
    .accordion .panel-defaul {
        padding: 16px 18px;
    }
}
@media (max-width:480px) {
    .accordion .panel,
    .accordion .panel-default,
    .accordion .panel-defaul {
        padding: 14px 15px;
    }
}

/* ===== 表单美化 ===== */
.form-control {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 6px 14px;
    font-size: 14px;
    transition: all 0.3s;
    color: #333;
    height: 38px;
    box-sizing: border-box;
}

/* 修复小宽度输入框文字被截断：减小单行输入框的横向 padding */
input[type="text"].form-control,
input[type="number"].form-control,
input[type="password"].form-control,
input[type="email"].form-control,
input[type="url"].form-control {
    padding-left: 10px;
    padding-right: 10px;
}

.form-control:focus {
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79,172,254,0.1);
    outline: none;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    padding: 8px 14px;
    height: auto;
}

/* 输入组 */
.input-group {
    margin-bottom: 15px;
}

.input-group .form-control {
    border-radius: 8px;
    margin-top: 0;
}

.input-group-btn .btn {
    border-radius: 8px;
    margin: 0;
    height: 38px;
    box-sizing: border-box;
    vertical-align: middle;
}

/* 并排的col布局中，输入框与按钮同行对齐 */
.form-group .col-xs-9 + .col-xs-3 .btn,
.form-group .col-xs-9 + .col-xs-3 button,
.form-group .col-xs-6 + .col-xs-3 .btn,
.form-group .col-xs-6 + .col-xs-3 button {
    height: 38px;
    margin-top: 0;
    margin-bottom: 0;
    box-sizing: border-box;
}
.form-group .col-xs-9 + .col-xs-3 button,
.form-group .col-xs-6 + .col-xs-3 .btn,
.form-group .col-xs-6 + .col-xs-3 button {
    height: 38px;
    margin-top: 0;
    margin-bottom: 0;
    box-sizing: border-box;
}

/* ===== 按钮美化 ===== */
.btn {
    margin: 2px;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-default {
    background: #fff;
    border: 1px solid #d9d9d9;
    color: #666;
}

.btn-default:hover,
.btn-default:focus {
    background: #4facfe;
    border-color: #4facfe;
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    color: #fff;
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #3d9be9 0%, #00d4e8 100%);
    box-shadow: 0 4px 15px rgba(79,172,254,0.4);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    border: none;
    color: #fff;
    font-weight: 600;
}

.btn-success:hover,
.btn-success:focus {
    box-shadow: 0 4px 15px rgba(67,233,123,0.4);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #f5576c 0%, #ff6a88 100%);
    border: none;
    color: #fff;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: #fff;
}

.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    color: #fff;
}

/* ===== Alert 美化 ===== */
.alert {
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.8;
    border: none;
}

/* 修复部分工具页内嵌 .container/.row/.col-md-12 导致 alert 左右间距不对称 */
.accordion .container,
.accordion-group .container,
.accordion .container-fluid,
.accordion-group .container-fluid {
    width: auto;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}
.accordion .row,
.accordion-group .row {
    margin-left: 0;
    margin-right: 0;
}
.accordion .col-md-12,
.accordion-group .col-md-12,
.accordion .col-sm-12,
.accordion-group .col-sm-12,
.accordion .col-xs-12,
.accordion-group .col-xs-12 {
    padding-left: 0;
    padding-right: 0;
}

/* 修复 alert 在 .accordion-group 内但不在 .panel 内时贴边的问题 */
.accordion > .alert,
.accordion-group > .alert {
    margin: 0 24px 24px;
}
.accordion > .alert:last-child,
.accordion-group > .alert:last-child {
    margin-bottom: 24px;
}

@media (max-width:768px) {
    .accordion > .alert,
    .accordion-group > .alert {
        margin-left: 16px;
        margin-right: 16px;
    }
}
@media (max-width:480px) {
    .accordion > .alert,
    .accordion-group > .alert {
        margin-left: 14px;
        margin-right: 14px;
    }
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert h4 {
    color: inherit;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    padding-left: 0;
}

/* ===== 表格美化 ===== */
.table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.table > thead > tr > th {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 12px 15px;
    font-size: 14px;
}

.table > tbody > tr > td {
    padding: 10px 15px;
    border-color: #f0f0f0;
    font-size: 14px;
}

.table > tbody > tr:hover {
    background: #f8fbff;
}

/* ===== Pre/Code 美化 ===== */
pre {
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    padding: 16px;
    overflow-x: auto;
}

pre code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    max-height: 2000px;
    overflow-y: auto;
    background: transparent;
}

/* ===== 间距工具类 ===== */
.mt5 { margin-top: 5px; }
.mt10 { margin-top: 10px; }
.mt20 { margin-top: 20px; }
.mb5 { margin-bottom: 5px; }
.mb10 { margin-bottom: 10px; }
.mb20 { margin-bottom: 20px; }
.ptb10 { padding-top: 10px !important; padding-bottom: 10px !important; }
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.mt-5 { margin-top: 5px; }
.mb-5 { margin-bottom: 5px; }

/* ===== 下拉菜单美化 ===== */
.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid #eee;
    padding: 8px 0;
}

.dropdown-menu > li > a {
    padding: 8px 20px;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
}

.dropdown-menu > li > a:hover {
    background: #f0f7ff;
    color: #4facfe;
}

/* 导航下拉菜单 - 由header.html内部JS/CSS控制，不设全局规则 */

/* ===== ICP 信息列表 ===== */
.IcpMainInfo li {
    border-bottom: 1px solid #f7f7f7;
    line-height: 40px;
    font-size: 14px;
    overflow: hidden;
}

.IcpMainInfo li span {
    width: 160px;
    display: inline-block;
    float: left;
    padding-right: 10px;
    text-align: right;
    color: #999;
}

.IcpMainInfo li p {
    display: inline-block;
    float: left;
    padding-left: 10px;
    color: #666;
    padding-top: 8px;
}

/* ===== 通用工具类 ===== */
.red { color: #ef4444; }
.f12 { font-size: 12px; }
.f14 { font-size: 14px; }
.f20 { font-size: 20px; }
.line-24 { line-height: 24px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.fl { float: left; }
.fr { float: right; }
.clearfix::after { content: ''; display: table; clear: both; }

/* 文本区域标签 */
.py-tran-result {
    text-align: left;
    overflow: auto;
    color: #000;
    font-size: 16px;
    line-height: 25px;
    max-height: 500px;
}

.py-tran-result em {
    display: inline-block;
    padding: 5px;
    float: left;
    border: 0;
    border-bottom: 1px dashed #f30;
    text-align: center;
    margin: 2px;
    height: 55px;
    line-height: 25px;
    font-family: verdana;
    font-style: normal;
}

.py-tran-result i {
    color: blue;
    font-style: normal;
}

/* 特殊样式 */
.li-two { width: 460px; }
.li-two li { width: 50%; float: left; }
.li-two li a { white-space: pre-wrap; }

.zifu-line35 {
    line-height: 35px;
    letter-spacing: 3px;
    word-break: break-all;
    white-space: normal;
}

.mathunit {
    color: #436eee;
    font-size: 12px;
    margin-left: 5px;
    margin-right: 5px;
}

/* ===== 回到顶部 ===== */
.gotop{position:fixed;display:none;background:#4ACA6D;padding:12px 8px;border-radius:3px;vertical-align:top;text-align:center;bottom:60px;right:18px;z-index:888}
.gotop .arrow{width:0;height:0;display:block;border-radius:3px;border-width:0 12px 15px;border-style:dashed dashed solid;border-color:transparent transparent #fff}
.gotop .arrow.lit{position:absolute;bottom:8px;right:8px;border-color:transparent transparent #4ACA6D}
.gotop:hover .arrow.lit{border-color:transparent transparent #4ACA6D}

/* Badge */
.badge { background-color: #4facfe; }

/* 隐藏元素 */
.ds-powered-by,
.ds-dialog-footer { display: none; }

/* 文件输入按钮 */
.fileinput-button {
    position: relative;
    overflow: hidden;
}

.fileinput-button input {
    position: absolute;
    top: 0; right: 0;
    margin: 0;
    opacity: 0;
    filter: alpha(opacity=0);
    transform: translate(-300px, 0) scale(4);
    font-size: 23px;
    direction: ltr;
    cursor: pointer;
}

/* ===== 首页样式 ===== */
.index-home { background-color: #f0f2f5; }

/* 搜索区域 */
.search-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    padding: 60px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(79,172,254,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0,242,254,0.08) 0%, transparent 50%);
}

.search-hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: 80px;
}

/* 波浪分隔 */
.hero-wave {
    position: relative;
    height: 50px;
    margin-top: -1px;
    background: #f0f2f5;
}

.hero-wave svg {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 50px;
}

/* 搜索框 */
.search-container {
    max-width: 680px;
    margin: 0 auto 25px;
}

.search-box-modern {
    position: relative;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 4px;
    display: flex;
    align-items: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.search-box-modern:focus-within {
    border-color: #4facfe;
    box-shadow: 0 8px 30px rgba(79,172,254,0.25);
}

.search-box-modern .search-icon-left {
    padding: 0 15px 0 20px;
    color: #aaa;
    font-size: 18px;
}

.search-box-modern input {
    flex: 1;
    height: 48px;
    border: none;
    font-size: 15px;
    background: transparent;
    outline: none;
    color: #333;
}

.search-box-modern input::placeholder { color: #bbb; }

.search-btn-modern {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    border: none;
    border-radius: 45px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 2px;
}

.search-btn-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79,172,254,0.4);
}

/* 搜索关键词 */
.search-keywords {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.search-keywords span {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.search-keywords a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 13px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s;
}

.search-keywords a:hover {
    background: rgba(79,172,254,0.3);
    border-color: #4facfe;
    color: #fff;
    text-decoration: none;
}

/* 快捷入口 */
.quick-access {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.quick-access-item {
    text-align: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.quick-access-item:hover {
    transform: translateY(-5px);
    text-decoration: none;
}

.quick-access-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 26px;
    transition: all 0.3s;
}

.quick-access-item:hover .quick-access-icon {
    background: rgba(79,172,254,0.3);
    border-color: #4facfe;
    box-shadow: 0 0 20px rgba(79,172,254,0.3);
}

.quick-access-text { font-size: 13px; opacity: 0.9; }

/* 统计信息 */
.hero-stats-bar {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.08);
    padding: 10px 30px;
    border-radius: 25px;
    margin-top: 25px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-stats-bar span {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.hero-stats-bar strong {
    color: #4facfe;
    font-size: 20px;
}

/* 分类标签 */
.category-tabs {
    background: #fff;
    padding: 18px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 60px;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

.category-tabs-inner {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.category-tab {
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    color: #666;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.category-tab:hover {
    background: #e8f4ff;
    color: #4facfe;
}

.category-tab.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(79,172,254,0.3);
}

/* 精选工具 */
.featured-section {
    padding: 50px 0 30px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 2px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.featured-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #eee;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: #4facfe;
    text-decoration: none;
}

.featured-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
}

.featured-name {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.featured-desc {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 全部工具网格 */
.all-tools-section {
    padding: 30px 0 60px;
}

.tools-grid-flat {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.tool-card-home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    font-size: 14px;
    color: #444;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.tool-card-home:hover {
    color: #4facfe;
    border-color: #4facfe;
    box-shadow: 0 6px 20px rgba(79,172,254,0.12);
    transform: translateY(-2px);
    text-decoration: none;
}

/* 无结果 */
.no-result {
    text-align: center;
    padding: 60px;
    color: #999;
    display: none;
    font-size: 16px;
}

/* ===== 响应式适配 ===== */
@media (max-width: 1024px) {
    .featured-grid { grid-template-columns: repeat(4, 1fr); }
    .tools-grid-flat { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .tool-panel { padding: 20px; border-radius: 12px; }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .tools-grid-flat { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-tabs-inner { gap: 6px; }
    .category-tab { padding: 8px 16px; font-size: 13px; }
    .search-hero { padding: 40px 0 30px; }
    .search-hero-content { padding-bottom: 60px; }
    .quick-access { gap: 20px; }
    .quick-access-icon { width: 55px; height: 55px; font-size: 22px; }
    .form-group .text-center .btn { margin-bottom: 3px; }
    .page-header-title { font-size: 22px; }
    .page-header-desc { font-size: 13px; }
}

@media (max-width: 480px) {
    .tools-grid-flat { grid-template-columns: 1fr; }
    .page-header-modern { padding: 20px 0; }
    .page-header-title { font-size: 20px; }
}

/* ===== H4 统一样式 ===== */
h4 {
    padding-left: 5px;
    color: #4facfe;
    margin-bottom: 10px;
    line-height: 30px;
    margin-top: 5px;
}

/* ===== 链接页样式 ===== */
.container .link-section a {
    color: #4facfe;
    text-decoration: none;
    transition: color 0.2s;
}

.container .link-section a:hover {
    color: #2d8cf0;
    text-decoration: underline;
}

/* ===== col10main 兼容 ===== */
.col10main {
    min-height: 500px;
    background-color: transparent;
    max-height: none;
    height: auto;
    padding-top: 5px;
}

/* ===== 隐藏旧的 navbar 相关 (layout.html旧版本残留) ===== */
.top-navbar { display: none; }
.breadcrumb-nav { display: none; }
.guide-section { display: none; }
.site-footer { display: none; }

/* ===== 首页 Hero 搜索区 ===== */
.home-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    padding: 70px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(79,172,254,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0,242,254,0.1) 0%, transparent 50%);
}

.home-hero .container { position: relative; z-index: 1; }

.home-hero-content {
    padding-bottom: 20px;
}

.home-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.home-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
}

/* 站长工具风格SEO查询 */
.chinaz-seo-box {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 15px;
}
.chinaz-seo-input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #3b82f6;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transition: all 0.3s;
}
.chinaz-seo-input-wrap:focus-within {
    border-color: #2563eb;
    box-shadow: 0 8px 30px rgba(59,130,246,0.25);
}
.chinaz-seo-input {
    flex: 1;
    height: 52px;
    border: none;
    padding: 0 20px;
    font-size: 16px;
    color: #333;
    outline: none;
    background: transparent;
}
.chinaz-seo-input::placeholder { color: #aaa; }
.chinaz-seo-btn {
    height: 52px;
    padding: 0 42px;
    border: none;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.chinaz-seo-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: -4px 0 15px rgba(59,130,246,0.3);
}
.chinaz-seo-tools {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.chinaz-seo-tool {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 14px;
    color: #fff;
    background: rgba(59,130,246,0.92);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-weight: 500;
}
.chinaz-seo-tool:hover {
    background: #fff;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}
.chinaz-seo-tool.more {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
}
.chinaz-seo-tool.more:hover {
    background: #fff;
    color: #2563eb;
    border-color: #fff;
}
.chinaz-seo-tool.active {
    background: #fff;
    color: #2563eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 搜索区域内的统计栏 */
.home-stats-hero {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    padding: 12px 8px;
    border-radius: 50px;
    margin-top: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

.home-stat-hero {
    text-align: center;
    padding: 0 22px;
}

.home-stat-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.home-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin-top: 3px;
    display: block;
}

.home-stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.15);
}

/* Hero 底部波浪 */
.hero-bottom-wave {
    position: relative;
    margin-top: 30px;
    line-height: 0;
}

.hero-bottom-wave svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* 分类标签栏 - 非通栏，与下方内容同容器 */
.home-cats-bar-compact {
    padding: 18px 20px;
    margin: 20px 0 10px;
    background: linear-gradient(135deg, #f8faff 0%, #f0f5ff 100%);
    border-radius: 14px;
    border: 1px solid #e0e7ff;
}

.home-cats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    justify-content: flex-start;
}

.home-cat {
    padding: 8px 20px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 500;
    color: #546070;
    background: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid #dde3ed;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.home-cat:hover {
    background: #e8f0fe;
    color: #1a73e8;
    text-decoration: none;
    border-color: #b4c6ef;
    box-shadow: 0 2px 8px rgba(59,130,246,0.12);
    transform: translateY(-1px);
}

.home-cat.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59,130,246,0.4);
    border-color: transparent;
    font-weight: 600;
    transform: translateY(-1px);
}

/* 热门工具 - 与分类栏拉开间距 */
.hot-tools-section { margin-top: 35px; margin-bottom: 10px; }

/* 分区标题 */
.home-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.home-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 2px;
}

/* 工具卡片网格 */
.home-tools-container {
    padding-bottom: 60px;
}

.home-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #4facfe;
    text-decoration: none;
}

.tool-card-icon {
    position: relative;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.tool-card-info { flex: 1; overflow: hidden; }

.tool-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-card-desc {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 工具卡片访问次数（图标右下角微徽章） */
.tool-card-views {
    position: absolute;
    bottom: -3px;
    right: -3px;
    font-size: 8px;
    font-weight: 500;
    color: #fff;
    background: rgba(0,0,0,0.35);
    padding: 0 3px;
    border-radius: 5px;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    white-space: nowrap;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* 首页响应式 */
@media (max-width: 1024px) {
    .home-tools-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .home-hero { padding: 50px 0 0; }
    .home-title { font-size: 26px; }
    .home-subtitle { font-size: 14px; }
    .chinaz-seo-input { height: 46px; font-size: 15px; }
    .chinaz-seo-btn { height: 46px; padding: 0 28px; font-size: 16px; }
    .chinaz-seo-tools { gap: 8px; margin-top: 16px; }
    .chinaz-seo-tool { padding: 6px 12px; font-size: 13px; }
    .home-stats-hero { padding: 10px 4px; gap: 0; }
    .home-stat-hero { padding: 0 14px; }
    .home-stat-num { font-size: 18px; }
    .home-stat-divider { height: 24px; }
    .hero-bottom-wave svg { height: 50px; }
    .home-cats-bar-compact { padding: 12px 14px; margin: 15px 0 8px; }
    .home-cats { gap: 6px; padding: 0; }
    .home-cat { padding: 5px 12px; font-size: 13px; border-radius: 16px; }
    .hot-tools-section { margin-top: 25px; }
    .home-tools-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 480px) {
    .home-hero { padding: 40px 0 0; }
    .home-title { font-size: 22px; }
    .home-tools-grid { grid-template-columns: repeat(2, 1fr); }
    .home-stats-hero {
        flex-wrap: wrap;
        border-radius: 20px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .home-stat-hero { flex: 0 0 48%; padding: 8px 14px; }
    .home-stat-divider { display: none; }
.tool-card {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	width: 100%;
        min-width: 0;
}
.tool-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
}

/* ===== SEO 综合查询页面 ===== */
.seo-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    padding: 50px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.seo-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(79,172,254,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0,242,254,0.1) 0%, transparent 50%);
}
.seo-hero .container { position: relative; z-index: 1; }
.seo-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.seo-hero-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 25px;
}
.seo-page-box { margin: 0 auto; }

.seo-result-container {
    padding: 30px 15px 60px;
    max-width: 1200px;
}

.seo-site-title {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 20px 25px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border-left: 4px solid #3b82f6;
}
.seo-site-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.seo-site-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}
.seo-site-domain {
    margin-left: auto;
    font-size: 14px;
    color: #888;
    background: #f5f7fa;
    padding: 4px 12px;
    border-radius: 20px;
}

.seo-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}
.seo-overview-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.seo-overview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.seo-overview-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}
.seo-overview-value {
    font-size: 22px;
    font-weight: 800;
    color: #3b82f6;
    word-break: break-all;
}

.seo-section {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
}
.seo-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafbfc;
}

.seo-info-grid {
    padding: 10px 20px;
}
.seo-info-row {
    display: flex;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}
.seo-info-row:last-child { border-bottom: none; }
.seo-info-label {
    width: 120px;
    flex-shrink: 0;
    font-size: 14px;
    color: #888;
    padding-top: 2px;
}
.seo-info-value {
    flex: 1;
    font-size: 14px;
    color: #333;
    word-break: break-all;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.seo-weight-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f0f7ff;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
}
.seo-weight-tag b {
    color: #3b82f6;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}
.seo-dns-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f7fa;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
}

.seo-engine-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 0;
}
.seo-engine-card {
    padding: 25px 15px;
    text-align: center;
    border-right: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}
.seo-engine-card:hover { background: #f8fbff; }
.seo-engine-card:nth-child(5n) { border-right: none; }
.seo-engine-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}
.seo-engine-index {
    font-size: 28px;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 8px;
}
.seo-engine-meta {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.seo-tdk-table {
    padding: 10px 20px;
}
.seo-tdk-row {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
}
.seo-tdk-row:last-child { border-bottom: none; }
.seo-tdk-label {
    width: 140px;
    flex-shrink: 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}
.seo-tdk-count {
    width: 130px;
    flex-shrink: 0;
    font-size: 13px;
    color: #3b82f6;
}
.seo-tdk-content {
    flex: 1;
    font-size: 14px;
    color: #333;
    word-break: break-all;
    line-height: 1.6;
}

.seo-keyword-table {
    padding: 0 20px 15px;
}
.seo-keyword-head,
.seo-keyword-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}
.seo-keyword-head {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    border-bottom: 1px solid #e8e8e8;
}
.seo-keyword-row {
    font-size: 14px;
    color: #333;
}
.seo-keyword-row span { word-break: break-all; }
.seo-keyword-empty {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}
.seo-query-link {
    color: #3b82f6;
    text-decoration: none;
}
.seo-query-link:hover { text-decoration: underline; }

.seo-whois-pre {
    margin: 15px 20px 25px;
    background: #fafbfc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 15px;
    font-size: 12px;
    line-height: 1.8;
    color: #555;
    max-height: 400px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.seo-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}
.seo-empty-icon {
    font-size: 56px;
    margin-bottom: 15px;
    opacity: 0.4;
}
.seo-empty-text {
    font-size: 16px;
}

/* SEO 页面响应式 */
@media (max-width: 1024px) {
    .seo-overview { grid-template-columns: repeat(2, 1fr); }
    .seo-engine-grid { grid-template-columns: repeat(3, 1fr); }
    .seo-engine-card:nth-child(5n) { border-right: 1px solid #f5f5f5; }
    .seo-engine-card:nth-child(3n) { border-right: none; }
}

@media (max-width: 768px) {
    .seo-hero { padding: 40px 0 30px; }
    .seo-hero-title { font-size: 24px; }
    .seo-site-title { flex-wrap: wrap; }
    .seo-site-domain { margin-left: 0; width: 100%; margin-top: 8px; }
    .seo-overview { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .seo-overview-card { padding: 15px; }
    .seo-overview-value { font-size: 18px; }
    .seo-info-row { flex-direction: column; gap: 6px; }
    .seo-info-label { width: 100%; padding-top: 0; }
    .seo-tdk-row { flex-direction: column; gap: 6px; }
    .seo-tdk-label, .seo-tdk-count { width: 100%; }
    .seo-engine-grid { grid-template-columns: repeat(2, 1fr); }
    .seo-engine-card:nth-child(3n) { border-right: 1px solid #f5f5f5; }
    .seo-engine-card:nth-child(2n) { border-right: none; }
    .seo-keyword-head, .seo-keyword-row {
        grid-template-columns: 2fr 1fr 1fr;
    }
    .seo-keyword-head span:nth-child(4),
    .seo-keyword-head span:nth-child(5),
    .seo-keyword-row span:nth-child(4),
    .seo-keyword-row span:nth-child(5) { display: none; }
    .chinaz-seo-tools { gap: 8px; }
    .chinaz-seo-tool { padding: 6px 12px; font-size: 13px; }
}

@media (max-width: 480px) {
    .seo-overview { grid-template-columns: 1fr; }
    .seo-engine-grid { grid-template-columns: 1fr; }
    .seo-engine-card { border-right: none; }
}
