/*
Theme Name: Rentmii TW
Theme URI: https://rentmii.tw
Description: 恆哥資產活化｜廣角導流站
Version: 1.0
Author: Rentmii
Text Domain: rentmii-tw
*/

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a5276;
  --accent:  #e67e22;
  --light:   #f5f5f0;
  --dark:    #1c1c1c;
  --text:    #333;
  --radius:  8px;
  --shadow:  0 4px 20px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin-bottom: 48px;
}

/* ===== Header ===== */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--primary);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .02em;
}

.site-logo span { color: var(--accent); }

.header-cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  transition: opacity .2s;
}

.header-cta:hover { opacity: .85; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #0d3b61 0%, #1a5276 60%, #1f618d 100%);
  color: #fff;
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,.03)"/><circle cx="10" cy="80" r="60" fill="rgba(255,255,255,.03)"/></svg>') no-repeat center;
  background-size: cover;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  background: rgba(230,126,34,.25);
  border: 1px solid rgba(230,126,34,.6);
  color: #f0a848;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: .85rem;
  letter-spacing: .06em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: .02em;
}

.hero h1 em {
  font-style: normal;
  color: #f0a848;
}

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(230,126,34,.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(230,126,34,.5);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.05rem;
  border: 2px solid rgba(255,255,255,.5);
  transition: border-color .15s, background .15s;
}

.btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.stat-item { text-align: left; }

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #f0a848;
  line-height: 1;
}

.stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}

/* ===== Services (Section 2) ===== */
.services { background: var(--light); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  transition: transform .2s;
}

.card:hover { transform: translateY(-4px); }

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.card p { color: #555; font-size: .95rem; }

/* ===== ROI Section (Section 3) ===== */
.roi { background: var(--primary); color: #fff; }

.roi .section-title { color: #fff; }
.roi .section-sub { color: rgba(255,255,255,.75); }

.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.roi-table {
  background: rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 28px;
}

.roi-table table {
  width: 100%;
  border-collapse: collapse;
}

.roi-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.2);
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  font-weight: 400;
}

.roi-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .95rem;
}

.roi-table .highlight {
  color: #f0a848;
  font-weight: 700;
  font-size: 1.1rem;
}

.roi-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.roi-text p {
  color: rgba(255,255,255,.8);
  margin-bottom: 24px;
  font-size: .95rem;
}

/* ===== Testimonials (Section 4) ===== */
.testimonials { background: #fff; }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.testi-card {
  background: var(--light);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
}

.testi-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 4rem;
  color: var(--primary);
  opacity: .15;
  line-height: 1;
  font-family: Georgia, serif;
}

.testi-text {
  font-size: .95rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.7;
}

