/**
 * 宇新通訊 手機回收 — 前台樣式系統
 * 全面以 .yxr-app 作用域，隔離 Woodmart／Elementor 主題污染。
 */

/* ============ 變數與容器重置 ============ */
.yxr-app {
	--yxr-bg: #F4EDE4;
	--yxr-bg-soft: #FBF8F4;
	--yxr-card: #FFFFFF;
	--yxr-bg-2: #EDE0D1;
	--yxr-gold: #BF955F;
	--yxr-gold-deep: #96713F;
	--yxr-gold-light: #D9B98B;
	--yxr-text: #363432;
	--yxr-text-2: #6E675F;
	--yxr-success: #55765E;
	--yxr-warn: #A97936;
	--yxr-error: #A6534B;
	--yxr-line: rgba(150, 113, 63, .14);
	--yxr-shadow: 0 12px 32px rgba(74, 55, 33, .07);
	--yxr-radius: 18px;
	--yxr-radius-sm: 12px;
	--yxr-font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, sans-serif;

	font-family: var(--yxr-font);
	color: var(--yxr-text);
	background: var(--yxr-bg);
	line-height: 1.7;
	font-size: 16px;
	text-align: left;
	letter-spacing: normal;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
	max-width: 1280px;
	margin: 0 auto;
	padding: 20px 20px 48px;
	border-radius: 20px;
	overflow: hidden;
}

.yxr-app *,
.yxr-app *::before,
.yxr-app *::after {
	box-sizing: border-box;
}

/* 確保 hidden 屬性生效（避免被類別的 display 宣告覆蓋） */
.yxr-app [hidden] { display: none !important; }

/* 中和主題常見的字體/大小寫/間距污染 */
.yxr-app h1, .yxr-app h2, .yxr-app h3, .yxr-app h4, .yxr-app p,
.yxr-app span, .yxr-app label, .yxr-app li, .yxr-app a,
.yxr-app input, .yxr-app select, .yxr-app textarea, .yxr-app button {
	font-family: var(--yxr-font);
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
}

.yxr-app :where(h1, h2, h3, h4) {
	margin: 0;
	font-weight: 800;
	color: var(--yxr-text);
	line-height: 1.3;
}

.yxr-app :where(p) { margin: 0; }
.yxr-app a { color: var(--yxr-gold-deep); text-decoration: none; }
.yxr-app ul { list-style: none; margin: 0; padding: 0; }

.yxr-ico {
	width: 1em;
	height: 1em;
	display: inline-block;
	vertical-align: middle;
	flex: none;
}

/* ============ 區塊間距節奏（統一 rhythm，避免各段落間距不一） ============ */
.yxr-app > section { margin-top: 56px; }
.yxr-app > section:first-child { margin-top: 0; }
/* 錨點：捲動時預留固定頁首高度，避免被 header 遮住 */
#recycle-process, #recycle-notes { scroll-margin-top: 90px; }

/* ============ 區塊標題 ============ */
.yxr-section-title {
	text-align: center;
	font-size: 28px;
	margin: 0 0 16px;
	color: var(--yxr-text);
}
.yxr-section-sub {
	text-align: center;
	color: var(--yxr-text-2);
	font-size: 15px;
	line-height: 1.75;
	margin: 20px auto 44px;
	max-width: 620px;
	padding: 0 16px;
}
/* 標題後若直接接 grid，補回間距 */
.yxr-section-title + .yxr-process__grid,
.yxr-section-title + .yxr-guards__grid,
.yxr-section-title + .yxr-eval__grid,
.yxr-section-title + .yxr-faq__grid { margin-top: 32px; }

/* ============ 按鈕（一致對齊、不偏移不歪斜） ============ */
.yxr-btn {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: var(--yxr-radius-sm);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	font-family: var(--yxr-font);
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease, transform .05s ease, color .18s ease;
	-webkit-user-select: none;
	user-select: none;
	vertical-align: middle;
}
.yxr-btn .yxr-ico { width: 18px; height: 18px; }
.yxr-btn:active { transform: translateY(1px); }
.yxr-btn:focus-visible { outline: 3px solid rgba(191, 149, 95, .4); outline-offset: 2px; }

