body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f0f9f0;
}

.container {
    width: 100%;
    max-width: 400px; /* 假设是移动优先设计，典型手机宽度 */
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background-color: #4CAF50;
    border-bottom: none;
    font-size: 12px;
    color: #fff;
}

.header-left .location i {
    color: #fff;
    margin-right: 5px;
}

.header-right span {
    margin-left: 10px;
}

.header-right .battery i {
    color: #fff;
}

/* App Bar */
.app-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #4CAF50;
}

.app-bar-left {
    display: flex;
    align-items: center;
}

.app-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
}

.app-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-right: 5px;
}

.app-subtitle {
    font-size: 12px;
    color: #4CAF50;
    background-color: #fff;
    padding: 3px 8px;
    border-radius: 15px;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f0f0f0;
    margin: 10px;
    border-radius: 20px;
}

.search-bar i {
    margin-right: 10px;
    color: #999;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    flex-grow: 1;
    font-size: 14px;
}

/* Location Selection */
.location-selection {
    padding: 10px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.select-group {
    margin-bottom: 10px;
}

.select-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.location-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
}

/* Products Section */
.products-section {
    padding: 10px;
    flex-grow: 1;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-left: 5px;
}

.products-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Product Card */
.product-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
}

.product-info {
    flex-grow: 1;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-region {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.product-description {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: #ff6b6b;
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
    background-color: #fff;
    position: sticky;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-size: 10px;
}

.bottom-nav .nav-item.active {
    color: #4CAF50;
}

.bottom-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #666;
}

/* Error State */
.error {
    padding: 15px;
    background-color: #ffebee;
    color: #c62828;
    border-radius: 5px;
    margin: 10px;
    text-align: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 10px;
    color: #ddd;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}