:root {
	--gold: #c8a96e;
	--gold-light: #e2c88a;
	--gold-dark: #9a7d48;
	--black: #0d0c0b;
	--dark: #161410;
	--card: #1e1b16;
	--card2: #252118;
	--border: #3a3428;
	--text: #f0ead8;
	--text-muted: #9a8e7a;
	--danger: #c0392b;
	--radius: 10px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	height: 100%;
}

body {
	min-height: 100vh;
	background: var(--black);
	color: var(--text);
	font-family: 'Songti SC', 'SimSun', 'Noto Serif SC', serif;
	display: flex;
	flex-direction: column;
}
.pass {
	flex: 1;
}
a {
	text-decoration: none;
	color: inherit;
}
img {
	display: block;
}

/* ===== APP SHELL ===== */
.app {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--black);
}

/* ===== HEADER ===== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--dark);
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	height: 52px;
}

.logo a {
	font-size: 18px;
	font-weight: 700;
	color: var(--gold);
	letter-spacing: 2px;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.hd-btn {
	font-size: 12px;
	color: var(--text-muted);
	padding: 5px 10px;
	border-radius: 20px;
	border: 1px solid var(--border);
	white-space: nowrap;
	transition:
		color 0.2s,
		border-color 0.2s;
}

.hd-btn:hover {
	color: var(--gold);
	border-color: var(--gold-dark);
}

.hd-icon {
	font-size: 8px;
	color: var(--gold);
	margin-right: 4px;
}

.hd-contact {
	border-color: transparent;
}

/* ===== MAIN ===== */
.page {
	flex: 1 0 auto;
	padding: 16px;
}

/* ===== HERO ===== */
.hero {
	background: linear-gradient(135deg, #1e1b16 0%, #252118 100%);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px 18px;
	margin-bottom: 20px;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '拍';
	position: absolute;
	right: -10px;
	top: -10px;
	font-size: 100px;
	color: rgba(200, 169, 110, 0.05);
	font-weight: 900;
	pointer-events: none;
}

.hero-label {
	font-size: 11px;
	color: var(--gold);
	letter-spacing: 3px;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.hero-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 8px;
}

.hero-sub {
	font-size: 12px;
	color: var(--text-muted);
	letter-spacing: 1px;
}

.hero-divider {
	width: 40px;
	height: 2px;
	background: linear-gradient(90deg, var(--gold), transparent);
	margin: 12px 0;
}

/* ===== SECTION ===== */
.section {
	margin-bottom: 20px;
}

.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.section-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--gold);
	letter-spacing: 1px;
}

.section-link {
	font-size: 12px;
	color: var(--text-muted);
}

/* ===== AUCTION CARD ===== */
.auction-card {
	display: block;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px;
	margin-bottom: 10px;
	position: relative;
	overflow: hidden;
	transition: border-color 0.2s;
}

.auction-cover {
	width: 100%;
	height: 140px;
	background: var(--card2);
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 10px;
}

.auction-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cover-empty {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	font-size: 12px;
}

.auction-card:hover {
	border-color: var(--gold-dark);
}

.auction-card::after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 3px;
	height: 100%;
	background: linear-gradient(180deg, var(--gold), var(--gold-dark));
}

.auction-main {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 10px;
}

.auction-name {
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
	flex: 1;
	margin-right: 10px;
}

.auction-badge {
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 10px;
	white-space: nowrap;
}

.badge-active {
	background: rgba(200, 169, 110, 0.15);
	color: var(--gold);
}
.badge-upcoming {
	background: rgba(100, 150, 200, 0.15);
	color: #7aadcc;
}
.badge-ended {
	background: rgba(80, 80, 80, 0.3);
	color: var(--text-muted);
}

.auction-info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px;
}

.auction-info-item {
	font-size: 11px;
	color: var(--text-muted);
}

.auction-info-item span {
	color: var(--text);
}

.auction-arrow {
	position: absolute;
	right: 14px;
	bottom: 14px;
	font-size: 16px;
	color: var(--gold-dark);
}

/* ===== AUCTION HEAD ===== */
.auction-head {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px;
	margin-bottom: 14px;
}

.auction-head-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--gold);
	margin-bottom: 6px;
}

.auction-head-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 11px;
	color: var(--text-muted);
}