.yxr-btn--primary {
	background: #8C6A38;
	color: #fff !important;
	border-color: #8C6A38;
}
.yxr-btn--primary:hover { background: #6F5029; border-color: #6F5029; color: #fff !important; }

.yxr-btn--ghost {
	background: #fff;
	color: var(--yxr-gold-deep) !important;
	border-color: var(--yxr-gold-light);
}
.yxr-btn--ghost:hover { background: var(--yxr-bg-soft); border-color: var(--yxr-gold); color: var(--yxr-gold-deep) !important; }

/* LINE 按鈕：採品牌低飽和鼠尾草綠，與金棕和諧、不刺眼，仍以 LINE 圖示辨識 */
.yxr-btn--line {
	background: var(--yxr-success);
	color: #fff !important;
	border-color: var(--yxr-success);
}
.yxr-btn--line:hover { background: #46624E; border-color: #46624E; color: #fff !important; }
.yxr-btn--line .yxr-ico { color: #fff; }

.yxr-btn[disabled] { opacity: .55; cursor: not-allowed; }
.yxr-btn[disabled]:hover { background: var(--yxr-gold); border-color: var(--yxr-gold); }
.yxr-btn--ghost[disabled]:hover { background: #fff; border-color: var(--yxr-gold-light); }

/* ============ Hero ============ */
.yxr-hero {
	background: linear-gradient(135deg, #FBF8F4 0%, #F4EDE4 100%);
	border-radius: var(--yxr-radius);
	border: 1px solid var(--yxr-line);
	padding: 48px;
}
.yxr-hero__inner {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	align-items: center;
	gap: 32px;
}
.yxr-hero__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.yxr-hero__logo { font-size: 30px; color: var(--yxr-gold); display: inline-flex; }
.yxr-hero__brandname { font-weight: 800; font-size: 18px; color: var(--yxr-text); }
.yxr-hero__brandname em { display: block; font-style: normal; font-size: 11px; letter-spacing: 2px; color: var(--yxr-gold-deep); font-weight: 600; }
.yxr-hero__title { font-size: 56px; margin: 0 0 6px; }
.yxr-hero__subtitle { font-size: 26px; font-weight: 800; color: var(--yxr-gold-deep); margin: 0 0 18px; }
.yxr-hero__lead { color: var(--yxr-text-2); font-size: 16px; margin-bottom: 28px; }
.yxr-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.yxr-hero__visual { position: relative; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.yxr-hero__glow {
	position: absolute; width: 340px; height: 340px; border-radius: 50%;
	background: radial-gradient(circle, #fff 0%, var(--yxr-bg-2) 70%, transparent 100%);
	filter: blur(4px);
}
/* 去背產品圖：drop-shadow 依手機外形產生柔和陰影 */
.yxr-hero__img {
	position: relative;
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 340px;
	filter: drop-shadow(0 18px 28px rgba(74, 55, 33, .22));
}

/* ============ 五步驟流程 ============ */
.yxr-process__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.yxr-process__item {
	position: relative; background: var(--yxr-card); border: 1px solid var(--yxr-line);
	border-radius: var(--yxr-radius); padding: 28px 16px 22px; text-align: center; box-shadow: var(--yxr-shadow);
}
.yxr-process__num {
	position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
	width: 28px; height: 28px; border-radius: 50%; background: var(--yxr-gold); color: #fff;
	font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center;
}
.yxr-process__icon { font-size: 40px; color: var(--yxr-gold); display: inline-flex; margin-bottom: 12px; }
.yxr-process__title { font-size: 17px; margin-bottom: 6px; }
.yxr-process__desc { font-size: 13px; color: var(--yxr-text-2); line-height: 1.6; }

/* ============ 五大保障 ============ */
.yxr-guards {
	background: var(--yxr-bg-soft); border: 1px solid var(--yxr-line);
	border-radius: var(--yxr-radius); padding: 40px 32px;
}
.yxr-guards__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.yxr-guards__item { text-align: center; padding: 12px; }
.yxr-guards__icon { font-size: 38px; color: var(--yxr-gold-deep); display: inline-flex; margin-bottom: 10px; }
.yxr-guards__title { font-size: 16px; margin-bottom: 6px; }
.yxr-guards__desc { font-size: 13px; color: var(--yxr-text-2); line-height: 1.6; }

/* ============ 收購價格評估標準 ============ */
.yxr-eval__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: stretch; }
.yxr-eval__item {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	background: var(--yxr-card); border: 1px solid var(--yxr-line); border-radius: var(--yxr-radius);
	padding: 28px 18px 24px; box-shadow: var(--yxr-shadow);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.yxr-eval__item:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(74, 55, 33, .1);
	border-color: var(--yxr-gold-light);
}
.yxr-eval__icon {
	width: 56px; height: 56px; border-radius: 50%; flex: none;
	background: linear-gradient(150deg, #FBF3E7, var(--yxr-bg-2));
	color: var(--yxr-gold-deep); font-size: 26px;
	display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
	box-shadow: inset 0 0 0 1px rgba(150, 113, 63, .1);
}
.yxr-eval__body { display: flex; flex-direction: column; gap: 8px; }
.yxr-eval__title { font-size: 16px; }
.yxr-eval__desc { font-size: 13px; color: var(--yxr-text-2); line-height: 1.7; }

/* ============ 注意事項 ============ */
.yxr-notes__card { background: linear-gradient(135deg, #FBF8F4, #F4EDE4); border: 1px solid var(--yxr-line); border-radius: var(--yxr-radius); padding: 32px; }
.yxr-notes__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.yxr-notes__badge { width: 44px; height: 44px; border-radius: 12px; background: var(--yxr-gold); color: #fff; font-size: 24px; display: inline-flex; align-items: center; justify-content: center; }
.yxr-notes__title { font-size: 20px; }
.yxr-notes__list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.yxr-notes__list li { display: flex; align-items: flex-start; gap: 10px; color: var(--yxr-text); font-size: 15px; }
.yxr-notes__list li .yxr-ico { color: var(--yxr-success); font-size: 22px; margin-top: 1px; flex: none; }
.yxr-notes__item { display: flex; flex-direction: column; gap: 2px; }
.yxr-notes__item strong { font-weight: 700; font-size: 15px; }
.yxr-notes__item em { font-style: normal; color: var(--yxr-text-2); font-size: 13px; line-height: 1.6; }
.yxr-notes__tip { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(150,113,63,.12); font-size: 13px; color: var(--yxr-warn); }

/* ============ 表單 ============ */
.yxr-form-wrap { scroll-margin-top: 24px; }
.yxr-form-card {
	max-width: 920px; margin: 0 auto; background: var(--yxr-card);
	border: 1px solid var(--yxr-line); border-radius: var(--yxr-radius);
	box-shadow: var(--yxr-shadow); padding: 40px;
}
.yxr-form-heading { text-align: center; font-size: 26px; margin-bottom: 28px; }

/* 進度指示（桌面）— 連接線精準對齊圓點中心，已完成段落轉金色 */
.yxr-steps { display: flex; align-items: flex-start; justify-content: center; margin: 4px 0 12px; }
.yxr-steps__item { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 88px; flex: 0 0 auto; text-align: center; }
.yxr-steps__dot {
	width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: var(--yxr-bg-2); color: var(--yxr-text-2); font-weight: 700; font-size: 15px;
	transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.yxr-steps__label { font-size: 13px; color: var(--yxr-text-2); transition: color .2s ease; }
.yxr-steps__bar { flex: 1 1 auto; height: 2px; background: var(--yxr-bg-2); margin: 17px 8px 0; border-radius: 2px; transition: background .2s ease; }
.yxr-steps__item.is-active .yxr-steps__dot { background: var(--yxr-gold); color: #fff; box-shadow: 0 0 0 4px rgba(191, 149, 95, .18); }
.yxr-steps__item.is-active .yxr-steps__label { color: var(--yxr-gold-deep); font-weight: 700; }
.yxr-steps__item.is-done .yxr-steps__dot { background: var(--yxr-gold-deep); color: #fff; }
.yxr-steps__item.is-done + .yxr-steps__bar { background: var(--yxr-gold); }

/* 進度（手機） */
.yxr-steps-mobile { display: none; margin-bottom: 20px; }
.yxr-steps-mobile__text { font-size: 14px; color: var(--yxr-text-2); font-weight: 600; }
.yxr-steps-mobile__track { margin-top: 8px; height: 6px; border-radius: 3px; background: var(--yxr-bg-2); overflow: hidden; }
.yxr-steps-mobile__fill { display: block; height: 100%; width: 20%; background: var(--yxr-gold); border-radius: 3px; transition: width .25s ease; }

/* Honeypot 隱藏 */
.yxr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 步驟切換 */
.yxr-step { display: none; margin-top: 28px; }
.yxr-step.is-active { display: block; animation: yxrFade .25s ease; }
@keyframes yxrFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.yxr-step-title { font-size: 18px; margin-bottom: 16px; color: var(--yxr-gold-deep); }
.yxr-step-hint { font-size: 13px; color: var(--yxr-text-2); margin-bottom: 18px; line-height: 1.6; }

/* 欄位 */
.yxr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.yxr-field { margin-bottom: 18px; }
.yxr-label { display: block; font-size: 14px; font-weight: 700; color: var(--yxr-text); margin-bottom: 8px; }
.yxr-label i { color: var(--yxr-error); font-style: normal; }
.yxr-hint { font-size: 13px; color: var(--yxr-text-2); }

.yxr-input {
	appearance: none; -webkit-appearance: none; width: 100%; min-height: 48px;
	padding: 0 14px; border: 1px solid var(--yxr-bg-2); border-radius: var(--yxr-radius-sm);
	background: var(--yxr-bg-soft); color: var(--yxr-text); font-size: 15px; line-height: 1.5;
	font-family: var(--yxr-font); transition: border-color .15s ease, box-shadow .15s ease;
}
.yxr-input:focus { outline: none; border-color: var(--yxr-gold); box-shadow: 0 0 0 3px rgba(191, 149, 95, .16); background: #fff; }
select.yxr-input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2396713F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.yxr-textarea { min-height: 72px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.yxr-inline { display: flex; align-items: center; gap: 14px; }
.yxr-inline .yxr-input { flex: 1; }

/* 晶片式單/複選 */
.yxr-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.yxr-chip { position: relative; display: inline-flex; }
.yxr-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.yxr-chip span {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
	padding: 0 16px; border: 1px solid var(--yxr-bg-2); border-radius: 10px; background: var(--yxr-bg-soft);
	color: var(--yxr-text); font-size: 14px; font-weight: 500; cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease; line-height: 1;
}
.yxr-chip:hover span { border-color: var(--yxr-gold-light); }
.yxr-chip input:checked + span { background: var(--yxr-gold); border-color: var(--yxr-gold); color: #fff; font-weight: 700; }
.yxr-chip input:focus-visible + span { outline: 3px solid rgba(191, 149, 95, .4); outline-offset: 2px; }

.yxr-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--yxr-text); cursor: pointer; white-space: nowrap; }
.yxr-check input { width: 18px; height: 18px; accent-color: var(--yxr-gold); }

/* 個資同意 */
.yxr-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--yxr-text); line-height: 1.6; margin-top: 6px; cursor: pointer; }
.yxr-consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--yxr-gold); flex: none; }
.yxr-consent a { color: var(--yxr-gold-deep); text-decoration: underline; }

/* 錯誤訊息 */
.yxr-error { color: var(--yxr-error); font-size: 13px; margin-top: 6px; min-height: 0; }
.yxr-error:empty { display: none; }
.yxr-input.is-invalid { border-color: var(--yxr-error); background: #fff; }

/* 照片上傳 */
.yxr-upload {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	border: 2px dashed var(--yxr-gold-light); border-radius: var(--yxr-radius); background: var(--yxr-bg-soft);
	padding: 36px 20px; cursor: pointer; transition: all .18s ease; text-align: center;
}
.yxr-upload:hover, .yxr-upload.is-drag { border-color: var(--yxr-gold); background: #fff; }
.yxr-upload__icon { font-size: 40px; color: var(--yxr-gold); display: inline-flex; }
.yxr-upload__text { font-weight: 700; color: var(--yxr-text); }
.yxr-upload__sub { font-size: 13px; color: var(--yxr-text-2); }

.yxr-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.yxr-photos:empty { display: none; }
.yxr-photo { position: relative; border-radius: var(--yxr-radius-sm); overflow: hidden; aspect-ratio: 1; border: 1px solid var(--yxr-line); background: var(--yxr-bg-2); }
.yxr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yxr-photo__del {
	position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 8px; border: none;
	background: rgba(54, 52, 50, .72); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.yxr-photo__del .yxr-ico { width: 16px; height: 16px; }
.yxr-photo__spin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.7); font-size: 12px; color: var(--yxr-gold-deep); font-weight: 700; }
.yxr-photo.is-error { border-color: var(--yxr-error); }

/* 確認摘要 */
.yxr-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; background: var(--yxr-bg-soft); border: 1px solid var(--yxr-line); border-radius: var(--yxr-radius); padding: 22px 24px; }
.yxr-summary__row { display: flex; gap: 10px; font-size: 14px; padding: 6px 0; border-bottom: 1px dashed var(--yxr-bg-2); }
.yxr-summary__row:last-child { border-bottom: none; }
.yxr-summary__k { color: var(--yxr-text-2); min-width: 84px; flex: none; }
.yxr-summary__v { color: var(--yxr-text); font-weight: 600; }
.yxr-summary__full { grid-column: 1 / -1; }
.yxr-disclaimer { margin-top: 16px; font-size: 13px; color: var(--yxr-text-2); line-height: 1.6; }

/* 表單訊息 */
.yxr-formmsg { margin-top: 20px; padding: 14px 18px; border-radius: var(--yxr-radius-sm); font-size: 14px; }
.yxr-formmsg.is-error { background: #F7ECEA; color: var(--yxr-error); border: 1px solid rgba(166, 83, 75, .3); }
.yxr-formmsg.is-loading { background: var(--yxr-bg-soft); color: var(--yxr-gold-deep); border: 1px solid var(--yxr-line); }

/* 動作列 */
.yxr-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--yxr-line); }
.yxr-actions .yxr-btn { min-width: 140px; }
.yxr-actions [data-role="prev"] { margin-right: auto; }
.yxr-actions [data-role="next"], .yxr-actions [data-role="submit"] { margin-left: auto; }

/* Modal */
.yxr-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.yxr-modal__backdrop { position: absolute; inset: 0; background: rgba(54, 52, 50, .55); }
.yxr-modal__panel { position: relative; background: #fff; border-radius: var(--yxr-radius); max-width: 520px; width: 100%; max-height: 84vh; overflow: auto; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.yxr-modal__title { padding: 22px 26px; border-bottom: 1px solid var(--yxr-line); font-size: 19px; }
.yxr-modal__body { padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; color: var(--yxr-text-2); font-size: 14px; line-height: 1.75; }
.yxr-modal__foot { padding: 18px 26px; border-top: 1px solid var(--yxr-line); text-align: right; }

/* ============ FAQ ============ */
/* align-items: start 讓每張卡片各自維持高度，展開一側不會撐開同列另一側 */
.yxr-faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.yxr-faq__item { background: var(--yxr-card); border: 1px solid var(--yxr-line); border-radius: var(--yxr-radius-sm); overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease; }
.yxr-faq__item:hover { border-color: var(--yxr-gold-light); box-shadow: 0 6px 18px rgba(74,55,33,.05); }
.yxr-faq__item.is-open { border-color: var(--yxr-gold-light); }
.yxr-faq__q {
	appearance: none; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 18px 20px; background: none; border: none; cursor: pointer; font-size: 15px; font-weight: 600;
	color: var(--yxr-text); text-align: left; font-family: var(--yxr-font); line-height: 1.5;
	transition: color .15s ease;
}
/* 問題列在任何狀態都保持透明（清除主題殘留的灰色 hover 底色） */
.yxr-faq__q,
.yxr-faq__q:hover,
.yxr-faq__q:focus,
.yxr-faq__q:active,
.yxr-faq__item.is-open .yxr-faq__q { background: transparent !important; }
.yxr-faq__q:hover { color: var(--yxr-gold-deep); }
.yxr-faq__q:focus-visible { outline: 3px solid rgba(191, 149, 95, .4); outline-offset: -3px; border-radius: var(--yxr-radius-sm); }
.yxr-faq__plus { position: relative; width: 18px; height: 18px; flex: none; }
.yxr-faq__plus::before, .yxr-faq__plus::after { content: ""; position: absolute; background: var(--yxr-gold); border-radius: 2px; transition: transform .2s ease; }
.yxr-faq__plus::before { top: 8px; left: 0; width: 18px; height: 2px; }
.yxr-faq__plus::after { top: 0; left: 8px; width: 2px; height: 18px; }
.yxr-faq__item.is-open .yxr-faq__plus::after { transform: scaleY(0); }
.yxr-faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.yxr-faq__a p { padding: 0 20px 18px; color: var(--yxr-text-2); font-size: 14px; line-height: 1.7; }
.yxr-faq__item.is-open .yxr-faq__a { max-height: 260px; }

/* ============ 成功頁 ============ */
.yxr-success { display: flex; justify-content: center; padding: 40px 0; }
.yxr-success__card { background: var(--yxr-card); border: 1px solid var(--yxr-line); border-radius: var(--yxr-radius); box-shadow: var(--yxr-shadow); padding: 48px 40px; max-width: 560px; width: 100%; text-align: center; }
.yxr-success__icon { width: 76px; height: 76px; border-radius: 50%; background: rgba(85, 118, 94, .12); color: var(--yxr-success); font-size: 44px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.yxr-success__title { font-size: 24px; margin-bottom: 24px; }
.yxr-success__label { font-size: 13px; color: var(--yxr-text-2); margin-bottom: 8px; }
.yxr-success__number { display: inline-block; background: var(--yxr-bg-2); color: var(--yxr-gold-deep); font-size: 22px; font-weight: 800; letter-spacing: 1px; padding: 12px 28px; border-radius: var(--yxr-radius-sm); margin-bottom: 20px; }
.yxr-success__desc { color: var(--yxr-text-2); font-size: 15px; margin-bottom: 28px; line-height: 1.8; }
.yxr-success__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.yxr-success__hint { margin-top: 14px; color: var(--yxr-success); font-size: 13px; font-weight: 600; }
.yxr-success__home {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	margin-top: 18px; color: var(--yxr-text-2); font-size: 14px; font-weight: 600; transition: color .15s ease;
}
.yxr-success__home .yxr-ico { width: 16px; height: 16px; }
.yxr-success__home:hover { color: var(--yxr-gold-deep); }

/* ============ 響應式 ============ */
@media (max-width: 1024px) {
	.yxr-hero__title { font-size: 46px; }
	.yxr-process__grid { grid-template-columns: repeat(3, 1fr); }
	.yxr-process__item:nth-child(4), .yxr-process__item:nth-child(5) { grid-column: span 1; }
	.yxr-guards__grid { grid-template-columns: repeat(3, 1fr); }
	.yxr-eval__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 782px) {
	.yxr-app { padding: 4px 14px calc(28px + env(safe-area-inset-bottom, 0px)); }
	/* 手機採較密的區塊間距節奏 */
	.yxr-app > section { margin-top: 40px; }

	/* Hero */
	.yxr-hero { padding: 26px 20px 28px; }
	.yxr-hero__inner { grid-template-columns: 1fr; gap: 18px; }
	.yxr-hero__visual { order: -1; min-height: 0; }
	.yxr-hero__glow { width: 240px; height: 240px; }
	.yxr-hero__img { max-height: 220px; }
	.yxr-hero__title { font-size: 32px; }
	.yxr-hero__subtitle { font-size: 18px; margin-bottom: 14px; }
	.yxr-hero__lead { font-size: 14px; margin-bottom: 22px; }
	.yxr-hero__cta { flex-direction: column; gap: 10px; }
	.yxr-hero__cta .yxr-btn { width: 100%; }

	/* 區塊標題 */
	.yxr-section-title { font-size: 22px; margin: 0 0 8px; }
	.yxr-section-sub { font-size: 13px; margin-bottom: 22px; }
	.yxr-section-title + .yxr-process__grid,
	.yxr-section-title + .yxr-guards__grid,
	.yxr-section-title + .yxr-eval__grid,
	.yxr-section-title + .yxr-faq__grid { margin-top: 22px; }

	/* 卡片區塊：2 欄，第 5 張置中對齊 */
	.yxr-process__grid, .yxr-guards__grid, .yxr-eval__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.yxr-process__item:last-child:nth-child(odd),
	.yxr-guards__item:last-child:nth-child(odd),
	.yxr-eval__item:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
	.yxr-process__item { padding: 24px 12px 18px; }
	.yxr-eval__item { padding: 22px 14px 20px; }
	.yxr-guards { padding: 30px 20px; }
	.yxr-notes__card { padding: 24px 20px; }
	.yxr-notes__list { grid-template-columns: 1fr; gap: 14px; }

	/* 表單 */
	.yxr-form-card { padding: 24px 18px; }
	.yxr-form-heading { font-size: 22px; margin-bottom: 18px; }
	.yxr-grid { grid-template-columns: 1fr; gap: 0; }
	.yxr-steps { display: none; }
	.yxr-steps-mobile { display: block; }
	.yxr-summary { grid-template-columns: 1fr; }
	.yxr-faq__grid { grid-template-columns: 1fr; }
	.yxr-photos { grid-template-columns: repeat(2, 1fr); }
	.yxr-actions { flex-wrap: wrap; gap: 10px; }
	.yxr-actions .yxr-btn { flex: 1; min-width: 0; }

	/* 成功頁 */
	.yxr-success { padding: 20px 0; }
	.yxr-success__card { padding: 36px 24px; }
	.yxr-success__actions { flex-direction: column; }
	.yxr-success__actions .yxr-btn { width: 100%; }
}

/* ============ 全域互動一致性 ============ */
/* 清除主題/瀏覽器預設虛線 focus 外框；連結與按鈕僅保留鍵盤 focus-visible 金棕環 */
.yxr-app a:focus,
.yxr-app button:focus,
.yxr-app [tabindex]:focus,
.yxr-app input:focus,
.yxr-app select:focus,
.yxr-app textarea:focus { outline: none !important; }
.yxr-app a:focus-visible,
.yxr-app button:focus-visible,
.yxr-app [tabindex]:focus-visible { outline: 3px solid rgba(191, 149, 95, .4) !important; outline-offset: 2px; }
/* 表單欄位作用中：一致的金棕外框（滑鼠/鍵盤皆顯示） */
.yxr-app .yxr-input:focus,
.yxr-app .yxr-input:focus-visible { border-color: var(--yxr-gold); box-shadow: 0 0 0 3px rgba(191, 149, 95, .16); background: #fff; }
/* 內文連結 hover / focus 一致 */
.yxr-app a:not(.yxr-btn):hover { color: var(--yxr-gold); }
.yxr-app a:not(.yxr-btn):focus-visible {
	outline: 3px solid rgba(191, 149, 95, .4); outline-offset: 2px; border-radius: 4px;
}
/* 所有可點擊元素游標一致 */
.yxr-app button:not([disabled]),
.yxr-app label.yxr-chip,
.yxr-app .yxr-check,
.yxr-app summary { cursor: pointer; }

/* 尊重使用者「減少動態」偏好 */
@media (prefers-reduced-motion: reduce) {
	.yxr-app *,
	.yxr-app *::before,
	.yxr-app *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
