/* 135GEO · 查询页样式 */

.page-search {
    background: white;
}

.search-page-banner {
    background: url(../img/search-bg.png) no-repeat center top white;
    padding-bottom: 8px;
}

.search-hero {
    padding: 48px 0 24px;
    text-align: center;
    background: none;
}

.search-hero__title {
    font-size: 36px;
    font-weight: 800;
    color: var(--geo-text);
    margin-bottom: 12px;
}

.search-hero__desc {
    font-size: 15px;
    color: var(--geo-text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .search-hero {
        padding: 28px 0 16px;
    }

    .search-hero__title {
        font-size: 26px;
    }

    .search-hero__desc {
        font-size: 14px;
        padding: 0 8px;
    }
}

.search-form-section .container {
    max-width: 1200px;
}

.search-form-card {
    width: 100%;
    max-width: none;
    margin: 0 auto 32px;
    background: #fff;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .search-form-card {
        padding: 20px 16px;
        margin: 0 auto 24px;
        border-radius: 10px;
    }
}

.search-step {
    margin-bottom: 28px;
}

.search-step__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.search-step__label {
    font-size: 15px;
    font-weight: 600;
    color: var(--geo-text);
}

.search-step__step {
    color: var(--geo-orange);
}

.search-step__reset {
    display: none;
    font-size: 13px;
    color: var(--geo-text-light);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.search-step__reset.is-visible {
    display: inline-block;
}

.search-step__reset:hover {
    color: var(--geo-orange);
}

@media (max-width: 768px) {
    .search-step {
        margin-bottom: 22px;
    }

    .search-step__label {
        font-size: 14px;
    }
}

.platform-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.platform-btn {
    flex: none;
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--geo-border-light);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--geo-text);
    transition: border-color 0.2s, background-color 0.2s;
}

.platform-btn:hover:not(:disabled) {
    background: var(--geo-orange-light);
}

.platform-btn.is-selected {
    border-color: var(--geo-orange);
    background: #fff;
    box-shadow: none;
}

.platform-btn:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.platform-btn__icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .platform-grid {
        gap: 8px;
    }

    .platform-btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    .platform-btn__icon {
        width: 24px;
        height: 24px;
    }
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--geo-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--geo-text);
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--geo-orange);
}

.search-input::placeholder {
    color: var(--geo-text-light);
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--geo-border);
    border-radius: 8px;
    min-height: 48px;
    align-items: center;
    cursor: text;
}

.search-tags:focus-within {
    border-color: var(--geo-orange);
}

.search-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--geo-orange-light);
    color: var(--geo-orange);
    border-radius: 4px;
    font-size: 13px;
}

.search-tag__remove {
    background: none;
    border: none;
    color: var(--geo-orange);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

.search-tags__input {
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    flex: 1;
    min-width: 120px;
    padding: 4px 0;
}

@media (max-width: 768px) {
    .search-input,
    .search-tags__input {
        font-size: 14px;
    }
}

.search-hint {
    font-size: 12px;
    color: var(--geo-text-light);
    margin-top: 8px;
}

.search-hint__mark {
    color: #ef4444;
}

.search-test-mode {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--geo-border);
}

.search-test-mode__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.search-test-mode__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.search-test-mode__switch {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 22px;
    background: #ddd;
    border-radius: 11px;
    transition: background-color 0.2s;
}

.search-test-mode__switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.search-test-mode__input:checked + .search-test-mode__switch {
    background: var(--geo-orange);
}

.search-test-mode__input:checked + .search-test-mode__switch::after {
    transform: translateX(18px);
}

.search-test-mode__input:focus-visible + .search-test-mode__switch {
    outline: 2px solid var(--geo-orange);
    outline-offset: 2px;
}

.search-test-mode__text {
    font-size: 13px;
    color: var(--geo-text-secondary);
}

.search-test-mode__input:checked ~ .search-test-mode__text {
    color: var(--geo-orange);
}

.search-results-card {
    width: 100%;
    max-width: none;
    margin: 0 auto 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 28px 32px;
    display: none;
}

.search-results-card.is-visible {
    display: block;
}

.search-results__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.search-results__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--geo-text);
}

.search-results__title-bar {
    width: 4px;
    height: 20px;
    background: var(--geo-orange);
    border-radius: 2px;
}

.search-results__history {
    font-size: 14px;
    color: var(--geo-text-secondary);
    text-decoration: none;
}

