/* 柒樓數位科技 官網 v4（2026-11）
   原則：字夠大、對比夠、照一般人的操作習慣（標誌左上、選單右上、手機底部快捷列、44px 以上按鈕）。 */
:root {
	--bg-dark: #070d0f;
	--panel-dark: #0e1b1e;
	--line-dark: rgba(0, 240, 224, .16);
	--neon: #00f0e0;
	--neon-strong: #00d4c6;
	--neon-ink: #00796f;   /* 淺底上用的青色，對比 ≥ 4.5 */
	--text-on-dark: #eef5f5;
	--muted-on-dark: #a8bcbe;
	--bg: #f4f7f8;
	--surface: #ffffff;
	--soft: #e8eff0;
	--ink: #13242a;
	--muted: #4a5f65;
	--line: #dbe4e6;
	--radius: 16px;
	--wrap: 1200px;
	--header-h: 72px;
	--font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
	--mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.8;
	overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.ic { width: 20px; height: 20px; flex: none; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--neon); color: #031214; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; border-radius: 6px; }

/* ---------- 按鈕 ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1.5px solid transparent;
	font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-primary { background: var(--neon); color: #031214; box-shadow: 0 8px 24px rgba(0, 240, 224, .25); }
.btn-primary:hover { background: #63f7ee; }
.btn-line { background: #06c755; color: #fff; box-shadow: 0 8px 24px rgba(6, 199, 85, .3); }
.btn-line:hover { background: #05b34c; }
.btn-line .ic { color: #fff; }
[hidden] { display: none !important; }
.btn-ghost { border-color: rgba(238, 245, 245, .35); color: var(--text-on-dark); }
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }

/* ---------- 頁首 ---------- */
.header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(7, 13, 15, .9); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line-dark); color: var(--text-on-dark);
}
.header-bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(0, 240, 224, .2), 0 4px 16px rgba(0, 240, 224, .15); }
.brand-text strong { display: block; font-size: 18px; line-height: 1.3; letter-spacing: .06em; }
.brand-text small { display: block; font-size: 12px; line-height: 1.3; color: var(--muted-on-dark); letter-spacing: .02em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 14px; border-radius: 10px; text-decoration: none; font-size: 16px; color: var(--text-on-dark); }
.nav a:hover { background: rgba(0, 240, 224, .08); color: var(--neon); }
.header-cta { min-height: 44px; }
.menu-btn { display: none; }

/* ---------- 主視覺 ---------- */
.hero {
	background:
		radial-gradient(circle at 80% 40%, rgba(0, 240, 224, .14), transparent 45%),
		radial-gradient(circle at 5% 100%, rgba(0, 184, 255, .10), transparent 40%),
		linear-gradient(rgba(0, 240, 224, .045) 1px, transparent 1px) 0 0 / 48px 48px,
		linear-gradient(90deg, rgba(0, 240, 224, .045) 1px, transparent 1px) 0 0 / 48px 48px,
		var(--bg-dark);
	color: var(--text-on-dark);
	padding: 72px 0 88px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--neon); font-family: var(--mono); font-size: 15px; letter-spacing: .14em; margin-bottom: 18px; }
