/* 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 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    padding: 14px 18px;
    background: #f9fafb;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}
.result-card-body {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    overflow: visible;
    max-height: none;
}
.result-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
}
.result-table tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}
.result-table tr:hover {
    background-color: #f9fafb;
}
.result-table th {
    width: 140px;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    background-color: #f9fafb;
    color: #374151;
    border-right: 1px solid #f3f4f6;
    white-space: nowrap;
}
.result-table td {
    padding: 12px 16px;
    color: #1f2937;
    background: transparent;
    white-space: normal;
    word-break: break-all;
}
.domain-registered {
    color: #059669;
    font-weight: 600;
}
.domain-unregistered {
    color: #dc2626;
    font-weight: 600;
}
.expire-warning {
    color: #d97706;
    font-weight: 600;
    margin-left: 6px;
}
.error-msg {
    padding: 16px;
    background-color: #fef2f2;
    color: #dc2626;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

/* DNS 解析卡片专业样式 */
.dns-card-header {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    padding: 14px 18px;
    background: #f9fafb;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dns-card-body {
    padding: 1px;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 20px;
    color: #28a745;
    font-size: 14px;
}
.global-loading-container {
    text-align: center;
    padding: 30px;
    font-size: 16px;
    color: #28a745;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: none;
}
#queryProgressBar {
    width: 0%;
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}
#queryProgressText {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* 响应式适配（更精细） */
@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: 14px !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;
    }
}

/* 网页标题 & SEO 信息模块样式 */
#webInfoCardRow {
    width: 100% !important;
    margin: 20px 0 !important;
}
#webInfoCard {
    flex: 1 !important;
    width: 100% !important;
}
#webInfoInfo {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
}
/* ICP重查按钮样式 */
.retry-btn {
    margin-left:10px; 
    padding:2px 8px; 
    font-size:12px; 
    border:none; 
    border-radius:4px; 
    background:#ff9500; 
    color:#fff; 
    cursor:pointer;
}
.retry-btn:hover {
    background: #ff6700;
    transition: background 0.2s;
}
.retry-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}
/* 加载状态样式 */
.card-loading {
    color: #666;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}
/* 历史记录样式 - 最终版（带阴影框，和参考图2一致） */
.history-section {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f8f9fa; /* 和参考图一致的浅灰背景 */
    border-radius: 8px;  /* 和工具模块一致的圆角 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* 新增：和工具模块一致的阴影 */
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
    max-width: 1170px; /* 匹配页面容器宽度 */
    margin: 0 auto 20px auto !important;
    border: 1px solid #e5e9f0; /* 新增：和工具模块一致的浅边框 */
}
.history-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* 和参考图一致的间距 */
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
    box-sizing: border-box;
    width: 100%;
    align-content: flex-start;
}
.history-item {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-sizing: border-box;
    flex-shrink: 0;
    height: 32px;
    display: flex;
    align-items: center;
}
.history-item:hover {
    background: #e8f4f8;
    border-color: #28a745;
    color: #28a745;
}
.history-empty {
    color: #999;
    font-size: 13px;
    padding: 10px 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .history-section {
        max-width: 100% !important;
        padding: 15px 10px !important;
        margin: 0 auto 15px auto !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
    }
    .history-list {
        gap: 8px !important;
    }
}
/* 加载进度条样式 */
.global-loading-container {
  display: none;
  text-align: center;
  padding: 30px 0;
}
.progress-bar-wrapper {
  width: 80%;
  margin: 0 auto;
  height: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
}
#queryProgressBar {
  width: 0%;
  height: 100%;
  background-color: #4CAF50;
  transition: width 0.3s ease;
}
#queryProgressText {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}
/* 新增：工具导航独立容器样式（和页面原有卡片风格统一） */
.tool-nav-card {
    margin: 20px auto;
    padding: 15px;
    width: 100%;
    max-width: 1920px; /* 跟你主容器保持一致 */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    box-sizing: border-box; /* 必须加，防止宽度溢出 */
}
.tool-nav-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    border-bottom: 1px solid #eee; /* 加个下划线更美观 */
    padding-bottom: 8px;
}

/* 整合HTML内联的加载进度条样式 */
#globalLoadingContainer {
    display:none; 
    text-align: center; 
    padding: 30px 0;
}
/* 错误提示统一样式 */
.error-tip {
    background:#f8d7da; 
    color:#721c24; 
    padding:10px; 
    text-align:center;
    border-radius:4px;
}

/* 加载进度条容器样式 */
.progress-bar-wrapper {
    width: 80%;
    margin: 0 auto;
    height: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

/* 权重模块间距 */
.weight-module {
    margin-top:20px;
}

/* 初始隐藏的模块 */
#mainCardsRow, #cardsRow, #sslPingCardRow, #weightShouluCard, #webInfoCardRow {
    display: none;
}
#resultContent, .retry-btn {
    display: none;
}
#queryBtn:disabled {
    opacity:0.65;
    cursor:not-allowed;
}