* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background: #f3f5f7;
    overflow-x: hidden;
}

body {
    color: #333;
    background: #f3f5f7;
    font: 14px/1.7 Arial, "Microsoft YaHei", sans-serif;
    overflow-x: hidden;
}

a {
    color: #17659b;
    text-decoration: none;
}

a:hover {
    color: #d94b24;
    text-decoration: underline;
}

.container {
    width: 1180px;
    max-width: calc(100% - 24px);
    margin: 14px auto;
}

.header {
    position: relative;
    margin-bottom: 12px;
    padding: 16px 20px;
    color: #333;
    text-align: left;
    background: #fff;
    border: 1px solid #c9d8e5;
    border-top: 3px solid #2775a9;
}

.header h1 {
    margin: 0 0 4px;
    color: #1d5f8b;
    font-size: 22px;
    font-weight: 700;
}

.header p,
.header-subtitle {
    color: #77838d;
    font-size: 13px;
}

.header .back-link {
    position: absolute;
    top: 19px;
    right: 20px;
    padding: 4px 12px;
    color: #17659b;
    background: #f6fafc;
    border: 1px solid #bfd1df;
}

.breadcrumb {
    margin-bottom: 8px;
    color: #777;
    background: transparent;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 8px;
    color: #aaa;
}

.query-form,
.features,
.recent-queries,
.query-history,
.re-query,
.page-summary,
.result-content {
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #c9d8e5;
}

.query-form {
    padding: 28px 110px 22px;
}

.input-group {
    display: flex;
    width: 100%;
}

.input-group input {
    flex: 1;
    height: 42px;
    padding: 0 12px;
    color: #333;
    background: #fff;
    border: 1px solid #9db7ca;
    border-right: 0;
    border-radius: 0;
    font-size: 15px;
    outline: none;
}

.input-group input:focus {
    border-color: #2775a9;
    box-shadow: inset 0 0 0 1px #2775a9;
}

.input-group button {
    width: 118px;
    height: 42px;
    color: #fff;
    background: #2775a9;
    border: 1px solid #1e6799;
    border-radius: 0;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.input-group button:hover {
    background: #1d6799;
}

.input-group button:disabled {
    cursor: wait;
    background: #7597af;
}

.tips {
    margin-top: 12px;
    color: #777;
    font-size: 12px;
}

.error-message {
    margin-bottom: 12px;
    padding: 8px 12px;
    color: #a5281c;
    background: #fff5f2;
    border: 1px solid #efc2ba;
}

.features h2,
.recent-queries h2,
.query-history h2,
.page-summary h2 {
    height: 38px;
    padding: 7px 12px;
    color: #1d5f8b;
    background: #edf4f8;
    border-bottom: 1px solid #c9d8e5;
    font-size: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.feature-item {
    min-height: 92px;
    padding: 14px 16px;
    border-right: 1px solid #dce5eb;
}

.feature-item:last-child {
    border-right: 0;
}

.feature-item h3 {
    margin-bottom: 4px;
    color: #246b99;
    font-size: 15px;
}

.feature-item p {
    color: #777;
    font-size: 13px;
}

.query-list,
.history-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 10px 12px;
    gap: 0;
}

.query-item,
.history-item {
    min-width: 0;
    padding: 6px 10px;
    color: #3e596b;
    border-bottom: 1px dotted #cbd5dc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.query-item::before,
.history-item::before {
    content: "·";
    margin-right: 5px;
    color: #e36d2f;
}

.query-item .domain,
.history-item .domain {
    font-weight: 400;
}

.result-content {
    overflow: hidden;
}

.info-section {
    padding: 0 12px 14px;
    border-bottom: 1px solid #c9d8e5;
}

.info-section:last-child {
    border-bottom: 0;
}

.info-section h2 {
    margin: 0 -12px 12px;
    padding: 7px 12px;
    color: #1d5f8b;
    background: #edf4f8;
    border-bottom: 1px solid #c9d8e5;
    font-size: 16px;
}

.page-info-table,
.keyword-index-table {
    width: 100%;
    background: #fff;
    border: 1px solid #d3dde4;
}

.table-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) 130px;
    border-bottom: 1px solid #dce4e9;
}

