/* ============================================
   订单查询页面 - 现代化设计
   ============================================ */

.order-search-container {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: calc(100vh - 200px);
}

.order-search-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页面标题区域 */
.search-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.search-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.search-icon-wrapper {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.search-icon-wrapper i {
    font-size: 3rem;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.search-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    position: relative;
    z-index: 1;
}

.search-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* 标签页导航 */
.search-tabs {
    border-bottom: 2px solid #e5e7eb;
    background: #f9fafb;
}

.nav-tabs {
    border: none;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.nav-tabs .nav-item {
    flex: 1;
    max-width: 250px;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    padding: 1.25rem 1.5rem;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9375rem;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.nav-tabs .nav-link i {
    font-size: 1.125rem;
}

.nav-tabs .nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.nav-tabs .nav-link.active {
    color: #667eea;
    background: #ffffff;
    border-bottom: 3px solid #667eea;
    font-weight: 600;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #667eea;
}

/* 表单内容区域 */
.tab-content {
    padding: 2.5rem;
}

.tab-pane {
    animation: fadeIn 0.3s ease-in;
}

.tab-pane.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group.focused .form-label {
    color: #667eea;
}

.form-group.has-value .form-label {
    color: #374151;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.form-label i {
    color: #667eea;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #111827;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

.form-hint i {
    color: #667eea;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* 搜索按钮 */
.btn-search {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-top: 1.5rem;
}

.btn-search:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-search:active:not(:disabled) {
    transform: translateY(0);
}

.btn-search:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-search i {
    font-size: 1.125rem;
}

/* 浏览器查询特殊样式 */
.browser-search-info {
    text-align: center;
    padding: 2rem 1rem;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.info-icon {
    margin-bottom: 1rem;
}

.info-icon i {
    font-size: 3rem;
    color: #667eea;
    opacity: 0.8;
}

.browser-search-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.75rem 0;
}

.browser-search-info p {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.info-tips {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 3px solid #ffc107;
    margin-top: 1rem;
}

.info-tips i {
    color: #ffc107;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.info-tips span {
    font-size: 0.875rem;
    color: #856404;
    line-height: 1.5;
}

/* 帮助信息 */
.search-help {
    padding: 2rem 2.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.help-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.help-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.help-item strong {
    display: block;
    font-size: 0.9375rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.help-item p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   响应式设计
   ============================================ */

/* 平板 */
@media (max-width: 991.98px) {
    .order-search-container {
        padding: 2rem 0;
    }

    .search-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .search-title {
        font-size: 1.75rem;
    }

    .tab-content {
        padding: 2rem 1.5rem;
    }

    .search-help {
        padding: 1.5rem;
    }
}

/* 手机 */
@media (max-width: 767.98px) {
    .order-search-container {
        padding: 1rem 0;
        background: #ffffff;
    }

    .order-search-card {
        border-radius: 0;
        margin: 0;
        box-shadow: none;
    }

    .search-header {
        padding: 2rem 1rem 1.5rem;
        border-radius: 0;
    }

    .search-icon-wrapper i {
        font-size: 2.5rem;
    }

    .search-title {
        font-size: 1.5rem;
    }

    .search-subtitle {
        font-size: 0.875rem;
    }

    .nav-tabs {
        flex-direction: column;
        padding: 0;
    }

    .nav-tabs .nav-item {
        max-width: 100%;
    }

    .nav-tabs .nav-link {
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
        justify-content: flex-start;
    }

    .nav-tabs .nav-link.active {
        border-bottom: 3px solid #667eea;
        border-left: none;
    }

    .nav-tabs .nav-link.active::after {
        display: none;
    }

    .tab-content {
        padding: 1.5rem 1rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-control {
        padding: 0.75rem 0.875rem;
        font-size: 0.9375rem;
    }

    .btn-search {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .browser-search-info {
        padding: 1.5rem 1rem;
    }

    .info-icon i {
        font-size: 2.5rem;
    }

    .browser-search-info h3 {
        font-size: 1.125rem;
    }

    .browser-search-info p {
        font-size: 0.875rem;
    }

    .search-help {
        padding: 1.5rem 1rem;
    }
}

/* 小屏手机 */
@media (max-width: 575.98px) {
    .search-header {
        padding: 1.5rem 1rem 1rem;
    }

    .search-title {
        font-size: 1.25rem;
    }

    .tab-content {
        padding: 1.25rem 1rem;
    }

    .form-label {
        font-size: 0.875rem;
    }

    .form-control {
        font-size: 0.875rem;
    }
}

/* 打印样式 */
@media print {
    .order-search-container {
        background: white;
        padding: 0;
    }

    .order-search-card {
        box-shadow: none;
    }

    .search-header {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .btn-search {
        display: none;
    }
}

