
/**
最新样式 20260311
 */

/* ── CSS Variables (aligned with site palette) ── */
:root {
  --coral:       #E8552A;
  --coral-light: #FF6B3D;
  --coral-dark:  #C43D18;
  --coral-pale:  #FEF0EB;
  --coral-mid:   #FDDDD2;
  --gray-900:    #1F2328;
  --gray-700:    #4A4F57;
  --gray-400:    #9CA3AF;
  --gray-100:    #F8F9FA;
  --shadow:      0 4px 24px rgba(232,85,42,.10);
  --radius:      12px;
  --ease:        .3s cubic-bezier(.4,0,.2,1);
}

/* ── Trust Bar ── */
.detail-trust-bar {
  background: var(--coral-pale);
  border-bottom: 1px solid rgba(232,85,42,.12);
  padding: .5rem 0;
  font-size: .82rem;
  color: var(--gray-700);
}
.detail-trust-bar .trust-item {
  display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap;
}
.detail-trust-bar .trust-item i { color: var(--coral); font-size: .9rem; }

/* ── Page Hero / Image Area ── */
.template-hero {
  background: var(--gray-100);
  border-bottom: 1px solid rgba(232,85,42,.08);
  padding: 0;
}
.template-hero .hero-img-wrap {
  position: relative;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: #e5e7eb;
}
.template-hero .hero-img-wrap img {
  width: 100%; display: block;
  object-fit: cover;
  transition: transform .6s ease;
}
.template-hero .hero-img-wrap:hover img { transform: scale(1.02); }

/* Badge */
.quality-badge, .quality-badge-less {
  position: absolute; top: 12px; right: 12px;
  padding: .3rem .85rem;
  border-radius: 20px;
  font-size: .8rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: .3rem;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.quality-badge      { background: rgba(232,85,42,.9); color: #fff; }
.quality-badge-less { background: rgba(255,193,7,.9);  color: #1a1a1a; }

/* ── Sticky Sidebar Card ── */
.action-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid rgba(232,85,42,.15);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.action-card-header {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-light) 100%);
  padding: 1.25rem 1.5rem;
  color: #fff;
}
.action-card-header .template-id {
  font-size: .78rem; opacity: .85; margin-bottom: .2rem;
}
.action-card-header .template-name {
  font-size: 1.15rem; font-weight: 700; margin: 0;
}
.action-card-body { padding: 1.25rem 1.5rem; }

/* CTA Buttons */
.btn-primary-coral {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  width: 100%; padding: .7rem 1rem; border: none; border-radius: 8px;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: all var(--ease);
  background: var(--coral); color: #fff;
}
.btn-primary-coral:hover { background: var(--coral-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,85,42,.35); }
.btn-outline-coral {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  width: 100%; padding: .65rem 1rem; border: 2px solid var(--coral);
  border-radius: 8px; font-weight: 600; font-size: .92rem; cursor: pointer;
  transition: all var(--ease);
  background: transparent; color: var(--coral);
}
.btn-outline-coral:hover { background: var(--coral-pale); }

/* 替换原来的 .info-table 系列 */
.info-table { width: 100%; font-size: .835rem; margin-bottom: 0; border-collapse: collapse; }
.info-table tbody { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.info-table tr { display: contents; }
.info-table tr td {
  padding: .42rem .5rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
  display: flex; align-items: center;
}
.info-table tr td:first-child {
  color: var(--gray-400);
  padding-left: 0;
}
.info-table tr td:last-child {
  color: var(--gray-700);
  font-weight: 500;
  border-left: 1px solid rgba(0,0,0,.04);
  padding-left: .6rem;
}

/* ── Section Titles ── */
.entry-section-title {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.1rem; font-weight: 700; color: var(--gray-900);
  margin-bottom: 1rem; padding-bottom: .6rem;
  border-bottom: 2px solid var(--coral-pale);
}
.entry-section-title i { color: var(--coral); font-size: 1.2rem; }
.entry-section-title::before {
  content: ''; display: block; width: 4px; height: 1.1em;
  background: var(--coral); border-radius: 2px;
}

/* ── Feature Highlights Chips ── */
.feature-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.feature-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--coral-pale); color: var(--coral-dark);
  border: 1px solid var(--coral-mid);
  border-radius: 20px; padding: .3rem .9rem;
  font-size: .82rem; font-weight: 600;
}

/* ── Content Body ── */
.entry-content { line-height: 1.9; color: var(--gray-700); }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--gray-900); margin-top: 1.5rem; }
.entry-content img { border-radius: 8px; box-shadow: var(--shadow); }
.entry-content ul li { margin-bottom: .4rem; }

