/*
Theme Name: 小田店長 房地產研究室
Theme URI: https://example.invalid/
Author: 小田店長｜房地產研究室
Description: V1.1 品牌設計移植。WordPress 文章、區域研究、小田選讀、房貸試算與官方工具連結。
Version: 2.1.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: xiaotian-research
*/

:root{--ink:#25392e;--green:#55705e;--sage:#879987;--light:#f8f7f2;--cream:#eeeae0;--gold:#bca479;--line:#dfdfd5;--body:#4e5a51}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--light);color:var(--ink);font-family:system-ui,-apple-system,'Noto Sans TC','Microsoft JhengHei',sans-serif;line-height:1.7}button,input,select,textarea{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}.container{max-width:1170px;margin:auto;padding:0 28px}.header{background:rgba(248,247,242,.95);position:sticky;top:0;z-index:20;border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.nav{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{line-height:1.3;cursor:pointer;min-width:220px}.brand small{display:block;letter-spacing:.17em;font-size:9px;color:var(--green);font-weight:700;margin-bottom:7px}.brand strong{font-size:20px;letter-spacing:.04em}.menu{display:flex;align-items:center;gap:27px}.menu button{border:0;background:none;color:#4b574e;font-size:14px;cursor:pointer;padding:9px 0}.menu button:hover,.menu button.active{color:var(--green);box-shadow:0 2px 0 var(--gold)}.contact-pill,.primary{background:var(--green)!important;color:white!important;border:1px solid var(--green)!important;padding:12px 22px!important;border-radius:5px;cursor:pointer;font-weight:600}.primary:hover,.contact-pill:hover{background:#3f5c4b!important}.mobile-toggle{display:none;background:none;border:0;font-size:25px;color:var(--ink);cursor:pointer}.hero{display:grid;grid-template-columns:1fr 1.05fr;min-height:580px;background:#f1f0e9}.hero-copy{display:flex;flex-direction:column;justify-content:center;padding:74px max(28px,calc((100vw - 1114px)/2));padding-right:38px}.eyebrow{letter-spacing:.21em;text-transform:uppercase;color:#78907b;font-size:11px;font-weight:700}.hero h1{font-size:clamp(37px,4vw,62px);line-height:1.32;font-weight:600;letter-spacing:.04em;margin:23px 0}.hero h1 em{font-style:normal;color:var(--green)}.hero p{font-size:16px;max-width:475px;color:var(--body);line-height:2}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:29px}.secondary{border:1px solid #a9b7ab;border-radius:5px;background:transparent;color:var(--green);padding:12px 22px;cursor:pointer}.hero-visual{position:relative;overflow:hidden;background:linear-gradient(140deg,#b0bcae 0%,#d7d8c8 38%,#839c9c 100%);min-height:450px}.hero-visual img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;filter:saturate(.7)}.hero-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(51,75,63,.08),rgba(24,47,41,.22))}.visual-note{position:absolute;z-index:1;bottom:35px;right:32px;color:white;font-size:11px;letter-spacing:.16em;border-top:1px solid #ffffff9c;padding-top:12px}.section{padding:88px 0}.section.soft{background:#eeeFE8}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:30px;gap:20px}.section-head h2{font-size:29px;margin:7px 0 0;font-weight:600;letter-spacing:.04em}.section-head p{margin:8px 0 0;color:#798478;font-size:14px}.text-link{font-size:13px;color:var(--green);background:none;border:0;cursor:pointer;border-bottom:1px solid var(--gold);padding:5px 0}.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.article-card{cursor:pointer;min-width:0}.article-thumb{height:215px;background:#d4dcd5;border-radius:4px;overflow:hidden;position:relative}.article-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.article-card:hover img{transform:scale(1.04)}.article-thumb .tag{position:absolute;bottom:13px;left:13px;background:#f7f5eeed;color:var(--green);font-size:11px;padding:5px 12px}.article-card h3{font-size:19px;line-height:1.6;margin:14px 0 7px;font-weight:600}.article-card p{font-size:13px;color:#788079;line-height:1.8;margin:0}.date{font-size:12px;color:#888f88;margin-top:12px}.topic-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.topic{background:#fcfbf7;padding:28px 22px;border:1px solid #e2e3d9;cursor:pointer;min-height:185px;transition:all .2s}.topic:hover{border-color:var(--sage);transform:translateY(-3px)}.topic .num{font-family:Georgia,serif;color:var(--gold);font-size:30px}.topic h3{font-size:17px;margin:9px 0}.topic p{font-size:12px;color:#758076;margin:0}.tools-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.tool{border:1px solid var(--line);background:#fffefa;cursor:pointer;padding:25px;display:flex;gap:15px;align-items:start;min-height:125px;text-align:left}.tool:hover{border-color:var(--gold);background:white}.tool .icon{font-size:25px;color:var(--green);width:40px}.tool b{font-size:16px}.tool small{display:block;font-size:12px;color:#7b847c;margin-top:5px}.about{background:var(--green);color:#fff}.about-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:75px;align-items:center}.about h2{font-size:37px;line-height:1.5;font-weight:500}.about p{color:#e5ece5;line-height:2}.about .signature{font-size:23px;margin-top:28px}.about .graphic{border:1px solid #ffffff55;min-height:320px;padding:45px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(145deg,#78927a55,#24392b44)}.about .graphic strong{font-family:Georgia,serif;font-size:60px;line-height:1.25;font-weight:400;opacity:.9}.footer{background:#e9eae1;padding:55px 0 20px}.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:50px}.footer p,.footer a{font-size:13px;color:#637066}.footer h4{margin-top:0}.copyright{margin-top:45px;border-top:1px solid #d2d7cf;padding-top:15px;font-size:11px;color:#7b857c}.page{display:block}.page-hero{padding:72px 0 45px;background:#f0f0e9;border-bottom:1px solid var(--line)}.page-hero h1{font-size:39px;margin:13px 0 8px}.page-hero p{color:#6e7b70;margin:0}.filterbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:29px 0}.chip{border:1px solid #d4dbd1;background:transparent;border-radius:30px;padding:8px 18px;font-size:13px;cursor:pointer;color:#5a6a5c}.chip.active{background:var(--green);color:white}.search{width:100%;max-width:325px;padding:12px 16px;border:1px solid #d8ddd4;background:white;border-radius:5px;margin-left:auto}.reader{max-width:790px;margin:70px auto 100px;padding:0 24px}.reader h1{font-size:37px;line-height:1.45}.reader .lead{font-size:18px;color:#526554;border-left:3px solid var(--gold);padding-left:18px}.reader h2{margin-top:45px}.reader p{line-height:2.1;color:#4d5a4f}.reader figure{margin:28px 0}.reader figure img{width:100%;max-height:430px;object-fit:cover}.source-note{padding:20px;background:#f0efe8;font-size:13px;color:#6d776e}.tool-page-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:45px 0 85px}.panel{padding:33px;border:1px solid var(--line);background:#fffefb;border-radius:7px}.panel h2{margin:0 0 15px;font-size:22px}.field{margin-bottom:15px}.field label{display:block;color:#57665a;font-size:13px;margin-bottom:6px}.field input,.field textarea,.field select{display:block;width:100%;padding:11px 12px;background:white;border:1px solid #ced7cc;border-radius:5px;color:var(--ink)}.result{background:#edf2ed;border-left:3px solid var(--green);padding:18px;margin-top:17px}.result strong{font-size:30px;color:var(--green)}.muted{font-size:12px;color:#7b857e}.contact-layout{display:grid;grid-template-columns:1fr 1.2fr;gap:60px;margin:70px 0 100px}.success{margin-top:15px;background:#edf3ed;padding:12px;font-size:13px;color:#3c6248;display:none}.article-action{margin-top:20px}.back{background:none;border:0;color:var(--green);cursor:pointer;padding:0}.empty{padding:60px 0;text-align:center;color:#7a867b}.hidden{display:none!important}@media(max-width:900px){.menu{display:none;position:absolute;top:75px;left:0;right:0;padding:20px 28px;background:var(--light);border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch;gap:7px}.menu.open{display:flex}.menu button{text-align:left}.mobile-toggle{display:block}.nav{min-height:75px}.brand strong{font-size:17px}.hero{grid-template-columns:1fr}.hero-copy{padding:64px 28px}.hero-visual{height:330px;min-height:330px;order:-1}.article-grid,.tools-grid{grid-template-columns:repeat(2,1fr)}.topic-grid{grid-template-columns:repeat(2,1fr)}.about-grid{gap:24px}.footer-grid{gap:20px}}@media(max-width:600px){.container{padding:0 20px}.section{padding:62px 0}.section-head h2{font-size:25px}.hero h1{font-size:39px}.article-grid,.tools-grid,.tool-page-grid,.contact-layout,.footer-grid,.about-grid{grid-template-columns:1fr}.article-thumb{height:205px}.topic-grid{grid-template-columns:repeat(2,1fr)}.topic{padding:22px 16px;min-height:170px}.about .graphic{min-height:215px}.search{margin:4px 0 0;max-width:none}.filterbar{align-items:stretch}.page-hero h1{font-size:30px}.reader h1{font-size:28px}.panel{padding:24px}.footer-grid{gap:25px}}

/* 小田選讀：延伸原站品牌語言 */
.reading-home{background:#f7f5ef}.reading-home-panel,.reading-intro{display:grid;grid-template-columns:190px 1fr;align-items:center;gap:35px;padding:38px 44px;background:#ecece3;border:1px solid #e1e1d6;border-radius:12px}.reading-intro{grid-template-columns:1fr 180px;background:#f4f2ec;margin-bottom:28px}.reading-symbol{display:flex;align-items:center;justify-content:center;min-height:158px;background:#dce2d9;color:#506b57;font-family:serif;font-size:64px;font-weight:600;letter-spacing:-.13em;border-radius:7px}.reading-symbol span{color:#b4a078}.reading-label{font-size:11px;letter-spacing:.12em;color:#71826f;font-weight:700}.reading-home-panel h3,.reading-intro h3{font-size:26px;margin:12px 0}.reading-home-panel p,.reading-intro p{line-height:1.9;color:var(--body);max-width:640px}.reading-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.reading-card{background:#fff;border:1px solid #e8e9e4;border-radius:9px;overflow:hidden}.reading-cover{min-height:225px;background:linear-gradient(135deg,#dce3d8,#c0cdbd);color:#405544;padding:26px;display:flex;flex-direction:column;justify-content:space-between}.reading-card:nth-child(2) .reading-cover{background:linear-gradient(135deg,#e4dfd1,#cbbfa8)}.reading-card:nth-child(3) .reading-cover{background:linear-gradient(135deg,#d9e0df,#b4c5c6)}.reading-card:nth-child(4) .reading-cover{background:linear-gradient(135deg,#e8ddd6,#dbc6ba)}.reading-cover strong{font-size:25px;letter-spacing:.08em}.reading-cover span,.reading-cover small{font-size:11px;letter-spacing:.1em}.reading-card-body{padding:21px}.reading-card-body h3{font-size:19px;margin:10px 0}.reading-card-body p{font-size:14px;color:var(--body);line-height:1.8;min-height:76px}.reading-soon{font-size:12px;color:#8c947e}.reading-filter{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:23px}.reading-filter button{background:#fff;border:1px solid #d8ddd7;border-radius:22px;padding:10px 17px;color:#516153;cursor:pointer}.reading-filter button.active{background:#55715b;border-color:#55715b;color:#fff}.reading-detail.hidden{display:none}@media(max-width:900px){.reading-grid{grid-template-columns:repeat(2,1fr)}.reading-home-panel,.reading-intro{grid-template-columns:140px 1fr;padding:25px}}@media(max-width:620px){.reading-grid{grid-template-columns:1fr 1fr;gap:11px}.reading-cover{min-height:160px;padding:16px}.reading-cover strong{font-size:19px}.reading-card-body{padding:13px}.reading-card-body p{min-height:0}.reading-home-panel,.reading-intro{grid-template-columns:1fr;gap:15px;padding:22px}.reading-intro .reading-symbol{display:none}.reading-home-panel .reading-symbol{min-height:100px;font-size:46px}.reading-filter button{font-size:12px;padding:9px 11px}}

/* WordPress dynamic theme adjustments */
.admin-bar .header{top:32px}body{overflow-x:hidden}.menu a{font-size:14px;color:#4b574e;padding:9px 0}.menu a:hover,.menu .current-menu-item>a{color:var(--green);border-bottom:2px solid var(--gold)}.menu .contact-pill{display:inline-block}.article-card>a{display:block}.article-card{cursor:default}.card-link:focus-visible,.topic:focus-visible{outline:2px solid var(--green)}.rich-content p{margin:1.15em 0;line-height:2}.rich-content h2{margin-top:36px}.rich-content img{max-width:100%;height:auto}.rich-content a{text-decoration:underline;color:var(--green)}.page-main{min-height:42vh}.site-search{display:flex;gap:8px;margin:25px 0}.site-search input{padding:12px 14px;border:1px solid var(--line);border-radius:4px;min-width:0;flex:1}.site-search button{background:var(--green);color:white;border:0;border-radius:4px;padding:10px 18px}.wp-block-image img{height:auto}.pagination{padding:35px 0 70px;display:flex;gap:15px}.pagination a{color:var(--green)}.hero-visual img{filter:saturate(.92)}.reading-cover{background:linear-gradient(135deg,#dce3d8,#c0cdbd)}.reading-card a{display:block}.reading-card h3{font-size:18px}.site-notice{font-size:12px;color:#768179}.not-found{padding:50px 0 90px}.footer a:hover{text-decoration:underline}.no-post{padding:25px 0;color:#758076}@media(max-width:900px){.menu a{padding:8px 0}}@media(max-width:782px){.admin-bar .header{top:46px}}

/* V2.1 - 手機閱讀與文章版型優化：保留 V1.1 品牌視覺 */
.reader-eyebrow{margin-top:38px}.reader-cover img{max-height:480px;object-fit:cover;border-radius:4px}.reader-content{overflow-wrap:anywhere}.reader-content p:first-child{margin-top:0}
.reader-book .reader-content{font-size:16px;line-height:2.05}.reader-book .source-note{background:#eeeee5}
.book-meta{display:flex;gap:12px 24px;flex-wrap:wrap;margin:22px 0 15px;padding:15px 18px;background:#f0eee7;border-left:2px solid var(--gold);font-size:14px}
.book-meta b{color:var(--green);font-size:12px;letter-spacing:.07em;margin-right:11px}
.book-takeaway{margin:40px 0 26px;padding:24px 27px;background:#e9eee8;border-left:3px solid var(--green)}.book-takeaway strong{color:var(--green)}.book-takeaway p{margin-bottom:0}
@media(max-width:900px){.hero{display:flex;flex-direction:column}.hero-copy{order:0;padding:38px 28px 35px}.hero-visual{order:1;min-height:0;height:280px}.hero h1{font-size:clamp(30px,5vw,43px);line-height:1.4;margin:13px 0}.hero p{line-height:1.75;margin:9px 0}.hero .actions{margin-top:16px}.section{padding:60px 0}.visual-note{bottom:15px;right:20px;font-size:10px}}
@media(max-width:600px){.nav{min-height:70px}.brand small{font-size:8px;letter-spacing:.12em;margin-bottom:5px}.brand strong{font-size:16px}.hero-copy{padding:32px 22px 25px}.hero h1{font-size:clamp(30px,7vw,37px);letter-spacing:.01em;margin:9px 0}.hero p{font-size:14px;line-height:1.75}.hero .actions{gap:9px}.hero .actions a{padding:10px 14px!important;font-size:13px}.hero-visual{height:225px}.hero-visual img{object-position:center 48%}.visual-note{font-size:9px;right:12px;bottom:12px}.section{padding:48px 0}.reader{margin:40px auto 55px;padding:0 21px}.reader h1{font-size:27px;line-height:1.45}.reader-eyebrow{margin-top:25px}.book-meta{padding:13px;gap:9px}.reader-book .reader-content{font-size:15px}.reading-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
