
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    background-image: radial-gradient(circle, #e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    font-size: 24px;
    font-weight: bold;
}

.header-nav {
    display: flex;
    gap: 20px;
}

    .header-nav a {
        color: white;
        text-decoration: none;
        padding: 8px 16px;
        border-radius: 4px;
        transition: background-color 0.3s;
    }

        .header-nav a:hover {
            background-color: rgba(255,255,255,0.2);
        }

.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

    .lang-btn:hover {
        background: rgba(255,255,255,0.3);
    }

    .lang-btn.active {
        background: white;
        color: #667eea;
        border-color: white;
    }

/* Main Content */
.main-container {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

    .search-input-wrapper .el-input {
        flex: 1;
    }

.search-btn {
    padding: 12px 24px;
    background: #409EFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

    .search-btn:hover {
        background: #66b1ff;
    }

/* Domain Info Card */
.domain-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.domain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ebeef5;
}

.domain-name {
    font-size: 32px;
    font-weight: bold;
    color: #303133;
}

.domain-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #fff4e6;
    color: #fa8c16;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

.query-time {
    color: #909399;
    font-size: 14px;
}

.domain-info-table {
    width: 100%;
}

.domain-info-row {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .domain-info-row:last-child {
        border-bottom: none;
    }

.info-label {
    width: 150px;
    color: #606266;
    font-weight: 500;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    color: #303133;
}

.status-tag {
    display: inline-block;
    padding: 2px 10px;
    background: #e6f7ff;
    color: #1890ff;
    border-radius: 12px;
    font-size: 12px;
}

    .status-tag.orange {
        background: #fff4e6;
        color: #fa8c16;
    }

.info-link {
    color: #409EFF;
    text-decoration: none;
    margin-left: 10px;
}

    .info-link:hover {
        text-decoration: underline;
    }

.email-value {
    color: #fa8c16;
}

.nameserver-tag {
    display: inline-block;
    padding: 2px 10px;
    background: #e6f7ff;
    color: #1890ff;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 8px;
}

.expiry-note {
    font-size: 12px;
    color: #909399;
    margin-top: 8px;
    line-height: 1.6;
}

/* Whois Response Card */
.whois-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.whois-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.whois-title {
    font-size: 18px;
    font-weight: bold;
    color: #303133;
}

.whois-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #dcdfe6;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

    .action-btn:hover {
        background: #f5f7fa;
        border-color: #c0c4cc;
    }

.whois-content {
    background: #fafafa;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #303133;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

    .footer-section ul li {
        margin-bottom: 10px;
    }

        .footer-section ul li a {
            color: #bdc3c7;
            text-decoration: none;
            transition: color 0.3s;
        }

            .footer-section ul li a:hover {
                color: white;
            }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

        .header-content > div {
            flex-direction: column;
            gap: 15px;
            width: 100%;
        }

    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .lang-switcher {
        justify-content: center;
    }

    .domain-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .domain-name {
        font-size: 24px;
    }

    .domain-info-row {
        flex-direction: column;
        gap: 8px;
    }

    .info-label {
        width: 100%;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.hidden {
    display: none;
}

.main-container {
    min-height: calc(100vh - 486px);
    position: relative;
}

    .main-container .search-section.main-div {
        text-align: center;
        position: absolute;
        width: 100%;
        top: 50%;
        transform: translateY(-50%);
    }

    @keyframes rotae360{
        from{
            transform:rotate(0deg);
        }
        to{
            transform:rotate(360deg);
        }
    }

.loading-icon {
    width: 1em;
    height: 1em;
    animation: rotae360 1s linear infinite;
}

.query-domain-input > input::placeholder {
    color: #909399;
}

.query-domain-input > input {
    width: 100%;
    height: 30px;
    border: none;
    background: none;
    box-sizing: border-box;
    outline: none;
    color: #606266;
    flex-grow: 1;
    font-size: 0.9em;
}

.query-domain-input:hover {
    box-shadow: 0 0 0 1px #c0c4cc inset;
}

.query-domain-input:has(input:focus) {
    box-shadow: 0 0 0 1px #409eff inset;
}

.query-domain-input {
    flex: 1;
    padding: 0;
    background: white;
    align-items: center;
    display: inline-flex;
    padding: 1px 11px;
    cursor: text;
    border-radius: 4px;
    box-shadow: 0 0 0 1px #dcdfe6 inset;
    transition: box-shadow 0.2s cubic-bezier(0.645,0.045,0.355,1)
}