/* ===== SEARCH BAR ===== */
.search-bar {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.search-input {
	flex: 1;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 9px 12px;
	font-size: 13px;
	color: var(--text);
	outline: none;
	font-family: inherit;
}

.search-input::placeholder {
	color: var(--text-muted);
}
.search-input:focus {
	border-color: var(--gold-dark);
}

/* ===== CATEGORY SCROLL ===== */
.category-scroll {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 10px;
	margin-bottom: 14px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar {
	display: none;
}

.category-item {
	padding: 6px 14px;
	border-radius: 20px;
	border: 1px solid var(--border);
	font-size: 12px;
	color: var(--text-muted);
	white-space: nowrap;
	transition: all 0.2s;
}

.category-item.active,
.category-item:hover {
	background: var(--gold);
	color: var(--dark);
	border-color: var(--gold);
	font-weight: 600;
}

/* ===== ITEM CARD ===== */
.item-card {
	display: flex;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin-bottom: 10px;
	overflow: hidden;
	transition: border-color 0.2s;
}

.item-card:hover {
	border-color: var(--gold-dark);
}

.item-thumb {
	width: 100px;
	height: 100px;
	flex: 0 0 100px;
	background: var(--card2);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thumb-empty {
	font-size: 11px;
	color: var(--text-muted);
	text-align: center;
	padding: 8px;
}

.item-info {
	flex: 1;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.item-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 4px;
}

.item-meta {
	font-size: 11px;
	color: var(--text-muted);
	margin-bottom: 3px;
}

.item-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 4px;
}

.item-price-label {
	font-size: 11px;
	color: var(--text-muted);
}

.item-price-val {
	font-size: 16px;
	font-weight: 700;
	color: var(--gold);
}

.item-status-badge {
	font-size: 10px;
	padding: 2px 7px;
	border-radius: 8px;
	background: rgba(200, 169, 110, 0.15);
	color: var(--gold);
}

/* ===== ITEM DETAIL ===== */
.item-swiper {
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 14px;
}

.item-swiper img {
	width: 100%;
	height: 240px;
	object-fit: cover;
}

.empty-slide {
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--card2);
	color: var(--text-muted);
	font-size: 13px;
}

.swiper-pagination-bullet {
	background: var(--border);
	opacity: 1;
}
.swiper-pagination-bullet-active {
	background: var(--gold);
}

.item-summary {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px;
	margin-bottom: 12px;
}

.item-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 10px;
}

.item-tags {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.tag {
	font-size: 11px;
	padding: 3px 9px;
	border-radius: 10px;
	background: rgba(200, 169, 110, 0.12);
	color: var(--gold);
	border: 1px solid rgba(200, 169, 110, 0.25);
}

.tag-status {
	background: rgba(122, 173, 204, 0.12);
	color: #7aadcc;
	border-color: rgba(122, 173, 204, 0.25);
}

.info-list {
	display: grid;
	gap: 7px;
}

.info-row {
	display: flex;
	font-size: 12px;
	border-bottom: 1px solid var(--border);
	padding-bottom: 6px;
}

.info-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.info-key {
	color: var(--text-muted);
	width: 80px;
	flex: 0 0 80px;
}

.info-val {
	color: var(--text);
	flex: 1;
}

/* ===== BID PANEL ===== */
.bid-panel {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px;
	margin-bottom: 12px;
}

.bid-panel-title {
	font-size: 13px;
	color: var(--gold);
	font-weight: 600;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border);
}

.bid-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 7px 0;
	font-size: 13px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bid-row:last-of-type {
	border-bottom: none;
}

.bid-row .label {
	color: var(--text-muted);
}

.bid-row .gold {
	color: var(--gold);
	font-weight: 700;
	font-size: 16px;
}

.bid-action {
	margin-top: 14px;
}

/* ===== BUTTONS ===== */
.btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	font-family: inherit;
	transition: opacity 0.2s;
}

.btn:active {
	opacity: 0.8;
}

.btn-gold {
	background: linear-gradient(135deg, var(--gold), var(--gold-dark));
	color: var(--dark);
}

.btn-outline {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--text-muted);
}

.btn-outline-gold {
	background: transparent;
	border: 1px solid var(--gold-dark);
	color: var(--gold);
}

.btn-disabled {
	background: var(--card2);
	color: var(--text-muted);
	border: 1px solid var(--border);
	cursor: not-allowed;
}

.btn-sm {
	padding: 8px 12px;
	font-size: 12px;
	width: auto;
}

/* ===== PAST AUCTION BUTTON ===== */
.past-btn {
	display: block;
	background: var(--card);
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	padding: 14px;
	text-align: center;
	font-size: 13px;
	color: var(--text-muted);
}

.past-btn:hover {
	border-color: var(--gold-dark);
	color: var(--gold);
}

/* ===== MODAL ===== */
.modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	align-items: flex-end;
	justify-content: center;
}

.modal.active {
	display: flex;
}

.modal-mask {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
}

.modal-sheet {
	position: relative;
	z-index: 201;
	background: var(--card);
	border-top: 1px solid var(--border);
	border-radius: 16px 16px 0 0;
	width: 100%;
	max-width: 480px;
	padding: 20px 16px 32px;
}

