* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #333333;
    min-height: 100vh;
    padding-bottom: 70px;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
}

@media (min-width: 768px) {
    .container {
        max-width: 480px;
    }
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333333;
}

.page-subtitle {
    font-size: 14px;
    color: #999999;
    margin-bottom: 24px;
}

.verify-container {
    padding: 40px 20px;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    font-size: 64px;
    color: #333333;
    margin-bottom: 20px;
}

.logo-img {
    width: 200px;
    height: auto;
    margin-bottom: 8px;
}

.verify-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
}

.input-group-text {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-right: none;
    color: #333333;
}

.form-control {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: #ffffff;
    border-color: #333333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.btn {
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #333333;
    color: #ffffff;
}

.btn-primary:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-secondary {
    background: transparent;
    color: #333333;
    border: 1px solid #e9ecef;
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #333333;
}

.btn-block {
    width: 100%;
    display: block;
}

.tips-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666666;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item i {
    color: #333333;
    font-size: 18px;
}

.products-page {
    padding-bottom: 90px;
}

.page-header {
    text-align: center;
    margin-bottom: 24px;
}

.search-section {
    margin-bottom: 24px;
}

.search-section .input-group {
    border-radius: 12px;
    overflow: hidden;
}

.search-section .input-group-text {
    border-radius: 12px 0 0 12px;
}

.search-section .form-control {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.search-section .btn {
    border-radius: 0 12px 12px 0;
}

.sort-section {
    margin-bottom: 24px;
}

.sort-buttons {
    display: flex;
    position: relative;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 4px;
    gap: 4px;
}

.sort-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.sort-btn.active {
    color: #fff;
}

.sort-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #333;
    border-radius: 20px;
    z-index: 1;
    transition: transform 0.3s ease;
}

.sort-slider.slide-right {
    transform: translateX(100%);
}

.sort-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.categories-section {
    margin-bottom: 24px;
}

.categories-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #e9ecef #f8f9fa;
}

.categories-list::-webkit-scrollbar {
    height: 6px;
}

.categories-list::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.categories-list::-webkit-scrollbar-thumb {
    background: #e9ecef;
    border-radius: 3px;
}

.categories-list::-webkit-scrollbar-thumb:hover {
    background: #dee2e6;
}

.category-item {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    background: #ffffff;
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.category-item:hover {
    border-color: #333333;
    color: #333333;
    background: #f8f9fa;
    transform: translateY(-2px);
}

.category-item.active {
    border-color: #333333;
    background: #333333;
    color: #ffffff;
}

.category-item i {
    font-size: 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    padding-top: 100%; /* 1:1 宽高比，强制正方形 */
    height: 0;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    height: auto;
}

.product-image.placeholder i {
    font-size: 32px;
    color: #e9ecef;
}

.product-info {
    padding: 16px 12px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-sales {
    font-size: 12px;
    color: #999999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.product-sales i {
    font-size: 12px;
    color: #666666;
}

.product-category {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #666666;
    margin-bottom: 8px;
}

.product-category i {
    font-size: 14px;
}



.success-page {
    text-align: center;
    padding-bottom: 90px;
}

.success-icon {
    margin-bottom: 24px;
}

.success-icon i {
    font-size: 72px;
    color: #28a745;
}

.success-message {
    margin-bottom: 32px;
}

.delivery-card,
.product-info-card,
.usage-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.card-header {
    background: #f8f9fa;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    border-bottom: 1px solid #e9ecef;
}

.card-header i {
    font-size: 20px;
}

.card-body {
    padding: 20px;
}

.delivery-item {
    margin-bottom: 16px;
}

.delivery-item:last-child {
    margin-bottom: 0;
}

.delivery-item label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #666666;
    margin-bottom: 8px;
}

.delivery-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    color: #333333;
    font-family: monospace;
}

.btn-copy {
    background: transparent;
    border: none;
    color: #333333;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background: #e9ecef;
}

.btn-copy i {
    font-size: 16px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.orders-page {
    padding-bottom: 90px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.order-header {
    background: #f8f9fa;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.order-id {
    font-size: 13px;
    color: #666666;
}

.order-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

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

.order-body {
    padding: 16px;
}

.order-product {
    margin-bottom: 12px;
}

.order-product-image {
    display: none;
}

.order-product-info {
    flex: 1;
}

.order-product-title {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 4px;
}

.order-product-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666666;
}

.order-product-category i {
    font-size: 14px;
}

.order-details {
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.order-detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
}

.order-detail-item:last-child {
    margin-bottom: 0;
}

.order-detail-label {
    color: #666666;
}

.order-detail-value {
    color: #333333;
    font-weight: 500;
}

.order-actions {
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
}

.order-actions .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: #e9ecef;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 16px;
    color: #999999;
    margin-bottom: 24px;
}

.tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999999;
    transition: all 0.3s ease;
    padding: 4px 12px;
    border-radius: 8px;
    flex: 1;
    max-width: 33.333%;
}

.tabbar-item:hover {
    color: #333333;
    background: #f8f9fa;
}

.tabbar-item.active {
    color: #333333;
}

.tabbar-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.tabbar-item span {
    font-size: 11px;
}

.modal-content {
    border-radius: 16px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 24px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 16px 24px;
}

.swal2-popup {
    border-radius: 16px;
}

.swal2-title {
    font-size: 18px;
    font-weight: 600;
}

.swal2-content {
    font-size: 15px;
}

.swal2-confirm {
    border-radius: 12px;
    background: #333333;
}

.swal2-cancel {
    border-radius: 12px;
}