.eyebrow::before { content: "▲ "; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; color: #fff; }
.hl { color: var(--neon); text-shadow: 0 0 28px rgba(0, 240, 224, .35); }
.lead { margin-top: 22px; font-size: 19px; color: var(--muted-on-dark); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.trust { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; }
.trust li { position: relative; padding-left: 30px; font-size: 16px; color: var(--text-on-dark); }
.trust li::before { content: ""; position: absolute; left: 0; top: .55em; width: 18px; height: 10px; border-left: 2.5px solid var(--neon); border-bottom: 2.5px solid var(--neon); transform: rotate(-45deg) translateY(-3px); }

/* 服務地圖（真正的文字，夠大、可點） */
.hero-map {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-areas: "n1 n2" "core core" "n3 n4" "n5 n5";
	gap: 14px;
	padding: 24px;
	border-radius: 24px;
	border: 1px solid var(--line-dark);
	background: rgba(14, 27, 30, .7);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 60px rgba(0, 240, 224, .05);
}
.map-core { grid-area: core; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 0; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: .2em; }
.map-core svg { width: 40px; height: 40px; border-radius: 10px; }
.map-node {
	display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
	min-height: 84px; padding: 14px 16px; border-radius: 14px;
	background: #10252a; border: 1px solid rgba(0, 240, 224, .18);
	text-decoration: none; color: var(--text-on-dark);
	transition: transform .2s ease, border-color .2s, box-shadow .2s, background .2s;
}
.map-node .ic { grid-row: span 2; width: 30px; height: 30px; color: var(--neon); }
.map-node strong { font-size: 19px; line-height: 1.3; }
.map-node small { font-size: 14px; line-height: 1.4; color: var(--muted-on-dark); }
.map-node:hover, .map-node:focus-visible {
	transform: translateY(-3px) scale(1.04);
	background: #133036; border-color: var(--neon);
	box-shadow: 0 0 0 1px rgba(0, 240, 224, .35), 0 12px 30px rgba(0, 240, 224, .18);
}
.n1 { grid-area: n1; } .n2 { grid-area: n2; } .n3 { grid-area: n3; } .n4 { grid-area: n4; } .n5 { grid-area: n5; }

/* ---------- 區塊共用 ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.kicker { color: var(--neon-ink); font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: .14em; margin-bottom: 10px; }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.section-head p:not(.kicker) { margin-top: 14px; color: var(--muted); font-size: 18px; }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); background-image: linear-gradient(rgba(0, 240, 224, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 240, 224, .035) 1px, transparent 1px); background-size: 48px 48px; }
.section-dark .kicker { color: var(--neon); }
.section-dark h2 { color: #fff; }
.section-dark .section-head p:not(.kicker) { color: var(--muted-on-dark); }
.section-soft { background: var(--soft); }

/* 服務卡片 */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
	padding: 28px; border-radius: var(--radius); background: var(--surface);
	border: 1px solid var(--line); border-top: 3px solid var(--neon-strong);
	box-shadow: 0 6px 20px rgba(7, 13, 15, .05);
	transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(7, 13, 15, .10); }
.card:target { box-shadow: 0 0 0 3px var(--neon), 0 16px 36px rgba(7, 13, 15, .1); }
.card-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #e3f7f5; color: var(--neon-ink); margin-bottom: 16px; }
.card-ic svg { width: 28px; height: 28px; }
.card h3 { font-size: 22px; }
.card p { margin-top: 10px; color: var(--muted); }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card li { position: relative; padding-left: 22px; font-size: 16px; }
.card li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px; border-radius: 2px; background: var(--neon-strong); }
.card-feature {
	grid-column: 1 / -1;
	display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
	background: linear-gradient(135deg, #0e1b1e, #07282b); color: var(--text-on-dark); border-color: transparent;
}
.card-feature .card-ic { margin: 0; background: rgba(0, 240, 224, .12); color: var(--neon); }
.card-feature h3 { color: #fff; }
.card-feature p { color: var(--muted-on-dark); }

/* 問題情境：痛點 → 我們做 */
.pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pair { padding: 24px; border-radius: var(--radius); background: var(--panel-dark); border: 1px solid rgba(0, 240, 224, .14); text-decoration: none; }
.pair h3 { font-size: 20px; color: #fff; }
.pain { margin-top: 10px; color: var(--muted-on-dark); font-size: 16px; }
.fix { margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(0, 240, 224, .25); color: #c6fbf6; font-size: 16px; }
.pair-cta { display: flex; flex-direction: column; gap: 10px; border-color: var(--neon); transition: background .2s, transform .2s; }
.pair-cta p { color: var(--muted-on-dark); font-size: 16px; }
.pair-cta .link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--neon); font-weight: 700; }
.pair-cta:hover { background: #10282c; transform: translateY(-3px); }

/* 流程 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 24px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -14px; width: 12px; height: 2px; background: var(--neon-strong); }
.step-no { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-dark); color: var(--neon); font-family: var(--mono); font-weight: 700; margin-bottom: 14px; }
.steps strong { display: block; font-size: 19px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.proof div { padding: 18px 20px; border-left: 3px solid var(--neon-strong); background: var(--surface); border-radius: 0 12px 12px 0; }
.proof strong { display: block; font-size: 17px; }
.proof span { color: var(--muted); font-size: 15px; }

/* 關於 */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.about > div > p:not(.kicker) { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 34em; }
.principle { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.principle h3 { font-size: 20px; margin-bottom: 12px; }
.principle ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.principle li { color: var(--muted); }
.principle li strong { display: block; color: var(--ink); }

/* 問答 */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-list details { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.faq-list summary {
	list-style: none; cursor: pointer; position: relative;
	min-height: 60px; padding: 16px 56px 16px 22px; font-size: 18px; font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--neon-ink); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details[open] { border-color: var(--neon-strong); }
.faq-list details p { padding: 0 22px 20px; color: var(--muted); }

/* 聯絡 */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.contact-grid > div > p:not(.kicker) { margin-top: 14px; color: var(--muted-on-dark); font-size: 18px; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-btn {
	display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 18px;
	border-radius: 14px; background: var(--panel-dark); border: 1px solid rgba(0, 240, 224, .2);
	text-decoration: none; transition: border-color .2s, background .2s, transform .15s;
}
.contact-btn .ic { width: 26px; height: 26px; color: var(--neon); }
.contact-btn small { display: block; font-size: 14px; color: var(--muted-on-dark); line-height: 1.4; }
.contact-btn strong { display: block; font-size: 18px; color: #fff; line-height: 1.4; word-break: break-word; }
.contact-btn:hover { border-color: var(--neon); background: #10282c; transform: translateY(-2px); }
.contact-btn:last-child { grid-column: 1 / -1; }
.contact-btn[href^="mailto"] { grid-column: 1 / -1; }
.contact-line { grid-column: 1 / -1; background: #06c755; border-color: #06c755; }
.contact-line .ic { color: #fff; width: 32px; height: 32px; }
.contact-line small { color: rgba(255,255,255,.85); }
.contact-line strong { font-size: 22px; }
.contact-line:hover { background: #05b34c; border-color: #05b34c; }
.line-qr { margin-left: auto; border-radius: 10px; background: #fff; padding: 6px; }

/* 頁尾 */
.footer { background: #040809; color: var(--muted-on-dark); padding: 36px 0 40px; border-top: 1px solid var(--line-dark); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.footer .brand-text strong { color: #fff; font-size: 16px; }
.copy { font-family: var(--mono); font-size: 13px; }

/* 手機快捷列、回到頂端 */
.quickbar { display: none; }
.to-top {
	position: fixed; right: 18px; bottom: 22px; z-index: 40;
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	background: var(--neon); color: #031214; font-size: 22px; font-weight: 700; text-decoration: none;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
	opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- 平板 ---------- */
@media (max-width: 1080px) {
	.nav a { padding: 10px 10px; font-size: 15px; }
	.hero-grid { grid-template-columns: 1fr; gap: 40px; }
	.pairs { grid-template-columns: 1fr 1fr; }
	.steps { grid-template-columns: repeat(3, 1fr); }
	.steps li::after { display: none; }
}

/* ---------- 手機 ---------- */
@media (max-width: 820px) {
	:root { --header-h: 64px; }
	body { font-size: 16px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
	.wrap { width: min(100% - 32px, var(--wrap)); }
	.brand-text small { display: none; }
	.brand-logo { width: 40px; height: 40px; }
	.header-cta { display: none; }
	.menu-btn {
		display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
		margin-left: auto; width: 48px; height: 48px; padding: 12px; border-radius: 12px;
		border: 1px solid rgba(238, 245, 245, .25); background: transparent; cursor: pointer;
	}
	.menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--text-on-dark); transition: transform .2s, opacity .2s; }
	.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.nav {
		position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
		flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 20px;
		background: rgba(7, 13, 15, .98); border-bottom: 1px solid var(--line-dark);
		transform: translateY(-110%); visibility: hidden; transition: transform .25s ease, visibility .25s;
	}
	.nav.open { transform: none; visibility: visible; }
	.nav a { padding: 16px 8px; font-size: 18px; border-bottom: 1px solid rgba(238, 245, 245, .08); border-radius: 0; }

	.hero { padding: 44px 0 56px; }
	.lead { font-size: 17px; }
	.hero-actions .btn { flex: 1 1 100%; }
	.hero-map { padding: 16px; gap: 10px; }
	.map-node { grid-template-columns: 1fr; row-gap: 4px; min-height: 0; padding: 14px; }
	.map-node .ic { grid-row: auto; width: 26px; height: 26px; margin-bottom: 4px; }
	.map-node strong { font-size: 17px; }
	.map-node small { font-size: 13px; }
	.map-node:hover, .map-node:focus-visible { transform: scale(1.03); }

	.section { padding: 64px 0; }
	.section-head { margin-bottom: 32px; }
	.section-head p:not(.kicker), .about > div > p:not(.kicker), .contact-grid > div > p:not(.kicker) { font-size: 17px; }
	.cards, .pairs, .proof, .about, .contact-grid, .contact-actions { grid-template-columns: 1fr; }
	.card { padding: 22px; }
	.card-feature { grid-template-columns: 1fr; }
	.card-feature .btn { width: 100%; }
	.steps { grid-template-columns: 1fr; gap: 0; }
	.steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding: 0 0 24px; border: 0; background: none; }
	.steps li .step-no { grid-row: span 2; margin: 0; }
	.steps li p { grid-column: 2; }
	.steps li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
	.faq-list summary { font-size: 17px; }
	.footer-grid { grid-template-columns: 1fr; gap: 14px; }

	.quickbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
		display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
		background: rgba(7, 13, 15, .96); border-top: 1px solid var(--line-dark); backdrop-filter: blur(10px);
	}
	.quickbar a {
		display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px;
		border-radius: 12px; border: 1px solid rgba(0, 240, 224, .3); color: var(--text-on-dark);
		font-weight: 700; font-size: 16px; text-decoration: none;
	}
	.quickbar .ic { color: var(--neon); }
	.quickbar .qb-main { background: var(--neon); color: #031214; border-color: var(--neon); }
	.quickbar .qb-line { background: #06c755; color: #fff; border-color: #06c755; }
	.quickbar .qb-line .ic { color: #fff; }
	.line-qr { display: none !important; }
	.to-top { bottom: calc(80px + env(safe-area-inset-bottom)); right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