@media (max-width: 768px) {
    .search-results-card {
        padding: 18px 16px;
        margin: 0 auto 24px;
        border-radius: 10px;
    }

    .search-results__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.search-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.search-stat {
    background: var(--geo-bg-gray);
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
}

.search-stat__num {
    font-size: 28px;
    font-weight: 800;
    color: var(--geo-orange);
    margin-bottom: 4px;
}

.search-stat__label {
    font-size: 13px;
    color: var(--geo-text-secondary);
}

@media (max-width: 1024px) {
    .search-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.search-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.search-table-toolbar select {
    padding: 8px 12px;
    border: 1px solid var(--geo-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--geo-text);
    background: #fff;
}

.search-table-toolbar__meta {
    font-size: 13px;
    color: var(--geo-text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--geo-border);
    border-radius: 8px;
}

.search-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    font-size: 14px;
}

.search-table thead th {
    background: #eef3f8;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--geo-text-secondary);
    white-space: nowrap;
}

.search-table tbody td {
    padding: 16px;
    border-top: 1px solid var(--geo-border);
    color: var(--geo-text);
    vertical-align: middle;
}

.search-table .platform-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-table .platform-cell__icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.search-table .platform-cell__name {
    color: var(--geo-text);
    font-weight: 500;
}

.result-fail {
    color: var(--geo-text-secondary);
}

.result-fail__mark {
    color: #ef4444;
    font-weight: 600;
}

.exposure-muted {
    color: var(--geo-text-secondary);
}

.status-fail {
    color: #ef4444;
}

.status-success {
    color: #22c55e;
}

.status-pending {
    color: var(--geo-orange);
}

.search-table .link-action {
    color: var(--geo-orange);
    text-decoration: none;
    font-size: 13px;
}

.search-table .link-action:hover {
    text-decoration: underline;
}

.btn-redetect {
    padding: 6px 16px;
    border: 1px solid var(--geo-orange);
    border-radius: 6px;
    background: #fff;
    color: var(--geo-orange);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.btn-redetect:hover {
    background: var(--geo-orange-light);
}

.btn-export {
    padding: 8px 16px;
    background: var(--geo-orange);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

@media (max-width: 768px) {
    .search-results__table-wrap,
    .search-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }
}

/* ---------- 免费AI搜索诊断报告 ---------- */
.diagnose-section {
    padding: 48px 0 32px;
    background: white;
}

.diagnose-header {
    text-align: center;
    margin-bottom: 36px;
}

.diagnose-header__title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 40px;
    font-weight: 600;
    color: var(--geo-text);
    line-height: 1.4;
}

.diagnose-header__badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px 4px 999px 999px;
    background: var(--geo-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    vertical-align: middle;
    margin-top: -28px;
}

.diagnose-header__desc {
    margin: 0 auto;
    max-width: 760px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--geo-text-muted);
}

@media (max-width: 768px) {
    .diagnose-section {
        padding: 36px 0 24px;
    }

    .diagnose-header {
        margin-bottom: 28px;
    }

    .diagnose-header__title {
        font-size: 24px;
    }

    .diagnose-header__badge {
        margin-top: -8px;
        border-radius: 999px;
    }

    .diagnose-header__desc {
        font-size: 13px;
        padding: 0 8px;
    }
}

.diagnose-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .diagnose-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .diagnose-layout {
        gap: 16px;
    }
}

.diagnose-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.diagnose-point {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 24px 26px;
    background: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* 第 1 行：橙底序号图标 + 标题 */
.diagnose-point__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.diagnose-point__num {
    flex: none;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--geo-orange);
    font-size: 26px;
    font-family: YouSheBiaoTiHei-Regular;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

.diagnose-point__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
}

/* 第 2 行：说明正文，字号明显更小 */
.diagnose-point__desc {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #888;
}

@media (max-width: 768px) {
    .diagnose-point {
        padding: 18px 16px;
        border-radius: 12px;
        gap: 10px;
    }

    .diagnose-point__head {
        gap: 10px;
    }

    .diagnose-point__num {
        width: 34px;
        height: 34px;
        font-size: 13px;
        border-radius: 5px;
    }

    .diagnose-point__title {
        font-size: 16px;
    }

    .diagnose-point__desc {
        font-size: 13px;
    }
}

.diagnose-panel {
    display: flex;
    flex-direction: column;
    padding: 28px 28px 24px;
    background: #fff9f3;
    border: 1px solid #f3e2d4;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.06);
    box-sizing: border-box;
}

.diagnose-panel__title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--geo-text-gray);
    line-height: 1.4;
}

.diagnose-panel__star {
    margin-right: 2px;
    color: #e11d48;
}

.diagnose-panel__desc {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--geo-text-muted);
}

.diagnose-panel__body {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 768px) {
    .diagnose-panel {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .diagnose-panel__title {
        font-size: 15px;
    }

    .diagnose-panel__body {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 16px;
    }
}

.diagnose-qr {
    text-align: center;
    margin-top: 60px;
}

.diagnose-qr__frame {
    width: 136px;
    height: 136px;
    margin: 0 auto 10px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--geo-orange);
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.diagnose-qr__frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.diagnose-qr__label {
    margin: 0;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .diagnose-qr__frame {
        width: 128px;
        height: 128px;
        border-radius: 10px;
    }
}

.diagnose-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.diagnose-form__input,
.diagnose-form__textarea {
    width: 100%;
    box-sizing: border-box;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    color: var(--geo-text);
    outline: none;
    transition: border-color 0.2s;
}

.diagnose-form__input::placeholder,
.diagnose-form__textarea::placeholder {
    color: #bbb;
}

.diagnose-form__input:focus,
.diagnose-form__textarea:focus {
    border-color: var(--geo-orange);
}

.diagnose-form__textarea {
    height: auto;
    min-height: 84px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.6;
}

.diagnose-form .btn-geo-block {
    margin-top: 2px;
    width: 100%;
    height: 44px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .diagnose-form {
        width: 100%;
    }

    .diagnose-form .btn-geo-block {
        border-radius: 22px;
        font-size: 14px;
    }
}

.search-footer {
    text-align: center;
    padding: 48px 0 64px;
    background: white;
}

.search-footer__qr {
    width: 168px;
    height: 168px;
    margin: 0 auto 20px;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.search-footer__qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.search-footer__contact {
    font-size: 20px;
    font-weight: 700;
    color: var(--geo-text);
    margin: 0 0 12px;
    line-height: 1.5;
}

.search-footer__slogan {
    font-size: 20px;
    font-weight: 700;
    color: var(--geo-text);
    margin: 0;
    line-height: 1.7;
}

.search-footer__slogan .text-orange {
    color: var(--geo-orange);
}

@media (max-width: 768px) {
    .search-footer {
        padding: 36px 16px 48px;
    }

    .search-footer__qr {
        width: 148px;
        height: 148px;
    }
}
