:root {
	--it-bg: #f7f5ee;
	--it-surface: #ffffff;
	--it-ink: #1f2a25;
	--it-muted: #6f7a73;
	--it-line: #e7e2d6;
	--it-line-soft: #f0ece2;
	--it-green: #244a3c;
	--it-green-2: #2f6b52;
	--it-green-soft: #e9f1ec;
	--it-amber: #c9823a;
	--it-red: #b4544a;
	--it-radius: 16px;
	--it-shadow: 0 18px 40px rgba(36, 74, 60, 0.06);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
	background: var(--it-bg);
	color: var(--it-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	font-size: 15px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--it-green-2); text-decoration: none; }
a:hover { color: var(--it-green); }

.it-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 10px 16px;
	background: #fff;
	border-radius: 0 0 8px 0;
}
.it-skip:focus { left: 0; }

/* ---------- 顶部 ---------- */


.it-header {
	flex: 0 0 auto;
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(247, 245, 238, 0.88);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--it-line);
}
body.admin-bar .it-header { top: 32px; }

.it-header-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 14px 28px;
}

.it-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--it-ink);
	flex-shrink: 0;
}
.it-brand:hover { color: var(--it-ink); }

.it-brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--it-green);
	color: #f7f4ea;
}
.it-brand-mark svg { width: 21px; height: 21px; }

.it-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.it-brand-name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.it-brand-sub { font-size: 12px; color: var(--it-muted); }

.it-nav { margin-left: auto; }
.it-nav-list {
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.it-nav-list a {
	display: inline-block;
	padding: 6px 2px;
	color: var(--it-muted);
	font-size: 14px;
}
.it-nav-list a:hover { color: var(--it-green); }
.it-nav-list .current-menu-item > a,
.it-nav-list .current_page_item > a { color: var(--it-green); font-weight: 600; }

.it-header-account .it-account-link {
	display: inline-block;
	padding: 7px 14px;
	border: 1px solid var(--it-line);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	color: var(--it-ink);
}
.it-header-account .it-account-link:hover { border-color: var(--it-green-2); }

/* ---------- 主体 ---------- */

.it-main { flex: 1 0 auto; min-height: 0; }

.it-shell {
	max-width: 1180px;
	margin: 0 auto;
	padding: 36px 28px 64px;
}

.it-shell-narrow { max-width: 840px; }

.it-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.it-eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--it-green-2);
}

.it-hero h1 {
	margin: 0;
	font-size: clamp(30px, 4vw, 42px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-weight: 800;
}

.it-hero-desc {
	margin: 10px 0 0;
	max-width: 460px;
	color: var(--it-muted);
	font-size: 14px;
}

.it-hero-actions { flex-shrink: 0; }

/* ---------- 按钮 ---------- */

.it-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 18px;
	border-radius: 10px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	text-decoration: none;
}

.it-btn-primary {
	background: var(--it-green);
	color: #f7f4ea;
}
.it-btn-primary:hover { background: #1b3a2f; color: #fff; }

.it-btn-ghost {
	background: #fff;
	border-color: var(--it-line);
	color: var(--it-ink);
}
.it-btn-ghost:hover { border-color: var(--it-green-2); color: var(--it-green); }

/* ---------- 统计 ---------- */

.it-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

.it-stat {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	background: var(--it-surface);
	border: 1px solid var(--it-line);
	border-radius: var(--it-radius);
	box-shadow: 0 1px 0 rgba(36, 74, 60, 0.03);
}

.it-stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 12px;
	background: var(--it-green-soft);
	color: var(--it-green);
}
.it-stat-icon svg { width: 22px; height: 22px; }

.it-stat-body { display: flex; flex-direction: column; line-height: 1.2; }
.it-stat-num { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.it-stat-label { font-size: 12px; color: var(--it-muted); }

/* ---------- 工具栏 ---------- */

.it-toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: var(--it-surface);
	border: 1px solid var(--it-line);
	border-radius: var(--it-radius);
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.it-search {
	position: relative;
	flex: 1 1 260px;
	min-width: 220px;
	margin: 0;
}

.it-search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: var(--it-muted);
	pointer-events: none;
}

