* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #1abc9c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #e9ecef;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

.root-domain-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.root-domain-link:hover {
    color: var(--secondary-color);
}

.root-domain-external-link {
    margin-left: 8px;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--transition);
}

.root-domain-link:hover .root-domain-external-link {
    opacity: 1;
    transform: translateX(3px);
}

.section-title a {
    color: inherit;
    text-decoration: none;
}

.section-title a:hover {
    color: var(--secondary-color);
}

body {
    background-color: #f5f7fa;
    color: var(--dark-color);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 40px 0 30px;
    margin-bottom: 30px;
}

h1 {
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

h1 span {
    font-weight: 600;
    color: var(--accent-color);
}

.subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.domain-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.domain-section:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.section-header-left {
    display: flex;
    align-items: center;
}

.section-icon {
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

.domain-count {
    font-size: 0.9rem;
    color: #6c757d;
    background-color: var(--light-color);
    padding: 4px 12px;
    border-radius: 20px;
}

.domain-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.domain-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 22px;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.domain-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(26, 188, 156, 0.1);
}

.domain-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.domain-name i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.domain-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.domain-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    align-self: flex-start;
}

.status-active {
    background-color: rgba(26, 188, 156, 0.1);
    color: var(--accent-color);
}

.status-inactive {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: #6c757d;
    font-size: 0.9rem;
}

.search-container {
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.2);
}

.domain-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 16px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #dee2e6;
}

.external-link {
    margin-left: 8px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.domain-card:hover .external-link {
    opacity: 1;
}

.protocol-badge {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: var(--light-color);
    color: #6c757d;
}

.https-badge {
    background-color: rgba(26, 188, 156, 0.1);
    color: var(--accent-color);
}

.http-badge {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.domain-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .domain-list {
        grid-template-columns: 1fr;
    }
    
    .domain-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .external-link {
        opacity: 1;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    header {
        padding: 25px 0 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .domain-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
}