:root {
    --primary: #dc2626;    
    --primary-hover: #b91c1c;  
    --light-bg: #fef2f2;
    --border: #e2e8f0;  
    --text-primary: #1e293b; 
    --text-secondary: #64748b; 
    --result-hover:#fff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
}

#content-wrap:before,
#content-wrap:after {
    content: "";
    display: table;
    table-layout: fixed;
}

#content-wrap:after {
    clear: both;
}

#content-wrap {
    padding: 20px 0;
    display: block;
    clear: both;
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1170px;
    margin: 0 auto;
}

#primary {
    flex: 1;
    min-width: 0;
}

#content-wrap, #content {
    padding-top: 17px;
}

.entry-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    margin-top: -4px;
}

.whois-search-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.whois-search-box {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
}

.feature-intro {
    background: rgb(255, 255, 255);
    padding: 20px 25px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.intro-text h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: var(--text-primary);
}

.intro-text p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
}

.intro-text ul {
    margin: 0;
    padding-left: 20px;
}

.intro-text li {
    margin: 5px 0;
    color: var(--text-secondary);
    line-height: 1.4;
}

.search-examples {
    text-align: center;
    margin: 15px 0;
}

.examples-label {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.examples-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.example-link {
    display: inline-block;
    padding: 6px 12px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 16px;
    font-size: 13px;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.example-link:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    transform: translateY(-1px);
}

.search-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.whois-search-button {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.button-icon {
    font-size: 16px;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.feature-icon {
    font-size: 18px;
    flex-shrink: 0;
}


.intro-text h2 {
    margin-bottom: 10px;
    color: #1f2937;
}

.subtitle {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 20px;
}


.analysis-tab {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-icon {
    font-size: 16px;
}


.ai-analysis-header {
    margin-bottom: 15px;
}

.ai-analysis-header h3 {
    margin: 0;
    color: #1f2937;
}

.whois-search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

input.whois-search-input {
    flex: 3 !important; 
    padding: 12px 16px !important;
    border: 2px solid var(--border) !important;
    background: #ffffff !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    transition: all 0.3s !important;
    width: 100% !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    min-width: 300px; 
}

input.whois-search-input:focus {
    border: 2px solid var(--border) !important;
    outline: none !important;
    box-shadow: none !important;
}

body .site input.whois-search-input:focus {
    border: 2px solid var(--border) !important;
}

input.whois-search-input:focus:-webkit-autofill {
    border: 2px solid var(--border) !important;
}

.whois-search-button {
    padding: 12px 20px; 
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 6px; 
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0; 
    min-width: 120px; 
}

.whois-search-button:hover {
    background: var(--primary-hover);
}

.ip-info-area {
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.ip-status-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ip-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.current-ip {
    font-size: 15px;
    color: var(--text-secondary);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge.whitelist {
    background-color: var(--result-hover);
    color: var(--primary);
}

.status-badge.normal {
    background-color: var(--result-hover);
    color: var(--text-secondary);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-item {
    display: inline-block;
    background-color: #f0f5ff;
    color: #0066cc;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.9em;
}

.status-success {
    color: #2e7d32;
    font-weight: 500;
}

.status-warning {
    color: #ff8f00;
    font-weight: 500;
}

.status-error {
    color: #c62828;
    font-weight: 500;
}

.usage-info {
    padding-top: 10px;
}

.unlimited-access {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 15px;
}

.status-icon {
    font-size: 18px;
    font-weight: bold;
}

.limit-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.searches-count {
    font-size: 15px;
    color: var(--text-primary);
}

.searches-count strong {
    margin: 0 5px;
    color: var(--primary);
}

.time-info {
    font-size: 13px;
    color: var(--text-secondary);
}

.analysis-tabs-container {
    margin: 30px 0 20px;
    position: relative;
    z-index: 10;
}

.analysis-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    background: #ffffff;
    position: relative;
    z-index: 5;
}

.analysis-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 6;
}

.analysis-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.analysis-tab:hover {
    color: var(--primary-hover);
}

.analysis-section {
    display: none;
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.analysis-section.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.result-container, 
.ai-analysis-box, 
.search-results,
.whois-results-inner {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.result-container {
    background: rgb(255, 255, 255);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.result-container:first-child {
    margin-top: 0;
}

.whois-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.whois-error {
    color: var(--primary);
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 4px;
    margin-top: 1rem;
}

.dns-record-section {
    margin-top: 30px;
    padding-top: 20px;
}

.whois-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.dns-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 4px;
}

.dns-results-table td {
    padding: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.dns-results-table tr:first-child td {
    font-weight: 600;
    color: var(--text-primary);
    background: #fff;
}

.ip-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 4px;
}

.ip-results-table tr {
    border-bottom: 1px solid var(--border);
}

.ip-results-table tr:last-child {
    border-bottom: none;
}

.ip-results-table td {
    padding: 10px;
    font-size: 14px;
}

.ip-results-table td:first-child {
    width: 150px;
    font-weight: 600;
    color: var(--text-primary);
}

.ip-results-table td:last-child {
    color: var(--text-secondary);
}

.txt-value {
    font-family: monospace;
    word-break: break-all;
}

.ai-analysis-box {
    margin: 0 0 1.5rem 0;
    background: rgb(255, 255, 255);
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.ai-analysis-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.ai-analysis-text {
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 15px;
    padding: 1rem;
    background: #fff;
    text-align: justify;
}

.ad-container {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 0 auto 2rem auto; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-wrapper {
    width: 728px;
    height: 90px;
}

.http-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.status-success {
    background-color: var(--result-hover);
    color: var(--primary);
}

.status-redirect {
    background-color: var(--result-hover);
    color: var(--result-hover);
}

.status-error {
    background-color: var(--result-hover);
    color: var(--primary);
}

.redirect-info {
    font-size: 0.9em;
    margin: 5px 0;
}

.redirect-url {
    color: var(--text-secondary);
    margin-top: 5px;
    word-break: break-all;
}

.whois-search-button {
    transition: all 0.3s ease;
}

.whois-search-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

input.whois-search-input {
    transition: all 0.3s ease;
}

input.whois-search-input:hover {
    border-color: var(--primary) !important;
}

input.whois-search-input:focus {
    border-color: var(--result-hover) !important;
    box-shadow: 0 0 0 3px var(--result-hover) !important;
}

.ai-analysis-box:hover,
.result-container:hover,
.feature-intro:hover,
.ip-info-area:hover{
    background: #fff;
    transform: translateX(4px);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-md);
}

a {
    transition: color 0.3s ease;
}

a:hover {
    color: var(--result-hover);
}

.status-badge {
    transition: opacity 0.3s ease;
}

.status-badge:hover {
    opacity: 0.9;
}

/* Section Summary Styles */
.section-summary {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.section-summary:hover {
    background: #fff;
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.summary-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.summary-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 15px;
    text-align: justify;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
@media screen and (max-width: 768px) {
    .search-input-container {
        flex-direction: column;
        gap: 15px;
    }
    
    input.whois-search-input {
        min-width: unset; /* 移动端取消最小宽度限制 */
        width: 100% !important;
    }
    
    .whois-search-button {
        width: 100%;
        min-width: unset;
    }
}

@media screen and (max-width: 768px) {
    .ad-container {
        height: auto;
        min-height: 50px;
        margin-bottom: 1rem;
    }
    
    .ad-wrapper {
        width: 100%;
        height: auto;
        min-height: 50px;
    }

    .ai-analysis-box {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .ai-analysis-title {
        font-size: 1.1rem;
    }
    
    .ai-analysis-text {
        padding: 0.75rem;
        font-size: 14px;
    }

    .ip-info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .status-badge {
        align-self: flex-start;
    }

    .whois-search-form {
        flex-direction: column;
    }
    
    .whois-search-button {
        width: 100%;
    }
    
    .ip-results-table td {
        padding: 8px;
        font-size: 13px;
    }
    
    .dns-results-table {
        display: block;
        overflow-x: auto;
    }
    
    .dns-results-table td {
        white-space: nowrap;
    }
    
    .txt-value {
        white-space: normal;
    }
    
    .analysis-tabs {
        flex-wrap: wrap;
    }
    
    .analysis-tab {
        flex: 1 1 auto;
        text-align: center;
        font-size: 14px;
        padding: 8px 10px;
    }


    .features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .search-input-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .whois-search-input,
    .whois-search-button {
        width: 100%;
    }
    
    .examples-links {
        gap: 6px;
    }
    
    .example-link {
        font-size: 12px;
        padding: 5px 10px;
    }

    /* Mobile responsiveness for section summary */
    .section-summary {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .summary-title {
        font-size: 1rem;
    }
    
    .summary-text {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .entry-content {
        padding: 0.75rem;
    }

    .whois-search-box {
        padding: 1rem;
    }
    
    .feature-intro {
        padding: 15px;
    }
    
    .intro-text h2 {
        font-size: 18px;
    }
    
    .intro-text li {
        font-size: 14px;
    }
    
    .ip-info-area {
        padding: 15px;
    }
    
    .searches-count {
        font-size: 14px;
    }
    
    .result-container {
        padding: 0.75rem;
    }
    
    .whois-title {
        font-size: 1.1rem;
    }
    
    .dns-results-table td,
    .ip-results-table td {
        padding: 6px;
        font-size: 12px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }

    .section-summary {
        padding: 0.75rem;
    }
    
    .summary-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .summary-text {
        font-size: 13px;
    }
    input.whois-search-input {
        padding: 10px 14px !important;
        font-size: 14px !important;
    }
    
    .whois-search-button {
        padding: 10px 16px;
    }
}