body {
    min-height: 100vh;
    position: relative;
    background: #f8f9fa;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../image/ddd.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(8px) brightness(0.6);
    z-index: -1;
}

body.query-result-page::before {
    background: url('../image/ddd.jpg') no-repeat center center;
    background-size: cover;
    filter: blur(8px) brightness(0.7);
}

.result-page-container {
    max-width: 1200px;
    margin: 120px auto 50px;
    padding: 0 20px;
}

.query-nav-section {
    background: transparent;
    padding: 30px 0;
    margin-top: 120px;
    width: 100%;
    position: relative;
}


.orderquery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-tabs {
    display: flex;
    gap: 30px;
    justify-content: flex-start;
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 30px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 500;
}

.nav-tab:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.nav-tab.active {
    color: #1a73e8;
}

.nav-tab.active span {
    border-bottom: 1px solid #1a73e8;
    padding-bottom: 4px;
}

.nav-tab img {
    width: 32px;
    height: 32px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.nav-tab.active img,
.nav-tab:hover img {
    opacity: 1;
}

.query-section {
    padding: 0 0 120px 0;
    position: relative;
}


.query-box {
    position: relative;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 0;
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
}

.query-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../image/banne/mf.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    filter: blur(3px);
    z-index: 0;
}

.complaint-query-page .query-box::before {
    background-image: url('../image/ts.png') !important;
}

.query-box > * {
    position: relative;
    z-index: 1;
}

