/* 订单查询页面样式 */
.query-container {
	margin: 0 auto;
}
.query-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 10px;
}
/* 搜索框区域 */
.search-box {
	background: #f8fafc;
	border-radius: 24px;
	padding: 1.5rem;
	margin-bottom: 2rem;
}
.search-tabs {
	display: flex;
	gap: 1rem;
	margin-bottom: 1.2rem;
	border-bottom: 1px solid #e2e8f0;
}
.search-tab {
	padding: 0.5rem 1rem;
	font-weight: 500;
	color: #64748b;
	border-bottom: 2px solid transparent;
}
.search-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.search-input-group {
	display: flex;
	gap: 0.8rem;
}
@media (max-width: 640px) {
	.search-input-group {
		flex-direction: column;
	}
}
.search-input {
	flex: 1;
	padding: 0.9rem 1.2rem;
	border: 1px solid #e2e8f0;
	border-radius: 50px;
	font-size: 0.95rem;
	outline: none;
	background: white;
}
.search-btn {
	background: var(--theme-color);
	border: none;
	padding: 0.9rem 2rem;
	border-radius: 50px;
	font-weight: 600;
	color: #0f172a;
	cursor: pointer;
	transition: 0.2s;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	text-decoration: none;
}
.search-btn:hover {
	background: var(--theme-dark);
	transform: translateY(-1px);
}
.search-hint {
	font-size: 0.75rem;
	color: #94a3b8;
	display: flex;
	align-items: center;
	gap: 6px;
}
/* 订单结果区域 */
.order-result {
	margin-top: 1rem;
}
.order-card {
	background: #fff;
	border: 1px solid #eef2ff;
	border-radius: 24px;
	overflow: hidden;
	margin-bottom: 1.5rem;
}
.order-header {
	background: #f8fafc;
	padding: 1rem 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.8rem;
	border-bottom: 1px solid #eef2ff;
}
.order-number {
	font-weight: 700;
	color: #0f172a;
}
.order-status {
	padding: 0.25rem 0.8rem;
	border-radius: 30px;
	font-size: 0.75rem;
	font-weight: 600;
}
.status-paid {
	background: #dcfce7;
	color: #15803d;
}
.status-shipped {
	background: #dbeafe;
	color: #1e40af;
}
.status-completed {
	background: #fef9c3;
	color: #854d0e;
}
.status-pending {
	background: #fee2e2;
	color: #b91c1c;
}
.order-body {
	padding: 1.5rem;
}
.order-item {
	display: flex;
	gap: 1rem;
	padding-bottom: 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid #f1f5f9;
}
.order-item-img {
	width: 60px;
	height: 60px;
	border-radius: 12px;
	background-size: cover;
	background-position: center;
	background-color: #f1f5f9;
	flex-shrink: 0;
}
.order-item-info {
	flex: 1;
}
.order-item-title {
	font-weight: 600;
	margin-bottom: 0.25rem;
}
.order-item-price {
	color: var(--theme-color);
	font-weight: 700;
	font-size: 0.9rem;
}
.order-detail-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-top: 1rem;
	padding-top: 0.5rem;
}
.order-detail-item {
	flex: 1;
	min-width: 150px;
}
.detail-label {
	font-size: 0.7rem;
	color: #64748b;
	margin-bottom: 0.25rem;
}
.detail-value {
	font-weight: 500;
	color: #1e293b;
	word-break: break-all;
}
.order-footer {
	background: #fafcff;
	padding: 1rem 1.5rem;
	border-top: 1px solid #eef2ff;
	display: flex;
	justify-content: flex-end;
}
.contact-support {
	color: var(--theme-color);
	text-decoration: none;
	font-size: 0.85rem;
}
.no-result {
	text-align: center;
	padding: 3rem;
	background: #f8fafc;
	border-radius: 24px;
	color: #64748b;
}

