/* style.css - 域名查询工具完整样式（更新版） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", Arial, sans-serif;
}

/* 核心样式：保留喜欢的布局，仅补充细节 */
body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 0;
    min-width: unset !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

/* 导航栏 */
.navbar {
    background-color: #28a745;
    color: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}
.navbar-container {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-logo {
    font-size: 20px;
    font-weight: 700;
}
.navbar-menu {
    display: flex;
    gap: 30px;
}
.navbar-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}
.navbar-menu a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #ccc;
    padding: 20px 15px;
    margin-top: 40px;
}
.footer-copyright {
    text-align: center;
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    background: unset !important;
    border-radius: unset !important;
    box-shadow: unset !important;
    margin-top: unset !important;
    margin-bottom: unset !important;
}

/* 页面标题优化 */
.doc-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #28a745;
    padding-bottom: 10px;
    text-align: center;
    padding: unset !important;
    border-bottom: 2px solid #28a745 !important;
    margin-bottom: 30px !important;
}
.doc-header h1 {
    font-size:24px; 
    color:#28a745; 
    font-weight:600;
    text-align: center;
    margin-bottom: unset !important;
    font-size: 24px !important;
    color: #28a745 !important;
}
.doc-header p {
    display: none;
}

/* 模块区块 */
.doc-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    margin-bottom: 30px !important;
    padding: 30px !important;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}
.doc-section h2 {
    font-size: 20px;
    color: #28a745;
    margin-bottom: 20px;
    font-weight: 600;
    display: none;
    padding-left: unset !important;
    border-left: unset !important;
}
.doc-section p {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

/* 表单样式优化 */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-size: 15px;
    margin-bottom: 8px !important;
    color: #444 !important;
    font-size: 15px !important;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 14px !important;
}
.form-control:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(46, 134, 222, 0.1);
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(46, 134, 222, 0.1) !important;
    transform: unset !important;
}

/* 按钮样式优化 */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block !important;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
}
.btn:not(.btn-reset) {
    background-color: #28a745;
    color: #fff;
    background-color: #28a745 !important;
    color: #fff !important;
}
.btn:not(.btn-reset):hover {
    background-color: #1e76d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 134, 222, 0.2);
    background-color: #1e76d9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(46, 134, 222, 0.2) !important;
}
.btn-reset {
    background-color: #f0f2f5;
    color: #666;
    background-color: #f0f2f5 !important;
    color: #666 !important;
    margin-left: unset !important;
}
.btn-reset:hover {
    background-color: #e0e2e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(224, 226, 229, 0.3);
    background-color: #e0e2e5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(224, 226, 229, 0.3) !important;
}

/* 提示框样式 */
.note {
    background-color: #e8f4fd;
    padding: 12px 15px;
    border-left: 4px solid #28a745;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    background-color: #e8f4fd !important;
    border-left: 4px solid #28a745 !important;
    padding: 12px 15px !important;
    margin: 15px 0 !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    color: #555 !important;
    line-height: 1.7 !important;
}

/* 权重收录模块样式优化 */
.weight-shoulu-container {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    margin-bottom: 30px !important;
    padding: 25px !important;
    background: #fff !important;
    border-radius: 8px !important;
    border: unset !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}
