/* xuanxue-core front-end styles. Scoped under .xx-* classes. */

/* ---- product showcase grid ---- */
.xx-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}
.xx-product-card {
	display: block;
	background: #fff;
	border: 1px solid #e8e0d2;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: #2b2b2b;
	transition: box-shadow .15s, transform .15s;
}
.xx-product-card:hover { box-shadow: 0 4px 14px rgba(158,43,37,.12); transform: translateY(-2px); }
.xx-card-thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	background: #f3ecdf;
}
.xx-card-noimg { background: linear-gradient(135deg, #f3ecdf, #e8d9c0); }
.xx-card-body { padding: 10px 12px; }
.xx-card-body h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.xx-card-price { font-size: 12px; color: #9e2b25; }

/* ---- single product detail ---- */
.xx-product-detail { margin: 24px 0; }
.xx-product-detail table { border-collapse: collapse; width: 100%; }
.xx-product-detail th, .xx-product-detail td {
	text-align: left; padding: 8px 12px; border-bottom: 1px solid #ece6da; font-size: 14px;
}
.xx-product-detail th { width: 120px; color: #8a7f6f; font-weight: 500; background: #fbf7f0; }
.xx-meaning { margin-top: 14px; }
.xx-meaning h4 { margin: 0 0 6px; font-size: 15px; }
.xx-meaning p { margin: 0; font-size: 14px; color: #444; line-height: 1.7; }

/* ---- inquiry block ---- */
.xx-inquiry {
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	margin: 20px 0; padding: 14px 16px;
	background: linear-gradient(180deg,#fff,#fbf7f0);
	border: 1px solid #e8e0d2; border-radius: 8px;
}
.xx-inq-label { font-weight: 600; color: #9e2b25; }
.xx-inq-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.xx-inq-btn {
	display: inline-block; padding: 8px 16px; border-radius: 6px; font-size: 14px;
	text-decoration: none; color: #fff; background: #25d366; transition: opacity .15s;
}
.xx-inq-btn:hover { opacity: .88; color: #fff; }
.xx-inq-mail { background: #9e2b25; }
.xx-inq-wx { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: #8a7f6f; }
.xx-inq-wx .xx-wx-qr { width: 64px; height: 64px; border: 1px solid #e8e0d2; border-radius: 4px; }

/* ---- disclaimers ---- */
.xx-craft-disclaimer {
	margin: 18px 0 0; padding: 11px 14px; background: #fff7ed; border: 1px solid #f0e0c8;
	border-radius: 6px; font-size: 12.5px; color: #8a6f4f; line-height: 1.6;
}
.xx-site-disclaimer {
	margin: 16px 0; padding: 12px 14px; background: #fbf7f0; border-left: 3px solid #b8893b;
	font-size: 13px; color: #6a5f4f; line-height: 1.65; border-radius: 0 4px 4px 0;
}
.xx-footer-disclaimer {
	max-width: 1100px; margin: 18px auto 8px; padding: 0 16px;
	font-size: 11px; color: #9a8f7f; line-height: 1.6; text-align: center;
}

.xx-empty { color: #bbb; }

/* ---- temple grid ---- */
.xx-temple-grid, .xx-case-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.xx-temple-card, .xx-case-card {
	position: relative;
	display: block;
	background: #fff;
	border: 1px solid #e8e0d2;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: #2b2b2b;
	transition: box-shadow .15s, transform .15s;
}
.xx-temple-card:hover, .xx-case-card:hover { box-shadow: 0 4px 14px rgba(158,43,37,.12); transform: translateY(-2px); }
.xx-coop-badge {
	display: inline-block; font-size: 11px; color: #fff; background: #9e2b25;
	padding: 1px 7px; border-radius: 10px; margin-left: 4px; vertical-align: middle;
}
.xx-card-meta { font-size: 12px; color: #8a7f6f; }
.xx-cert-corner {
	position: absolute; top: 6px; right: 6px; background: #fff;
	border: 1px solid #e8e0d2; border-radius: 4px; padding: 2px; line-height: 0;
}
.xx-cert-corner img { width: 34px !important; height: 34px !important; object-fit: cover; border-radius: 3px; }

/* ---- 代开光询价表单 ---- */
.xx-kg-form { background: #fff; border: 1px solid #e8e0d2; border-radius: 8px; padding: 18px; }
.xx-kg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.xx-kg-field { display: flex; flex-direction: column; gap: 5px; }
.xx-kg-field-full { grid-column: 1 / -1; }
.xx-kg-field label { font-size: 13px; color: #6a5f4f; }
.xx-kg-field input, .xx-kg-field select, .xx-kg-field textarea {
	padding: 8px 10px; border: 1px solid #e8e0d2; border-radius: 6px; font-size: 14px; width: 100%;
}
.xx-kg-submit {
	margin-top: 16px; background: #9e2b25; color: #fff; border: none; border-radius: 6px;
	padding: 11px 28px; font-size: 15px; cursor: pointer;
}
.xx-kg-submit:hover { background: #b53a30; }
.xx-kg-success, .xx-kg-error { padding: 12px 16px; border-radius: 6px; margin-bottom: 12px; }
.xx-kg-success { background: #ecf6ee; color: #2d7a3d; }
.xx-kg-error { background: #fdecec; color: #9e2b25; }
.xx-kg-wa { margin-top: 8px; }
.xx-kg-disclaimer { margin: 14px 0 0; font-size: 12px; color: #8a7f6f; line-height: 1.6; }

/* ---- 商品页开光区块 ---- */
.xx-product-kaiguang {
	margin: 18px 0; padding: 14px 16px; border: 1px solid #d9b877; border-radius: 8px;
	background: linear-gradient(180deg,#fffdf7,#fbf3e3);
}
.xx-product-kaiguang .xx-kg-flag { font-weight: 700; color: #9e2b25; font-size: 15px; margin-bottom: 6px; }
.xx-product-kaiguang .xx-kg-line { font-size: 14px; color: #555; margin: 2px 0; }
.xx-product-kaiguang .xx-kg-golink { display: inline-block; margin-top: 10px; color: #9e2b25; font-weight: 600; font-size: 14px; }

@media (max-width: 600px) {
	.xx-kg-grid { grid-template-columns: 1fr; }
}

/* ---- 游客"注册可保存"横幅 ---- */
.xx-guest-banner {
	background: #fff7ed; border: 1px solid #f0d9b5; border-radius: 8px;
	padding: 12px 16px; margin: 0 0 16px; font-size: 14px; color: #8a6f4f; line-height: 1.6;
}
.xx-guest-banner .xx-guest-reg { display: inline-block; margin-left: 8px; background: #9e2b25; color: #fff !important; padding: 5px 14px; border-radius: 5px; font-weight: 600; font-size: 13px; }

/* ---- 前台注册/登录 ---- */
.xx-auth { max-width: 440px; margin: 30px auto; padding: 28px 30px; background: #fff; border: 1px solid var(--line,#e8e0d2); border-radius: 10px; }
.xx-auth h2 { margin: 0 0 6px; font-size: 22px; text-align: center; }
.xx-auth-sub { margin: 0 0 18px; text-align: center; font-size: 13px; color: #8a7f6f; }
.xx-auth-form p { margin: 0 0 14px; }
.xx-auth-form label { display: block; font-size: 13px; color: #6a5f4f; margin-bottom: 5px; }
.xx-auth-form input { width: 100%; padding: 10px 12px; border: 1px solid #e8e0d2; border-radius: 6px; font-size: 15px; box-sizing: border-box; }
.xx-auth-form .xx-remember { display: inline-flex; align-items: center; gap: 6px; }
.xx-auth-form .xx-remember input { width: auto; }
.xx-auth-form button { width: 100%; background: #9e2b25; color: #fff; border: none; border-radius: 6px; padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
.xx-auth-form button:hover { background: #b53a30; }
.xx-auth-err { background: #fdecec; color: #9e2b25; padding: 10px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; }
.xx-auth-switch { text-align: center; margin: 16px 0 0; font-size: 13px; color: #8a7f6f; }