.it-search input {
	width: 100%;
	padding: 10px 14px 10px 38px;
	border: 1px solid var(--it-line);
	border-radius: 10px;
	background: #fbfaf6;
	font-size: 14px;
	color: var(--it-ink);
	outline: none;
}
.it-search input:focus { border-color: var(--it-green-2); background: #fff; }

.it-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.it-select { margin: 0; }

.it-select select {
	max-width: 150px;
	padding: 9px 12px;
	border: 1px solid var(--it-line);
	border-radius: 10px;
	background: #fbfaf6;
	font-size: 13px;
	color: var(--it-ink);
	outline: none;
}
.it-select select:focus { border-color: var(--it-green-2); }

.it-reset { font-size: 13px; color: var(--it-muted); }
.it-reset:hover { color: var(--it-green); }

.it-result-count {
	margin: 0 4px 12px;
	font-size: 13px;
	color: var(--it-muted);
}

/* ---------- 数据表 ---------- */

.it-panel {
	background: var(--it-surface);
	border: 1px solid var(--it-line);
	border-radius: 20px;
	box-shadow: var(--it-shadow);
	overflow: hidden;
}

.it-table-wrap { overflow-x: auto; }

.it-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 880px;
	table-layout: fixed;
}

.it-table thead th {
	padding: 14px;
	text-align: left;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--it-muted);
	background: #fbfaf5;
	border-bottom: 1px solid var(--it-line-soft);
	white-space: nowrap;
}

.it-table tbody td {
	padding: 15px 14px;
	border-bottom: 1px solid var(--it-line-soft);
	font-size: 14px;
	vertical-align: middle;
}

