/* 森澜天达 EDI 平台 - 公共样式 v2 */
:root {
  --primary: #0077BE;
  --primary-light: #e0f0ff;
  --green: #00C853;
  --orange: #FF9800;
  --purple: #9C27B0;
  --accent: #00BCD4;
  --gradient: linear-gradient(135deg, #0077BE 0%, #00BCD4 100%);
  --text: #2c3e50;
  --text-light: #606266;
  --text-lighter: #909399;
  --border: #ebeef5;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.12);
  --max-width: 1200px;
  --danger: #f56c6c;
  --success: #67c23a;
  --warning: #e6a23c;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; color: var(--text); background: #f5f7fa; line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.85; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
/* Top bar */
.top-bar { background: #f8f9fb; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-lighter); }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.top-bar .links a { margin-left: 16px; color: var(--text-light); }
/* Header */
.site-header { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.04); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-header .logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--text); }
.site-header .logo .logo-icon { width: 36px; height: 36px; background: var(--gradient); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.search-box { display: flex; align-items: center; flex: 1; max-width: 480px; margin: 0 32px; }
.search-box input { flex: 1; height: 38px; border: 2px solid var(--primary); border-right: none; border-radius: 20px 0 0 20px; padding: 0 16px; font-size: 14px; outline: none; }
.search-box button { height: 38px; padding: 0 24px; background: var(--primary); color: #fff; border: none; border-radius: 0 20px 20px 0; cursor: pointer; font-size: 14px; }
.search-box button:hover { background: #0066a0; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions a { display: flex; align-items: center; gap: 4px; color: var(--text-light); font-size: 14px; }
.cart-badge { background: var(--orange); color: #fff; font-size: 11px; border-radius: 10px; padding: 0 6px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; }
/* Nav */
.main-nav { background: #fff; border-bottom: 1px solid var(--border); }
.main-nav ul { display: flex; list-style: none; gap: 0; }
.main-nav li a { display: block; padding: 14px 24px; font-size: 15px; color: var(--text); font-weight: 500; border-bottom: 3px solid transparent; transition: all 0.2s; }
.main-nav li a:hover, .main-nav li a.active { color: var(--primary); border-bottom-color: var(--primary); }
/* Footer */
.site-footer { background: #1a2a3a; color: #aab; padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 24px; }
.footer-col h4 { font-size: 15px; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; color: #aab; font-size: 13px; line-height: 2; }
.footer-col .comp-info { font-size: 13px; line-height: 1.8; color: #889; }
.footer-bottom { border-top: 1px solid #2a3a4a; padding-top: 16px; }
.footer-bottom .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.footer-bottom .links a { font-size: 12px; color: #889; }
.footer-bottom p { font-size: 12px; color: #667; }
/* Section title */
.section-title { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--text); margin: 32px 0 16px; }
.section-title::before { content: ''; width: 4px; height: 20px; background: var(--gradient); border-radius: 2px; }
.section-title .more { margin-left: auto; font-size: 13px; color: var(--text-lighter); font-weight: 400; }
/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--text-lighter); padding: 12px 0; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb .sep { margin: 0 6px; }
/* Card */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: all 0.2s; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
/* Badge */
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
/* Toast */
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,0.8); color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 14px; z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.toast.show { opacity: 1; }
/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 999; }
.modal-overlay.show { display: flex; }
.modal { background: #fff; border-radius: var(--radius); padding: 32px; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; position: relative; }
.modal .close { position: absolute; top: 12px; right: 16px; font-size: 24px; color: var(--text-lighter); cursor: pointer; }
.modal h2 { font-size: 20px; margin-bottom: 20px; }
/* Form */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; color: var(--text); margin-bottom: 6px; }
.form-group .required { color: #f56c6c; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 80px; }
.btn { display: inline-block; padding: 10px 24px; border: none; border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-block { display: block; width: 100%; }
.btn-outline { background: #fff; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-lighter); }
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }
/* Page title */
.page-title { font-size: 22px; font-weight: 700; color: var(--text); margin: 16px 0 4px; }
.page-desc { font-size: 14px; color: var(--text-lighter); margin-bottom: 20px; }

/* ============ 增强样式 v2 ============ */
/* 筛选栏 */
.filter-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: #fff; padding: 16px 20px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.filter-bar .filter-item { display: flex; align-items: center; gap: 8px; }
.filter-bar label { font-size: 14px; color: var(--text-light); white-space: nowrap; }
.filter-bar select, .filter-bar input { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; outline: none; }
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--primary); }
.filter-bar .btn-search { padding: 6px 16px; background: var(--gradient); color: #fff; border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; }
.filter-bar .btn-search:hover { opacity: 0.9; }
/* 分页 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 24px; padding-bottom: 20px; }
.pagination button { padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; font-size: 14px; color: var(--text-light); }
.pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination .page-info { font-size: 14px; color: var(--text-lighter); padding: 0 8px; }
.pagination .page-current { background: var(--gradient); color: #fff; border: none; }

/* 商品网格与卡片 */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: all 0.2s; }
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.product-card .cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #f0f0f0; }
.product-card .cover-wrap { position: relative; }
.product-card .tag { position: absolute; top: 8px; left: 8px; background: rgba(0,119,190,0.9); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.product-card .info { padding: 12px 16px; }
.product-card .title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .subtitle { font-size: 12px; color: var(--text-lighter); margin-bottom: 8px; }
.product-card .price-row { display: flex; justify-content: space-between; align-items: center; }
.product-card .price { font-size: 18px; font-weight: 700; color: var(--orange); }
.product-card .price-unit { font-size: 12px; font-weight: 400; }
.product-card .sales { font-size: 12px; color: var(--text-lighter); }

/* 品类网格 */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 16px; text-align: center; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; }
.cat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--primary-light); }
.cat-card .cat-icon { width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; }
.cat-card .cat-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cat-card .cat-desc { font-size: 12px; color: var(--text-lighter); line-height: 1.4; }

/* 信息列表 */
.info-list { display: flex; flex-direction: column; gap: 10px; }
.info-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: all 0.2s; }
.info-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.info-item .info-left { flex: 1; }
.info-item .info-tag { display: inline-block; background: #e3f2fd; color: var(--primary); font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-right: 8px; }
.info-item .info-title { font-size: 14px; font-weight: 600; color: var(--text); }
.info-item .info-meta { font-size: 12px; color: var(--text-lighter); margin-top: 4px; }
.info-item .info-meta span { margin-right: 12px; }
.info-item .info-budget { font-size: 15px; font-weight: 600; color: var(--orange); }

/* 列表页信息卡片 */
.info-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; transition: all 0.2s; }
.info-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.info-card .left { flex: 1; min-width: 0; }
.info-card .type-tag { display: inline-block; background: #e3f2fd; color: var(--primary); font-size: 12px; padding: 2px 8px; border-radius: 4px; margin-right: 8px; vertical-align: middle; }
.info-card .type-tag.news { background: #e8f5e9; color: var(--green); }
.info-card .type-tag.notice { background: #fff3e0; color: var(--orange); }
.info-card .title { font-size: 15px; font-weight: 600; color: var(--text); vertical-align: middle; }
.info-card .desc { font-size: 13px; color: var(--text-lighter); margin-top: 8px; }
.info-card .meta { font-size: 12px; color: var(--text-lighter); margin-top: 8px; }
.info-card .meta span { margin-right: 12px; }
.info-card .right { text-align: right; flex-shrink: 0; }
.info-card .budget { font-size: 16px; font-weight: 700; color: var(--orange); margin-bottom: 8px; }
.btn-accept { padding: 6px 16px; background: var(--gradient); color: #fff; border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; }
.btn-accept:hover { opacity: 0.9; }

/* Tab 栏 */
.tab-bar { display: flex; gap: 0; margin-bottom: 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tab-bar .tab { flex: 1; text-align: center; padding: 14px; font-size: 15px; font-weight: 500; color: var(--text-light); cursor: pointer; transition: all 0.2s; border-bottom: 3px solid transparent; }
.tab-bar .tab.active { color: var(--primary); border-bottom-color: var(--primary); background: #f0f7ff; }
.tab-bar .tab:hover:not(.active) { background: #f5f7fa; }

/* 商家卡片 */
.merchant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.merchant-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; }
.merchant-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--primary-light); }
.merchant-card .m-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.merchant-card .m-logo { width: 48px; height: 48px; border-radius: 10px; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.merchant-card .m-name { font-size: 15px; font-weight: 600; color: var(--text); }
.merchant-card .m-type { font-size: 12px; color: var(--text-lighter); }
.merchant-card .m-intro { font-size: 13px; color: var(--text-light); min-height: 40px; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.merchant-card .m-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-lighter); border-top: 1px solid var(--border); padding-top: 12px; }
.merchant-card .m-meta .rating { color: var(--orange); }

/* 订单卡片 */
.order-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.order-card .o-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-lighter); background: #fafbfc; }
.order-card .o-head .o-status { color: var(--primary); font-weight: 600; }
.order-card .o-body { display: flex; gap: 16px; padding: 16px 20px; align-items: center; }
.order-card .o-body img { width: 80px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; background: #f0f0f0; }
.order-card .o-info { flex: 1; min-width: 0; }
.order-card .o-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.order-card .o-meta { font-size: 12px; color: var(--text-lighter); }
.order-card .o-right { text-align: right; flex-shrink: 0; }
.order-card .o-price { font-size: 16px; font-weight: 700; color: var(--orange); }
.order-card .o-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 20px 16px; }
.order-card .o-actions .btn { padding: 6px 16px; font-size: 13px; }

/* 登录页 */
.auth-page { min-height: calc(100vh - 300px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: linear-gradient(135deg, #e8f4fd 0%, #f5f7fa 100%); }
.auth-box { background: #fff; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.08); padding: 40px; width: 420px; max-width: 100%; }
.auth-box h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.auth-box .sub { text-align: center; color: var(--text-lighter); font-size: 13px; margin-bottom: 24px; }
.auth-tabs { display: flex; margin-bottom: 24px; border-bottom: 2px solid var(--border); }
.auth-tabs .tab { flex: 1; text-align: center; padding: 10px; font-size: 15px; cursor: pointer; color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.auth-tabs .tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-img { width: 120px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--border); cursor: pointer; background: #f0f2f5; overflow: hidden; }
.captcha-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.captcha-img.loading { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-lighter); }
.sms-row { display: flex; gap: 10px; }
.sms-row input { flex: 1; }
.sms-row .btn-sms { width: 130px; flex-shrink: 0; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-lighter); }

/* 详情页（商品） */
.detail-wrap { display: flex; gap: 32px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; margin: 20px 0; }
.detail-wrap .d-img { width: 400px; flex-shrink: 0; }
.detail-wrap .d-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: #f0f0f0; }
.detail-wrap .d-info { flex: 1; }
.detail-wrap .d-title { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.detail-wrap .d-subtitle { font-size: 14px; color: var(--text-lighter); margin-bottom: 16px; }
.detail-wrap .d-price { font-size: 28px; font-weight: 700; color: var(--orange); margin-bottom: 16px; }
.detail-wrap .d-price .unit { font-size: 14px; font-weight: 400; }
.detail-wrap .d-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.detail-wrap .d-tags span { background: var(--primary-light); color: var(--primary); font-size: 12px; padding: 3px 10px; border-radius: 14px; }
.detail-wrap .d-row { font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.detail-wrap .d-actions { display: flex; gap: 12px; margin-top: 20px; }
.detail-wrap .d-actions .btn { padding: 12px 32px; font-size: 15px; }
.detail-desc { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 32px; margin-bottom: 20px; }
.detail-desc h3 { font-size: 16px; margin-bottom: 12px; color: var(--text); }
.detail-desc .d-content { font-size: 14px; color: var(--text-light); line-height: 1.8; white-space: pre-wrap; }
.review-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.review-item:last-child { border-bottom: none; }
.review-item .r-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-lighter); margin-bottom: 6px; }
.review-item .r-stars { color: var(--orange); }
.review-item .r-content { font-size: 14px; color: var(--text); }

/* 聊天弹窗 */
.chat-modal { display: flex; flex-direction: column; height: 560px; max-height: 80vh; padding: 0 !important; overflow: hidden; }
.chat-modal .chat-head { padding: 14px 20px; background: var(--gradient); color: #fff; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.chat-modal .chat-head .close { color: #fff; }
.chat-modal .chat-sub { font-size: 12px; font-weight: 400; opacity: 0.85; }
.chat-modal .chat-body { flex: 1; overflow-y: auto; padding: 16px 20px; background: #f5f7fa; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 75%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.chat-msg .c-time { font-size: 11px; color: var(--text-lighter); margin-top: 4px; }
.chat-msg.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.me .c-time { color: rgba(255,255,255,0.7); text-align: right; }
.chat-msg.other { align-self: flex-start; background: #fff; color: var(--text); box-shadow: var(--shadow); border-bottom-left-radius: 4px; }
.chat-modal .chat-input { display: flex; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--border); background: #fff; }
.chat-modal .chat-input input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 20px; font-size: 14px; outline: none; }
.chat-modal .chat-input input:focus { border-color: var(--primary); }
.chat-modal .chat-input .btn { border-radius: 20px; }

/* 购物车 */
.cart-item { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 12px; }
.cart-item img { width: 80px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; background: #f0f0f0; }
.cart-item .c-info { flex: 1; min-width: 0; }
.cart-item .c-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cart-item .c-price { font-size: 15px; font-weight: 700; color: var(--orange); }
.cart-item .c-qty { display: flex; align-items: center; gap: 8px; }
.cart-item .c-qty button { width: 26px; height: 26px; border: 1px solid var(--border); background: #fff; border-radius: 4px; cursor: pointer; font-size: 14px; line-height: 1; }
.cart-item .c-qty span { min-width: 30px; text-align: center; font-size: 14px; }
.cart-footer { display: flex; justify-content: flex-end; align-items: center; gap: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; position: sticky; bottom: 0; }
.cart-footer .total { font-size: 16px; }
.cart-footer .total .amount { color: var(--orange); font-size: 22px; font-weight: 700; }

/* 个人中心 */
.profile-card { background: var(--gradient); border-radius: var(--radius); color: #fff; padding: 32px; display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.profile-card .avatar { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; font-size: 32px; flex-shrink: 0; }
.profile-card .p-name { font-size: 20px; font-weight: 700; }
.profile-card .p-phone { font-size: 13px; opacity: 0.85; }
.profile-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.profile-menu .menu-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; cursor: pointer; transition: all 0.2s; }
.profile-menu .menu-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.profile-menu .menu-item .mi-icon { font-size: 26px; margin-bottom: 8px; }
.profile-menu .menu-item .mi-text { font-size: 13px; color: var(--text-light); }

/* 商家消息中心 */
.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg-card { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; cursor: pointer; transition: all 0.2s; }
.msg-card:hover { box-shadow: var(--shadow-hover); }
.msg-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.msg-card .m-body { flex: 1; min-width: 0; }
.msg-card .m-title { font-size: 14px; font-weight: 600; color: var(--text); }
.msg-card .m-last { font-size: 12px; color: var(--text-lighter); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-card .m-side { text-align: right; flex-shrink: 0; }
.msg-card .m-time { font-size: 12px; color: var(--text-lighter); }
.msg-card .unread { display: inline-block; min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; line-height: 18px; text-align: center; margin-top: 4px; padding: 0 5px; }

/* 入驻类型选择 */
.join-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.join-type-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 20px; text-align: center; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; }
.join-type-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.join-type-card.active { border-color: var(--primary); background: var(--primary-light); }
.join-type-card .jt-icon { font-size: 36px; margin-bottom: 12px; }
.join-type-card .jt-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.join-type-card .jt-desc { font-size: 12px; color: var(--text-lighter); line-height: 1.5; }
.join-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; max-width: 720px; margin: 0 auto; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.upload-box { border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 20px; text-align: center; color: var(--text-lighter); cursor: pointer; transition: all 0.2s; }
.upload-box:hover { border-color: var(--primary); color: var(--primary); }
.upload-box .up-icon { font-size: 28px; margin-bottom: 6px; }
.upload-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.upload-list .file-item { display: flex; justify-content: space-between; align-items: center; background: #f5f7fa; border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; color: var(--text-light); }
.upload-list .file-item .del { color: var(--danger); cursor: pointer; }

/* 移动端 */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .merchant-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-wrap { flex-direction: column; }
  .detail-wrap .d-img { width: 100%; }
}
@media (max-width: 768px) {
  .site-header .container { height: 52px; }
  .search-box { margin: 0 12px; }
  .header-actions .cart-text { display: none; }
  .main-nav ul { overflow-x: auto; flex-wrap: nowrap; }
  .main-nav li a { padding: 10px 14px; white-space: nowrap; font-size: 14px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .top-bar .container { font-size: 12px; }
  .top-bar .links a { margin-left: 10px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .merchant-grid { grid-template-columns: repeat(1, 1fr); }
  .profile-menu { grid-template-columns: repeat(2, 1fr); }
  .cat-card { padding: 16px 8px; }
  .order-card .o-body { flex-wrap: wrap; }
  .type-type-grid { grid-template-columns: repeat(1, 1fr); }
  .form-grid { flex-direction: column; gap: 0; }
  .join-type-grid { grid-template-columns: repeat(1, 1fr); }
}