*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    color: #222;
}

body {
    -webkit-font-smoothing: antialiased;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-main {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 56px;
}

.app-header {
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.app-user {
    font-size: 12px;
    color: #888;
}

.tab-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    background: #ffffff;
    border-top: 1px solid #eee;
    display: flex;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

.tab-item-active {
    color: #409eff;
    font-weight: 600;
}

.page {
    padding: 12px 12px 24px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.product-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-card-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-text {
    color: #ff4d4f;
    font-size: 16px;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    border: none;
    background: #409eff;
    color: #ffffff;
    font-size: 13px;
}

.btn[disabled] {
    background: #ccc;
}

.btn-secondary {
    background: #ffffff;
    color: #409eff;
    border: 1px solid #409eff;
}

.btn-full {
    width: 100%;
    text-align: center;
    margin-top: 12px;
}

.text-muted {
    color: #999;
    font-size: 12px;
}

.text-small {
    font-size: 12px;
}

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

.form-label {
    font-size: 13px;
    margin-bottom: 4px;
}

.form-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    background: #f0f7ff;
    color: #409eff;
    margin-left: 4px;
}

.empty {
    text-align: center;
    padding: 32px 12px;
    color: #999;
    font-size: 13px;
}

.error-toast {
    position: fixed;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 9999;
}