/* 链接样式 */
a {
	text-decoration: none;
}
.search-tab.active {
	color: var(--theme-color);
	border-bottom-color: var(--theme-color);
}
/* 默认显示订单号查询，隐藏邮箱查询 */
#emailForm {
	display: none;
}
/* 锚点目标显示效果 */
#emailForm:target {
	display: block;
}
#orderForm:target {
	display: block;
}


/* 面包屑导航 */
.breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 1.2rem;
	font-size: 0.85rem;
	color: #64748b;
}
.breadcrumb a {
	color: var(--theme-color);
	text-decoration: none;
	transition: color 0.2s;
}
.breadcrumb a:hover {
	text-decoration: underline;
}
.breadcrumb .separator {
	color: #94a3b8;
	font-size: 0.7rem;
}
.breadcrumb .current {
	color: #1e293b;
	font-weight: 500;
}

/* 订单确认页面样式 */
.order-container {
	margin: 0 auto;
}
.order-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 10px;
}
.order-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 1.5rem;
}
@media (max-width: 768px) {
	.order-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}
/* 左侧订单信息 */
.order-section {
	background: #fff;
	border: 1px solid #eef2ff;
	border-radius: 24px;
	padding: 1.5rem;
	margin-bottom: 1rem;
}
.section-title {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--theme-light);
	display: flex;
	align-items: center;
	gap: 8px;
}
.order-item {
	display: flex;
	gap: 1rem;
	padding: 1rem 0;
}
.order-item-img {
	width: 80px;
	height: 80px;
	border-radius: 16px;
	background-size: cover;
	background-position: center;
	background-color: #f1f5f9;
	flex-shrink: 0;
}
.order-item-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.order-item-title {
	font-weight: 600;
	font-size: 1rem;
	margin-bottom: 0.5rem;
	color: #1e293b;
}
.info-row {
	display: flex;
	justify-content: space-between;
	padding: 0.6rem 0;
	border-bottom: 1px solid #f1f5f9;
}
.info-label {
	color: #64748b;
}
.info-value {
	font-weight: 500;
	color: #1e293b;
}
.email-display {
	background: #f8fafc;
	padding: 0.5rem 0.8rem;
	border-radius: 40px;
	font-size: 0.85rem;
}
/* 右侧汇总 */
.summary-card {
	background: #f8fafc;
	border-radius: 24px;
	padding: 1.5rem;
	position: sticky;
	top: 100px;
}
.summary-title {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 1rem;
}
.summary-row {
	display: flex;
	justify-content: space-between;
	padding: 0.8rem 0;
	border-bottom: 1px solid #e2e8f0;
}
.summary-total {
	display: flex;
	justify-content: space-between;
	padding: 1rem 0;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--theme-color);
}
.submit-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: var(--theme-color);
	color: #0f172a;
	text-decoration: none;
	padding: 1rem;
	border-radius: 50px;
	font-weight: 700;
	font-size: 1rem;
	transition: 0.2s;
	margin-top: 1rem;
	border: none;
	cursor: pointer;
}
.submit-link:hover {
	background: var(--theme-dark);
	transform: translateY(-1px);
}

/* 倒计时组件样式 */
.countdown-container {
    background: linear-gradient(135deg, #fff5e6 0%, #fff0e0 100%);
    border-radius: 20px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ffe0b5;
    position: relative;
    overflow: hidden;
}
.countdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}
.countdown-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #b45309;
    font-size: 0.85rem;
}
.countdown-title i {
    font-size: 1rem;
}
.countdown-timer {
    font-family: monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #dc2626;
    background: white;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    letter-spacing: 2px;
}
.countdown-progress {
    height: 6px;
    background: #ffe0b5;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.5rem;
}
.countdown-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f97316, #dc2626);
    width: 100%;
    border-radius: 10px;
    transition: width 1s linear;
}
.countdown-warning {
    font-size: 0.65rem;
    color: #b45309;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
.countdown-expired {
    background: #fee2e2;
    border-color: #fecaca;
}
.countdown-expired .countdown-timer {
    color: #9ca3af;
}