* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.5;
}

.main-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.header-banner {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
}

    .header-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.tab-nav {
    width: 100%;
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 16px;
}

.tab-item {
    flex: 1;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

    .tab-item.active {
        color: #165DFF;
        border-bottom-color: #165DFF;
        font-weight: 600;
    }

    .tab-item:not(.active) {
        color: #666;
        background-color: #fafafa;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

.data-loading {
    display: none;
    text-align: center;
    padding: 80px 0;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e8f3ff;
    border-top-color: #165DFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 14px;
}

.loading-text {
    color: #666;
    font-size: 14px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.card {
    width: 100%;
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
}

    .info-row:last-child {
        border-bottom: none;
    }

.info-label {
    width: 100px;
    flex-shrink: 0;
    text-align: right;
    color: #666;
    font-size: 14px;
    padding-right: 12px;
}

.info-value {
    flex: 1;
    color: #165DFF;
    font-size: 14px;
    font-weight: 500;
    word-break: break-all;
}

.trace-card .info-row {
    padding: 14px 0;
}

.first-tip {
    text-align: center;
    padding: 16px 0;
    color: #07C160;
    font-size: 15px;
    font-weight: 600;
    background-color: #E8F7EF;
    border-radius: 8px;
    margin: 16px 0;
}

.repeat-tip {
    text-align: center;
    padding: 16px 0;
    color: #F53F30;
    font-size: 15px;
    font-weight: 600;
    background-color: #FFF2F2;
    border-radius: 8px;
    margin: 16px 0;
}

.btn-record {
    display: block;
    width: 80%;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background-color: #165DFF;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 22px;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
}

    .btn-record:active {
        transform: scale(0.98);
    }

.batch-card .card-title {
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    color: #165DFF;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid #165DFF;
}

.batch-card .info-row {
    padding: 10px 0;
}

.batch-card .info-label {
    width: 90px;
    color: #666;
}

.batch-card .info-value {
    color: #333;
}

.maintain-tip {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 14px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f2f5;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.record-item {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.record-time {
    color: #666;
    font-size: 13px;
}

.record-location {
    color: #333;
    font-size: 15px;
    margin-top: 6px;
}