/* ── FAQ ── */
.faq-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid rgba(232,85,42,.12); overflow: hidden;
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; font-weight: 600; color: var(--gray-900);
  cursor: pointer; transition: background var(--ease);
  border: none; background: transparent; width: 100%; text-align: left;
  gap: .5rem;
}
.faq-question:hover { background: var(--coral-pale); }
.faq-question .faq-icon { color: var(--coral); flex-shrink: 0; font-size: 1rem; transition: transform var(--ease); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem; color: var(--gray-700); font-size: .93rem; line-height: 1.75; }
.faq-answer p { padding: .75rem 0; margin: 0; border-top: 1px solid var(--coral-pale); }
.faq-divider { border: none; border-top: 1px solid rgba(232,85,42,.1); margin: 0; }

/* ── Alert / Notice ── */
.notice-coral {
  background: var(--coral-pale); border-left: 4px solid var(--coral);
  border-radius: 0 8px 8px 0; padding: .9rem 1.2rem;
  font-size: .9rem; color: var(--gray-700); display: flex; gap: .6rem; align-items: flex-start;
}
.notice-coral i { /*color: var(--coral);*/ font-size: 1.1rem; flex-shrink: 0; margin-top: .6rem; }

/* ── Dir Tree ── */
.dir-tree-wrap { background: var(--gray-100); border-radius: 8px; padding: 1rem 1.25rem; }

/* ── Tags ── */
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.tag-list li a {
  display: inline-block; padding: .28rem .85rem;
  background: var(--gray-100); border: 1px solid #e5e7eb;
  border-radius: 20px; font-size: .82rem; color: var(--gray-700);
  text-decoration: none; transition: all var(--ease);
}
.tag-list li a:hover { background: var(--coral-pale); border-color: var(--coral-mid); color: var(--coral); }

/* ── Nav Prev/Next ── */
.nav-prev-next {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  padding: 1.25rem; background: var(--gray-100); border-radius: var(--radius);
}
.nav-prev-next .nav-item { display: flex; flex-direction: column; gap: .25rem; }
.nav-prev-next .nav-item .nav-label { font-size: .78rem; color: var(--gray-400); }
.nav-prev-next .nav-item a { font-size: .9rem; color: var(--gray-700); font-weight: 500; text-decoration: none; transition: color var(--ease); }
.nav-prev-next .nav-item a:hover { color: var(--coral); }
.nav-prev-next .nav-item:last-child { text-align: right; }

/* ── Sidebar Card ── */
.sidebar-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid rgba(232,85,42,.1);
  box-shadow: 0 2px 12px rgba(232,85,42,.06);
  overflow: hidden; margin-bottom: 1.5rem;
}
.sidebar-card-title {
  font-size: .9rem; font-weight: 700; color: var(--gray-900);
  padding: .85rem 1.25rem;
  background: var(--gray-100);
  border-bottom: 1px solid rgba(232,85,42,.08);
  display: flex; align-items: center; gap: .4rem; margin: 0;
}
.sidebar-card-title i { color: var(--coral); }
.sidebar-card-body { padding: 1rem 1.25rem; }

