/* ===== 基础布局 ===== */
* { box-sizing: border-box; }
html, body {
	margin: 0; padding: 0;
	font-family: 'Segoe UI', sans-serif;
	/*background-color: #C7EDCC;*/
	color: #333;
}

/* ===== 布局结构（iframe 页面适配）===== */
.left-sidebar {
	width: 250px; background-color: #ffffff; border-right: 1px solid #ccc;
	height: 100vh; overflow-y: auto;
}
.content {
	padding: 30px; background-color: #f4f6f9;
}

/* ===== 左侧菜单（iframe 内的内容样式）===== */
.left-sidebar-title {
	text-align: center; font-size: 18px; color: #28a745; font-weight: bold; padding: 20px 0 10px 0;
}
.left-sidebar a {
	display: block; padding: 10px 15px; text-decoration: none; color: #333; font-size:14px;
}
.left-sidebar a:hover { background-color: #e9f5ff; }

/* ===== 表单样式（通用）===== */
form {
	width: 600px; background-color: #ffffff;
	box-shadow: none; margin: auto;
}
form label {
	margin-top: 12px; display: block; color: #333; 
}
form input[type="text"],
form input[type="number"],
form input[type="datetime-local"],
form input[type="password"],
form select {
	height:28px; width: 100%; padding: 8px; margin-top: 4px; border: 1px solid #ccc; background-color: #fff; color: #333; font-size: 16px; border-radius: 0;
}
form input[type="submit"] { margin-top: 20px; }

/* ===== 登录页样式 ===== */
.login-container {
	width: 550px; background-color: #ffffff; padding: 40px 30px; border: 1px solid #ccc; text-align: left; box-sizing: border-box;
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.login-container h2 { color: #007bff; margin-bottom: 25px; text-align: center; }
.login-container form { width: 100%; }
.login-container input[type="text"],
.login-container input[type="password"] {
	width: 100%; box-sizing: border-box; padding: 8px; margin-top: 5px; border: 1px solid #ccc; font-size: 16px;
}
.login-container input[type="submit"] {
	padding: 8px; font-size: 16px; border: 1px solid #ccc; cursor: pointer; width: 100px;
}
.login-container .error {
	background-color: #ffe0e0; color: #d8000c; padding: 10px; border: 1px solid #d8000c; margin-bottom: 15px; font-size: 14px; text-align: center;
}

/* ===== 成功提示框 ===== */
.success-message {
	background-color: #d4edda; border-left: 5px solid #28a745; padding: 20px; margin-bottom: 20px; color: #155724; text-align: center; font-size: 16px;
	width: 600px; margin-left: auto; margin-right: auto; border-radius: 0;
}

/* ===== 链接样式 ===== */
.print-link, .back-link {
	color: #007bff; text-decoration: none; display: block; text-align: center; margin-top: 20px;
}
.print-link:hover, .back-link:hover { text-decoration: underline; }

/* 表格样式 */
.inventory-table {
	width: 100%; border-collapse: collapse; margin-top: 0px; border: 1px solid #ccc; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.inventory-table th, .inventory-table td {
	padding: 12px 18px; text-align: left; border-bottom: 1px solid #ddd;
}
.inventory-table th {
	background-color: #BFD641; color: white; font-size: 16px;
}
.inventory-table tr:nth-child(even) { background-color: #ECF1D2; }
.inventory-table tr:hover { background-color: #e9f5ff; cursor: pointer; }
.inventory-table td { font-size: 14px; }
.inventory-table td[colspan="5"] {
	text-align: center; font-style: italic; color: #999;
}
.inventory-table tr:focus-within { background-color: #e0f7fa; outline: 2px solid #007bff; }


/* 右侧内容：跟随外壳等高即可 */
.content{
	flex: 1 1 auto; padding: 30px; background-color: #f4f6f9; min-height: auto !important;
}

.input, select, textarea {
	width: 100%; padding: 12px; border: 1px solid #ddd; font-size: 14px; box-sizing: border-box;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #007b5f; }

/* 全站直角化：所有元素默认无圆角 */
*, *::before, *::after { border-radius: 0 !important; }

/* 常见控件再兜底一次 */
button,div,input,select,textarea,img,a,label,fieldset,legend,table,thead,tbody,tfoot,tr,th,td,details,summary,dialog,code,pre,blockquote,nav,header,footer,section,article,aside,main,figure,figcaption,form,hr {
	border-radius: 0 !important;
}
a{ text-decoration:none !important; }

/* footer 粘底样式 */
.site-footer {
	margin-top: auto; text-align: center; padding: 10px; background: #fff; border-top: 1px solid #ccc; font-size: 14px; color: #555; width: 100%;
}

/* 左侧栏：不再固定 100vh，也不滚动 */
.left-sidebar{
	width: 250px; background-color: #fff; border-right: 1px solid #ccc; height: auto !important; overflow-y: visible !important;
}

.menu-level { list-style: none; margin: 0; padding: 0; }
.menu-item { margin-bottom: 8px; }
.menu-card {
	display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-size: 15px; cursor: pointer;
}
.menu-card.parent { font-weight: bold; color: #007b5f; }
.menu-card.child { background: #ffffff; color: #333; }
.menu-card:hover { background: #e9f5ff; }
.arrow { font-size: 10px; color: #007b5f; }
.submenu { margin-top: 5px; }

body {}
.product-container {
	max-width: 100%; max-width: 1200px; margin: 20px auto; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.product-title { font-size:14px !important; font-weight: bold; margin-bottom: 15px; color: #333; line-height: 1.4; }
.product-title { margin-bottom: 20px; text-align: left; display: inline-block; }
.product-price, .product-meta { text-align: left; }
.product-price { font-size:14px !important; color: #007b5f; }
.price-display { font-family: 'Arial', sans-serif; font-size:14px !important; font-weight: bold; color: #e63946; padding: 0.5rem 1rem; border-radius: 4px; display: inline-block; }
.price-symbol { font-size:14px !important; margin-right: 0.2rem; }
.price-decimal { font-size:14px !important; color: #6c757d; }
.product-meta {
	font-size: 14px; color: #666; margin-bottom: -10px; line-height: 1.6; border-top: 1px dashed #eee; border-bottom: 1px dashed #eee;
}
.product-description { font-size:14px !important; color: #444; line-height: 1.8; margin: 20px 0; }
.product-description img { max-width: 100%; height: auto; display: block; margin: 15px auto; }
.product-actions { margin-top: 30px; display: flex; gap: 15px; flex-wrap: wrap; }

.product-thumbnails { margin-top: 10px; }
.product-thumbnails img {
	width: 60px; height: 60px; object-fit: cover; border-radius: 4px; border: 2px solid transparent; cursor: pointer; margin-right: 5px; transition: all 0.2s; opacity: 0.7;
}
.product-thumbnails img:hover, .product-thumbnails img.active { border-color: #007b5f; opacity: 1; transform: scale(1.05); }

.shop-info { background: #fff9f5; padding: 15px; border-radius: 8px; display: flex; align-items: center; margin-top:20px; }
.shop-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-right: 15px; }
.shop-name { font-weight: bold; color: #333; }
.shop-meta { font-size: 12px; color: #999; margin-top:10px; }

.fixed-carousel { width: 100%; margin: 0; padding: 0; }
.carousel-item img { width: 100%; height: 400px; object-fit: contain; background-color: #999; }

.other-products-section {
	margin: 40px 0; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.other-product-card {
	width: 220px; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; text-align: center; padding: 10px; transition: transform 0.2s;
}
.other-product-card:hover { transform: translateY(-5px); }
.other-product-img { width: 100%; height: 160px; object-fit: contain; border-radius: 8px; background: #f0f0f0; }
.other-product-title {
	font-size: 15px; margin: 10px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.other-product-price { color: #007b5f; font-weight: bold; font-size: 18px; }

.mobile-only{ display:none; }

@media (max-width: 768px) {
	.product-container { padding: 10px; margin: 10px auto; }
	.product-title { font-size: 18px; margin-bottom: 10px; }
	.product-price { font-size: 22px; margin: 10px 0; }
	.product-meta { font-size: 13px; margin-bottom: 10px; padding: 8px 0; }
	.product-description { font-size: 14px; margin: 15px 0; }
	.carousel-item img { height: 250px; }
	.product-thumbnails { display: none !important; }
	.shop-info { padding: 10px; margin: 15px 0; }
	.shop-avatar { width: 40px; height: 40px; margin-right: 10px; }
	.product-actions { margin-top: 20px; flex-direction: column; }
	
	/* 原 .btn-lg 改为 .btnAll-lg（若使用） */
	.btnAll-lg { /* 移动端可按需微调字号/内边距 */
		font-size: 16px;
	}
	
	.other-products-section { padding: 15px; margin: 20px 0; }
	.other-product-card { width: 100%; margin-bottom: 15px; }
	.fixed-bottom { padding: 10px; }
	/* 原对 .btn 的移动端适配已移除，按钮请使用 .btnAll 体系 */
	#commentBox { height: 300px; }
	.d-none.d-lg-block { display: none !important; }
	.d-lg-none { display: block !important; }
	.mobile-only{ display:block; }
}



/* 自定义卡片 */
.sku-card{
	position: relative; display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid #ddd; border-radius: 8px; background: #fff; transition: .15s;
}
.sku-card img{ width: 56px; height: 56px; border-radius: 6px; object-fit: cover; background:#f5f5f5; }
.sku-card .sku-card-text{ flex: 1 1 auto; min-width: 0; }
.sku-card .sku-card-title{ font-size: 14px; color:#333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sku-card .sku-card-sub{ font-size: 12px; color:#999; }
.sku-card:hover{ box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.sku-card.active{ border-color:#007b5f; background:#fff9f5; }
.sku-card.disabled{ opacity:.45; cursor:not-allowed; text-decoration: line-through; }



/* ========= 商品大容器 | 玻璃卡片 ========= */ 
.product-container{
	position: relative;
	background: linear-gradient(to bottom, rgba(255,255,255,.62), rgba(255,255,255,.38));
	border: 1px solid var(--glass-border);
	border-radius: 14px;
	backdrop-filter: blur(var(--glass-blur)) saturate(150%) contrast(105%);
	-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%) contrast(105%);
	box-shadow: 0 12px 28px rgba(2,6,23,.12), inset 0 1px 0 var(--glass-hi);
	overflow: hidden;
}
.product-container::before{
	content:""; position:absolute; inset:0; pointer-events:none;
	background:
    linear-gradient(to bottom, rgba(255,255,255,.18), rgba(255,255,255,0) 55%),
    radial-gradient(120% 150% at -10% -30%, rgba(255,255,255,.18), rgba(255,255,255,0) 60%),
    radial-gradient(120% 150% at 110% 130%, rgba(255,255,255,.10), rgba(255,255,255,0) 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, rgba(255,255,255,0) 2px 7px);
	mix-blend-mode: screen;
}

/* ========= 轮播区域 | 水晶相框 ========= */
.fixed-carousel{
	background: rgba(255,255,255,.08);
	border: 1px solid var(--glass-border);
	border-radius: 12px;
	padding: 6px;
	backdrop-filter: blur(10px) saturate(140%);
	-webkit-backdrop-filter: blur(10px) saturate(140%);
	box-shadow: 0 10px 24px rgba(2,6,23,.12), inset 0 1px 0 var(--glass-hi);
}
.fixed-carousel .carousel-inner{ border-radius: 10px; overflow: hidden; }
.carousel-item img{ background-color:#f0f0f0; }

/* 玻璃质感的左右按钮（不遮图） */
.carousel-control-prev, .carousel-control-next{
	width: 42px; height: 42px; border-radius: 50%;
	background: rgba(255,255,255,.22);
	border: 1px solid rgba(255,255,255,.45);
	backdrop-filter: blur(8px) saturate(140%);
	-webkit-backdrop-filter: blur(8px) saturate(140%);
	top: calc(50% - 21px);
}
.carousel-control-prev:hover, .carousel-control-next:hover{ background: rgba(255,255,255,.35); }

/* 缩略图：微玻璃边框 */
.product-thumbnails img{
	background: rgba(255,255,255,.66);
	border: 1px solid rgba(255,255,255,.70);
	box-shadow: 0 6px 18px rgba(2,6,23,.15), inset 0 1px 0 var(--glass-hi);
}

/* ========= 店铺信息 | 暖色玻璃卡 ========= */
.shop-info{
	position: relative;
	background:
    linear-gradient(to bottom, rgba(255,255,255,.62), rgba(255,255,255,.38)),
    #fff9f5;
	border: 1px solid var(--glass-border);
	border-radius: 12px;
	backdrop-filter: blur(10px) saturate(150%);
	-webkit-backdrop-filter: blur(10px) saturate(150%);
	box-shadow: 0 10px 22px rgba(2,6,23,.10), inset 0 1px 0 var(--glass-hi);
}
.shop-avatar{ border:2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* 价格胶囊 | 玻璃质感 */
.price-display{ }



/* ========= 地图广告小卡 ========= */
.compact-ad-container{ border: 1px solid var(--glass-border); }

/* ========= 降级与动效偏好 ========= */
@supports not (backdrop-filter: blur(1px)){
	.product-container,
	.fixed-carousel,
	.shop-info,
	.price-display,
	.sku-option, .sku-card, .sku-list-item,
	.other-products-section,
	.compact-ad-container,
	.fixed-bottom.bg-white{
		backdrop-filter: none; -webkit-backdrop-filter: none;
	}
}
@media (prefers-reduced-motion: reduce){ .product-container::before{ opacity:.4; } }

/* 广告区域 */
.compact-ad-container { }
.compact-ad {
	display: flex; align-items: center; justify-content: space-between; padding: 8px; border-radius: 8px; text-decoration: none; color: #333;
}
.compact-ad img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.ad-badge { background-color: #007b5f; color: white; font-size: 12px; padding: 2px 6px; border-radius: 10px; }

/* 上传器 */
.uploader {border:2px dashed #999; padding:20px; text-align:center; background:#fafafa;}
.uploader.dragover {background:#eef;}
.file-list {margin-top:10px;}
.file-item {padding:6px 10px; border:1px solid #ddd; border-radius:6px; margin:6px 0; background:#fff;}
.row {display:flex; gap:10px; flex-wrap:wrap; margin:10px 0;}
.row > * {flex:1 1 180px;}
.progress {height:6px; background:#eee; border-radius:3px; overflow:hidden; margin-top:6px;}
.bar {height:6px; width:0; background:#4caf50;}
.input { width: 100%; padding: 12px; border: 1px solid #ddd; font-size: 14px; box-sizing: border-box; }

/* 让“可免费查看 / 可免费下载”两项靠左紧凑 */
.row.flags{ justify-content: flex-start; align-items: center; gap: 12px; font-weight: 700; }
.row.flags > *{ flex: 0 0 auto !important; }
.row.flags label{ display: inline-flex; align-items: center; gap: 8px; padding: 20px 12px; line-height: 1.2; }
.row.flags input[type="checkbox"]{ width: 18px; height: 18px; }

/* 全局样式（表单页） */
body { font-family: Arial, sans-serif; background-color: #f7f7f7; display: flex; flex-direction: column; justify-content: center; }
h2 { font-size: 28px; color: #333; text-align: center; }
.card { }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 16px; color: #333; margin-bottom: 8px; }
.input, select, textarea { width: 100%; padding: 12px; border: 1px solid #ddd; font-size: 14px; box-sizing: border-box; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #007b5f; }
.hint { font-size: 12px; color: #666; }
.actions { margin-top: 20px; display: flex; gap: 20px; justify-content: center; }

/* 列布局 */
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: stretch; }
.col { flex: 1 1 200px; min-width: 220px; display: flex; flex-direction: column; }

/* 单位chips */
.unit-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; background: #f7f8fa; border-radius: 10px; border: 1px solid #e6e6e6; }
.chip { padding: 6px 12px; background-color: #fff; border: 1px solid #ccc; cursor: pointer; transition: all 0.3s ease; }
.chip:hover { background-color: #007b5f; color: white; }
.chip.active { background-color: #007b5f; color: white; border-color: #007b5f; }

/* 标签输入 */
.tag-wrap { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border: 1px solid #ccc; border-radius: 8px; }
.tag { background: #eaeaea; padding: 6px 12px; border-radius: 6px; }
.tag .x { color: #666; cursor: pointer; margin-left: 6px; }

/* 图集预览 */
.images { display: flex; gap: 12px; flex-wrap: wrap; }
.img-tile { width: 150px; aspect-ratio: 1; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; background: #fafafa; position: relative; }
.img-tile img { width: 100%; height: 100%; object-fit: cover; }
.img-tile .rm {
	position: absolute; top: 6px; right: 6px; background: rgba(0, 0, 0, 0.5); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; text-align: center; line-height: 22px; cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.actions { flex-direction: column; }
	.input, select, textarea, .btnAll { font-size: 14px; }
}
@media (max-width: 480px) {
	.row { flex-direction: column; }
	.col { flex: 1 1 100%; }
	.product-card { padding: 12px; }
}

form { width: 100%; max-width: 1200px; margin: 0 auto; }
#tagInput,
#region {
	padding: 12px; border: 1px solid #ddd; font-size: 14px; width: 100%; box-sizing: border-box; margin-top:4px;
}

.unit-chips{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px; background:#f7f8fa; border:1px solid #e6e6e6; }
.unit-input{
	order:999; flex:0 0 160px; height:36px; padding:6px 12px; border:1px dashed #cbd5e1; background:#fff; font-size:14px; outline:none; box-sizing:border-box;
}
.unit-input::placeholder{ color:#9aa1a8; }
.chip.active{ border-color:#007b5f; }
.unit-row{ display:flex; gap:10px; align-items:center; }
#unitSelect, #unitCustom{ }
#unitSelect:focus, #unitCustom:focus{ }

/* 对齐优化 */
.row { align-items: flex-start !important; }
.row .col > .field { margin: 0 !important; }
.row .col > .field > label, .row .col > label { margin-bottom: 8px !important; }
#unitSelect, #unitCustom { margin-top: 0 !important; }

/* 单选组 */
.radio-group{ display:flex; align-items:center; gap:16px; height:44px; padding:0; }
.radio-group label{ display:inline-flex; align-items:center; gap:6px; font-weight:600; }
.radio-group input[type="radio"]{ width:16px; height:16px; margin:0; }

/* 成功提示卡 */
.success-wrap{
	max-width:760px; margin:48px auto; padding:32px 28px; border:1px solid #e5e7eb; background:#fff;
}
.success-head{ display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.success-ico{
	width:28px; height:28px; line-height:28px; text-align:center;
	font-size:18px; color:#fff; background:#16a34a; border:0; border-radius:0;
}
.success-title{ font-size:22px; font-weight:700; color:#111827; }
.success-desc{ color:#4b5563; margin:4px 0 18px; }
.meta{ display:flex; gap:16px; flex-wrap:wrap; padding:12px; background:#f9fafb; border:1px dashed #d1d5db; margin-bottom:18px; }
.actions{ display:flex; gap:12px; align-items:center; }
.link{ color:#007b5f; text-decoration:none; }
.link:hover{ text-decoration:underline; }
.note{ color:#6b7280; font-size:13px; margin-top:12px; }
.other-products-section .row { text-align: left !important; justify-content: flex-start !important; }

body { font-family: sans-serif; background: white; }
h3 { text-align: center; margin-bottom: 30px; }
.product-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.product-card {
	width: 220px; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; text-align: center; padding: 10px; transition: transform 0.2s;
}
.product-card:hover { transform: translateY(-5px); }
.product-card img { width: 100%; height: 160px; object-fit: contain; border-radius: 8px; background: #f0f0f0; }
.product-card h4 { margin: 10px 0 6px; font-size: 16px; color: #333; }
.product-card p { margin: 0; font-size: 14px; color: #777; }
.product-card a { text-decoration: none; color: inherit; }

.paginationMain { text-align: center; margin-top: 30px; }
.paginationMain a, .paginationMain strong {
	margin: 0 5px; padding: 6px 12px; background: #fff; border: 1px solid #ccc; border-radius: 6px; text-decoration: none; color: #007bff;
}
.paginationMain strong { background: #007b5f; color: #fff; border-color: #007b5f; }

.containerProduct {
	max-width: 1200px; margin: 20px auto; padding: 20px; background-color: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.quantity-control { margin-bottom: 20px; }
.quantity-control label { margin-right: 10px; }
.quantity-control input { width: 70px; padding: 5px; text-align: center; }
.checkout-button {
	background-color: #ff0036; color: #fff; border: none; padding: 10px 20px; font-size: 16px; cursor: pointer; border-radius: 4px;
}
.checkout-button:hover { background-color: #ff2a4a; }
.error-message {
	color: #ff0036; margin-bottom: 20px; padding: 10px; background-color: #ffeeee; border-radius: 4px;
}
.disabled-button { background-color: #cccccc; cursor: not-allowed; }
.points-info { margin-bottom: 15px; padding: 10px; background-color: #f8f8f8; border-radius: 4px; }
.total-price { font-size:14px !important; margin-top: 10px; }
.points-warning { color: #ff0036; margin-top: 5px; font-size: 14px; }

/* 头像与用户信息的布局 */
.user-info-container {
	display: flex; align-items: center; margin-bottom: 30px; gap: 20px; flex-wrap: wrap;
}
.head-pic img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.user-info-container div { font-size: 14px; color: #666; }
.user-info-container .shop-user-name { font-size: 18px; font-weight: bold; }

/* 让每一行 label 与 input 同行排列（登录） */
.login-form .form-row{
	display: flex; align-items: center; gap: 12px;
}
.login-form .form-row label{
	margin: 0; white-space: nowrap; text-align: left !important;font-size:14px !important;
}
.login-form .form-row input{
	flex: 1; margin-top: 0; width: auto; box-sizing: border-box;
}
@media (max-width: 480px){
	.login-form .form-row{ flex-direction: column; align-items: stretch; }
	.login-form .form-row label{ width: auto; text-align: left; }
}

/* 注册表单 label + input 同行（不改HTML） */
.content form label{
	display: inline-block; width: 100px; margin: 0 12px 12px 0; text-align: left; vertical-align: middle; white-space: nowrap;
}
.content .form-row{ display: flex; align-items: center; gap: 12px; }
.content .form-row label{ margin: 0; white-space: nowrap; text-align: left !important; }
.content .form-row input{ flex: 1; margin-top: 0; width: auto; box-sizing: border-box; }

/* 表单容器与提示块 */
div,section,aside,main,header,footer,button,input,select,textarea,a,
.login-container,.success-message{ border-radius:0 !important; }
.content form{
	width:100%; max-width:520px; background: var(--c-card, #fff);
	border:1px solid var(--c-border, #e5e7eb); padding:24px; margin:0 auto 24px; box-shadow:none;
}
.login-container.error, .success-message{
	display:block; width:100%; max-width:520px; box-sizing:border-box; margin:0 auto 16px; padding:12px 14px; background:#fff; border:1px solid var(--c-border, #e5e7eb);
}
.login-container.error{ border-left:3px solid var(--c-danger, #b91c1c); color:#991b1b; }
.success-message{ border-left:3px solid var(--c-success, #0f766e); color:#065f46; }
.success-message a{ color:var(--c-primary, #007b5f); text-decoration:none; }
.success-message a:hover{ text-decoration:underline; }

/* 输入聚焦 */
.content form input[type="text"],
.content form input[type="password"],
.content form input[type="number"],
.content form input[type="email"]{
	height:42px; padding:0 12px; border:1px solid #cfd4dc; background:#fff; color:var(--c-text, #222); outline:none; border-radius:0;
}
.content form input:focus{ border-color:var(--c-primary, #007b5f); box-shadow:0 0 0 2px rgba(0,123,95,.10); }
.content .content > div { text-align:initial; }
@media (max-width: 980px){
	.content{ padding:24px 16px; }
	.content form, .login-container.error, .success-message{ max-width:100%; }
}
.content form .form-actions{ display: flex; justify-content: center; }

/* ===== 统一按钮：.btnAll 系列 ===== */
:root{
	--c-primary: #007b5f;
	--c-primary-hover: #05684f;
	--c-text-on-primary: #fff;
	--c-secondary-bg: #f1f3f5;
	--c-secondary-border: #d0d7de;
}
.btnAll,
button.btnAll,
a.btnAll,
input[type="submit"].btnAll,
input[type="button"].btnAll {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0;                /* 尺寸由尺寸类控制 */
	border: 1px solid var(--c-primary);
	background: var(--c-primary);
	color: var(--c-text-on-primary);
	font-size: 16px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	user-select: none;
	border-radius: 0;
	box-shadow: none;
	height:28px;
}
.btnAll:hover { background: var(--c-primary-hover); border-color: var(--c-primary-hover); }
.btnAll:disabled, .btnAll[disabled] { opacity: .55; cursor: not-allowed; }
.btnAll.secondary { background: var(--c-secondary-bg); color: #333; border-color: var(--c-secondary-border); }
.btnAll.secondary:hover { background: #e6eaee; }

/* 尺寸 */
.btnAll-sm { width: 100px; height: 28px;  } /*小*/
.btnAll-md { width: 200px; height: 28px;  } /*中*/
.btnAll-lg { width: 300px; height: 28px;  } /*大*/

/* 铺满/居中 */
.btnAll-block { display: flex; width: 100%; }
.btnAll-center { display: flex; margin-left: auto; margin-right: auto; }

/* 链接按钮的文字与下划线覆盖，避免被全局 a:hover 影响 */
a.btnAll, a.btnAll:link, a.btnAll:visited, a.btnAll:hover, a.btnAll:active {
	color: var(--c-text-on-primary) !important; text-decoration: none !important;
}


.body1 .body1 *{
	font-size:14px !important;
}

.title1{
	font-size:16px !important;
}

.title2{
	font-size:18px !important;
}

.title3{
	font-size:20px !important;
}

.input1
{
	height:28px !important;
}

.input2
{
	height:28px !important;
}

a{
	text-decoration:none !important;
}

/* 两列自适应：左列宽度随内容变化，右列占剩余 */
.layout{
	display: grid;
	grid-template-columns: auto 1fr; /* 左=自适应，右=剩余 */
	align-items: start;
	gap: 24px;
	min-height: 100vh;
}

/* 右侧内容常规样式 */
.content{
	min-width: 0;            /* 防止内容把网格撑开 */
}

/* 如果你希望页面在极小屏下上下堆叠 */
@media (max-width: 768px){
	.layout{ grid-template-columns: 1fr; }
	#left-sidebar{ order: 2; }
	.content{ order: 1; }
}


/********统一控制页面********/
.parent-category-buttons,.children-category-container
{
	display:none !important; 
}

/* 768px - tablet: 2 columns */
@media (min-width: 768px) {
	.item {
		grid-template-columns: repeat(6, 1fr); /* 2 items per row on tablet */
	}
}

/* 1024px - desktop: 3 columns */
@media (min-width: 1024px) {
	.item {
		grid-template-columns: repeat(6, 1fr); /* 3 items per row on desktop */
	}
}

/* 1440px - large screens: 4 columns */
@media (min-width: 1440px) {
	.item {
		grid-template-columns: repeat(6, 1fr); /* 4 items per row on very large screens */
	}
}

/********统一控制页面********/