﻿body {
    background: #f7f9fc;
}

.type-hero {
    background: linear-gradient(135deg, #0b2b6b 0%, #1a4a8a 100%);
    color: #fff;
    padding: 90px 0 50px;
}

    .type-hero .hero-title {
        font-size: 36px;
        font-weight: 800;
        letter-spacing: .5px;
        margin: 0 0 12px;
        text-align: center;
    }

    .type-hero .hero-sub {
        opacity: .92;
        margin: 0;
        text-align: center;
        font-size: 16px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

.type-section {
    padding: 30px 0 50px;
}

.type-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.main-search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.main-search-input {
    flex: 1;
}

    .main-search-input .el-input__inner {
        height: 50px;
        font-size: 16px;
        padding: 0 20px;
    }

.search-btn {
    height: 50px;
    padding: 0 30px;
    font-size: 16px;
}

.common-tlds {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.common-tlds-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.common-tld-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
}

.content-layout {
    display: flex;
    gap: 20px;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    position: sticky;
    top: 80px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

    .category-item:hover {
        background: #f8f9fa;
        margin: 0 -10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .category-item.active {
        background: #e6f2ff;
        margin: 0 -10px;
        padding-left: 10px;
        padding-right: 10px;
    }

.category-radio {
    margin-right: 10px;
}

.category-name {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.category-item.active .category-name {
    color: #0b2b6b;
    font-weight: 500;
}

.category-count {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

.category-item.active .category-count {
    color: #0b2b6b;
}

.main-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tld-table {
    width: 100%;
    border-collapse: collapse;
}

    .tld-table thead {
        background: #f8f9fa;
    }

    .tld-table th {
        padding: 15px;
        text-align: left;
        font-weight: 600;
        color: #333;
        font-size: 14px;
        border-bottom: 2px solid #e0e0e0;
    }

        .tld-table th:nth-child(1) {
            width: 15%;
        }

        .tld-table th:nth-child(2) {
            width: 65%;
        }

        .tld-table th:nth-child(3) {
            width: 20%;
        }

    .tld-table td {
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
        color: #666;
        font-size: 14px;
    }

    .tld-table tbody tr:hover {
        background: #f8f9fa;
    }

.tld-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.tld-meaning {
    color: #666;
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere; /* 现代浏览器：任意位置断行，防止长串撑破布局 */
    word-break: break-word;  /* 兼容 */
}

.tld-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

    .tld-status.available {
        background: #f6ffed;
        color: #52c41a;
    }

    .tld-status.unavailable {
        background: #fff1f0;
        color: #ff4d4f;
    }

.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

    .empty-state i {
        font-size: 48px;
        margin-bottom: 20px;
        color: #ddd;
    }

    .empty-state p {
        font-size: 16px;
        margin: 0;
    }

.selected-summary {
    background: white;
    border-radius: 8px;
    padding: 20px 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    position: sticky;
    top: 80px;
    z-index: 10;
}

.summary-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.selected-tlds {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #e6f2ff;
    color: #0b2b6b;
    border-radius: 4px;
    font-size: 13px;
}

    .selected-tag .close-btn {
        cursor: pointer;
        color: #0b2b6b;
        font-size: 14px;
    }

        .selected-tag .close-btn:hover {
            color: #ff4d4f;
        }

.summary-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.compare-btn {
    background: #0b2b6b;
    color: white;
}

    .compare-btn:hover {
        background: #0d3a7a;
    }

    .compare-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

.clear-btn {
    background: white;
    color: #666;
    border: 1px solid #e0e0e0;
}

    .clear-btn:hover {
        background: #f0f0f0;
    }

@media (max-width: 992px) {
    .content-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
    }
}