.modal-handle {
	width: 40px;
	height: 4px;
	background: var(--border);
	border-radius: 2px;
	margin: 0 auto 16px;
}

.modal-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--gold);
	margin-bottom: 16px;
	text-align: center;
}

.modal-actions {
	display: flex;
	gap: 10px;
	margin-top: 14px;
}

.bid-convert {
	font-size: 12px;
	color: var(--gold);
	margin-top: 8px;
	padding: 8px;
	background: rgba(200, 169, 110, 0.08);
	border-radius: 6px;
	text-align: center;
}

/* ===== FORMS ===== */
.form-page {
	max-width: 400px;
	margin: 0 auto;
}

.form-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
}

.form-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--gold);
	text-align: center;
	margin-bottom: 6px;
}

.form-subtitle {
	font-size: 12px;
	color: var(--text-muted);
	text-align: center;
	margin-bottom: 20px;
}

.form-group {
	margin-bottom: 14px;
}

.form-label {
	display: block;
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 6px;
	letter-spacing: 0.5px;
}

.input,
.textarea {
	width: 100%;
	background: var(--card2);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 11px 12px;
	font-size: 14px;
	color: var(--text);
	outline: none;
	font-family: inherit;
	transition: border-color 0.2s;
}

.input:focus,
.textarea:focus {
	border-color: var(--gold-dark);
}
.input::placeholder,
.textarea::placeholder {
	color: var(--text-muted);
}

.textarea {
	min-height: 100px;
	resize: vertical;
}

.form-link {
	text-align: center;
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 14px;
}

.form-link a {
	color: var(--gold);
}

/* ===== USER CENTER ===== */
.user-hero {
	background: linear-gradient(135deg, var(--card) 0%, var(--card2) 100%);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px 16px;
	margin-bottom: 14px;
	text-align: center;
	position: relative;
}

.user-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--gold), var(--gold-dark));
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 10px;
	font-size: 22px;
	color: var(--dark);
	font-weight: 700;
}

.user-nickname {
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 4px;
}

.user-balance {
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 14px;
}

.user-balance-val {
	color: var(--gold);
	font-weight: 700;
	font-size: 15px;
}

.logout-btn {
	display: inline-block;
	font-size: 12px;
	color: var(--text-muted);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 5px 16px;
}

/* ===== MENU LIST ===== */
.menu-list {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 14px;
}

.menu-item {
	display: flex;
	align-items: center;
	padding: 14px 16px;
	border-bottom: 1px solid var(--border);
	transition: background 0.15s;
}

.menu-item:last-child {
	border-bottom: none;
}
.menu-item:hover {
	background: var(--card2);
}

.menu-icon {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: rgba(200, 169, 110, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	margin-right: 12px;
	flex: 0 0 28px;
}

.menu-text {
	flex: 1;
	font-size: 14px;
	color: var(--text);
}

.menu-arrow {
	color: var(--border);
	font-size: 18px;
}

/* ===== TABS ===== */
.tabs {
	display: flex;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 4px;
	margin-bottom: 14px;
	gap: 4px;
}

.tab {
	flex: 1;
	text-align: center;
	padding: 8px;
	border-radius: 6px;
	font-size: 13px;
	color: var(--text-muted);
	transition: all 0.2s;
}

.tab.active {
	background: var(--gold);
	color: var(--dark);
	font-weight: 600;
}

/* ===== ABOUT ===== */
.about-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 30px 20px;
	text-align: center;
}

.about-logo {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--gold), var(--gold-dark));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: var(--dark);
	font-weight: 700;
	margin: 0 auto 14px;
	box-shadow: 0 4px 20px rgba(200, 169, 110, 0.3);
}

.about-name {
	font-size: 20px;
	font-weight: 700;
	color: var(--gold);
	margin-bottom: 6px;
}

.about-desc {
	font-size: 12px;
	color: var(--text-muted);
	line-height: 1.8;
	margin-bottom: 14px;
}

.about-version {
	font-size: 11px;
	color: var(--border);
	border: 1px solid var(--border);
	border-radius: 20px;
	display: inline-block;
	padding: 4px 12px;
}

/* ===== EMPTY STATE ===== */
.empty {
	padding: 40px 20px;
	text-align: center;
	font-size: 13px;
	color: var(--text-muted);
}

.empty-icon {
	font-size: 32px;
	margin-bottom: 10px;
	opacity: 0.4;
}

/* ===== FOOTER ===== */
.site-footer {
	background: var(--dark);
	border-top: 1px solid var(--border);
	text-align: center;
	padding: 16px;
	flex-shrink: 0;
}

.footer-brand {
	font-size: 14px;
	color: var(--gold);
	font-weight: 600;
	letter-spacing: 2px;
	margin-bottom: 4px;
}

.footer-line {
	font-size: 11px;
	color: var(--text-muted);
}