.table-row:last-child {
    border-bottom: 0;
}

.table-cell {
    min-width: 0;
    padding: 9px 12px;
    border-right: 1px solid #dce4e9;
    word-break: break-word;
}

.table-cell:last-child {
    border-right: 0;
}

.label-cell {
    color: #425b6c;
    background: #f7f9fa;
    font-weight: 700;
}

.limit-cell {
    color: #999;
    text-align: center;
    font-size: 12px;
}

.table-header,
.keyword-index-table .table-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.table-header {
    color: #314d60;
    background: #edf4f8;
    border-bottom: 1px solid #c9d8e5;
}

.header-cell,
.data-cell {
    padding: 9px 5px;
    text-align: center;
    border-right: 1px solid #dce4e9;
}

.header-cell:last-child,
.data-cell:last-child {
    border-right: 0;
}

.data-cell {
    color: #333;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #dce4e9;
    border-left: 1px solid #dce4e9;
}

.info-item {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    min-height: 40px;
    border-right: 1px solid #dce4e9;
    border-bottom: 1px solid #dce4e9;
}

.info-item label,
.info-item span {
    min-width: 0;
    padding: 8px 10px;
    word-break: break-word;
}

.info-item label {
    color: #526979;
    background: #f7f9fa;
    border-right: 1px solid #dce4e9;
    font-weight: 700;
}

.highlight {
    color: #e24b25;
    font-weight: 700;
}

.weight-display {
    display: flex;
    align-items: center;
}

.weight-display img {
    max-height: 22px;
    max-width: 100%;
}

.seo-info {
    border-top: 1px solid #dce4e9;
    border-left: 1px solid #dce4e9;
}

.seo-info .info-item {
    grid-template-columns: 125px minmax(0, 1fr);
}

.seo-info .info-item span {
    background: #fff;
}

.re-query {
    padding: 15px 18px;
}

.re-query::before {
    display: block;
    margin-bottom: 8px;
    color: #1d5f8b;
    content: "查询其他网站";
    font-weight: 700;
}

.re-query .input-group {
    max-width: 720px;
}

.summary-content {
    padding: 12px 16px;
    color: #666;
}

.summary-content ul {
    display: flex;
    flex-wrap: wrap;
    margin: 8px 0;
    list-style: none;
}

.summary-content li {
    width: 25%;
    padding: 3px 0;
}

.footer {
    width: 1180px;
    max-width: calc(100% - 24px);
    margin: 14px auto 0;
    color: #77838d;
    background: #fff;
    border-top: 2px solid #2775a9;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
    padding: 16px 20px;
    border: 1px solid #d5dfe6;
    border-top: 0;
}

.footer-section h3 {
    margin-bottom: 5px;
    color: #425b6c;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-bottom,
.footer > p {
    padding: 9px 15px;
    text-align: center;
    background: #edf2f5;
    border: 1px solid #d5dfe6;
    border-top: 0;
    font-size: 12px;
}

@media (max-width: 760px) {
    .container {
        max-width: calc(100% - 12px);
        margin: 6px auto;
    }

    .header {
        padding: 12px;
    }

    .header h1 {
        padding-right: 0;
        font-size: 18px;
    }

    .header .back-link {
        position: static;
        display: inline-block;
        margin-top: 8px;
    }

    .query-form {
        padding: 18px 12px;
    }

    .input-group input {
        min-width: 0;
    }

    .input-group button {
        width: 86px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item {
        min-width: 0;
        border-bottom: 1px solid #dce5eb;
    }

    .query-list,
    .history-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .page-info-table {
        overflow: hidden;
    }

    .table-row {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .limit-cell {
        display: none;
    }

    .keyword-index-table {
        overflow-x: auto;
    }

    .table-header,
    .keyword-index-table .table-row {
        min-width: 720px;
        grid-template-columns: repeat(7, 1fr);
    }

    .summary-content li {
        width: 50%;
    }

    .footer {
        max-width: calc(100% - 12px);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
