:root {
  color-scheme: light;
  --bg: #fff;
  --ink: #191919;
  --muted: #626262;
  --accent: #2855c7;
  --accent-dark: #1e409a;
  --line: #dfe5ee;
  --paper: #f3f6ff;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(100% - 80px, 1200px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.masthead { border-bottom: 1px solid var(--line); background: #fff; }
.topbar { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; gap: 13px; align-items: center; font-size: 1.063rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 5px; background: var(--accent); color: #fff; font-size: 22px; line-height: 1; font-weight: 750; }
.brand-mark > span { position: absolute; bottom: -3px; right: -5px; display: grid; place-items: center; width: 15px; height: 15px; border: 2px solid #fff; border-radius: 50%; background: #d7e9ff; color: var(--accent-dark); font-size: 10px; }
.topbar nav a { display: inline-block; padding: 9px 13px; border: 1px solid var(--line); font-size: .875rem; text-decoration: none; font-weight: 650; }
.topbar nav a:hover { border-color: var(--accent); color: var(--accent); }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }

.home { padding-top: 36px; }
.hero { display: grid; grid-template-columns: 1.22fr 1fr; gap: 40px; align-items: center; padding: 38px 42px; border: 1px solid #d5e0fa; border-top: 3px solid var(--accent); border-radius: 5px; background: linear-gradient(115deg, #f6f8ff, #edf3ff); }
.eyebrow { display: inline-block; margin: 0 0 19px; padding: 5px 9px; color: var(--accent-dark); background: #e1eaff; font-size: .875rem; font-weight: 650; letter-spacing: .08em; }
.hero h1 { margin: 0; color: var(--ink); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 850; line-height: 1.3; letter-spacing: -.04em; }
.hero h1 span { color: var(--accent); font-weight: 500; }
.collection-note { margin: 22px 0 0; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.collection-note span { padding-inline: 9px; color: #a0a0a0; }
.hero-search { padding-left: 30px; border-left: 1px solid #cedaf5; }
.hero-search > p { max-width: 360px; margin: 0 0 20px; font-size: 1rem; line-height: 1.85; color: #4f4f4f; }
.search { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 54px; padding: 5px 5px 5px 15px; border: 1px solid #b7c7e8; border-radius: 4px; background: #fff; }
.search:focus-within { border-color: var(--accent); outline: 2px solid #2855c724; outline-offset: 1px; }
.search input { min-width: 0; flex: 1; width: 100%; height: 40px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 1rem; }
.search input:focus-visible { outline: 0; }
.search input::placeholder { color: #707070; opacity: 1; }
.search button { align-self: stretch; padding: 0 18px; border: 0; border-radius: 3px; color: #fff; background: var(--accent); font-size: 1rem; font-weight: 650; white-space: nowrap; }
.search button:hover { background: var(--accent-dark); }
.search-icon { width: 14px; height: 14px; flex: 0 0 14px; position: relative; border: 1.7px solid #747474; border-radius: 50%; }
.search-icon::after { content: ''; position: absolute; width: 6px; height: 1.7px; right: -4px; bottom: -2px; background: #747474; transform: rotate(48deg); }

.guides { margin-top: 46px; padding-bottom: 64px; scroll-margin-top: 28px; }
.guides-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding-bottom: 17px; border-bottom: 2px solid var(--ink); }
.guides-head h2 { margin: 0; font-size: clamp(1.4rem, 2.3vw, 1.7rem); letter-spacing: -.025em; }
.result-count { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.filters { margin-bottom: 25px; display: flex; flex-wrap: wrap; gap: 8px; }
.filters button, .empty button { min-height: 40px; border: 1px solid #d3dce9; border-radius: 4px; padding: 7px 15px; color: #505050; background: #fff; font-size: .875rem; font-weight: 600; }
.filters button:hover, .empty button:hover { color: var(--accent); border-color: #94aee6; background: #f4f7ff; }
.filters button[aria-pressed='true'] { background: var(--accent); color: #fff; border-color: var(--accent); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; margin: 0; padding: 0; list-style: none; }
.guide-card { min-width: 0; }
.guide-card > a { display: flex; height: 100%; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; text-decoration: none; transition: border-color 130ms, box-shadow 130ms; }
.guide-card > a:hover { border-color: #9db3e4; box-shadow: 0 4px 16px #254b9b0b; }
.guide-card > a:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.cover { display: grid; place-items: center; aspect-ratio: 2.06; overflow: hidden; padding: 20px; background: #edf1ff; border-bottom: 1px solid var(--line); }
.tone-craft .cover { background: #edf1ff; }
.tone-video .cover { background: #eaf3fb; }
.tone-photo .cover { background: #eaf5f1; }
.tone-ai .cover { background: #f0edfb; }
.tone-design .cover { background: #f8eef3; }
.tone-daily .cover { background: #edf3f7; }
.cover img { display: block; width: 100%; height: 100%; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 2px 5px #00000015); }
.cover img.portrait-cover { width: auto; height: 100%; max-width: 70%; }
.cover-text { color: #383838; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 820; letter-spacing: -.065em; }
.cover-text span { display: block; font-size: 1rem; font-weight: 600; letter-spacing: .065em; text-align: center; }
.card-content { padding: 20px 20px 24px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; font-size: .875rem; color: var(--muted); }
.card-tool { color: var(--ink); font-weight: 750; font-family: system-ui, 'Microsoft YaHei', sans-serif; }
.card-category { border-left: 1px solid #d1d1d1; padding-left: 10px; }
.card-content h3 { margin: 15px 0 10px; color: var(--ink); font-size: 1.2rem; line-height: 1.55; letter-spacing: -.02em; }
.card-content p { margin: 0; font-size: 1rem; color: var(--muted); line-height: 1.75; }
.empty { padding: 38px 20px; border: 1px dashed #b4b4b4; color: var(--muted); text-align: center; }
.empty p { margin: 0 0 16px; font-size: 1rem; }

.site-footer { border-top: 1px solid var(--line); }
.footer-content { display: flex; justify-content: space-between; gap: 12px; padding-block: 25px 30px; color: var(--muted); font-size: .875rem; }
.site-footer a { color: var(--ink); font-weight: 700; text-decoration: none; }

.reading { max-width: 1000px; padding-block: 32px 60px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; color: var(--muted); font-size: .875rem; }
.breadcrumb a { text-decoration-color: #b9b9b9; text-underline-offset: 4px; }
.breadcrumb a:hover { color: var(--accent); }
.reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 222px; gap: 44px; }
.reading article { min-width: 0; overflow-wrap: anywhere; }
.article-header { padding-bottom: 27px; margin-bottom: 28px; border-bottom: 2px solid var(--ink); }
.article-header .article-tool { margin: 0 0 12px; color: var(--accent); font-size: 1rem; font-weight: 750; }
.article-header h1 { margin: 0; font-size: clamp(2rem, 4.1vw, 3.1rem); line-height: 1.32; letter-spacing: -.04em; }
.article-header .subtitle { margin: 15px 0 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.8; }
.reading aside { align-self: start; position: sticky; top: 28px; }
.contents { padding: 18px; background: #f7f9ff; border: 1px solid var(--line); border-radius: 4px; }
.contents h2 { margin: 0 0 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 1rem; }
.contents ul { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.contents a { color: #505050; font-size: .875rem; line-height: 1.7; text-decoration: none; }
.contents a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.mobile-contents { display: none; }
.mobile-contents summary { display: flex; align-items: center; gap: 8px; min-height: 28px; cursor: pointer; list-style: none; font-size: 1rem; font-weight: 700; }
.mobile-contents summary::-webkit-details-marker { display: none; }
.mobile-contents summary > span { margin-left: auto; font-size: .875rem; color: var(--muted); font-weight: 400; }
.mobile-contents summary::after { content: ''; width: 7px; height: 7px; margin: 0 3px 4px 5px; border-right: 1.5px solid #666; border-bottom: 1.5px solid #666; transform: rotate(45deg); }
.mobile-contents[open] summary::after { transform: rotate(225deg); margin-bottom: -3px; }
.mobile-contents nav { padding-top: 13px; margin-top: 13px; border-top: 1px solid var(--line); }
.article-body { color: #333; font-size: 1.0625rem; line-height: 1.95; }
.article-body a { color: var(--accent); text-underline-offset: 4px; }
.article-body p { margin: 0 0 1.1em; }
.article-body h2 { margin: 1.6em 0 .6em; padding-top: .7em; border-top: 1px solid var(--line); color: var(--ink); font-size: 1.4rem; line-height: 1.5; scroll-margin-top: 24px; }
.article-body h3 { margin: 1.2em 0 .45em; color: var(--ink); font-size: 1.125rem; line-height: 1.65; }
.article-body figure { margin: 1.4em 0 1.7em; }
.article-body figure img { width: auto; height: auto; max-height: 650px; object-fit: contain; margin-inline: auto; border: 1px solid var(--line); background: #fff; }
.article-body figcaption, .article-body .caption { margin: .65em 0 0; color: var(--muted); font-size: .875rem; line-height: 1.75; }
.article-body code { padding: .1em .3em; border-radius: 2px; color: #333; background: #f0f0f0; font: .9em/1.65 ui-monospace, Consolas, monospace; }
.code-block { margin: 1em 0 1.4em; overflow: hidden; background: #202020; }
.code-block > div { padding: 8px 15px; color: #ddd; background: #303030; font-size: .875rem; }
.code-block pre { margin: 0; padding: 15px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #f5f5f5; }
.code-block code { padding: 0; color: inherit; background: transparent; }
.related { margin-top: 42px; padding-top: 18px; border-top: 2px solid var(--ink); }
.related h2 { font-size: 1.25rem; }
.related ul { list-style: none; padding: 0; display: grid; gap: 0; }
.related a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.75; text-decoration: none; }
.related a span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .875rem; font-weight: 650; }
.related a:hover { color: var(--accent); }

@media (max-width: 1000px) {
  .hero { gap: 28px; padding: 32px; }
  .hero-search { padding-left: 24px; }
  .search { gap: 9px; padding-left: 12px; }
  .search button { padding-inline: 13px; }
}
@media (max-width: 870px) {
  .wrap { width: calc(100% - 48px); }
  .hero { grid-template-columns: 1fr; gap: 25px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-search { display: flex; flex-direction: column; align-items: stretch; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero-search > p { max-width: none; margin-bottom: 15px; }
  .search { max-width: 560px; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .reading-layout { grid-template-columns: minmax(0, 1fr) 185px; gap: 26px; }
  .card-content { padding-inline: 17px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .topbar { min-height: 64px; }
  .brand { font-size: 1rem; gap: 11px; }
  .topbar nav a { padding: 8px 10px; }
  .home { padding-top: 20px; }
  .hero { padding: 20px; gap: 14px; }
  .eyebrow, .collection-note { display: none; }
  .hero h1 { font-size: clamp(1.75rem, 6.6vw, 2.5rem); line-height: 1.4; }
  .hero-search { padding-top: 0; border-top: 0; }
  .hero-search > p { margin-bottom: 12px; line-height: 1.75; }
  .guides { margin-top: 30px; padding-bottom: 40px; }
  .guides-head { margin-bottom: 17px; padding-bottom: 13px; }
  .filters { gap: 7px; margin-bottom: 20px; }
  .filters button { min-height: 40px; padding-inline: 11px; }
  .reading { padding-top: 22px; }
  .reading-layout { grid-template-columns: 1fr; }
  .reading aside { display: none; }
  .mobile-contents { display: block; padding: 12px 14px; margin-bottom: 24px; }
  .article-header { padding-bottom: 21px; margin-bottom: 22px; }
  .article-header h1 { font-size: clamp(1.75rem, 7vw, 2.35rem); }
  .breadcrumb { margin-bottom: 23px; }
}
@media (max-width: 470px) {
  .hero { padding: 20px 18px; }
  .guide-grid { grid-template-columns: 1fr; gap: 22px; }
  .cover { padding: 18px; }
  .card-content { padding: 18px 18px 22px; }
  .card-content h3 { font-size: 1.25rem; }
  .footer-content { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
