:root {
  --pink: #d9436d;
  --pink-dark: #ae2c55;
  --pink-soft: #ffe4ec;
  --rose: #f47b98;
  --yellow: #f7cd4d;
  --yellow-soft: #fff4c8;
  --ink: #202431;
  --ink-soft: #5f6571;
  --paper: #f8f3ef;
  --white: #fffdfa;
  --line: #e7dedb;
  --green: #51b494;
  --shadow: 0 22px 60px rgba(71, 26, 43, .12);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, textarea:focus-visible, input:focus-visible + .tone-card-body { outline: 3px solid rgba(217, 67, 109, .38); outline-offset: 3px; }
a { color: inherit; }
.page-shell { overflow: hidden; }

.site-header {
  width: min(1220px, calc(100% - 56px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); font: 900 13px Arial, sans-serif; letter-spacing: -.08em; transform: rotate(-8deg); }
.brand-name { font-size: 15px; line-height: 1.08; font-weight: 900; letter-spacing: .02em; }
.brand-name em { color: var(--pink); font-style: normal; }
.header-side { display: flex; align-items: center; gap: 18px; color: #8a8185; font-size: 11px; letter-spacing: .04em; }
.header-index { padding: 5px 8px; border: 1px solid #d8cecb; border-radius: 99px; color: var(--pink); font-size: 10px; font-weight: 900; }

main { width: min(1220px, calc(100% - 56px)); margin: 0 auto; }
.hero {
  position: relative;
  min-height: 570px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  overflow: hidden;
  border-radius: 32px;
  background: var(--pink);
  color: var(--white);
  box-shadow: var(--shadow);
}
.hero::before { content: ''; position: absolute; width: 580px; height: 580px; right: -210px; bottom: -320px; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; box-shadow: 0 0 0 27px rgba(255,255,255,.07), 0 0 0 54px rgba(255,255,255,.06); }
.hero::after { content: ''; position: absolute; left: 38%; top: -80px; width: 1px; height: 760px; background: rgba(255,255,255,.16); transform: rotate(18deg); }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 70px 42px 72px 64px; }
.eyebrow, .section-kicker { margin: 0; font-size: 11px; line-height: 1; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { color: rgba(255,255,255,.78); }
.eyebrow span { margin-right: 9px; color: var(--yellow); }
h1, h2, p { margin-top: 0; }
h1 { margin: 26px 0 22px; color: var(--white); font-size: clamp(52px, 7vw, 92px); line-height: 1.03; letter-spacing: -.09em; font-weight: 900; }
h1 span { position: relative; z-index: 0; white-space: nowrap; }
h1 span::after { content: ''; position: absolute; left: -2%; right: -4%; bottom: 2px; height: 14px; z-index: -1; background: var(--yellow); transform: rotate(-1.5deg); }
.hero-lede { max-width: 360px; margin-bottom: 32px; color: rgba(255,255,255,.9); font-size: clamp(18px, 2.2vw, 24px); line-height: 1.55; font-weight: 700; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; }
.hero-cta { display: inline-flex; align-items: center; gap: 25px; padding: 13px 16px 13px 19px; border: 2px solid var(--ink); border-radius: 12px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 900; text-decoration: none; box-shadow: 4px 4px 0 rgba(255,255,255,.42); transition: transform .18s, box-shadow .18s; }
.hero-cta span { color: var(--yellow); font-size: 22px; line-height: .6; }
.hero-cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(255,255,255,.42); }
.hero-caption { color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: .03em; }

.hero-visual { position: relative; min-height: 570px; overflow: hidden; isolation: isolate; background: var(--pink-dark); }
.hero-visual::before { content: ''; position: absolute; inset: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; pointer-events: none; }
.hero-visual-top { position: absolute; z-index: 4; top: 27px; left: 32px; right: 32px; display: flex; justify-content: space-between; color: rgba(255,255,255,.73); font-size: 10px; letter-spacing: .09em; }
.hero-visual-top span:first-child { color: var(--yellow); font-weight: 900; }
.portrait-backdrop { position: absolute; inset: 116px -17% -80px 9%; z-index: -1; background: var(--yellow); border-radius: 54% 48% 21% 17% / 30% 28% 14% 15%; transform: rotate(-8deg); }
.portrait-backdrop::before { content: ''; position: absolute; inset: 20px 14px -17px -13px; border: 2px solid var(--white); border-radius: inherit; transform: rotate(11deg); opacity: .9; }
.portrait-frame { position: absolute; z-index: 1; right: -7%; bottom: -7px; width: 116%; height: 112%; display: flex; align-items: flex-end; justify-content: center; }
.portrait-frame img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(16px 18px 0 rgba(53, 18, 34, .25)); }
.scribble { position: absolute; z-index: 3; white-space: nowrap; font-weight: 900; }
.scribble-one { top: 105px; left: 29px; padding: 10px 14px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font-size: 14px; transform: rotate(-7deg); box-shadow: 5px 5px 0 var(--yellow); }
.scribble-two { top: 77px; right: 33px; color: var(--yellow); font-size: 13px; transform: rotate(6deg); }
.mic-sticker { position: absolute; z-index: 4; right: 28px; bottom: 60px; display: flex; align-items: center; gap: 7px; padding: 8px 11px 8px 8px; border: 2px solid var(--white); border-radius: 12px; background: var(--ink); color: var(--white); transform: rotate(8deg); box-shadow: 4px 5px 0 var(--pink); }
.mic-sticker span { font-size: 22px; line-height: 1; }.mic-sticker small { font-size: 9px; line-height: 1.25; font-weight: 900; letter-spacing: .07em; }
.hero-stamp { position: absolute; z-index: 3; left: 31px; bottom: 35px; display: grid; place-items: center; width: 78px; height: 78px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--ink); transform: rotate(-12deg); box-shadow: 4px 4px 0 rgba(32,36,49,.35); }
.hero-stamp span { font: 900 11px/1.1 Arial, sans-serif; letter-spacing: .06em; text-align: center; }

.generator-section { padding: 73px 0 60px; }
.generator-intro { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 28px; }
.intro-number { color: var(--pink); font: 900 54px/.9 Arial, sans-serif; letter-spacing: -.08em; }
.generator-intro .section-kicker { margin: 1px 0 11px; color: var(--pink); }
.generator-intro h2 { margin: 0 0 7px; font-size: clamp(27px, 3vw, 39px); line-height: 1.15; letter-spacing: -.07em; }
.generator-intro p:last-child { margin: 0; color: #82777c; font-size: 13px; }
.generator-grid { display: grid; grid-template-columns: minmax(340px, .86fr) minmax(0, 1.14fr); gap: 20px; align-items: stretch; }
.panel { border-radius: var(--radius); box-shadow: 0 12px 34px rgba(71, 26, 43, .08); }
.input-panel { padding: 31px; border: 1px solid var(--line); background: var(--white); }
.panel-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-topline .section-kicker { color: var(--pink); }
.panel-index { color: #aaa0a1; font: 900 10px Arial, sans-serif; letter-spacing: .08em; }
.input-panel h2 { margin: 17px 0 6px; font-size: clamp(24px, 2.6vw, 31px); line-height: 1.15; letter-spacing: -.07em; }
.panel-hint { margin-bottom: 15px; color: #837a7c; font-size: 13px; line-height: 1.5; }
textarea { display: block; width: 100%; min-height: 132px; resize: vertical; border: 1.5px solid #e1d7d5; border-radius: 15px; background: #fffaf7; color: var(--ink); padding: 15px 16px; line-height: 1.7; font-size: 15px; transition: border .2s, box-shadow .2s; }
textarea::placeholder { color: #aaa0a0; }
textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(217,67,109,.12); outline: 0; }
.input-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 7px; color: #aaa0a1; font-size: 11px; }.input-tip { color: #bd942c; }
.example-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 15px 0 28px; color: #988d90; font-size: 11px; }.example-chip { border: 1px solid #e4dad8; border-radius: 99px; background: var(--white); padding: 6px 10px; color: #60575b; font-size: 11px; transition: .2s; }.example-chip:hover { border-color: var(--pink); color: var(--pink-dark); background: var(--pink-soft); }
.control-block { padding-top: 25px; border-top: 1px solid var(--line); }
.tone-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 13px; }
.tone-card { display: block; position: relative; cursor: pointer; }.tone-card input { position: absolute; opacity: 0; pointer-events: none; }
.tone-card-body { min-height: 104px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 13px 12px; border: 1.5px solid #e4dad8; border-radius: 14px; background: #fffdfb; transition: .2s; }.tone-card:hover .tone-card-body { border-color: #cdbec0; transform: translateY(-2px); }.tone-card input:checked + .tone-card-body { border-color: var(--pink); background: var(--pink-soft); box-shadow: 3px 3px 0 var(--pink); }.tone-emoji { font-size: 19px; line-height: 1; }.tone-card strong { display: block; font-size: 13px; }.tone-card small { display: block; margin-top: 3px; color: #8b7f83; font-size: 10px; line-height: 1.35; }.tone-length { margin-top: auto; color: #a28f93; font: 600 9px Arial, sans-serif; }
.generate-button { width: 100%; margin-top: 23px; padding: 16px 17px; border: 2px solid var(--ink); border-radius: 14px; background: var(--ink); color: var(--white); box-shadow: 5px 5px 0 var(--pink); font-size: 16px; font-weight: 900; transition: transform .18s, box-shadow .18s, background .18s; }.generate-button span { margin-right: 4px; }.generate-button b { float: right; color: var(--yellow); font-size: 22px; line-height: 14px; }.generate-button:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--pink); background: #2d3140; }.generate-button:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--pink); }
.keyboard-hint { margin: 13px 0 0; color: #aaa0a1; font-size: 10px; text-align: center; }.keyboard-hint span { padding: 0 3px; }.keyboard-hint kbd { border: 1px solid #ded4d3; border-radius: 4px; padding: 1px 4px; color: #73696c; font: 600 10px Arial, sans-serif; background: #fffaf7; }

.result-panel { min-height: 100%; display: flex; flex-direction: column; padding: 31px; background: var(--ink); color: var(--white); }
.result-panel .section-kicker { color: var(--yellow); }.result-panel h2 { margin: 17px 0 0; color: var(--white); font-size: clamp(24px, 2.6vw, 31px); line-height: 1.15; letter-spacing: -.07em; }
.result-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }.status-chip { flex: 0 0 auto; margin-top: 1px; padding: 7px 9px; border-radius: 99px; color: #e9cbd3; background: rgba(255,255,255,.1); font: 700 10px Arial, sans-serif; letter-spacing: .03em; }.status-chip.live { color: var(--ink); background: var(--yellow); }.status-chip.max { color: var(--white); background: var(--pink); }
.result-empty { flex: 1; min-height: 318px; margin: 22px 0 20px; padding: 27px; display: flex; align-items: flex-end; gap: 21px; border: 1px dashed rgba(255,255,255,.22); border-radius: 18px; background: rgba(255,255,255,.055); }.empty-number { color: var(--pink); font: 900 90px/.75 Arial, sans-serif; letter-spacing: -.1em; }.empty-copy p { margin: 0 0 6px; color: var(--white); font-size: 17px; font-weight: 900; }.empty-copy span { display: block; max-width: 220px; color: #aeb2bb; font-size: 12px; line-height: 1.65; }
.response-content { flex: 1; min-height: 318px; margin: 22px 0 20px; padding: 24px 25px; border-radius: 18px; border: 1px solid #f1dfc4; background: #fff8e9; color: #292c36; font-size: 15px; line-height: 2; white-space: pre-line; position: relative; }.response-content::before { content: '「'; position: absolute; left: 10px; top: 4px; color: var(--pink); font: 900 43px Georgia, serif; line-height: 1; }.response-content.reveal { animation: rise .42s ease both; }@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.result-meta { display: grid; grid-template-columns: .8fr .8fr 1.7fr; gap: 8px; margin-bottom: 18px; }.stat-card, .index-card { padding: 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(255,255,255,.07); }.stat-card span, .index-title span { display: block; color: #aeb2bb; font-size: 10px; }.stat-card strong { display: block; margin-top: 5px; color: var(--white); font: 700 19px Arial, sans-serif; letter-spacing: -.04em; }.index-title { display: flex; align-items: baseline; gap: 2px; }.index-title strong { margin-left: auto; color: var(--yellow); font: 700 21px Arial, sans-serif; }.index-title small { color: #aeb2bb; font: 600 10px Arial, sans-serif; }.score-track { height: 6px; overflow: hidden; margin-top: 10px; border-radius: 99px; background: rgba(255,255,255,.12); }.score-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--yellow), var(--pink)); transition: width .6s ease; }
.result-actions { display: flex; align-items: center; gap: 8px; }.secondary-button { flex: 1; border: 1px solid rgba(255,255,255,.23); border-radius: 11px; padding: 11px 10px; background: rgba(255,255,255,.08); color: var(--white); font-size: 13px; font-weight: 800; transition: .2s; }.secondary-button:hover:not(:disabled) { border-color: var(--yellow); color: var(--yellow); background: rgba(247,205,77,.1); }.secondary-button:disabled { cursor: not-allowed; opacity: .4; }.copy-status { min-width: 58px; color: var(--green); font-size: 10px; text-align: right; }

.site-footer { width: min(1220px, calc(100% - 56px)); margin: 0 auto; padding: 25px 0 31px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1.35fr; align-items: center; gap: 25px; }.footer-brand strong { display: block; font-size: 12px; }.footer-brand span { display: block; margin-top: 5px; color: #978c90; font-size: 11px; }.creator-credit { display: inline-flex; align-items: center; gap: 8px; color: #655b60; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: color .2s; }.creator-credit:hover { color: #1877f2; }.fb-mark { display: grid; place-items: end center; width: 23px; height: 23px; padding-bottom: 1px; border-radius: 50%; background: #1877f2; color: #fff; font: 900 20px Arial, sans-serif; line-height: 1; }.site-footer p { max-width: 510px; margin: 0; justify-self: end; color: #7d7378; font-size: 13px; font-weight: 600; line-height: 1.7; text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.shake { animation: shake .42s ease; }@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 55% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 395px; padding: 52px 42px 38px; }
  .hero::after { left: 50%; top: 39%; width: 760px; height: 1px; transform: rotate(-7deg); }
  .hero-visual { min-height: 440px; }
  .portrait-backdrop { inset: 68px 7% -112px 22%; }
  .portrait-frame { right: 0; width: 100%; height: 112%; }
  .generator-grid { grid-template-columns: 1fr; }
  .result-panel { min-height: 560px; }
}
@media (max-width: 620px) {
  .site-header, main, .site-footer { width: min(100% - 32px, 1220px); }
  .site-header { height: 71px; }.header-label { display: none; }.header-side { gap: 0; }.brand-name { font-size: 14px; }
  .hero { border-radius: 24px; }
  .hero-copy { min-height: 355px; padding: 40px 25px 33px; }
  h1 { margin-top: 22px; font-size: clamp(44px, 14vw, 70px); }.hero-lede { margin-bottom: 25px; font-size: 18px; }.hero-caption { font-size: 10px; }
  .hero-visual { min-height: 370px; }.hero-visual::before { inset: 15px; border-radius: 18px; }.hero-visual-top { top: 20px; left: 23px; right: 23px; }.portrait-backdrop { inset: 65px -8% -80px 17%; }.portrait-frame { right: -12%; width: 125%; height: 115%; }.scribble-one { top: 72px; left: 19px; padding: 8px 10px; font-size: 11px; }.scribble-two { top: 50px; right: 21px; font-size: 10px; }.mic-sticker { right: 17px; bottom: 32px; transform: scale(.9) rotate(8deg); transform-origin: right bottom; }.hero-stamp { left: 19px; bottom: 22px; width: 62px; height: 62px; }.hero-stamp span { font-size: 9px; }
  .generator-section { padding: 55px 0 46px; }.generator-intro { gap: 12px; margin-bottom: 22px; }.intro-number { font-size: 41px; }.generator-intro h2 { font-size: 26px; }.generator-intro p:last-child { font-size: 12px; line-height: 1.6; }
  .input-panel, .result-panel { padding: 23px 19px; }.input-panel h2, .result-panel h2 { font-size: 25px; }.tone-options { gap: 6px; }.tone-card-body { min-height: 102px; padding: 11px 9px; }.tone-card strong { font-size: 12px; }.tone-card small { font-size: 9px; }.tone-length { font-size: 8px; }.result-panel { min-height: 510px; }.result-empty, .response-content { min-height: 250px; }.result-empty { padding: 21px; gap: 15px; }.empty-number { font-size: 68px; }.empty-copy p { font-size: 15px; }.empty-copy span { font-size: 11px; }.result-meta { grid-template-columns: 1fr 1fr; }.index-card { grid-column: 1 / -1; }.result-actions { flex-wrap: wrap; }.copy-status { width: 100%; text-align: left; }.site-footer { grid-template-columns: 1fr auto; gap: 14px; }.site-footer p { grid-column: 1 / -1; justify-self: start; max-width: none; text-align: left; font-size: 12px; }
}
@media (max-width: 390px) {
  .hero-copy { padding-left: 20px; padding-right: 20px; }.hero-actions { gap: 12px; }.hero-cta { width: 100%; justify-content: space-between; }.hero-caption { width: 100%; }.tone-card-body { min-height: 108px; }.tone-card small { max-width: 55px; }.input-footer { align-items: flex-start; flex-direction: column; gap: 3px; }.footer-brand span { max-width: 150px; line-height: 1.45; }
}

/* Sharing and disclaimer emphasis */
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.13); }
.share-label { margin-right: auto; color: #aeb2bb; font-size: 10px; font-weight: 700; }
.share-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(255,255,255,.08); color: var(--white); font-size: 10px; font-weight: 800; line-height: 1; text-decoration: none; transition: .2s; }
.share-button.facebook-share:hover:not(.is-disabled) { border-color: #75a9ff; color: #a9c8ff; background: rgba(24,119,242,.18); }
.share-button.line-share:hover:not(.is-disabled) { border-color: #68d391; color: #9af0ba; background: rgba(6,199,85,.16); }
.share-button.native-share:hover:not(.is-disabled) { border-color: var(--yellow); color: var(--yellow); background: rgba(247,205,77,.12); }
.share-button.is-disabled { cursor: not-allowed; opacity: .34; }
.site-footer { grid-template-columns: 1fr auto; }
.site-footer .disclaimer { grid-column: 1 / -1; max-width: none; justify-self: stretch; margin: 4px 0 0; padding: 13px 16px; border-left: 4px solid var(--pink); border-radius: 10px; background: var(--pink-soft); color: #8f2949; font-size: 16px; font-weight: 800; line-height: 1.75; text-align: left; }
@media (max-width: 620px) {
  .share-label { width: 100%; margin: 0 0 2px; }
  .share-button { flex: 1; }
  .site-footer .disclaimer { font-size: 15px; line-height: 1.7; }
}

.card-maker { margin-top: 21px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.13); }
.card-maker-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.card-maker-heading .section-kicker { color: var(--pink); }
.card-maker-heading h3 { margin: 9px 0 0; color: var(--white); font-size: 18px; letter-spacing: -.04em; }
.card-size { padding-top: 2px; color: #aeb2bb; font: 700 9px Arial, sans-serif; letter-spacing: .05em; white-space: nowrap; }
.card-preview { margin: 16px 0 13px; padding: 9px; border: 1px solid rgba(255,255,255,.17); border-radius: 15px; background: rgba(255,255,255,.07); }
.card-preview canvas { display: block; width: 100%; height: auto; border-radius: 9px; background: var(--pink); }
.card-actions { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 7px; margin-top: 15px; }
.card-button { min-height: 35px; padding: 7px 8px; border: 1px solid rgba(255,255,255,.24); border-radius: 9px; background: rgba(255,255,255,.09); color: var(--white); font-size: 11px; font-weight: 800; transition: .2s; }
.card-button:hover:not(:disabled) { border-color: var(--yellow); color: var(--yellow); background: rgba(247,205,77,.12); }
.card-button-primary { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.card-button-primary:hover:not(:disabled) { border-color: var(--white); background: var(--white); color: var(--ink); }
.card-button:disabled { cursor: not-allowed; opacity: .36; }
.card-note { margin: 10px 0 0; color: #aeb2bb; font-size: 10px; line-height: 1.5; }
@media (max-width: 620px) {
  .card-actions { grid-template-columns: 1fr 1fr; }
  .card-button-primary { grid-column: 1 / -1; }
  .card-maker-heading h3 { font-size: 17px; }
}
