Optimize studio-sample: shared CSS, mobile nav, SEO, a11y, working filter
- Extract duplicated per-page CSS into one shared style.css - Add CSS-only hamburger menu for ≤720px (was overflowing) - Add meta description / Open Graph / favicon to all pages - Unify footers, fix dead links, distinct <title>s - :focus-visible outlines, aria-hidden on decorative text, contrast bumps - Make works.html category filter actually filter (data-cat) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3,422 +3,24 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="theme-color" content="#e53935">
|
||||
<meta name="description" content="Studio Sample 服務與報價 — 品牌識別、網頁設計開發、印刷編輯三大核心服務,附 Starter / Studio / Full Brand 三級報價與常見問題。">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:locale" content="zh_TW">
|
||||
<meta property="og:site_name" content="Studio Sample">
|
||||
<meta property="og:title" content="Services — Studio Sample">
|
||||
<meta property="og:description" content="品牌識別、網頁設計開發、印刷編輯。三種核心服務,透明報價,不留黑盒子。">
|
||||
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><rect width='64' height='64' rx='8' fill='%23e53935'/><text x='32' y='45' font-family='Arial,sans-serif' font-size='42' font-weight='bold' fill='white' text-anchor='middle'>S</text></svg>">
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<title>Services — Studio Sample</title>
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
html { scroll-behavior: smooth; }
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
|
||||
"Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP",
|
||||
"Noto Sans TC", system-ui, sans-serif;
|
||||
background-color: #ffffff;
|
||||
color: #333333;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* ─── NAV ─────────────────────────────────────────────── */
|
||||
nav {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
background: #ffffff;
|
||||
border-bottom: 1px solid #eeeeee;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 clamp(16px, 5vw, 64px);
|
||||
height: 56px;
|
||||
}
|
||||
|
||||
.nav-logo {
|
||||
font-size: 18px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.12em;
|
||||
color: #e53935;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: flex;
|
||||
gap: clamp(16px, 3vw, 40px);
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.nav-links a {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: #555555;
|
||||
text-decoration: none;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.nav-links a:hover,
|
||||
.nav-links a.active { color: #e53935; }
|
||||
|
||||
/* ─── PAGE HEADER ─────────────────────────────────────── */
|
||||
.page-header {
|
||||
padding: clamp(48px, 7vw, 88px) clamp(24px, 8vw, 96px) clamp(32px, 4vw, 48px);
|
||||
background: #f7f7f7;
|
||||
border-bottom: 1px solid #eeeeee;
|
||||
}
|
||||
|
||||
.page-header-eyebrow {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.25em;
|
||||
text-transform: uppercase;
|
||||
color: #e53935;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.page-header-title {
|
||||
font-size: clamp(32px, 5vw, 64px);
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.02em;
|
||||
color: #111111;
|
||||
line-height: 1.1;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.page-header-lead {
|
||||
font-size: clamp(14px, 1.5vw, 17px);
|
||||
color: #666666;
|
||||
max-width: 38em;
|
||||
}
|
||||
|
||||
/* ─── SECTION COMMON ──────────────────────────────────── */
|
||||
section {
|
||||
padding: clamp(56px, 8vw, 96px) clamp(24px, 8vw, 96px);
|
||||
}
|
||||
|
||||
.section-label {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.25em;
|
||||
text-transform: uppercase;
|
||||
color: #e53935;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: clamp(24px, 3.5vw, 40px);
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.01em;
|
||||
color: #111111;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.section-lead {
|
||||
font-size: clamp(14px, 1.5vw, 17px);
|
||||
color: #666666;
|
||||
max-width: 42em;
|
||||
margin-bottom: 48px;
|
||||
}
|
||||
|
||||
/* ─── SERVICE BLOCKS ──────────────────────────────────── */
|
||||
#services { background: #ffffff; }
|
||||
|
||||
.service-block {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 2fr;
|
||||
gap: clamp(32px, 6vw, 80px);
|
||||
padding: clamp(32px, 4vw, 56px) 0;
|
||||
border-top: 1px solid #eeeeee;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.service-block:first-of-type {
|
||||
border-top: 2px solid #e53935;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.service-block { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
.service-index {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.2em;
|
||||
color: #e53935;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.service-name {
|
||||
font-size: clamp(22px, 2.8vw, 32px);
|
||||
font-weight: 800;
|
||||
color: #111111;
|
||||
letter-spacing: -0.01em;
|
||||
margin: 12px 0 0;
|
||||
}
|
||||
|
||||
.service-detail h4 {
|
||||
font-size: clamp(14px, 1.4vw, 16px);
|
||||
font-weight: 700;
|
||||
color: #111111;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.service-detail p {
|
||||
font-size: clamp(13px, 1.3vw, 15px);
|
||||
color: #666666;
|
||||
line-height: 1.8;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.deliverables {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.deliverables li {
|
||||
font-size: 13px;
|
||||
color: #444444;
|
||||
padding-left: 20px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.deliverables li::before {
|
||||
content: "—";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
color: #e53935;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.service-note {
|
||||
font-size: 12px;
|
||||
color: #aaaaaa;
|
||||
border-left: 2px solid #eeeeee;
|
||||
padding-left: 12px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* ─── PRICING ─────────────────────────────────────────── */
|
||||
#pricing { background: #f7f7f7; }
|
||||
|
||||
.pricing-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
||||
gap: 2px;
|
||||
background: #e0e0e0;
|
||||
border: 2px solid #e0e0e0;
|
||||
}
|
||||
|
||||
.pricing-card {
|
||||
background: #ffffff;
|
||||
padding: clamp(28px, 3.5vw, 44px) clamp(24px, 2.5vw, 36px);
|
||||
}
|
||||
|
||||
.pricing-card.highlighted {
|
||||
background: #111111;
|
||||
}
|
||||
|
||||
.pricing-tier {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.2em;
|
||||
text-transform: uppercase;
|
||||
color: #e53935;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.pricing-price {
|
||||
font-size: clamp(28px, 3.5vw, 40px);
|
||||
font-weight: 900;
|
||||
color: #111111;
|
||||
letter-spacing: -0.02em;
|
||||
line-height: 1;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.pricing-card.highlighted .pricing-price {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.pricing-unit {
|
||||
font-size: 13px;
|
||||
color: #aaaaaa;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.pricing-desc {
|
||||
font-size: clamp(13px, 1.3vw, 14px);
|
||||
color: #666666;
|
||||
line-height: 1.7;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.pricing-card.highlighted .pricing-desc {
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.pricing-features {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.pricing-features li {
|
||||
font-size: 13px;
|
||||
color: #444444;
|
||||
padding-left: 20px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.pricing-card.highlighted .pricing-features li {
|
||||
color: #aaaaaa;
|
||||
}
|
||||
|
||||
.pricing-features li::before {
|
||||
content: "✓";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
color: #e53935;
|
||||
font-weight: 700;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* ─── FAQ ─────────────────────────────────────────────── */
|
||||
#faq { background: #ffffff; }
|
||||
|
||||
.faq-list {
|
||||
max-width: 720px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.faq-item {
|
||||
border-top: 1px solid #eeeeee;
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
.faq-item:last-child {
|
||||
border-bottom: 1px solid #eeeeee;
|
||||
}
|
||||
|
||||
.faq-q {
|
||||
font-size: clamp(15px, 1.5vw, 17px);
|
||||
font-weight: 700;
|
||||
color: #111111;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.faq-a {
|
||||
font-size: clamp(13px, 1.3vw, 15px);
|
||||
color: #666666;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
/* ─── BTN ─────────────────────────────────────────────── */
|
||||
.btn {
|
||||
display: inline-block;
|
||||
padding: 14px 32px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
border: 2px solid #e53935;
|
||||
transition: background 0.2s, color 0.2s;
|
||||
}
|
||||
|
||||
.btn-primary { background: #e53935; color: #ffffff; }
|
||||
.btn-primary:hover { background: #c62828; border-color: #c62828; }
|
||||
|
||||
/* ─── CTA STRIP ───────────────────────────────────────── */
|
||||
.cta-strip {
|
||||
background: #e53935;
|
||||
padding: clamp(40px, 6vw, 72px) clamp(24px, 8vw, 96px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.cta-strip-text h2 {
|
||||
font-size: clamp(22px, 3vw, 36px);
|
||||
font-weight: 800;
|
||||
color: #ffffff;
|
||||
letter-spacing: -0.01em;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.cta-strip-text p {
|
||||
font-size: clamp(13px, 1.3vw, 15px);
|
||||
color: rgba(255,255,255,0.7);
|
||||
}
|
||||
|
||||
.btn-white {
|
||||
background: #ffffff;
|
||||
color: #e53935;
|
||||
border-color: #ffffff;
|
||||
}
|
||||
|
||||
.btn-white:hover {
|
||||
background: #f5f5f5;
|
||||
border-color: #f5f5f5;
|
||||
}
|
||||
|
||||
/* ─── FOOTER ──────────────────────────────────────────── */
|
||||
footer {
|
||||
background: #111111;
|
||||
padding: 32px clamp(24px, 8vw, 96px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.footer-logo {
|
||||
font-size: 16px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.12em;
|
||||
color: #e53935;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.footer-nav {
|
||||
display: flex;
|
||||
gap: clamp(16px, 3vw, 32px);
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.footer-nav a {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: #555555;
|
||||
text-decoration: none;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.footer-nav a:hover { color: #e53935; }
|
||||
|
||||
.footer-copy {
|
||||
font-size: 12px;
|
||||
color: #555555;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- ─── NAV ─────────────────────────────────────────────── -->
|
||||
<nav>
|
||||
<a class="nav-logo" href="index.html">Studio Sample</a>
|
||||
<input type="checkbox" id="nav-toggle" class="nav-toggle">
|
||||
<label class="nav-burger" for="nav-toggle" aria-label="開啟選單">☰</label>
|
||||
<ul class="nav-links">
|
||||
<li><a href="services.html" class="active">Services</a></li>
|
||||
<li><a href="works.html">Works</a></li>
|
||||
@@ -475,7 +77,7 @@
|
||||
<div class="service-block">
|
||||
<div>
|
||||
<p class="service-index">02 / Web</p>
|
||||
<h3 class="service-name">Web Design<br>& Build</h3>
|
||||
<h3 class="service-name">Web Design<br>& Build</h3>
|
||||
</div>
|
||||
<div class="service-detail">
|
||||
<h4>適合對象</h4>
|
||||
@@ -505,7 +107,7 @@
|
||||
<div class="service-block">
|
||||
<div>
|
||||
<p class="service-index">03 / Print</p>
|
||||
<h3 class="service-name">Print &<br>Editorial</h3>
|
||||
<h3 class="service-name">Print &<br>Editorial</h3>
|
||||
</div>
|
||||
<div class="service-detail">
|
||||
<h4>適合對象</h4>
|
||||
@@ -639,7 +241,7 @@
|
||||
</section>
|
||||
|
||||
<!-- ─── CTA STRIP ──────────────────────────────────────────── -->
|
||||
<div class="cta-strip">
|
||||
<div class="cta-strip red">
|
||||
<div class="cta-strip-text">
|
||||
<h2>準備好開始了嗎?</h2>
|
||||
<p>填寫聯絡表單,告訴我們你的專案。通常兩個工作天內回覆。</p>
|
||||
@@ -653,7 +255,7 @@
|
||||
<ul class="footer-nav">
|
||||
<li><a href="services.html">Services</a></li>
|
||||
<li><a href="works.html">Works</a></li>
|
||||
<li><a href="index.html#about">About</a></li>
|
||||
<li><a href="timeline.html">Timeline</a></li>
|
||||
<li><a href="index.html#contact">Contact</a></li>
|
||||
</ul>
|
||||
<div class="footer-copy">© 2026 Studio Sample. All rights reserved.</div>
|
||||
|
||||
Reference in New Issue
Block a user