* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background-color: #1a1e33;
    color: white;
    min-height: 100vh;
}

header {
    background-color: #1a1e33;
    padding: 0;
    text-align: center;
    border-bottom: 1px solid #2a2e43;
}

.banner-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.banner-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

h1 {
    font-size: 24px;
    font-weight: normal;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.truck-image-container {
    width: 100%;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 8px;
}

.truck-image {
    width: 100%;
    height: auto;
    display: block;
}

.query-section {
    margin: 30px 0;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.blue-bar {
    width: 4px;
    height: 24px;
    background-color: #4080ff;
    margin-right: 10px;
}

h2 {
    font-size: 20px;
    font-weight: normal;
}

.divider {
    height: 1px;
    background-color: #ffffff;
    margin: 15px 0;
}

.scan-button-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.scan-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4080ff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    transition: background-color 0.3s;
}

.scan-button:hover {
    background-color: #3070ee;
}

.scan-icon {
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.scan-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
}

.code-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #2a2e43;
    border-radius: 5px;
    background-color: #252a40;
    color: white;
    font-size: 16px;
}

.code-input::placeholder {
    color: #8a8d9a;
}

.query-button {
    width: 100%;
    padding: 15px;
    background-color: #4080ff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.query-button:hover {
    background-color: #3070ee;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #252a40;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: white;
}

.camera-container {
    width: 100%;
    height: 300px;
    background-color: #1a1e33;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.camera-placeholder {
    text-align: center;
    color: #8a8d9a;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#canvas {
    width: 100%;
    height: 100%;
}

.scan-result {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    color: white;
}

#outputData {
    margin-top: 10px;
    padding: 10px;
    background-color: #4080ff;
    border-radius: 5px;
    word-break: break-all;
}

@media (min-width: 768px) {
    .input-container {
        flex-direction: row;
    }
    
    .query-button {
        width: 120px;
        flex-shrink: 0;
    }
} 