.testi-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testi-name { font-weight: 700; font-size: .9rem; color: var(--dark); }
.testi-loc  { font-size: .8rem; color: #888; }

.testi-result {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 700;
  margin-top: 6px;
}

/* ===== Footer CTA ===== */
.footer-cta {
  background: linear-gradient(135deg, #1c1c1c, #2c2c2c);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

.footer-cta h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-cta p {
  color: rgba(255,255,255,.7);
  margin-bottom: 36px;
  font-size: 1rem;
}

.footer-contact {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.contact-item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: .95rem;
}

.contact-item strong { color: #f0a848; }

.footer-copy {
  background: #111;
  color: rgba(255,255,255,.4);
  text-align: center;
  padding: 16px;
  font-size: .8rem;
}

/* ===== Guide Cards ===== */
.guide { background: #fff; }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--light);
  border-radius: 14px;
  padding: 32px 24px;
  border: 2px solid transparent;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.guide-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.guide-card--accent { background: #fff8f0; border-color: rgba(230,126,34,.3); }
.guide-card--accent:hover { border-color: var(--accent); }
.guide-icon { font-size: 2.2rem; margin-bottom: 14px; }
.guide-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.4; }
.guide-card p { font-size: .88rem; color: #666; flex: 1; margin-bottom: 16px; }
.guide-arrow { font-size: .85rem; font-weight: 700; color: var(--primary); }
.guide-card--accent .guide-arrow { color: var(--accent); }

/* ===== Trust Bar ===== */
.trust { background: var(--light); padding: 48px 0; }
.trust-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.trust-item { text-align: center; padding: 16px 40px; }
.trust-num { font-size: 2.4rem; font-weight: 900; color: var(--primary); line-height: 1; }
.trust-num span { font-size: 1.4rem; }
.trust-label { font-size: .8rem; color: #777; margin-top: 6px; }
.trust-divider { width: 1px; height: 48px; background: #ddd; }

/* ===== Categories ===== */
.categories { background: var(--light); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.cat-card {
  display: flex;
  gap: 18px;
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s;
  align-items: flex-start;
}
.cat-card:hover { transform: translateY(-3px); }
.cat-icon { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }
.cat-body h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.cat-body p { font-size: .82rem; color: #666; line-height: 1.6; margin-bottom: 12px; }
.cat-link { font-size: .82rem; font-weight: 700; color: var(--accent); }

/* ===== Page Layout ===== */
.page-wrap { padding: 56px 0 80px; background: #fff; }

.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ===== Article ===== */
.article-cat {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 14px;
}

.article-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 14px;
}

.article-meta {
  font-size: .83rem;
  color: #888;
  margin-bottom: 32px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.meta-sep { color: #ccc; }

.article-header {
  padding-bottom: 24px;
  border-bottom: 2px solid var(--light);
  margin-bottom: 32px;
}

/* 文章內容排版 */
.article-body {
  font-size: 1rem;
  line-height: 1.9;
  color: #333;
}

.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 28px 0 10px;
}

.article-body p { margin-bottom: 18px; }

.article-body ul, .article-body ol {
  margin: 0 0 18px 24px;
}

.article-body li { margin-bottom: 6px; }

.article-body strong { color: var(--primary); }

.article-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--light);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: #555;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: .9rem;
}

.article-body th {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
}

.article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
}

.article-body tr:nth-child(even) td { background: var(--light); }

.article-footer { margin-top: 32px; padding-top: 24px; border-top: 1px solid #eee; }
.article-footer .tag-label { font-size: .83rem; color: #888; }

/* 上下篇導航 */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.post-nav-item { display: flex; flex-direction: column; gap: 6px; }
.post-nav-next { text-align: right; }
.nav-label { font-size: .78rem; color: #aaa; }
.post-nav-item a { font-size: .9rem; color: var(--primary); font-weight: 600; line-height: 1.4; }
.post-nav-item a:hover { color: var(--accent); }

/* ===== Sidebar ===== */
.sidebar { position: sticky; top: 80px; }

.sidebar-cta {
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.scta-icon { font-size: 2rem; margin-bottom: 12px; }
.sidebar-cta h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.sidebar-cta p { font-size: .85rem; color: rgba(255,255,255,.75); margin-bottom: 20px; }

.scta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  transition: opacity .2s;
}

.scta-btn:hover { opacity: .85; }

.sidebar-box {
  background: var(--light);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.sidebar-cats { list-style: none; }
.sidebar-cats li { padding: 6px 0; border-bottom: 1px solid #eee; }
.sidebar-cats li:last-child { border-bottom: none; }
.sidebar-cats li.active a { color: var(--accent); font-weight: 700; }
.sidebar-cats a {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  color: var(--text);
}
.sidebar-cats a:hover { color: var(--primary); }
.cat-count {
  background: #ddd;
  border-radius: 10px;
  padding: 0 7px;
  font-size: .75rem;
  color: #666;
}

.sidebar-recent { list-style: none; }
.sidebar-recent li { padding: 7px 0; border-bottom: 1px solid #eee; font-size: .85rem; }
.sidebar-recent li:last-child { border-bottom: none; }
.sidebar-recent a { color: var(--text); line-height: 1.4; }
.sidebar-recent a:hover { color: var(--primary); }

/* ===== Archive / Posts Grid ===== */
.archive-hero {
  background: linear-gradient(135deg, #0d3b61, #1a5276);
  color: #fff;
  padding: 48px 0 40px;
}

.archive-hero .hero-eyebrow { margin-bottom: 10px; }
.archive-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 10px; }
.archive-hero p { color: rgba(255,255,255,.75); font-size: .95rem; max-width: 540px; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.post-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s;
}

.post-card:hover { transform: translateY(-4px); }
.post-card-img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.post-card-body { padding: 20px; }
.post-card-title { font-size: 1rem; font-weight: 700; margin: 8px 0; line-height: 1.45; }
.post-card-title a { color: var(--dark); }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt { font-size: .85rem; color: #666; line-height: 1.6; margin-bottom: 14px; }
.post-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: #aaa; }
.post-card-read { color: var(--primary); font-weight: 600; }

.no-posts { padding: 40px 0; color: #888; font-size: 1rem; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.pagination a, .pagination span {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: .9rem;
  background: var(--light);
  color: var(--primary);
}
.pagination .current { background: var(--primary); color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .roi-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 24px; }
  .header-cta { display: none; }
}

@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .posts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .roi-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 24px; }
  .header-cta { display: none; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .trust-divider { display: none; }
  .trust-row { gap: 8px; justify-content: space-around; }
}
.scta-contacts { margin-bottom: 14px; font-size: .82rem; color: rgba(255,255,255,.8); line-height: 1.8; }
