/* 通用样式 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	background-attachment: fixed;
	min-height: 100vh;
	color: #111827;
	line-height: 1.6;
}

.page {
	min-height: 100vh;
	overflow: hidden;
}

/* 顶部标题栏 */
.top-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: white;
	border-bottom: 1px solid #E5E7EB;
	z-index: 1000;
}

.top-title {
	font-size: 18px;
	font-weight: 600;
	color: #111827;
}

/* 头部样式 */
.header {
	position: fixed;
	top: 44px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	z-index: 1000;
	align-items: center;
	padding: 12px 16px;
	background: white;
	border-bottom: 1px solid #E5E7EB;
	z-index: 999;
}

.header-left {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.user-nickname {
	font-size: 16px;
	font-weight: 500;
	color: #111827;
}

.header-right {
	display: flex;
	align-items: center;
}

/* 头部右侧操作区域（用于管理按钮等） */
.header-actions {
	position: absolute;
	right: 16px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.login-btn {
	padding: 8px 16px;
	background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
	color: white;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
	transition: opacity 0.2s;
	border: none;
}

.login-btn:hover {
	opacity: 0.9;
}

.login-btn:active {
	opacity: 0.8;
}

.login-btn-text {
	color: white;
	font-weight: 500;
}

/* 登录按钮组 */
.login-btns {
	display: flex;
	gap: 8px;
	align-items: center;
}

.phone-login-btn {
	background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
}

.wechat-login-btn {
	background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
}

.logged-in {
	padding: 8px 16px;
}

.logged-text {
	font-size: 14px;
	color: #10B981;
	font-weight: 500;
}

/* 内容区域 */
.content {
	padding: 16px;
	padding-top: 120px; /* 为固定导航栏留出空间 */
	padding-bottom: 100px; /* 为底部导航栏留出空间（增加间距） */
	max-width: 600px;
	margin: 0 auto;
	height: calc(100vh );
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* 卡片行 */
.card-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 12px;
}

.card-col {
	width: 100%;
}

/* 底部导航 */
.bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	background: white;
	border-top: 1px solid #E5E7EB;
	padding: 8px 0;
	z-index: 1000;
}

.nav-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	cursor: pointer;
	padding: 8px;
	transition: opacity 0.2s;
}

.nav-item:hover {
	opacity: 0.7;
}

.nav-item.active {
	color: #4F46E5;
}

.nav-icon {
	font-size: 24px;
}

.nav-text {
	font-size: 12px;
	color: #6B7280;
}

.nav-item.active .nav-text {
	color: #4F46E5;
	font-weight: 500;
}

/* 标题 */
.section-title {
	font-size: 18px;
	font-weight: 600;
	color: #111827;
	margin: 24px 0 16px 0;
}

/* 发货相关样式 */
.shipment-list-section {
	margin-bottom: 24px;
}

.shipment-card {
	background: white;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shipment-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.shipment-no {
	font-size: 14px;
	font-weight: 500;
	color: #111827;
}

.shipment-details {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 12px;
}

.shipment-actions {
	display: flex;
	gap: 8px;
}

.ship-btn {
	flex: 1;
	padding: 10px;
	background: linear-gradient(135deg, #10B981 0%, #059669 100%);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: opacity 0.2s;
}

.ship-btn:hover {
	opacity: 0.9;
}

