/* 貸你通第二階段：視覺與閱讀體驗。僅調整呈現，不改內容、排序或追蹤。 */
:root{
  --d2-ink:#102235;
  --d2-muted:#526579;
  --d2-blue:#0b4b87;
  --d2-gold:#b88920;
  --d2-line:#dbe5ee;
  --d2-soft:#f5f8fb;
  --d2-card:#fff;
  --d2-radius:14px;
  --d2-shadow:0 8px 24px rgba(15,35,55,.065);
  --d2-content:min(1120px,calc(100% - 40px));
}

html{scroll-padding-top:76px}
html body{color:var(--d2-ink);text-rendering:optimizeLegibility}
html body img{max-width:100%;height:auto}
html body :where(p,li,dd,address){overflow-wrap:anywhere}
html body :where(button,input,select,textarea,a){touch-action:manipulation}
html body :where(.v2-page-hero,.v2-page-content,.v2-ad-section,.v2-region-section,.v2-region-seo,.v2-seo-guide,.loan-info-section){scroll-margin-top:76px}

/* 共用頁首、頁面標題與內容節奏 */
html body .v2-page-hero{padding-block:clamp(28px,4vw,54px)}
html body .v2-page-hero .site-shell{max-width:920px}
html body .v2-page-hero h1,
html body .v2-discovery-head h1{max-width:26ch;margin-inline:auto;font-size:clamp(26px,4vw,42px);line-height:1.2;text-wrap:balance}
html body .v2-page-hero p,
html body .v2-discovery-head>p{max-width:72ch;margin-inline:auto;color:var(--d2-muted);font-size:clamp(15px,1.5vw,17px);line-height:1.75}
html body .v2-page-content{padding-block:clamp(24px,4vw,48px)}
html body .v2-content-card{border:1px solid var(--d2-line);border-radius:var(--d2-radius);box-shadow:var(--d2-shadow)}