.query-form-container {
    background: rgba(255, 255, 255, 0.65);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.query-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.select-wrapper {
    position: relative;
    width: 200px;
    flex-shrink: 0;
}

.select-wrapper::after {
    display: none;
}

.select-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 14px;
    pointer-events: none;
    z-index: 3;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.query-type-select {
    width: 100%;
    height: 60px;
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    padding: 16px 40px 16px 24px;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.query-type-select:hover {
    border-color: #d1d5db;
    background: #f8fbff;
}

.query-type-select:focus {
    border-color: #5b8fd8;
    background: white;
    box-shadow: 0 0 0 1px rgba(91, 143, 216, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.query-type-select option {
    padding: 10px;
    font-size: 15px;
}

.query-type-select option[value="complaint"] {
    color: #2c3e50;
    font-weight: 500;
}

.input-icon-left {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 18px;
    z-index: 2;
    transition: color 0.3s ease;
}

.query-input {
    width: 100%;
    height: 60px;
    padding: 16px 180px 16px 50px;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    color: #2c3e50;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.query-input:hover {
    border-color: #d1d5db;
    background: #f8fbff;
}

.query-input:focus {
    border-color: #5b8fd8;
    background: white;
    box-shadow: 0 0 0 1px rgba(91, 143, 216, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.query-input:focus + .input-icon-left,
.input-wrapper:focus-within .input-icon-left {
    color: #5b8fd8;
}

.query-input::placeholder {
    color: #bdc3c7;
    font-size: 14px;
}

.query-input.complaint-mode {
    border-color: #e8ecef;
    background: white;
}

.query-input.complaint-mode:hover {
    border-color: #d1d5db;
    background: #f8fbff;
}

.query-input.complaint-mode:focus {
    border-color: #5b8fd8;
    background: white;
    box-shadow: 0 0 0 1px rgba(91, 143, 216, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.query-input.complaint-mode:focus + .input-icon-left,
.input-wrapper.complaint-mode:focus-within .input-icon-left {
    color: #5b8fd8;
}

.input-wrapper.complaint-mode .input-icon-left {
    color: #5b8fd8;
}

.query-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 48px;
    padding: 0 28px;
    background: #0077be;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 119, 190, 0.25);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
    z-index: 10;
}

.query-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.query-btn:hover::before {
    left: 100%;
}

.query-btn:hover {
    background: #005f99;
    box-shadow: 0 4px 16px rgba(0, 119, 190, 0.4);
}

.query-btn:active {
    background: #004c7a;
    box-shadow: 0 2px 8px rgba(0, 119, 190, 0.25);
    transform: translateY(-50%) scale(0.98);
}

.query-btn.complaint-mode {
    background: #0077be;
    box-shadow: 0 3px 12px rgba(0, 119, 190, 0.25);
}

.query-btn.complaint-mode:hover {
    background: #005f99;
    box-shadow: 0 4px 16px rgba(0, 119, 190, 0.4);
}

.query-btn.complaint-mode:active {
    background: #004c7a;
    box-shadow: 0 2px 8px rgba(0, 119, 190, 0.25);
    transform: translateY(-50%) scale(0.98);
}

.btn-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
}

.btn-text {
    font-size: 16px;
}

.query-history-section {
    margin-top: 20px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dee2e6;
}

.history-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.history-title i {
    color: #3498db;
    font-size: 16px;
}

.history-clear-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 13px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-clear-btn:hover {
    background: #f8d7da;
    border-color: #f5c2c7;
    color: #dc3545;
}

.history-clear-btn i {
    font-size: 12px;
}

.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 13px;
    color: #495057;
    transition: all 0.3s ease;
    max-width: 300px;
}

.history-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    cursor: pointer;
    min-width: 0;
}

.history-content i {
    color: #95a5a6;
    font-size: 12px;
    flex-shrink: 0;
}

.history-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    flex-shrink: 0;
}

.history-delete-btn:hover {
    background: #fee;
    color: #dc3545;
}

.history-delete-btn i {
    font-size: 12px;
}

.history-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item:hover {
    background: #f8fbff;
    border-color: #5b8fd8;
    box-shadow: 0 2px 8px rgba(91, 143, 216, 0.15);
}

.history-content:hover {
    color: #5b8fd8;
}

.history-content:hover i {
    color: #5b8fd8;
}

.disclaimer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.disclaimer h4 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.disclaimer p {
    color: #34495e;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.disclaimer ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.disclaimer ul li {
    color: #34495e;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.disclaimer ul li::before {
    content: "\2022";
    color: #5b8fd8;
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: -2px;
}

.disclaimer ul li strong {
    color: #2c3e50;
    font-weight: 600;
}

.disclaimer ul[style*="list-style: disc"] {
    list-style: disc !important;
    padding-left: 20px !important;
}

.disclaimer ul[style*="list-style: disc"] li {
    padding-left: 0 !important;
}

.disclaimer ul[style*="list-style: disc"] li::before {
    content: none !important;
}

.disclaimer h5 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.disclaimer a {
    color: #e74c3c;
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.3s ease;
}

.disclaimer a:hover {
    color: #c0392b;
}

.service-desc {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-desc p {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.no-order-result {
    text-align: center;
    padding: 60px 30px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    margin: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.btn-back-search {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 14px 35px;
    background: #0077be;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 119, 190, 0.3);
    border: none;
}

.btn-back-search:hover {
    background: #005f99;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.4);
    color: white;
    text-decoration: none;
}

.btn-back-search:active {
    background: #004c7a;
    transform: scale(0.98);
}

.order-result-box {
    margin-top: 0;
    padding: 40px 100px !important;
    background: #ffffff !important;
    border-radius: 16px;
    border: 1px solid #c5d4e3;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.order-result-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../image/banne/da.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.order-result-box > * {
    position: relative;
    z-index: 1;
}

.order-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eef2f7;
    flex-wrap: wrap;
    gap: 15px;
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.order-result-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.order-status-badge.status-paid {
    background: #d4edda;
    color: #155724;
}

.order-status-badge.status-unpaid {
    background: #f8d7da;
    color: #721c24;
}

.result-top-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.back-to-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0077be;
    border: none;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 119, 190, 0.3);
    position: relative;
    overflow: hidden;
}

.back-to-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.back-to-search:hover::before {
    left: 100%;
}

.back-to-search:hover {
    background: #005f99;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.4);
}

.back-to-search:active {
    background: #004c7a;
    box-shadow: 0 2px 8px rgba(0, 119, 190, 0.25);
    transform: scale(0.98);
}

.back-to-search i {
    font-size: 14px;
    line-height: 1;
}

.order-notice-tip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    margin: 0;
    flex: 1;
}

.order-notice-tip i {
    font-size: 16px;
    color: #f57c00;
    flex-shrink: 0;
    line-height: 1;
}

.order-notice-tip span {
    font-size: 14px;
    color: #e65100;
    line-height: 1;
    white-space: nowrap;
}

.order-notice-tip strong {
    color: #bf360c;
    font-weight: 600;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 15px;
}

.info-item {
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #5b8fd8;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #868e96;
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.info-label i {
    font-size: 14px;
    color: #5b8fd8;
}

.info-value {
    display: block;
    font-size: 16px;
    color: #212529;
    font-weight: 600;
    line-height: 1.3;
}

.card-section {
    margin: 25px 0;
    padding: 25px 40px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #0077be;
    position: relative;
    overflow: hidden;
}

.card-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../image/ts.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.card-section > * {
    position: relative;
    z-index: 1;
}

.card-section h5 {
    margin-bottom: 18px;
    color: #2c3e50;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-info-container {
    background: white;
    border-radius: 8px;
    padding: 15px 30px;
    min-height: 100px;
}

.card-info-container p {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    margin: 0;
    word-break: break-all;
    line-height: 1.6;
}

.card-info-container p:last-child {
    border-bottom: none;
}

.card-tips {
    margin-top: 0;
    padding: 8px 16px;
    background: #f0f7ff;
    border-radius: 20px;
    font-size: 13px;
    color: #2c3e50;
    white-space: nowrap;
}

.kamiok {
    color: #28a745;
    font-weight: 700;
    font-size: 16px;
}

.order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.btn-action {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    border-radius: 14px;
    text-decoration: none;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    overflow: hidden;
    position: relative;
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.btn-action:hover::before {
    left: 100%;
}

.btn-action > * {
    position: relative;
    z-index: 1;
}

.btn-action.btn-primary {
    background: #0077be;
    color: white;
}

.btn-action.btn-primary:hover {
    background: #005f99;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.4);
    color: white;
}

.btn-action.btn-primary:active {
    background: #004c7a;
    transform: scale(0.98);
}

.btn-action.btn-success {
    background: #0077be;
    color: white;
}

.btn-action.btn-success:hover {
    background: #005f99;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.4);
    color: white;
}

.btn-action.btn-success:active {
    background: #004c7a;
    transform: scale(0.98);
}

.btn-action.btn-warning {
    background: #0077be;
    color: white;
}

.btn-action.btn-warning:hover {
    background: #005f99;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.4);
    color: white;
}

.btn-action.btn-warning:active {
    background: #004c7a;
    transform: scale(0.98);
}

.btn-action.btn-shop {
    background: #0077be;
    color: white;
}

.btn-action.btn-shop:hover {
    background: #005f99;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.4);
    color: white;
}

.btn-action.btn-shop:active {
    background: #004c7a;
    transform: scale(0.98);
}

.seller-info {
    margin-top: 15px;
    padding: 15px 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
}

.seller-info h5 {
    margin-bottom: 15px;
    color: #856404;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seller-info p {
    margin: 10px 0;
    color: #856404;
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.qq-number {
    font-weight: 600;
    color: #0077be;
    cursor: pointer;
    user-select: all;
}

.qq-number:hover {
    color: #005f99;
}

.seller-tip-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #856404;
    margin-left: 10px;
}

.seller-tip-inline i {
    font-size: 14px;
}

.btn-copy {
    padding: 6px 15px;
    background: #0077be;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-copy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-copy:hover::before {
    left: 100%;
}

.btn-copy:hover {
    background: #005f99;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.4);
}

.btn-copy:active {
    background: #004c7a;
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 119, 190, 0.25);
}

.btn-qq-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 15px;
    background: #0077be;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-qq-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-qq-link:hover::before {
    left: 100%;
}

.btn-qq-link:hover {
    background: #005f99;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.4);
}

.btn-qq-link:active {
    background: #004c7a;
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 119, 190, 0.25);
}

.seller-tip {
    margin-top: 15px !important;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-size: 13px;
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
}

.seller-tip i {
    margin-top: 2px;
}

@media (max-width: 768px) {
    .order-result-box {
        padding: 20px;
    }
    
    .order-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .result-top-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .back-to-search {
        justify-content: center;
    }
    
    .order-notice-tip {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .order-notice-tip i {
        font-size: 16px;
    }
    
    .order-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .info-item {
        padding: 16px 14px;
    }
    
    .info-label {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .info-value {
        font-size: 15px;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .btn-action {
        min-width: 100%;
    }
    
    .seller-info p {
        flex-direction: column;
        align-items: flex-start;
    }
}

.order-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.order-result-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.order-status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.status-paid {
    background: #d4edda;
    color: #28a745;
}

.status-unpaid {
    background: #fff3cd;
    color: #856404;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 13px;
    color: #6c757d;
}

.info-value {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
}

#cardinfo0 {
    margin: 20px 0;
    padding: 15px;
    background: transparent;
    border-radius: 8px;
    min-height: 50px;
    color: #000000;
}

#cardinfo0:empty {
    display: none;
}

#cardinfo0 p {
    width: 100%;
    padding: 10px 15px;
    line-height: 1.6;
    margin-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    word-break: break-all;
    color: #000000;
}

.card-info-container {
    margin: 15px 0;
}


.card-tips .kamiok {
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

.order-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.btn-action {
    padding: 10px 20px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-action:hover {
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.4);
    text-decoration: none;
}

.btn-primary {
    background: #0077be;
    color: white;
}

.btn-primary:hover {
    background: #005f99;
}

.btn-primary:active {
    background: #004c7a;
}

.btn-success {
    background: #0077be;
    color: white;
}

.btn-success:hover {
    background: #005f99;
}

.btn-success:active {
    background: #004c7a;
}

.btn-warning {
    background: #0077be;
    color: white;
}

.btn-warning:hover {
    background: #005f99;
}

.btn-warning:active {
    background: #004c7a;
}

.seller-info {
    margin-top: 15px;
    padding: 15px 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.seller-info h5 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.seller-info p {
    margin: 10px 0;
    color: #495057;
    font-size: 14px;
}

.btn-copy {
    display: inline-block;
    padding: 4px 12px;
    background: #e7f3ff;
    border: 1px solid #0077be;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #0077be;
    color: white;
}

.btn-copy:active {
    background: #004c7a;
}

.btn-qq-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #0077be;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.btn-qq-link:hover {
    background: #005f99;
    color: white;
    text-decoration: none;
}

.btn-qq-link:active {
    background: #004c7a;
}

.seller-tip {
    margin-top: 10px;
    padding: 10px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 13px;
}

.btn {
    background: #0077be;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    margin-left: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 119, 190, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: #005f99;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.4);
    color: white;
}

.btn:active {
    background: #004c7a;
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 119, 190, 0.25);
    color: white;
}

@media (max-width: 768px) {
    .orderquery-container {
        padding: 0 15px;
    }
    
    .nav-tabs {
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-tab {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .nav-tab img {
        width: 28px;
        height: 28px;
    }
    
    .query-header h1 {
        font-size: 2rem;
    }
    
    .query-box {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .query-form-container {
        padding: 25px 20px;
    }
    
    .query-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .select-wrapper {
        width: 100%;
    }
    
    .input-wrapper {
        width: 100%;
    }
    
    .query-type-select {
        height: 56px;
        font-size: 14px;
        padding: 14px 40px 14px 20px;
    }
    
    .query-input {
        height: 56px;
        font-size: 14px;
        padding: 14px 160px 14px 45px;
    }
    
    .input-icon-left {
        font-size: 16px;
        left: 18px;
    }
    
    .query-btn {
        height: 44px;
        padding: 0 22px;
        font-size: 14px;
    }
    
    .btn-text {
        font-size: 14px;
    }
    
    .query-history-section {
        padding: 15px;
    }
    
    .history-header {
        flex-direction: row;
        gap: 10px;
    }
    
    .history-clear-btn {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .history-list {
        gap: 8px;
    }
    
    .history-item {
        font-size: 12px;
        padding: 7px 12px;
        max-width: 100%;
        gap: 6px;
    }
    
    .history-delete-btn {
        width: 20px;
        height: 20px;
    }
    
    .history-delete-btn i {
        font-size: 10px;
    }
    
    .disclaimer {
        padding: 20px 15px;
        margin-top: 20px;
    }
    
    .disclaimer h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .disclaimer p {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 10px;
    }
    
    .disclaimer ul li {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 8px;
        padding-left: 18px;
    }
    
    .order-result-box {
        padding: 20px 15px;
    }
    
    .order-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .result-top-bar {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 18px;
    }
    
    .back-to-search {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .order-notice-tip {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .order-notice-tip i {
        font-size: 14px;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .info-item {
        padding: 14px 12px;
    }
    
    .info-label {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .info-value {
        font-size: 14px;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .query-nav-section {
        margin-top: 100px;
        padding: 20px 0;
    }
    
    .nav-tabs {
        gap: 10px;
    }
    
    .nav-tab {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .nav-tab img {
        width: 24px;
        height: 24px;
    }
    
    .query-header h1 {
        font-size: 1.8rem;
    }
    
    .query-header p {
        font-size: 1rem;
    }
    
    .query-box {
        padding: 25px 15px;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .query-btn {
        font-size: 16px;
        padding: 16px 25px;
    }
    
    .back-to-top {
        width: 50px;
        height: 50px;
        right: 20px;
        bottom: 20px;
        font-size: 18px;
    }
}

.complaint-select {
    padding-right: 50px !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"%3E%3Cpath fill="%235b8fd8" d="M8 11L3 6h10z"/%3E%3C/svg%3E') !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    background-size: 16px !important;
    font-weight: 500 !important;
    position: relative !important;
    background-color: #f8f9fa !important;
    border-radius: 12px !important;
    border: 1px solid #e8ecef !important;
    transition: all 0.3s ease !important;
}

.complaint-select option {
    padding: 14px 18px;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 500;
    background: #ffffff;
    min-height: 46px;
    border-radius: 8px;
    line-height: 1.5;
}

.complaint-select option:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0f8 100%);
    color: #0077be;
}

.complaint-select option:first-child {
    color: #95a5a6;
    font-weight: 400;
    font-style: italic;
}

.complaint-select:invalid {
    color: #95a5a6 !important;
    background-color: #fafbfc !important;
}

.complaint-select:valid {
    color: #2c3e50 !important;
    background-color: #f8f9fa !important;
}

.complaint-select:hover {
    border-color: #5b8fd8 !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(91, 143, 216, 0.08) !important;
}

.complaint-select:focus {
    outline: none !important;
    border-color: #5b8fd8 !important;
    box-shadow: 0 0 0 3px rgba(91, 143, 216, 0.12), 0 4px 12px rgba(91, 143, 216, 0.15) !important;
    background-color: #ffffff !important;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"%3E%3Cpath fill="%234a7bc8" d="M8 11L3 6h10z"/%3E%3C/svg%3E') !important;
}

.complaint-select:active {
    transform: scale(0.995);
}

.complaint-select option {
    transition: all 0.2s ease;
}

.complaint-select option:checked {
    background: linear-gradient(135deg, #e8f0f8 0%, #f0f7ff 100%);
    color: #0077be;
    font-weight: 600;
}

.complaint-select option:disabled {
    color: #bdc3c7;
    background: #f5f6f7;
}

@media (max-width: 768px) {
    .complaint-select {
        padding-right: 45px !important;
        background-position: right 14px center !important;
        background-size: 14px !important;
    }
}
