.main-content {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background-color: #f4f6f8;
	color: #333;
	overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
	--nextpcb-red: #cc0000;
	--nextpcb-dark: #1a2b4c;
	--bg-gray: #f4f6f8;
	--border-color: #eaeaea;
}

/* Banner */
.banner {
	width: 100%; height: 160px;
	background: linear-gradient(135deg, var(--nextpcb-dark), #2a3b5c);
	color: #fff;
	display: flex; flex-direction: column; justify-content: center; align-items: center;
	text-align: center; padding: 20px;
}
.banner h1 { font-size: 1.2rem; margin-bottom: 8px; }
.banner p { font-size: 0.8rem; opacity: 0.85; }

/* Quick Quote */
.quick-quote {
	background: #fff; margin: -25px 15px 15px; padding: 15px;
	border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	position: relative; z-index: 10;
}
.quick-quote h3 { font-size: 1rem; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.quick-quote h3 span { font-size: 0.75rem; color: #888; font-weight: normal; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input-group label { display: block; font-size: 0.75rem; color: #666; margin-bottom: 4px; }
.input-group input, .input-group select {
	width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px;
	font-size: 0.85rem; outline: none; background: #fff;
}
.btn-quote {
	grid-column: span 2; background: var(--nextpcb-red); color: #fff;
	border: none; padding: 12px; border-radius: 4px; font-size: 1rem; font-weight: bold;
	margin-top: 5px; cursor: pointer; text-align: center;
}

/* Service Grid */
.section-h2-title {
	font-size: 1.1rem; margin: 15px 15px 5px; font-weight: bold; color: var(--nextpcb-dark);
	display: flex; align-items: center; gap: 8px;
}
.section-h2-title i { color: var(--nextpcb-red); }

.services {
	background: #fff; margin: 5px 15px 15px; border-radius: 8px; padding: 15px 10px;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px 10px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.service-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.service-icon {
	width: 44px; height: 44px; background: #f8f9fa; border-radius: 50%;
	display: flex; justify-content: center; align-items: center;
	margin-bottom: 6px; color: var(--nextpcb-dark); font-size: 20px;
}
.service-item span { font-size: 0.7rem; color: #444; line-height: 1.2; word-break: break-word; }

/* Coupon Banner */
.coupon-banner {
	margin: 0 15px 15px;
	background: linear-gradient(to right, #ffefef, #ffe0e0);
	border: 1px solid #ffd5d5;
	border-radius: 8px;
	padding: 15px;
	display: flex; justify-content: space-between; align-items: center;
	position: relative; overflow: hidden;
}
.coupon-banner::before {
	content: ''; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
	width: 20px; height: 20px; background: var(--bg-gray); border-radius: 50%;
}
.coupon-banner::after {
	content: ''; position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
	width: 20px; height: 20px; background: var(--bg-gray); border-radius: 50%;
}
.coupon-text h4 { color: var(--nextpcb-red); font-size: 1.1rem; margin-bottom: 4px; }
.coupon-text p { font-size: 0.75rem; color: #666; }
.coupon-btn {
	background: var(--nextpcb-red); color: #fff; font-size: 0.8rem;
	padding: 6px 12px; border-radius: 20px; font-weight: bold;
}

/* Why Choose NextPCB */
.section-title {
	font-size: 1.1rem; margin: 15px 15px 10px; padding-left: 10px;
	border-left: 4px solid var(--nextpcb-red); font-weight: bold; color: #222;
}
.features { margin: 0 15px 15px; }
.feature-card {
	background: #fff; padding: 15px; border-radius: 8px; margin-bottom: 10px;
	display: flex; align-items: center; gap: 15px;
}
.feature-card .f-icon { font-size: 28px; color: var(--nextpcb-red); width: 40px; text-align: center; }
.feature-card .f-text h4 { font-size: 0.95rem; margin-bottom: 4px; color: #333; }
.feature-card .f-text p { font-size: 0.75rem; color: #777; line-height: 1.4; }

/* Detailed Services */
.detailed-services { margin: 0 15px 15px; }
.ds-card {
	background: #fff; border-radius: 8px; padding: 15px; margin-bottom: 10px;
	display: flex; justify-content: space-between; align-items: center;
}
.ds-info { display: flex; align-items: center; gap: 15px; }
.ds-img-placeholder {
	width: 50px; height: 50px; background: #eef2f7; border-radius: 6px;
	display: flex; justify-content: center; align-items: center; color: var(--nextpcb-dark); font-size: 24px;
}
.ds-text h4 { font-size: 0.95rem; color: #333; margin-bottom: 4px; }
.ds-text p { font-size: 0.75rem; color: #777; }
.ds-arrow { color: #ccc; font-size: 1.2rem; }

/* Capabilities */
.capabilities-section { margin: 0 15px 15px; }
.cap-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}
.cap-card {
	background: #fff;
	border-radius: 8px;
	padding: 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-left: 3px solid var(--nextpcb-dark);
	box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.cap-card:active {
	background-color: #f9f9f9;
}
.cap-info {
	display: flex;
	align-items: center;
	gap: 12px;
}
.cap-icon {
	font-size: 20px;
	color: var(--nextpcb-red);
	width: 30px;
	text-align: center;
}
.cap-text h4 {
	font-size: 0.9rem;
	color: #333;
	margin-bottom: 2px;
}
.cap-text p {
	font-size: 0.75rem;
	color: #888;
}
.cap-arrow {
	color: #ccc;
	font-size: 1rem;
}

/* Coupon Modal */
.coupon-modal-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1000;
	display: none;
	justify-content: center;
	align-items: center;
	padding: 20px;
}
.coupon-modal-overlay.active {
	display: flex;
}
.coupon-modal {
	width: 100%;
	max-width: 320px;
	aspect-ratio: 320 / 380;
	background: url('/static/mobile/img/index/coupon-100.webp') no-repeat center center;
	background-size: 100% 100%;
	border-radius: 24px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 30px 24px 24px;
	box-sizing: border-box;
}
.coupon-modal-title {
	color: #cc0000;
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 8px;
}
.coupon-modal-desc {
	font-size: 14px;
	color: #1F1F1F;
	line-height: 16px;
	text-align: center;
}
.coupon-modal-rules {
	margin-top: auto;
	font-size: 14px;
	color: #8B8C90;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.coupon-modal-close {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -60px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}
.coupon-modal-close img {
	width: 100%;
	height: 100%;
}

/* Rule Modal */
.rule-modal-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1001;
	display: none;
	justify-content: center;
	align-items: center;
	padding: 20px;
}
.rule-modal-overlay.active {
	display: flex;
}
.rule-modal {
	width: 100%;
	max-width: 320px;
	min-height: 240px;
	background: #fff;
	border-radius: 24px;
	position: relative;
	padding: 16px 24px 24px;
	box-sizing: border-box;
}
.rule-modal-title {
	font-size: 18px;
	font-weight: 700;
	color: #0F0F0F;
	text-align: center;
	margin-bottom: 16px;
}
.rule-modal-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.rule-modal-list li {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
	margin-bottom: 12px;
}
.rule-modal-close {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -60px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}
.rule-modal-close img {
	width: 100%;
	height: 100%;
}

/* Fail Modal */
.fail-modal-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1002;
	display: none;
	justify-content: center;
	align-items: center;
	padding: 20px;
}
.fail-modal-overlay.active {
	display: flex;
}
.fail-modal {
	width: 100%;
	max-width: 320px;
	aspect-ratio: 320 / 380;
	background: #fff;
	border-radius: 24px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 30px 24px 24px;
	box-sizing: border-box;
	box-shadow: inset 0px 8px 16px 0px rgba(255, 255, 255, 0.90);
}
.fail-modal-title {
	font-size: 24px;
	font-weight: 700;
	color: #1F1F1F;
	margin-bottom: 8px;
}
.fail-modal-desc {
	font-size: 14px;
	color: #1F1F1F;
	line-height: 17px;
	text-align: center;
	margin-bottom: 50px;
	padding: 0 10px;
}
.fail-modal-img {
	width: 158px;
	height: 146px;
	margin-bottom: 20px;
	object-fit: contain;
}
.fail-modal-rules {
	margin-top: auto;
	font-size: 14px;
	color: #8B8C90;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
}
.fail-modal-close {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -60px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}
.fail-modal-close img {
	width: 100%;
	height: 100%;
}

/* PC Link Button */
.pc-link-btn {
	position: fixed;
	bottom: calc(75px + env(safe-area-inset-bottom));
	right: 15px;
	background-color: var(--nextpcb-dark);
	color: #fff;
	height: 44px;
	padding: 0 16px;
	border-radius: 22px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.25);
	z-index: 90;
	font-size: 14px;
	font-weight: 600;
	animation: pulse-animation 2s infinite;
}
.pc-link-btn i {
	font-size: 18px;
}
.pc-link-btn:active {
	background-color: var(--nextpcb-red);
}
@keyframes pulse-animation {
	0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(26, 43, 76, 0.6); }
	70% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(26, 43, 76, 0); }
	100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(26, 43, 76, 0); }
}