.ws-module-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px !important;
    color: #333 !important;
    margin: 0 0 15px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #eee !important;
}
.ws-tip {
    margin-top: 15px;
    font-size: 12px;
    color: #999;
    text-align: center;
    font-size: 12px !important;
    color: #999 !important;
    text-align: center !important;
    margin-top: 15px !important;
}
/* 收录模块样式 */
.shoulu-module {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e0e0e0;
    margin-bottom: 15px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px dashed #e0e0e0 !important;
}
.shoulu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}
.shoulu-item {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e8f4fd;
}
.shoulu-item-icon {
    font-size: 20px;
    margin-bottom: 4px;
    display: block;
}
.shoulu-item-name {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}
.shoulu-item-value {
    font-size: 14px;
    font-weight: 600;
    color: #00b42a;
    text-decoration: none;
}
.shoulu-item-none {
    color: #f53f3f;
    font-weight: normal;
}
/* 权重模块样式 */
.weight-module {}
.weight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.weight-item {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #f0f8fb;
}
.weight-item-title {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    text-align: center;
}
.weight-item-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.weight-item-value {
    font-size: 16px;
    font-weight: 600;
    color: #1b79d8;
}
.weight-item-ip {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    text-align: center;
    display: block;
}
.qz-img-small {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

/* 卡片布局优化 */
.info-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    gap: 20px !important;
    margin: 20px 0 !important;
    align-items: stretch !important;
}
.side-card {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    min-width: 300px !important;
    background: #fff !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    border-left: unset !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: unset !important;
}
.side-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.side-card h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 15px 0 !important;
    font-size: 16px !important;
    color: #333 !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #eee !important;
    gap: 8px !important;
}
.card-content {
    font-size: 14px;
    line-height: 1.8;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px 15px !important;
}
.card-item {
    font-size: 14px;
    color: #444;
}
.card-item .label {
    font-weight: 600;
    color: #333;
    margin-right: 6px;
}
.card-none {
    color: #999;
    font-size: 14px;
    padding: 6px 0;
}
/* 拦截状态样式 */
.status-normal { color: #28a745; font-weight: 600; }
.status-blocked { color: #dc2626; font-weight: 600; }
/* SSL证书状态样式 */
.ssl-valid { color: #28a745; font-weight: 600; }
.ssl-expired { color: #dc2626; font-weight: 600; }
.ssl-expiring { color: #ff9800; font-weight: 600; }
/* SSL证书提示样式 */
.ssl-card .card-none {
    padding: 10px 0;
    text-align: center;
    color: #666;
    font-size: 14px;
}
/* 证书状态行高亮 */
.card-item .ssl-valid::before { content: "✅ "; }
.card-item .ssl-expiring::before { content: "⚠️ "; }
.card-item .ssl-expired::before { content: "❌ "; }

/* 状态卡片 */
.status-card {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.8;
    gap: 15px !important;
    margin: 15px 0 !important;
}
.status-item {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    flex: none !important;
    width: 100% !important;
}
.status-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.status-item.success {
    border-left-color: #67c23a;
}
.status-item .title {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}
.status-item .value {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}
.status-time {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 文字说明区域样式优化 */
.info-reference-style {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    background: #fff !important;
    border-left: unset !important;
    padding: 25px !important;
    margin: 25px 0 !important;
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}
.info-reference-style .info-icon {
    font-size: 16px;
    font-weight: 600;
    color: #28a745;
    display: block;
    margin-bottom: 10px;
    color: #28a745 !important;
    font-weight: 600 !important;
    margin-right: unset !important;
    display: block !important;
    margin-bottom: 10px !important;
}
.info-reference-style p {
    margin-bottom: 10px;
    margin: 8px 0 0 0 !important;
    text-indent: 0 !important;
}

/* 结果卡片样式 */
.result-card-header {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0 15px 0 !important;
    background: unset !important;
    color: #2c3e50 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    margin-bottom: 10px !important;
    justify-content: space-between !important;
}
.icon-result {
    margin-right: 8px;
    font-size: 18px;
}
.copy-btn {
    background: #fff;
    color: #28a745;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.copy-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}
.result-card-body {
    font-size: 14px;
    line-height: 1.8;
    font-family: "Consolas", "Monaco", monospace;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
    background-color: #fff;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #333 !important;
    white-space: pre-wrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}
/* 滚动条美化 */
.result-card-body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.result-card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.result-card-body::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 4px;
}
.result-card-body::-webkit-scrollbar-thumb:hover {
    background: #218838;
}

/* WHOIS表格样式 */
.result-table { 
    width:100%; 
    border-collapse:collapse; 
    margin:0 0 0 0 !important;
    font-size:14px; 
    line-height:1.3; 
    table-layout: auto !important;
}
.result-table tr { 
    border-bottom:1px solid #f0f0f0; 
}
.result-table tr:last-child { 
    border-bottom:none; 
}
.result-table th {
    min-width: 100px !important;
    width: auto !important;
    padding:4px 15px; 
    text-align:left; 
    font-weight:600;
    background:#fafbfc; 
    color:#37352f; 
    border-right:1px solid #f0f0f0;
}
.result-table td { 
    padding:4px 15px; 
    color:#37352f; 
    background:#fff; 
    white-space: nowrap;
}
.result-table tr:hover th, 
.result-table tr:hover td { 
    background:#f8f9fa; 
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 20px;
    color: #28a745;
    font-size: 14px;
}

/* 响应式适配（更精细） */
@media (max-width: 768px) {
    .container {
        padding: 15px 10px !important;
        max-width: 100% !important;
        margin: 10px auto !important;
        border-radius: 8px !important;
    }
    .doc-section {
        padding: 20px 15px !important;
    }
    .btn {
        width: 100% !important;
        padding: 12px 0 !important;
        margin-bottom: 10px !important;
    }
    .btn-reset {
        margin-left: 0 !important;
    }
    .info-cards-row {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }
    .side-card {
        min-width: 100% !important;
        padding: 15px !important;
    }
    .weight-shoulu-container {
        padding: 20px 15px !important;
    }
    .info-reference-style {
        padding: 20px 15px !important;
        font-size: 13px !important;
    }
    /* 导航栏移动端适配 */
    .navbar {
        padding: 10px 15px !important;
    }
    .navbar-container {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }
    .navbar-menu {
        gap: 10px !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }
    .navbar-menu a {
        font-size: 12px !important;
    }
    /* 状态卡片移动端 */
    .status-card {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .status-item {
        min-width: unset !important;
        padding: 10px !important;
    }
    /* 结果卡片头部移动端 */
    .result-card-header {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: flex-start !important;
    }
    .copy-btn {
        width: 100% !important;
        margin-top: 8px !important;
    }
    /* 权重收录模块移动端 */
    .shoulu-grid, .weight-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .global-loading-container {
        padding: 20px !important;
    }
    /* 移动端表格适配 */
    .result-card-body {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px 5px !important;
    }
    .result-table th, .result-table td {
        padding: 4px 8px !important;
        font-size: 13px !important;
    }
    /* 卡片内容移动端单列 */
    .card-content { 
        grid-template-columns: 1fr !important; 
    }
    /* 移动端取消强制高度 */
    #whoisResultCard, #statusCardWrapper {
        min-height: unset !important;
        height: auto !important;
        width: 100% !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    #resultContent, #statusCard {
        height: auto !important;
        max-height: unset !important;
        width: 100% !important;
    }
    #statusCard {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        height: auto !important;
        justify-content: flex-start !important;
    }
}
