/*
Theme Name: 一点优化 · 个人知识站
Theme URI: https://seoyh.net/
Author: 一点优化
Description: 温暖克制的 SEO、WordPress 与实践笔记个人知识站主题。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: seoyh-personal
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root{--paper:#f6f4ed;--ink:#242e29;--green:#276252;--muted:#687169;--line:#dedfd4;--white:#fffef9;--sans:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;--serif:Georgia,"Songti SC",serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:15px;line-height:1.85;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}a:hover{color:var(--green)}img,video,iframe{max-width:100%;height:auto}button,input,textarea,select{font:inherit;max-width:100%}button,.button,input[type=submit]{cursor:pointer}button{color:inherit}p,h1,h2,h3{margin-top:0}h1,h2,h3{line-height:1.4;letter-spacing:-.035em}h2{font-size:30px;font-weight:650}h3{font-size:19px}.container{width:min(1120px,calc(100% - 64px));margin-inline:auto}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #338774;outline-offset:5px}.skip-link{position:fixed;top:-90px;left:12px;padding:10px;background:var(--white);z-index:99}.skip-link:focus{top:10px}.site-header{border-bottom:1px solid var(--line);background:var(--paper)}.header-inner{display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:102px}.brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:700;line-height:1.4;white-space:nowrap}.brand small{display:block;font-size:9px;letter-spacing:.14em;font-weight:500;color:var(--muted);margin-top:6px}.brand-mark{width:42px;height:42px;background:var(--green);color:#f5f2db;border-radius:50% 50% 46% 50%;display:inline-flex;justify-content:center;align-items:center;font-size:25px;position:relative;font-weight:400}.brand-mark span{font-size:27px;margin-left:1px;color:#d7cb98}.menu{display:flex;list-style:none;padding:0;margin:0;gap:26px;font-size:13px}.menu li{position:relative}.sub-menu{display:none;position:absolute;background:var(--white);padding:15px;min-width:160px;z-index:10;list-style:none}.menu li:hover>.sub-menu,.menu li:focus-within>.sub-menu{display:block}.menu-toggle{background:transparent;border:1px solid var(--line);border-radius:5px;padding:7px 12px}.hero{display:grid;grid-template-columns:1.7fr 1fr;gap:100px;padding-block:76px 70px;align-items:center}.eyebrow{font-size:10px;letter-spacing:.14em;font-weight:650;color:var(--green);margin-bottom:18px}.status-dot{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin-right:8px}.hero h1{font-size:clamp(36px,4vw,54px);font-weight:600;line-height:1.4;letter-spacing:-.045em;margin-bottom:24px}.hero h1 span{color:var(--green);position:relative}.hero h1 span:after{content:"";height:6px;background:#d8ddbd;position:absolute;left:0;right:0;bottom:1px;z-index:-1}.hero-intro{color:var(--muted);max-width:450px;font-size:15px;line-height:2}.hero-actions{display:flex;align-items:center;gap:28px;margin-top:30px}.button{background:var(--green);color:#fffdf3;padding:12px 19px;border-radius:4px;display:inline-flex;gap:22px;font-size:13px}.button:hover{background:#1e493f;color:white}.text-link{font-size:12px;font-weight:600}.author-note{background:#e9ecdf;padding:30px 32px;border:1px solid #dce0cf;border-radius:6px 42px 6px 6px;transform:rotate(1.5deg);position:relative}.author-note:after{content:"";width:38px;height:8px;position:absolute;top:-4px;left:38%;background:#ccc7a37a;transform:rotate(-8deg)}.note-top{display:flex;gap:12px;align-items:center;line-height:1.6;font-size:12px}.note-top small{font-size:8px;letter-spacing:.1em;color:var(--muted)}.note-top .brand-mark{width:35px;height:35px;font-size:20px}.author-note>p{font-size:30px;line-height:1.6;margin:25px 0 17px;font-family:var(--serif);letter-spacing:.05em}.author-note em{font-style:normal;color:var(--green)}.author-note>span{font-size:12px;color:var(--muted)}.author-note>.text-link{display:block;margin-top:15px}.note-rule{height:1px;background:#cdd3bf;margin-bottom:18px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:25px}.section-heading h2{margin-bottom:0}.section-heading .eyebrow{margin-bottom:10px}.section-heading>p{font-size:12px;color:var(--muted);margin:0 0 4px}.knowledge-section{padding-bottom:62px}.path-grid{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:6px;overflow:hidden}.path-card{padding:22px 27px;background:#faf9f3}.path-card+.path-card{border-left:1px solid var(--line)}.path-number{font-family:var(--serif);font-size:13px;color:#7c8678}.path-card h3{margin:13px 0 9px;font-size:18px;display:flex;justify-content:space-between}.path-card h3 span{font-weight:400;color:var(--green)}.path-card p{font-size:12px;color:var(--muted);margin:0;max-width:240px}.content-section{padding-block:53px 58px;border-top:1px solid var(--line)}.title-dot{color:var(--green)}.topic-links{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:25px}.topic-links a{font-size:11px;border:1px solid var(--line);padding:3px 12px;border-radius:20px;color:var(--muted)}.topic-links a:hover{background:#e6eadc;color:var(--green)}.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.note-card{min-width:0}.card-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:#798176;margin-bottom:13px}.card-meta .eyebrow{font-size:10px;letter-spacing:.04em;margin:0}.note-card h3{margin-bottom:12px;font-size:19px;line-height:1.65;overflow-wrap:anywhere}.card-excerpt{font-size:12px;color:var(--muted);line-height:1.9}.card-excerpt p{margin-bottom:16px}.note-card>.text-link{display:inline-block;margin-top:2px}.notes-band{background:#eaece1;border-block:1px solid #dce0d1}.split-section{display:grid;grid-template-columns:1fr 1.65fr;gap:85px;padding-block:52px}.section-intro h2{font-size:32px;line-height:1.65}.section-intro>p:not(.eyebrow){font-size:12px;color:var(--muted)}.stack-list .note-card{padding:21px 0;border-bottom:1px solid #d3d8c8}.stack-list .note-card:first-child{padding-top:0}.stack-list .note-card:last-child{border-bottom:0;padding-bottom:0}.stack-list .note-card h3{font-size:17px;margin-bottom:5px}.stack-list .card-meta{margin-bottom:6px}.stack-list .card-excerpt{display:none}.stack-list .text-link{font-size:10px}.section-description{font-size:12px;color:var(--muted);max-width:760px;margin-top:-8px;margin-bottom:28px}.case-grid .note-card{background:var(--white);border:1px solid var(--line);border-top:3px solid #91a28b;border-radius:3px;padding:24px}.case-grid .note-card h3{font-size:17px}.resource-section{display:grid;grid-template-columns:1fr 1.5fr;gap:90px;background:#263e34;color:#f7f5e8;border-radius:6px;padding:42px 44px;margin-block:3px 55px}.resource-section .eyebrow{color:#b5c8ae}.resource-intro h2{font-size:28px;margin-bottom:14px}.resource-intro>p:last-child{font-size:12px;color:#c2cbbd;max-width:320px;margin:0}.resource-shelf{align-self:center}.resource-shelf>a{display:block;border-bottom:1px solid #526154;padding:12px 0 17px}.resource-shelf>a:last-child{border:0;padding-bottom:0}.resource-shelf span{font-size:9px;letter-spacing:.1em;color:#b5c8ae}.resource-shelf h3{font-size:19px;margin:7px 0 3px;display:flex;justify-content:space-between}.resource-shelf b{font-weight:400}.resource-shelf p{font-size:11px;color:#bdc8b8;margin:0}.resource-shelf a:hover{color:#d2e6c2}.timeline-section{padding-top:0;border-top:0}.timeline-list{border-left:1px solid #c7cfbe;margin-left:5px;padding-left:30px}.timeline-list .note-card{position:relative;border-bottom:1px solid var(--line);padding:0 0 22px;margin-bottom:22px}.timeline-list .note-card:before{content:"";width:7px;height:7px;border:3px solid var(--paper);outline:1px solid #a4b29a;background:var(--green);border-radius:50%;position:absolute;left:-37px;top:5px;box-sizing:content-box}.timeline-list .note-card h3{font-size:17px;margin-bottom:0}.timeline-list .card-meta{justify-content:flex-start;gap:18px;margin-bottom:4px}.timeline-list .card-excerpt,.timeline-list .text-link{display:none}.site-footer{border-top:1px solid var(--line);padding-block:32px 38px}.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:25px;color:var(--muted);font-size:11px}.footer-brand{font-size:18px;color:var(--ink);font-weight:600}.footer-inner p{margin:7px 0 0}.footer-inner ul{list-style:none;padding:0;display:flex;gap:15px}.reading-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:100}.reading-progress span{display:block;width:0;height:100%;background:var(--green)}.article-main,.archive-main{padding-block:38px 75px}.breadcrumbs{display:flex;flex-wrap:wrap;gap:10px;font-size:11px;color:var(--muted);margin-bottom:33px}.article-header{max-width:800px;margin-bottom:38px}.article-header h1{font-size:38px;line-height:1.55;margin-bottom:18px;overflow-wrap:anywhere}.post-meta{display:flex;flex-wrap:wrap;gap:16px;font-size:11px;color:var(--muted)}.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:65px}.entry-content{font-size:16px;line-height:2.05;overflow-wrap:anywhere}.entry-content h2{font-size:26px;margin-top:42px}.entry-content h3{margin-top:30px}.entry-content a{color:var(--green);text-decoration:underline;text-underline-offset:3px}.entry-content blockquote{margin:25px 0;padding:17px 25px;border-left:3px solid var(--green);background:#e9ecdf}.entry-content pre{overflow:auto;padding:18px;background:#e9ecdf;max-width:100%}.entry-content table{display:block;overflow:auto;max-width:100%;border-collapse:collapse}.entry-content td,.entry-content th{padding:8px;border:1px solid var(--line)}.entry-content figure{margin-inline:0}.article-aside .toc-box{position:sticky;top:30px}.toc-box{font-size:12px;border-left:1px solid var(--line);padding-left:22px}.toc-box h2{font-size:16px}.toc-box ol{list-style:none;padding:0}.toc-box li{margin-bottom:9px}.toc-box .toc-sub{padding-left:12px}.toc-box a[aria-current]{color:var(--green);font-weight:700}.side-note{font-size:12px;color:var(--muted);margin-top:30px}.article-end{display:flex;gap:18px;align-items:center;border-block:1px solid var(--line);margin-block:30px;padding:25px 0}.article-end p{margin:0;font-size:13px}.article-end small{color:var(--muted)}.post-navigation .nav-links{display:grid;grid-template-columns:1fr 1fr;gap:24px;font-size:13px}.post-tags{font-size:12px;margin-top:25px}.page-article{max-width:800px;margin:auto}.archive-heading{margin-bottom:35px}.archive-heading h1{font-size:36px}.archive-heading p{color:var(--muted)}.journal-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:65px}.post-list .note-card{border-bottom:1px solid var(--line);padding-block:25px}.knowledge-aside{font-size:13px}.knowledge-aside h2{font-size:19px}.knowledge-aside>a{display:block;padding:12px 0;border-bottom:1px solid var(--line)}.search-form{display:flex;gap:8px;margin-top:20px;flex-wrap:wrap}.search-form label{min-width:0;flex:1}.search-field,input[type=text],input[type=email],input[type=url],input[type=password],textarea{padding:10px 12px;border:1px solid #c5ccbd;border-radius:3px;background:var(--white);width:100%;color:var(--ink)}.search-submit,input[type=submit]{border:0;background:var(--green);color:white;padding:10px 15px;border-radius:3px}.navigation.pagination{margin-top:30px}.nav-links .page-numbers{display:inline-block;margin:3px;padding:6px 12px;border:1px solid var(--line)}.page-numbers.current{background:#e1e7d9}.comments-area{margin-top:45px;border-top:1px solid var(--line);padding-top:25px}.comments-area h2{font-size:24px}.comment-list{padding-left:24px}.comment-list .children{padding-left:15px}.comment-meta{font-size:12px}.comment-content{font-size:14px;overflow-wrap:anywhere}.comment-body{padding-block:20px;border-bottom:1px solid var(--line)}.avatar{border-radius:50%;vertical-align:middle;margin-right:8px}.comment-form label{display:block;font-size:13px}.comment-form-cookies-consent label{display:inline}.legacy-content-notice,.empty-note{padding:20px;background:#eeeadd;border:1px solid var(--line);font-size:13px}.screen-reader-text{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.aligncenter{margin-inline:auto;display:block}.alignleft{float:left;margin-right:20px}.alignright{float:right;margin-left:20px}.wp-caption-text,.gallery-caption{font-size:12px;color:var(--muted)}.bypostauthor{border-left:2px solid var(--green)}.sticky{border-left:3px solid var(--green);padding-left:18px!important}.preview-notice{background:#e8e1c9;color:#4e513f;text-align:center;padding:7px 15px;font-size:11px}.sample-section{border-top:1px dashed #a4b29a;padding-block:45px}.sample-label{font-size:12px;color:var(--green);margin-bottom:30px}.sample-section .reading-article{min-height:1250px}.sample-section .entry-content p{margin-bottom:65px}
@media(min-width:821px){.menu-toggle{display:none!important}}@media(max-width:1050px){.menu{gap:15px;font-size:12px}.hero{gap:50px}.split-section{gap:45px}.resource-section{gap:45px}.article-layout,.journal-layout{gap:35px;grid-template-columns:minmax(0,1fr) 200px}}@media(max-width:820px){.container{width:calc(100% - 40px)}.header-inner{min-height:82px;position:relative;flex-wrap:wrap;padding-block:18px;gap:0}.brand{font-size:19px}.brand small{font-size:8px}.brand-mark{width:37px;height:37px}.js #primary-navigation{display:none}.js #primary-navigation.is-open{display:block}#primary-navigation{width:100%;padding-top:20px}.menu{flex-wrap:wrap;gap:13px 22px}.sub-menu{position:static}.hero{grid-template-columns:1.5fr 1fr;gap:30px;padding-block:48px}.hero h1{font-size:36px}.author-note{padding:23px}.author-note>p{font-size:26px}.hero-actions{gap:18px;flex-wrap:wrap}.section-heading h2{font-size:25px}.path-card{padding:20px}.path-card h3{font-size:16px}.card-grid{gap:18px}.note-card h3{font-size:17px}.case-grid .note-card{padding:18px}.resource-section{padding:30px}.article-layout{grid-template-columns:1fr}.article-aside{order:-1}.article-aside .toc-box{position:static}.article-aside .side-note{display:none}.journal-layout{grid-template-columns:1fr}.knowledge-aside{padding-top:30px}.article-header h1{font-size:30px}.section-heading>p{max-width:220px}.footer-inner{align-items:flex-start}}
@media(max-width:600px){.container{width:calc(100% - 40px)}.hero{grid-template-columns:1fr;padding-block:38px 42px;gap:30px}.hero h1{font-size:38px}.hero .eyebrow{font-size:9px;letter-spacing:.08em}.hero-intro{font-size:13px}.hero-actions{margin-top:24px;gap:20px}.author-note{transform:none;padding:22px 24px;border-radius:5px 35px 5px 5px}.author-note>p{font-size:25px;margin:15px 0 12px}.author-note>p br{display:none}.author-note .note-rule{margin-bottom:12px}.section-heading{align-items:start;gap:16px;flex-direction:column;margin-bottom:23px}.section-heading h2{font-size:25px}.section-heading .eyebrow{font-size:9px}.section-heading>p{max-width:none}.path-grid{grid-template-columns:1fr}.path-card{padding:19px 23px}.path-card+.path-card{border-left:0;border-top:1px solid var(--line)}.path-card h3{margin:6px 0;font-size:18px}.path-card p{max-width:none}.path-number{font-size:11px}.knowledge-section{padding-bottom:38px}.content-section{padding-block:35px 40px}.card-grid{grid-template-columns:1fr;gap:25px}.card-grid:not(.case-grid) .note-card{padding-bottom:24px;border-bottom:1px solid var(--line)}.card-grid:not(.case-grid) .note-card:last-child{border:0;padding-bottom:0}.note-card h3{font-size:19px}.card-meta{margin-bottom:9px}.split-section{grid-template-columns:1fr;padding-block:35px;gap:25px}.section-intro h2{font-size:28px;line-height:1.4;margin-bottom:14px}.section-intro h2 br{display:none}.section-intro>p:not(.eyebrow){margin-bottom:12px}.stack-list .note-card h3{font-size:17px}.section-description{font-size:11px;line-height:1.9}.case-grid .note-card{padding:22px}.resource-section{grid-template-columns:1fr;gap:25px;padding:28px 25px;margin-bottom:15px}.resource-intro h2{font-size:27px}.resource-intro h2 br{display:none}.resource-shelf h3{font-size:18px}.timeline-section{padding-top:30px}.timeline-list{padding-left:24px}.timeline-list .note-card:before{left:-31px}.timeline-list .note-card h3{font-size:16px}.footer-inner{flex-direction:column;gap:20px}.article-header h1{font-size:27px}.entry-content{font-size:15px}.entry-content h2{font-size:23px}.article-layout{gap:24px}.article-main,.archive-main{padding-top:28px}.article-header{margin-bottom:25px}.post-navigation .nav-links{grid-template-columns:1fr}.archive-heading h1{font-size:28px}.sample-section .reading-article{min-height:1500px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
.error-main{padding-block:50px 85px}.error-number{font-family:var(--serif);font-size:95px;line-height:1;margin-bottom:25px;color:var(--green)}.error-main .search-form{max-width:550px;margin-bottom:25px}.search-form input[type=search]{min-width:0;flex:1;width:100%;padding:9px 12px;border:1px solid #c5ccbd;background:var(--white);border-radius:3px}.search-form button{background:var(--green);color:var(--white);border:0;border-radius:3px;padding:9px 14px}
