/* 全局重置 & 设计主题变量 完全匹配参考图蓝白极简商务 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --blue-main: #2478f5;
    --blue-light: #e8f0fe;
    --blue-deep: #1b66d9;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-page: #f6f8fc;
    --text-main: #1d2129;
    --text-sub: #6e7681;
    --line-color: #e7ecf3;
    --shadow-card: 0 2px 12px rgba(36, 120, 245, 0.06);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 75px;
}
.page-fade {
    animation: fadeUp 0.3s ease-out;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 图标统一规范，彻底解决超大图标问题 */
svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.icon-lg svg {
    width: 28px;
    height: 28px;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 顶部导航栏 */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px 10px;
}
.header-title {
    font-size: 18px;
    font-weight: 600;
}
.header-icon {
    color: var(--text-sub);
}

/* 页面头部品牌图标模块（居中卡片图标） */
.head-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 24px auto 12px;
    background: var(--blue-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.head-icon-wrap.blue-solid {
    background: linear-gradient(135deg, var(--blue-main), var(--blue-deep));
}
.head-icon-wrap.green {
    background: linear-gradient(135deg, #059669, var(--success));
}
.head-icon-wrap svg {
    color: var(--blue-main);
}
.head-icon-wrap.blue-solid svg, .head-icon-wrap.green svg {
    color: #fff;
}
.page-title {
    font-size: 26px;
    text-align: center;
    font-weight: 600;
}
.page-desc {
    text-align: center;
    color: var(--text-sub);
    margin: 10px 0 30px;
    font-size: 14px;
}

/* 通用卡片组件（复刻设计图分层毛玻璃卡片） */
.card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 16px;
    box-shadow: var(--shadow-card);
}
.card-lg {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 26px;
    margin: 16px;
    box-shadow: var(--shadow-card);
}
/* 首页2x2统计网格卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.stat-card {
    padding: 22px 12px;
    background: #fff;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-card);
}
.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--blue-main);
    margin-bottom: 4px;
}
.stat-label {
    color: var(--text-sub);
    font-size: 14px;
}

/* 表单输入框组件 */
.form-item {
    margin-bottom: 22px;
}
.form-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}
.input-box {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line-color);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    background: #fff;
}
.input-box:focus-within {
    border-color: var(--blue-main);
}
.input-box input, .input-box textarea {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 0;
    font-size: 16px;
    background: transparent;
}
textarea {
    min-height: 100px;
    resize: vertical;
}
input::placeholder {
    color: #cdd3de;
}

/* 按钮组件 */
.btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-sm);
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}
.btn-primary {
    background: var(--blue-main);
    color: #fff;
}
.btn-primary:hover {
    background: var(--blue-deep);
}
.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn svg {
    width: 16px;
    height: 16px;
}

/* 列表条目 */
.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-color);
    gap: 12px;
}
.list-row:last-child {
    border-bottom: none;
}
.list-left {
    flex: 1;
}
.list-title {
    font-size: 17px;
    font-weight: 500;
}
.list-desc {
    font-size: 14px;
    color: var(--text-sub);
    margin-top: 4px;
}
.list-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--danger);
}

/* 底部Tab导航栏 */
.tab-bar-merchant {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: #fff;
    display: flex;
    border-top: 1px solid var(--line-color);
    z-index: 999;
}
.tab-bar-buyer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: #fff;
    display: flex;
    border-top: 1px solid var(--line-color);
    z-index: 999;
}
.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 13px;
}
.tab-item.active {
    color: var(--blue-main);
}

/* 轮播图组件（买家店铺首页顶部） */
.banner-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}
.banner-slider {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
}
.banner-item {
    min-width: 100%;
    height: 100%;
}
.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}
.dot.active {
    background: #fff;
}

/* 提示消息 */
.msg-success {
    background: #dcfce7;
    color: #166534;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
.msg-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
