/* =============================================
   前端C端全局公共样式 最终版
   品牌色与后台完全统一：#285ae8
   适用：所有用户端、店员端H5页面
   ============================================= */
:root {
    --primary: #285ae8;
    --success: #52c41a;
    --warning: #fa8c16;
    --danger: #ff4d4f;
    --text-main: #1d2129;
    --text-sub: #86909c;
    --text-light: #bfbfbf;
    --border: #f0f0f0;
    --bg-page: #f5f7fa;
    --bg-white: #ffffff;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 26px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: env(safe-area-inset-bottom);
}
img {max-width: 100%;display: block;}

/* 通用容器 */
.page-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 12px;
    min-height: 100vh;
}

/* 通用卡片 */
.common-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}
.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
}

/* 通用按钮 */
.btn-primary {
    width: 100%;
    height: 52px;
    line-height: 52px;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--primary);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary:active {
    background: #1a4ad4;
    transform: scale(0.98);
}
.btn-fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    line-height: 56px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom);
}

/* 通用表单 */
.form-item {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 8px;
}
.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    outline: none;
    background: #fff;
}
.form-input:focus {
    border-color: var(--primary);
}

/* 顶部渐变头 */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1a4ad4 100%);
    color: #fff;
    padding: 40px 20px 60px;
    text-align: center;
}
.header-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}
.header-desc {
    font-size: 14px;
    opacity: 0.9;
}

/* 功能网格菜单 */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: -30px;
}
.menu-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px 12px;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
}
.menu-item:active {
    transform: scale(0.96);
}
.menu-icon {
    font-size: 32px;
    margin-bottom: 12px;
}
.menu-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
}

/* 列表项通用 */
.list-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    box-shadow: var(--shadow);
}
.list-item-content {
    flex: 1;
}
.list-item-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}
.list-item-desc {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 8px;
    line-height: 1.4;
}
.price-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--danger);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 14px;
}

/* 响应式适配 */
@media (max-width: 375px) {
    .page-container {padding: 10px;}
    .common-card {padding: 14px;}
}