/* 首頁：保留廣告卡與金框規則，只整理資訊層級與入口可讀性。 */
html body .v2-home-primary-intro{padding:12px 0 5px;background:#fff;text-align:center}
html body .v2-home-primary-intro .site-shell{color:var(--d2-blue);font-size:16px;font-weight:900;line-height:1.35;letter-spacing:.02em}
html body .v2-home-seo-intro{padding-block:clamp(22px,3.6vw,46px)}
html body .v2-home-seo-intro .v2-discovery-head{max-width:980px}
html body .v2-home-role-statement{max-width:76ch}
html body .v2-home-seo-disclosure{max-width:920px;margin:14px auto 0;border:1px solid var(--d2-line);border-radius:12px;background:#fff}
html body .v2-home-seo-disclosure>summary{min-height:44px;display:flex;align-items:center;padding:10px 14px;color:var(--d2-blue);font-size:14px;font-weight:800;cursor:pointer}
html body .v2-home-seo-disclosure-body{padding:0 14px 13px;color:var(--d2-muted);font-size:14px;line-height:1.7}
html body .v2-region-section{padding-block:clamp(18px,3vw,34px)}
html body .v2-region-featured-grid,
html body .v2-region-small-grid{gap:10px}
html body .v2-region-featured-grid a,
html body .v2-region-small-grid a{min-height:44px;display:flex;align-items:center;justify-content:center;padding:10px 12px;line-height:1.35;text-align:center;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
html body .v2-region-featured-grid a:hover,
html body .v2-region-small-grid a:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(15,35,55,.09)}
html body .v2-ad-section{padding-block:clamp(18px,3vw,34px)}
html body [data-ad-feed-load-more]{min-height:46px;padding-inline:22px;border-radius:12px;font-size:15px;font-weight:800}

/* 地區與關鍵字導覽 */
html body .v2-region-wide-groups,
html body .v2-region-wide-panels,
html body .v2-region-compact-tabs{gap:8px}
html body .v2-region-wide-groups a,
html body .v2-region-wide-panels a,
html body .v2-region-compact-tabs a{min-height:44px;display:flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:11px;line-height:1.3;text-align:center}
html body .v2-region-wide-meta{padding-block:9px;line-height:1.55}
html body .v2-region-breadcrumb,
html body .v2-seo-breadcrumb{font-size:13px;line-height:1.6}
html body .v2-region-seo,
html body .v2-seo-guide{padding-block:clamp(24px,4vw,42px)}
html body .v2-region-seo-grid,
html body .v2-seo-guide-grid{gap:14px}
html body .v2-region-seo-card,
html body .v2-seo-guide-card,
html body .v2-region-seo-faq,
html body .v2-seo-faq{padding:clamp(17px,2.3vw,22px);border:1px solid var(--d2-line);border-radius:var(--d2-radius);box-shadow:0 5px 18px rgba(15,35,55,.045)}
html body .v2-region-seo-card p,
html body .v2-seo-guide-card p,
html body .v2-region-seo-faq p,
html body .v2-seo-faq p{font-size:15px;line-height:1.75}
html body .v2-region-seo-faq summary,
html body .v2-seo-faq summary{min-height:44px;display:flex;align-items:center;line-height:1.5}
html body .v2-region-seo-links,
html body .v2-seo-guide-links,
html body .v2-region-feature-keywords,
html body .v2-region-keyword-chips{gap:9px}
html body .v2-region-seo-links a,
html body .v2-seo-guide-links a,
html body .v2-region-feature-keywords a,
html body .v2-region-keyword-chips a{min-height:42px;display:inline-flex;align-items:center;padding:9px 12px;border-radius:999px;line-height:1.3;overflow-wrap:anywhere}
html body .v2-region-keyword-footer{padding-block:clamp(22px,3.5vw,38px)}
html body .v2-region-info-bar{margin-bottom:14px}

/* 關鍵字教育內容與表格 */
html body .v2-urgent-hub{max-width:920px;margin-inline:auto}
html body .v2-urgent-hub p,
html body .v2-urgent-hub li{font-size:15px;line-height:1.8}
html body .v2-urgent-table-wrap{border:1px solid var(--d2-line);border-radius:12px;background:#fff}
html body .v2-urgent-table{width:100%;table-layout:fixed}
html body .v2-urgent-table th,
html body .v2-urgent-table td{padding:11px 12px;vertical-align:top;line-height:1.55;overflow-wrap:anywhere}
html body .v2-urgent-city-grid{gap:12px}
html body .v2-urgent-city-grid a{min-height:72px;padding:14px;border-radius:12px}

/* 搜尋頁與結果 */
html body .search-page{padding-block:clamp(24px,4vw,46px)}
html body .search-page-box{width:min(920px,calc(100% - 32px));margin-inline:auto}
html body .search-page-head{margin-bottom:20px}
html body .search-box{gap:10px}
html body .search-input-wrap input,
html body .search-button{min-height:46px;font-size:16px}
html body .result-card,
html body .suggestion-card{height:100%;border-radius:var(--d2-radius);border:1px solid var(--d2-line);box-shadow:0 5px 18px rgba(15,35,55,.045)}
html body .result-card{display:flex;align-items:center;min-height:92px;padding:16px}
html body .detected-chip,
html body .result-tag{min-height:36px;display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px}
html body .search-empty{padding:24px 18px;border:1px dashed #b8c7d5;border-radius:14px;background:var(--d2-soft);line-height:1.7}

/* 業者詳情：版面呈現，不更動資料或聯絡連結。 */
html body .v2-provider-wrap{max-width:1020px;margin-inline:auto}
html body .v2-provider-titlebar h1{font-size:clamp(24px,3vw,34px);line-height:1.25;text-wrap:balance}
html body .v2-provider-visual{display:flex;align-items:center;justify-content:center;border-radius:var(--d2-radius);overflow:hidden;background:#f3f6f9}
html body .v2-provider-visual img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}
html body .v2-provider-contact-grid{gap:12px}
html body .v2-provider-contact-card{min-height:64px;padding:12px 16px;border-radius:13px}
html body .v2-provider-contact-card small{line-height:1.45;overflow-wrap:anywhere}
html body .v2-provider-disclosure{padding:clamp(16px,2.4vw,22px);border-radius:var(--d2-radius)}
html body .v2-provider-disclosure-grid{gap:10px}
html body .v2-provider-disclosure-grid>div{min-width:0;padding:11px 12px;border-radius:10px}
html body .v2-provider-disclosure-grid dd{margin:4px 0 0;line-height:1.65;overflow-wrap:anywhere}
html body .v2-provider-example,
html body .v2-provider-disclosure-note,
html body .v2-provider-contact-disclosure{font-size:14px;line-height:1.75}
html body .v2-provider-fraud-image img{display:block;width:100%;height:auto}

/* 借貸資訊頁：保留完整資訊，降低卡片堆疊與大面積色塊。 */
html body .loan-info-shell{width:min(1040px,calc(100% - 40px))}
html body .loan-info-hero{padding-block:clamp(30px,5vw,60px)}
html body .loan-info-hero h1{max-width:24ch;font-size:clamp(28px,4.5vw,44px);line-height:1.18;text-wrap:balance}
html body .loan-info-hero p{max-width:70ch;font-size:16px;line-height:1.75}
html body .loan-info-section{padding-block:clamp(28px,4.2vw,48px)}
html body .loan-info-heading{margin-bottom:18px}
html body .loan-info-heading h2{font-size:clamp(22px,3vw,30px);line-height:1.25}
html body .loan-info-heading p{max-width:72ch;color:var(--d2-muted);line-height:1.7}
html body .loan-info-check-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
html body .loan-info-check-grid article{min-height:0;padding:13px;border:1px solid var(--d2-line);border-radius:11px;background:#fff;box-shadow:none}
html body .loan-info-check-grid article strong{font-size:15px;line-height:1.35}
html body .loan-info-check-grid article span{margin-top:4px;font-size:13px;line-height:1.55}
html body .loan-info-example{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
html body .loan-info-example>div{min-width:0;padding:12px;border-radius:10px}
html body .loan-info-example span{font-size:13px;line-height:1.4}
html body .loan-info-example strong{font-size:17px;line-height:1.35;overflow-wrap:anywhere}
html body .loan-info-provider-list{gap:16px}
html body .loan-info-provider-card{padding:clamp(16px,2.4vw,22px);border-radius:var(--d2-radius)}
html body .loan-info-provider-terms{gap:9px}
html body .loan-info-provider-terms>div{min-width:0;padding:10px 12px;border-radius:10px}
html body .loan-info-provider-terms dd{overflow-wrap:anywhere}
html body .loan-info-provider-actions a{min-height:46px;display:inline-flex;align-items:center;justify-content:center;padding:10px 14px}

/* 文章、資訊頁與工具 */
html body .seo-article{max-width:780px}
html body .seo-article-body{font-size:17px;line-height:1.85}
html body .seo-article-body p{margin-block:0 1.15em}
html body .seo-article-body h2{margin:2em 0 .65em;font-size:clamp(22px,3vw,28px);line-height:1.3}
html body .seo-article-body h3{margin:1.55em 0 .55em;font-size:clamp(18px,2.4vw,22px);line-height:1.35}
html body .seo-article-body ul,
html body .seo-article-body ol{padding-left:1.4em}
html body .seo-article-cover,
html body .seo-content-figure img{border-radius:14px;box-shadow:0 7px 20px rgba(15,35,55,.07)}
html body .seo-public-list{align-items:stretch;gap:16px}
html body .seo-public-item{height:100%;padding:18px;border-color:var(--d2-line);border-radius:14px}
html body .seo-public-cover{width:calc(100% + 36px);margin:-18px -18px 5px}
html body .fraud-content,
html body .tool-workspace,
html body .v2-content-card{overflow-wrap:anywhere}
html body .tool-primary-button,
html body .tool-secondary-button,
html body .v2-action-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center}

@media (max-width:1024px){
  :root{--d2-content:min(100% - 32px,1120px)}
  html body .loan-info-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body .loan-info-example{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width:768px){
  html body .v2-page-hero{padding-block:26px 30px}
  html body .v2-region-wide-groups,
  html body .v2-region-wide-panels,
  html body .v2-region-compact-tabs{display:flex;flex-wrap:wrap;justify-content:center;padding-inline:14px}
  html body .v2-region-wide-groups a,
  html body .v2-region-wide-panels a,
  html body .v2-region-compact-tabs a{flex:1 1 calc(33.333% - 8px);min-width:100px}
  html body .v2-urgent-table,
  html body .v2-urgent-table tbody,
  html body .v2-urgent-table tr,
  html body .v2-urgent-table td{display:block;width:100%}
  html body .v2-urgent-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  html body .v2-urgent-table tr{padding:9px 12px;border-top:1px solid var(--d2-line)}
  html body .v2-urgent-table tr:first-child{border-top:0}
  html body .v2-urgent-table td{padding:5px 0;border:0}
  html body .v2-urgent-table td:first-child{font-weight:800;color:var(--d2-blue)}
  html body .v2-provider-contact-grid{grid-template-columns:1fr 1fr}
  html body .loan-info-example{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body .seo-article-body{font-size:16px;line-height:1.8}
}

@media (max-width:520px){
  :root{--d2-content:min(100% - 28px,1120px)}
  html body .v2-home-primary-intro{padding-block:8px 2px}
  html body .v2-home-primary-intro .site-shell{font-size:14px}
  html body .v2-home-seo-intro{padding-block:18px 24px}
  html body .v2-discovery-head h1,
  html body .v2-page-hero h1{font-size:clamp(25px,8vw,32px)}
  html body .v2-home-role-statement,
  html body .v2-page-hero p,
  html body .v2-discovery-head>p{font-size:15px;line-height:1.7}
  html body .v2-region-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body .v2-region-small-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  html body .v2-region-small-grid a{min-height:44px;padding:6px 4px;font-size:13px;line-height:1.2}
  html body .v2-region-small-grid a::before{width:5px;height:5px;margin-right:4px}
  html body .v2-region-wide-groups a,
  html body .v2-region-wide-panels a,
  html body .v2-region-compact-tabs a{flex-basis:calc(50% - 8px);min-width:0}
  html body .v2-region-seo-links a,
  html body .v2-seo-guide-links a,
  html body .v2-region-feature-keywords a,
  html body .v2-region-keyword-chips a{font-size:14px}
  html body .v2-provider-contact-grid{grid-template-columns:1fr}
  html body .v2-provider-contact-card{min-height:58px}
  html body .v2-provider-disclosure-grid{grid-template-columns:1fr}
  html body .v2-provider-disclosure-grid>div.is-wide{grid-column:auto}
  html body .loan-info-shell{width:min(100% - 28px,1040px)}
  html body .loan-info-hero{padding-block:25px 32px}
  html body .loan-info-hero h1{font-size:clamp(27px,9vw,34px)}
  html body .loan-info-check-grid{grid-template-columns:1fr 1fr}
  html body .loan-info-example{grid-template-columns:1fr 1fr}
  html body .loan-info-provider-head{align-items:flex-start;gap:10px}
  html body .loan-info-provider-terms{grid-template-columns:1fr}
  html body .loan-info-provider-terms>div.is-wide{grid-column:auto}
  html body .loan-info-provider-actions{display:grid;grid-template-columns:1fr;gap:9px}
  html body .search-page-box{width:min(100% - 28px,920px)}
  html body .search-box{display:grid;grid-template-columns:1fr}
  html body .search-button{width:100%}
  html body .seo-public-list{grid-template-columns:1fr}
  html body .seo-article-body{font-size:15px;line-height:1.78}
}

@media (max-width:360px){
  html body .v2-region-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body .v2-region-small-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  html body .v2-region-small-grid a{min-height:42px;padding:5px 2px;font-size:12px;line-height:1.15}
  html body .v2-region-small-grid a::before{width:4px;height:4px;margin-right:3px}
  html body .loan-info-check-grid,
  html body .loan-info-example{grid-template-columns:1fr}
  html body .v2-region-wide-groups a,
  html body .v2-region-wide-panels a,
  html body .v2-region-compact-tabs a{flex-basis:100%}
}

@media (prefers-reduced-motion:reduce){
  html body *{scroll-behavior:auto}
  html body .v2-region-featured-grid a,
  html body .v2-region-small-grid a{transition:none}
}