/* Related post item */
.post-item-card { display: flex; gap: .75rem; padding: .65rem 0; }
.post-item-card + .post-item-card { border-top: 1px solid var(--gray-100); }
.post-item-card img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.post-item-card .post-meta a { font-size: .85rem; font-weight: 500; color: var(--gray-700); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.post-item-card .post-meta a:hover { color: var(--coral); }
.post-item-card .post-meta time { font-size: .76rem; color: var(--gray-400); margin-top: .25rem; display: block; }

/* ── Latest Resources Grid ── */
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.latest-card { border-radius: 8px; overflow: hidden; border: 1px solid rgba(232,85,42,.1); transition: box-shadow var(--ease); }
.latest-card:hover { box-shadow: 0 6px 20px rgba(232,85,42,.15); }
.latest-card img { width: 100%; aspect-ratio: 2/1; object-fit: cover; display: block; }
.latest-card-body { padding: .4rem .6rem .55rem; }
.latest-card-body h4 { font-size: .78rem; font-weight: 600; color: var(--gray-900); margin: 0 0 .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.latest-card-body span { font-size: .72rem; color: var(--gray-400); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Disclaimer ── */
.disclaimer {
  background: var(--gray-100); border-radius: 8px; padding: 1rem 1.25rem;
  font-size: .8rem; color: var(--gray-400); line-height: 1.8;
}
.disclaimer ul { margin: 0; padding-left: 1.2rem; }
.disclaimer li + li { margin-top: .3rem; }

/* ── Collect / Like ── */
.collect-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--coral-pale); border: 1.5px solid var(--coral-mid);
  border-radius: 8px; padding: .45rem 1.1rem;
  color: var(--coral); font-weight: 600; font-size: .9rem;
  text-decoration: none; transition: all var(--ease); cursor: pointer;
}
.collect-btn:hover { background: var(--coral); color: #fff; border-color: var(--coral); }
.collect-btn i { font-size: 1rem; }

/* ── EEAT Author Strip ── */
.eeat-strip {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1.1rem; background: var(--coral-pale);
  border-radius: 8px; margin-bottom: 1.5rem;
  font-size: .85rem; color: var(--gray-700);
}
.eeat-strip .eeat-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--coral-mid); flex-shrink: 0;
}
.eeat-strip .eeat-info strong { color: var(--gray-900); }
.eeat-strip .eeat-info .eeat-meta { color: var(--gray-400); font-size: .78rem; margin-top: .1rem; }
.eeat-strip .eeat-badges { margin-left: auto; display: flex; gap: .4rem; flex-wrap: wrap; }
.eeat-badge {
  font-size: .72rem; padding: .2rem .6rem; border-radius: 20px;
  background: #fff; border: 1px solid var(--coral-mid); color: var(--coral);
  font-weight: 600; white-space: nowrap;
}

/* ── 覆盖 shiny-cta 蓝色 → 珊瑚色 ── */
.shiny-cta {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-light) 100%) !important;
  border: none !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: .65rem 1.4rem !important;
  cursor: pointer !important;
  transition: all var(--ease) !important;
  box-shadow: 0 4px 16px rgba(232,85,42,.28) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: .4rem !important;
}
.shiny-cta:hover {
  background: linear-gradient(135deg, var(--coral-dark) 0%, var(--coral) 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 24px rgba(232,85,42,.40) !important;
  color: #fff !important;
}
.shiny-cta span { color: #fff !important; }

/* ── Hero 背景区 ── */
#template-hero-bg {
  position: relative;
  padding: 28px 0 24px;
  background: linear-gradient(160deg, #fff9f7 0%, #fff3ee 40%, #fef0eb 100%);
  overflow: hidden;
}
#heroCanvas {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
#template-hero-bg .container { position: relative; z-index: 1; }

/* ── 图片容器：2:1 比例自适应 ── */
.hero-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(232,85,42,.14);
  background: #f0f0f0;
  line-height: 0;
}
.hero-img-wrap img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.hero-img-wrap:hover img { transform: scale(1.02); }

/* Responsive */
@media (max-width: 991px) {
  .action-card { position: static; margin-bottom: 1.5rem; }
  .latest-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
  .nav-prev-next { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
}
.btn-primary-coral { padding: .58rem 1rem; font-size: .9rem; }
.btn-outline-coral  { padding: .52rem 1rem; font-size: .88rem; }
.action-card-body   { padding: 1rem 1.25rem; }
.action-card-header { padding: 1rem 1.25rem; }

/*.action-card-header        { padding: .75rem 1.25rem; }
.action-card-header .template-id   { margin-bottom: .1rem; }
.action-card-header .template-name { font-size: 1.05rem; }

.action-card-body          { padding: .85rem 1.25rem; }

.btn-primary-coral         { padding: .55rem 1rem; font-size: .9rem; }
.btn-outline-coral         { padding: .48rem 1rem; font-size: .88rem; }

.d-flex.flex-column.gap-2.mb-3 { gap: .4rem !important; margin-bottom: .6rem !important; }

.collect-btn               { padding: .38rem 1rem; font-size: .85rem; }
.d-flex.justify-content-center.mb-3 { margin-bottom: .6rem !important; }

.info-table tr td          { padding: .32rem .5rem; }
.info-table tr td:first-child { padding-left: 0; }*/

.btn-secondary-sm {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  padding: .5rem .4rem; border-radius: 8px;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: all var(--ease); text-decoration: none;
  background: var(--gray-100); color: var(--gray-700);
  border: 1.5px solid #e5e7eb;
  white-space: nowrap;
}
.btn-secondary-sm:hover {
  background: var(--coral-pale);
  border-color: var(--coral-mid);
  color: var(--coral);
}
.btn-secondary-sm i { font-size: .9rem; }