.order-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fff7e6;
    color: #fa8c16;
}

.status-paid {
    background: #f6ffed;
    color: #52c41a;
}

.status-failed {
    background: #fff1f0;
    color: #ff4d4f;
}

.status-cancelled {
    background: #f5f5f5;
    color: #8c8c8c;
}

.order-id-cell {
    color: #2c5aa0;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.order-id-cell:hover {
    color: #667eea;
    text-decoration: underline;
}

.order-id-cell::after {
    content: '\f0c5';
    font-family: 'FontAwesome';
    margin-left: 5px;
    font-size: 12px;
    opacity: 0.6;
}

.price-cell {
    color: #e74c3c;
    font-weight: 600;
    font-size: 14px;
}

.detail-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.detail-btn:hover {
    background: #5a67d8;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.order-query-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.search-section {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.search-form-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.search-form-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #667eea;
    margin-right: 8px;
    border-radius: 2px;
}

.search-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.search-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.search-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.search-input,
.action-btn {
    height: 42px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.search-input {
    border: 1px solid #ddd;
    transition: border-color 0.2s ease;
    width: 100%;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.action-btn {
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    min-width: 120px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.search-actions {
    display: flex;
    flex-shrink: 0;
}

.results-section {
    background: white;
}

.results-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.results-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.results-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #667eea;
    margin-right: 8px;
    border-radius: 2px;
}

.results-count {
    font-size: 14px;
    color: #666;
}

.domain-table-container {
    padding: 0;
    width: 100%;
    overflow-x: auto;
}

.order-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.order-details-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.order-details-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-details-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.order-details-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.order-details-close:hover {
    color: #333;
    background: #f5f5f5;
}

.order-details-body {
    padding: 20px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.order-info-item {
    display: flex;
    flex-direction: column;
}

.order-info-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.order-info-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.domain-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.domain-list-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.domain-status {
    font-size: 12px;
    color: #666;
}

.domain-items-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: white;
}

.domain-items-container::-webkit-scrollbar {
    width: 6px;
}

.domain-items-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.domain-items-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.domain-items-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.domain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
}

.domain-item:last-child {
    border-bottom: none;
}

.domain-info {
    flex: 1;
}

.domain-name {
    font-size: 14px;
    color: #2c5aa0;
    font-weight: 500;
    margin-bottom: 2px;
}

.domain-meta {
    font-size: 12px;
    color: #666;
}

.domain-price {
    font-size: 14px;
    color: #e74c3c;
    font-weight: 600;
    text-align: right;
}

.sold-domain {
    opacity: 0.7;
    background: #f8f9fa;
}

.sold-domain .domain-name {
    color: #999;
    text-decoration: line-through;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 30px 0;
        text-align: center;
        display: block !important;
        visibility: visible !important;
    }

    .hero-title {
        font-size: 24px;
        display: block !important;
    }

    .hero-subtitle {
        font-size: 14px;
        display: block !important;
    }

    .hero-features {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        display: flex !important;
    }

    .feature-item {
        font-size: 14px;
        text-align: center;
        display: block !important;
    }

    .search-section {
        padding: 15px;
    }

    .search-form-title {
        font-size: 15px;
        margin-bottom: 12px;
        display: flex !important;
    }

    .search-row {
        flex-direction: column;
        gap: 12px;
    }

    .search-group {
        width: 100%;
    }

    .search-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .search-input {
        height: 44px;
        font-size: 16px;
        padding: 0 15px;
    }

    .search-actions {
        width: 100%;
        justify-content: center;
    }

    .action-btn {
        height: 44px;
        width: 100%;
        font-size: 16px;
        padding: 0 20px;
        max-width: 300px;
    }

    .results-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .results-title {
        font-size: 15px;
    }

    .results-count {
        font-size: 13px;
    }

    .domain-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .order-details-content {
        width: 95%;
        max-height: 85vh;
    }

    .order-details-header {
        padding: 15px;
    }

    .order-details-title {
        font-size: 16px;
    }

    .order-details-body {
        padding: 15px;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 15px;
    }

    .order-info-label {
        font-size: 11px;
    }

    .order-info-value {
        font-size: 13px;
    }

    .domain-list {
        padding: 12px;
    }

    .domain-list-title {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .domain-items-container {
        max-height: 150px;
    }

    .domain-item {
        padding: 8px 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .domain-info {
        width: 100%;
        margin-bottom: 5px;
    }

    .domain-name {
        font-size: 13px;
    }

    .domain-meta {
        font-size: 11px;
    }

    .domain-price {
        font-size: 13px;
        text-align: left;
    }

    .detail-btn {
        font-size: 11px;
        padding: 3px 6px;
        min-width: 40px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {

    .search-input,
    .action-btn {
        height: 48px;
    }

    .order-details-content {
        width: 98%;
        max-height: 90vh;
    }

    .layui-table th,
    .layui-table td {
        padding: 6px 3px;
        font-size: 11px;
    }

    .order-id-cell {
        font-size: 10px;
        word-break: break-all;
    }

    .price-cell {
        font-size: 11px;
    }

    .order-status-badge {
        font-size: 9px;
        padding: 2px 4px;
    }

    .detail-btn {
        font-size: 10px;
        padding: 2px 4px;
        min-width: 35px;
    }
}
.result-info {
    margin-top: 20px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
}

.result-info-title {
    background: #f8f9fa;
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 1px solid #e6e6e6;
}

.result-info-content {
    padding: 16px;
}

.result-text {
    background: #f8f9fa;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 12px;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 200px;
    overflow-y: auto;
}