.it-table tbody tr:last-child td { border-bottom: none; }
.it-table tbody tr:hover { background: #fcfbf7; }

.it-cell-name { font-weight: 700; }
.it-name-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.it-thumb { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 8px; object-fit: cover; background: #f0ece2; }
.it-col-name { width: 21%; }
.it-col-type { width: 74px; white-space: nowrap; }
.it-col-qty { white-space: nowrap; width: 152px; }
.it-col-loc { width: 17%; }
.it-col-time { width: 92px; color: var(--it-muted); font-size: 13px; white-space: nowrap; }
.it-table .it-col-purchase, .it-table .it-col-time { text-align: center; }
.it-table .it-col-time { padding-right: 22px; }
.it-col-purchase { width: 104px; color: var(--it-muted); font-size: 13px; white-space: nowrap; }
.it-col-status { width: 152px; }
.it-col-note { color: var(--it-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-cell-loc { color: var(--it-ink); }

.it-qty-text { font-variant-numeric: tabular-nums; }

/* ---------- 徽章 ---------- */

.it-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	line-height: 1.6;
	white-space: nowrap;
}

.it-status-in_stock { background: #e6f2ea; color: #226044; }
.it-status-borrowed { background: #fdf0df; color: #8a5312; }
.it-status-used_up { background: #f1efea; color: #6f6a60; }
.it-status-broken { background: #f9e7e4; color: #9c3a30; }

/* ---------- 数量步进器 ---------- */

.it-stepper {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.it-step {
	width: 24px;
	height: 24px;
	padding: 0;
	border: 1px solid var(--it-line);
	border-radius: 7px;
	background: #fff;
	color: var(--it-ink);
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}
.it-step:hover { border-color: var(--it-green-2); color: var(--it-green); }
.it-step:disabled { opacity: 0.5; cursor: default; }

.it-qty-value {
	min-width: 24px;
	text-align: center;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	border-radius: 4px;
}
.it-qty-value.is-updated { animation: it-flash 0.6s ease; }

@keyframes it-flash {
	0% { background: #d9efdf; }
	100% { background: transparent; }
}

.it-unit { font-size: 12px; color: var(--it-muted); }
.it-dot { margin: 0 6px; color: #b8b2a4; }

/* ---------- 移动端卡片 ---------- */

.it-cards { display: none; }

.it-card {
	padding: 16px;
	border: 1px solid var(--it-line);
	border-radius: var(--it-radius);
	background: var(--it-surface);
	box-shadow: 0 2px 6px rgba(36, 74, 60, 0.04);
}

.it-card-cover { margin: -16px -16px 14px; overflow: hidden; border-radius: 15px 15px 0 0; background: #f0ece2; aspect-ratio: 16 / 9; }
.it-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.it-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.it-card-name { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }

.it-card-meta {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--it-muted);
}

.it-card-purchase { margin: 6px 0 0; font-size: 12px; color: var(--it-muted); }
.it-card-note {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--it-muted);
	background: #fbfaf5;
	border-radius: 8px;
	padding: 6px 9px;
}

.it-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed var(--it-line-soft);
}

.it-card-qty { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- 分页 ---------- */

.it-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	justify-content: center;
	padding: 18px;
	border-top: 1px solid var(--it-line-soft);
}

.it-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border: 1px solid var(--it-line);
	border-radius: 9px;
	background: #fff;
	color: var(--it-ink);
	font-size: 13px;
}
.it-pagination .page-numbers:hover { border-color: var(--it-green-2); color: var(--it-green); }
.it-pagination .page-numbers.current {
	background: var(--it-green);
	border-color: var(--it-green);
	color: #fff;
}
.it-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ---------- 空状态 / 锁定 ---------- */

.it-empty {
	padding: 56px 24px;
	text-align: center;
	color: var(--it-muted);
}
.it-empty p { margin: 0 0 16px; }

.it-locked {
	max-width: 520px;
	margin: 48px auto;
	padding: 48px 32px;
	text-align: center;
	background: var(--it-surface);
	border: 1px solid var(--it-line);
	border-radius: 22px;
	box-shadow: var(--it-shadow);
}

.it-locked-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: var(--it-green-soft);
	color: var(--it-green);
}
.it-locked-icon svg { width: 28px; height: 28px; }

.it-locked h1 { margin: 0 0 10px; font-size: 24px; }
.it-locked p { margin: 0 0 22px; color: var(--it-muted); }

/* ---------- 页脚 ---------- */

.it-footer {
	flex: 0 0 auto;
	margin-top: auto;
	border-top: 1px solid var(--it-line);
	background: #fbfaf5;
}
.it-footer-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 22px 28px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 12px;
	color: var(--it-muted);
}
.it-footer-inner p { margin: 0; }

/* ---------- 普通内容页 ---------- */

.it-page-head { margin: 0 0 22px; }
.it-page-head h1 { margin: 0; font-size: clamp(26px, 3.5vw, 36px); line-height: 1.2; letter-spacing: -0.02em; }

.it-page-card {
	background: var(--it-surface);
	border: 1px solid var(--it-line);
	border-radius: 20px;
	padding: 34px 36px;
	box-shadow: var(--it-shadow);
	margin-bottom: 20px;
}

.it-content h2 { margin: 1.6em 0 0.6em; font-size: 22px; }
.it-content h3 { margin: 1.4em 0 0.5em; font-size: 18px; }
.it-content p { margin: 0 0 1em; }
.it-content ul, .it-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.it-content blockquote {
	margin: 1.4em 0;
	padding: 12px 18px;
	border-left: 3px solid var(--it-green-2);
	background: #fbfaf5;
	color: var(--it-muted);
}
.it-content code {
	padding: 2px 6px;
	border-radius: 5px;
	background: #f1efe7;
	font-size: 13px;
}
.it-content pre { overflow-x: auto; padding: 16px; background: #f4f2ea; border-radius: 10px; }

.it-post-meta { margin: 8px 0 18px; color: var(--it-muted); font-size: 13px; }

.it-post-list { display: grid; gap: 14px; }
.it-post-item {
	padding: 22px 24px;
	background: #fff;
	border: 1px solid var(--it-line);
	border-radius: var(--it-radius);
}
.it-post-item h2 { margin: 0 0 6px; font-size: 20px; }
.it-post-item p { margin: 0; color: var(--it-muted); }

/* ---------- 悬浮添加按钮 ---------- */

.it-fab {
	display: none;
	position: fixed;
	right: 20px;
	bottom: 24px;
	z-index: 90;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--it-green);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	align-items: center;
	justify-content: center;
	box-shadow: 0 12px 24px rgba(36, 74, 60, 0.24);
}
.it-fab:hover { color: #fff; background: #1b3a2f; }

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
	.it-header-inner { gap: 12px; padding: 12px 18px; }
	.it-brand-sub { display: none; }
	.it-nav-list { gap: 12px; }
	.it-shell { padding: 28px 18px 56px; }
}

@media (max-width: 760px) {
	body.admin-bar .it-header { top: 46px; }

	.it-nav { margin-left: auto; }
	.it-nav-list a { font-size: 13px; }
	.it-header-account { margin-left: 0; }
	.it-account-link { padding: 5px 10px; font-size: 12px; }

	.it-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
	.it-hero-actions { width: 100%; }
	.it-hero-actions .it-btn { width: 100%; }

	.it-stats { gap: 8px; }
	.it-stat { padding: 12px; gap: 8px; flex-direction: column; align-items: flex-start; }
	.it-stat-icon { width: 34px; height: 34px; border-radius: 10px; }
	.it-stat-icon svg { width: 18px; height: 18px; }
	.it-stat-num { font-size: 20px; }
	.it-stat-label { font-size: 11px; }

	.it-toolbar { flex-direction: column; align-items: stretch; }
	.it-search { flex: 0 0 auto; width: 100%; min-width: 0; }
	.it-search input { height: 42px; }
	.it-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.it-select, .it-select select { width: 100%; max-width: none; }
	.it-filters .it-btn { grid-column: 1 / -1; }
	.it-reset { text-align: center; }

	.it-table-wrap { display: none; }
	.it-cards {
		display: grid;
		gap: 10px;
		padding: 12px;
		background: #fbfaf5;
	}

	.it-pagination { padding: 14px 8px; }

	.it-fab { display: inline-flex; }

	.it-page-card { padding: 24px 20px; }
	.it-footer-inner { padding: 18px; flex-direction: column; }
}

@media (max-width: 420px) {
	.it-brand-name { font-size: 14px; }
	.it-nav-list { gap: 8px; }
	.it-nav-list a { font-size: 12px; }
	.it-stat-num { font-size: 18px; }
	.it-card { padding: 14px; }
}

/* ---------- 1.2 价格 / 库存 / 借出 / 详情 ---------- */

.it-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.it-low-notice {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 11px 16px;
	background: #fdf0df;
	border: 1px solid #f0dcc2;
	border-radius: 12px;
	color: #8a5312;
	font-size: 13px;
	text-decoration: none;
}
.it-low-notice:hover { color: #6f4310; border-color: #dfc09b; }
.it-low-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #c9823a;
	flex-shrink: 0;
}

.it-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: 1px solid var(--it-line);
	border-radius: 10px;
	background: #fbfaf6;
	color: var(--it-muted);
	font-size: 13px;
	text-decoration: none;
	white-space: nowrap;
}
.it-chip span {
	min-width: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #f0eee7;
	color: var(--it-ink);
	font-size: 11px;
	text-align: center;
}
.it-chip:hover { border-color: var(--it-green-2); color: var(--it-green); }
.it-chip.is-active { background: var(--it-green); border-color: var(--it-green); color: #fff; }
.it-chip.is-active span { background: rgba(255, 255, 255, 0.2); color: #fff; }

.it-item-link { color: inherit; text-decoration: none; }
.it-item-link:hover { color: var(--it-green); text-decoration: underline; text-underline-offset: 3px; }

.it-purchase-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.it-purchase-date { margin-top: 2px; font-size: 12px; color: var(--it-muted); }

.it-col-qty .it-stock-low { display: block; width: fit-content; }
.it-stock-low {
	display: inline-block;
	margin-top: 5px;
	padding: 1px 8px;
	border-radius: 999px;
	background: #fdf0df;
	color: #8a5312;
	font-size: 11px;
	line-height: 1.7;
	white-space: nowrap;
}

.it-loan-line { margin-top: 4px; font-size: 11px; color: #646970; }
.it-loan-line.is-overdue,
.it-card-loan.is-overdue,
.it-detail-span.is-overdue dd { color: #b4544a; }

.it-card-loan { margin: 6px 0 0; font-size: 12px; color: #646970; }
.it-card-price { font-weight: 600; }
.it-card-more { margin-left: auto; font-size: 12px; color: var(--it-green); text-decoration: none; white-space: nowrap; }
.it-card-more:hover { text-decoration: underline; }

/* 详情 */

.it-detail-back { margin: 0 0 14px; font-size: 13px; }
.it-detail-back a { color: var(--it-muted); text-decoration: none; }
.it-detail-back a:hover { color: var(--it-green); }

.it-detail {
	background: var(--it-surface);
	border: 1px solid var(--it-line);
	border-radius: 20px;
	box-shadow: var(--it-shadow);
	padding: 28px 30px;
}
.it-detail-cover { margin: -28px -30px 22px; overflow: hidden; border-radius: 19px 19px 0 0; background: #f0ece2; height: 300px; }
.it-detail-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.it-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.it-detail-head h1 { margin: 4px 0 0; font-size: 30px; line-height: 1.25; letter-spacing: -0.02em; word-break: break-word; }
.it-detail-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.it-detail-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 24px;
	margin: 22px 0 0;
	padding: 0;
	border-top: 1px solid var(--it-line-soft);
}
.it-detail-grid > div { padding: 14px 0; border-bottom: 1px solid var(--it-line-soft); }
.it-detail-grid dt { font-size: 12px; color: var(--it-muted); margin-bottom: 4px; }
.it-detail-grid dd { margin: 0; font-size: 15px; color: var(--it-ink); word-break: break-word; }
.it-detail-grid dd a { color: var(--it-green); text-decoration: none; }
.it-detail-grid dd a:hover { text-decoration: underline; }
.it-detail-span { grid-column: 1 / -1; }
.it-detail-span dd { font-weight: 600; }

.it-detail-note { margin-top: 20px; padding: 16px 18px; background: #fbfaf5; border: 1px solid var(--it-line-soft); border-radius: 12px; }
.it-detail-note h2 { margin: 0 0 6px; font-size: 13px; color: var(--it-muted); font-weight: 600; }
.it-detail-note p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--it-ink); }
.it-detail-actions { margin: 22px 0 0; }

@media (max-width: 900px) {
	.it-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.it-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
	.it-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.it-detail { padding: 22px 20px; }
	.it-detail-cover { margin: -22px -20px 18px; border-radius: 19px 19px 0 0; height: 200px; }
	.it-detail-head { flex-direction: column; }
	.it-detail-badges { justify-content: flex-start; }
	.it-detail-head h1 { font-size: 24px; }
	.it-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
}

@media (max-width: 420px) {
	.it-stats { gap: 8px; }
	.it-stat-num { font-size: 18px; }
	.it-detail-grid { grid-template-columns: 1fr; }
	.it-detail-span { grid-column: auto; }
}

@media (max-width: 1000px) {
	.it-table thead th:nth-child(7),
	.it-table tbody td.it-col-note { display: none; }
}

/* ---------- 前台添加物品 ---------- */

.it-notice {
	margin: 0 0 16px;
	padding: 11px 16px;
	border-radius: 12px;
	font-size: 13px;
	border: 1px solid transparent;
}
.it-notice-success {
	background: var(--it-green-soft);
	border-color: #cfe1d6;
	color: var(--it-green);
}

.it-form-shell { padding-top: 26px; }
.it-form-back { margin: 0 0 14px; font-size: 13px; }
.it-form-back a { color: var(--it-muted); }
.it-form-back a:hover { color: var(--it-green); }

.it-form-card {
	background: var(--it-surface);
	border: 1px solid var(--it-line);
	border-radius: 20px;
	box-shadow: var(--it-shadow);
	padding: 30px 30px 26px;
}
.it-form-head { margin-bottom: 24px; }
.it-form-head h1 { margin: 2px 0 8px; font-size: 28px; line-height: 1.25; letter-spacing: -0.02em; }
.it-form-desc { margin: 0; color: var(--it-muted); font-size: 13px; }

.it-form-alert {
	margin: 0 0 18px;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fbece9;
	border: 1px solid #efd3ce;
	color: #93453c;
	font-size: 13px;
}

.it-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}
.it-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.it-field-wide { grid-column: 1 / -1; }
.it-field > span {
	font-size: 13px;
	font-weight: 600;
	color: var(--it-ink);
}
.it-field > span em { color: var(--it-red); font-style: normal; }
.it-field input,
.it-field select,
.it-field textarea {
	width: 100%;
	height: 44px;
	padding: 0 13px;
	border: 1px solid var(--it-line);
	border-radius: 11px;
	background: #fdfcf8;
	color: var(--it-ink);
	font: inherit;
	font-size: 14px;
	outline: none;
	transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.it-field textarea { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.6; }
.it-field input:focus,
.it-field select:focus,
.it-field textarea:focus {
	border-color: var(--it-green-2);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(47, 107, 82, 0.08);
}
.it-field input::placeholder,
.it-field textarea::placeholder { color: #9aa49d; }
.it-field small { color: var(--it-muted); font-size: 12px; line-height: 1.5; }

.it-qty-inputs { display: grid; grid-template-columns: minmax(0, 1fr) 86px; gap: 10px; }

.it-form-section {
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid var(--it-line-soft);
}
.it-form-section h2 { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.it-cover-field { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 20px; align-items: start; }
.it-cover-copy { display: flex; flex-direction: column; gap: 8px; }
.it-cover-preview {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border: 1px dashed var(--it-line);
	border-radius: 12px;
	background: #fbfaf5;
}
.it-cover-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.it-cover-preview img[hidden] { display: none; }
.it-cover-empty { color: #9aa49d; font-size: 12px; }

.it-form-note { margin-top: 22px; }
.it-form-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 24px;
}
.it-form-actions .it-btn { min-height: 44px; padding: 0 22px; }

@media (max-width: 760px) {
	.it-form-card { padding: 22px 18px 20px; }
	.it-form-head h1 { font-size: 24px; }
	.it-form-grid { grid-template-columns: 1fr; gap: 15px; }
	.it-cover-field { grid-template-columns: 1fr; }
	.it-cover-preview { max-width: 240px; }
	.it-form-actions { flex-direction: column-reverse; align-items: stretch; }
	.it-form-actions .it-btn { width: 100%; justify-content: center; }
}
