/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

/* ==========================================================================
   Yen Yuan Venture - Standalone Feed Style
   ========================================================================== */

.marc-feed-standalone {
  width: 100%;
  color: #1a202c;
}

/* 下拉筛选条 */
.marc-filter-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 24px;
}

.marc-dropdown-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.marc-dropdown-group label {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.marc-select-wrapper select {
  padding: 6px 30px 6px 12px;
  font-size: 13.5px;
  color: #0b2545;
  font-weight: 600;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg%20xmlns="http://www.w3.org/2000/svg"%20width="12"%20height="12"%20viewBox="0 0%2024%2024"%20fill="none"%20stroke="%230b2545"%20stroke-width="2.5"%20stroke-linecap="round"%20stroke-linejoin="round"><polyline%20points="6%209%2012%2015%2018%209"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s;
}

.marc-select-wrapper select:focus {
  border-color: #0b2545;
}

/* 列表单项 */
.marc-feed-list {
  display: flex;
  flex-direction: column;
}

.marc-item {
  padding: 10px 0;
  border-bottom: 1px solid #eef2f6;
  transition: opacity 0.25s ease;
}

.marc-item:first-child {
  padding-top: 0;
}

/* 类别小红竖线样式 */
.marc-item-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.marc-pipe {
  display: inline-block;
  width: 3px;
  height: 14px;
  background-color: #1c2541; /* 红色特征竖线 */
  border-radius: 2px;
}

.marc-cat-name {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

/* 标题样式 */
.marc-item-title {
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.marc-item-title a {
  font-size: 18px;
  font-weight: 700;
  color: #0b2545 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.marc-item-title a:hover {
  color: #b91c1c !important;
}

/* 日期与下载按钮 */
.marc-item-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.marc-date {
  font-size: 13px;
  color: #94a3b8;
}

.marc-download-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0b2545 !important;
  text-decoration: none !important;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.marc-download-action svg {
  width: 13px;
  height: 13px;
}

.marc-download-action:hover {
  background: #0b2545;
  color: #ffffff !important;
}

/* 底部 View All 按钮 */
.marc-bottom-action {
  margin-top: 24px;
  text-align: left;
}

.marc-btn-view-all {
  background: #0b2545;
  border: 1px dashed #cbd5e1;
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.marc-btn-view-all svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.marc-btn-view-all:hover {
  background: #f8fafc;
  border-color: #0b2545;
	color:#0b2545 !important;
}

@media (max-width: 600px) {
  .marc-filter-controls {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 14px 16px !important;
  }

  .marc-dropdown-group {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important; /* 左右两端对齐 */
    gap: 10px !important;
  }

  .marc-dropdown-group label {
    flex-shrink: 0 !important; /* 避免文字被挤压 */
    font-size: 11.5px !important;
  }

  .marc-select-wrapper {
    flex: 0 0 170px !important; /* 固定下拉外框宽度，确保上下两行完全等宽 */
    max-width: 170px !important;
  }

  .marc-select-wrapper select {
    width: 100% !important; /* 填满设定的宽度，右边完美拉齐 */
    box-sizing: border-box !important;
    font-size: 12.5px !important;
    padding: 6px 28px 6px 10px !important;
  }
}


/* ==========================================================================
   Yen Yuan Venture - Custom Double-Column Single Post Layout
   ========================================================================== */
.single.single-post .container-wrap { padding-bottom: 0;}
.yy-single-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 0px 20px;
}

/* 核心两列非对称布局 (左 420px，右自适应) */
.yy-single-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 64px;
  align-items: start;
}

/* --- 左侧栏 --- */
.yy-aside-col {
  position: sticky;
  top: 100px; /* 页面向下滚动时保持悬浮，极大增强交互阅读感 */
}

/* 带有红线和分类 */
.yy-post-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.yy-badge-pipe {
  display: inline-block;
  width: 3px;
  height: 15px;
  background-color: #b91c1c; /* 标志性的红线 */
  border-radius: 1px;
}

.yy-badge-text {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

/* 标题 Bodoni MT 字体 */
.yy-post-title {
  font-family: "Bodoni MT", "Bodoni Moda", Didot, Georgia, serif;
  font-size: 32px;
  font-weight: 800;
  color: #0b2545;
  line-height: 1.25;
  margin: 0 0 10px 0;
}

.yy-post-date {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 24px;
}

/* 下载按钮 (突出且不突兀) */
.yy-download-container {
  margin-bottom: 36px;
}

.yy-download-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #0b2545;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.15);
  transition: background-color 0.2s, transform 0.2s;
}

.yy-download-primary-btn:hover {
  background-color: #1e3a5f;
  transform: translateY(-1px);
}

.yy-svg-icon {
  width: 16px;
  height: 16px;
}

/* 联络人区域 */
.yy-contacts-wrapper {
  border-top: 1px solid #e2e8f0;
  padding-top: 24px;
}

.yy-contacts-heading {
  font-family: "Bodoni MT", "Bodoni Moda", Didot, Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: #0b2545;
  margin: 0 0 16px 0;
}

.yy-contact-card {
  margin-bottom: 20px;
}

.yy-c-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.yy-c-meta {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.4;
}

.yy-c-meta a {
  text-decoration: none !important;
  color: #475569 !important;
  transition: color 0.15s ease;
}

.yy-c-meta a:hover {
  color: #b91c1c !important;
}

.yy-sep {
  color: #cbd5e1;
  margin: 0 4px;
}

/* --- 右侧内容栏 --- */
.yy-main-content {
  min-width: 0;
}

.yy-post-entry {
  font-size: 15.5px;
  line-height: 1.7;
  color: #334155;
}

.yy-post-entry p {
  margin-bottom: 20px;
  text-align: justify;
}

/* --- 响应式适配 --- */
@media (max-width: 900px) {
  .yy-single-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .yy-aside-col {
    position: static;
  }

  .yy-post-title {
    font-size: 28px;
  }
}

/* 1. 将 Related Posts 区域与上方双栏拉开距离，并加上浅色分割线 */
.yy-bottom-related-posts {
  margin-top: 0px;
  padding-top: 0px;
  border-top: 1px solid #eef2f6;
  width: 100%;
}

/* 2. 隐藏卡片底部的头像 (Avatar 图标) */
.yy-bottom-related-posts .meta-author img,
.yy-bottom-related-posts .grav-wrap,
.yy-bottom-related-posts .avatar,
.yy-bottom-related-posts .author-section img {
  display: none !important;
}

/* 3. 隐藏卡片底部的作者姓名 (imadsmin) */
.yy-bottom-related-posts .meta-author span.author,
.yy-bottom-related-posts .meta-author a,
.yy-bottom-related-posts .author-section .author,
.yy-bottom-related-posts span.fn {
  display: none !important;
}

/* 4. 微调剩下的日期样式，使其干净靠左或居中对齐 */
.yy-bottom-related-posts .meta-author,
.yy-bottom-related-posts .author-section {
  display: flex !important;
  align-items: center !important;
  font-size: 13px !important;
  color: #94a3b8 !important;
  padding: 0 !important;
}

/* 5. 标题规范为 Bodoni MT */
.yy-bottom-related-posts h3.related-title {
  font-family: "Bodoni MT", "Bodoni Moda", Didot, Georgia, serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #0b2545 !important;
  margin-bottom: 30px !important;
}


/* ==========================================================================
   Yen Yuan Venture - 3-Column Grid Archive Page Style
   ========================================================================== */

.yy-archive-container {
  padding:0;
  color: #1a202c;
}

/* 顶部暗黑横幅 Banner */
.yy-arc-hero-banner {
  background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
  border-radius: 12px;
  padding: 48px 40px;
  margin-bottom: 30px;
  color: #ffffff;
}

.yy-arc-hero-title {
  font-size: 38px;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.yy-arc-hero-desc {
  font-size: 15px;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0;
  line-height: 1.6;
}

/* 筛选面板容器 (复刻 MARC 灰底卡片) */
.yy-arc-filter-card {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 40px;
}

.yy-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.yy-filter-field {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yy-field-search {
  flex: 2 1 260px;
}

.yy-filter-field label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  margin: 0;
}

.yy-filter-field input,
.yy-filter-field select {
  height: 42px;
  padding: 0 14px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13.5px;
  color: #0b2545;
  outline: none;
  transition: border-color 0.2s;
}

.yy-filter-field input:focus,
.yy-filter-field select:focus {
  border-color: #0b2545;
}

.yy-filter-btn-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yy-btn-apply {
  height: 42px;
  background-color: #0b2545;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0 22px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.yy-btn-apply:hover {
  background-color: #1e3a5f;
}

.yy-btn-reset {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 16px;
  font-size: 13px;
  color: #64748b !important;
  text-decoration: none !important;
  background: #ffffff;
}

.yy-btn-reset:hover {
  background: #e2e8f0;
}

/* 3 列网格排版 */
.yy-arc-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.yy-grid-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(11, 37, 69, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.yy-grid-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(11, 37, 69, 0.07);
}

.yy-grid-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.yy-grid-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.yy-badge-pipe {
  width: 3px;
  height: 13px;
  background-color: #b91c1c; /* 红色特征竖线 */
  border-radius: 1px;
}

.yy-cat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
}

.yy-grid-title {
  margin: 0 0 16px 0;
  line-height: 1.4;
  flex: 1; /* 让不同标题长度下卡片高度自动对齐 */
}

.yy-grid-title a {
  font-size: 17px;
  font-weight: 700;
  color: #0b2545 !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.yy-grid-title a:hover {
  color: #b91c1c !important;
}

.yy-grid-meta-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.yy-grid-date {
  font-size: 12.5px;
  color: #94a3b8;
}

.yy-grid-dl-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #0b2545 !important;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.yy-grid-dl-link svg {
  width: 12px;
  height: 12px;
}

.yy-grid-dl-link:hover {
  background: #0b2545;
  color: #ffffff !important;
}

.yy-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: #94a3b8;
}

/* 数字分页样式 */
.yy-arc-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
}

.yy-arc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0b2545 !important;
  text-decoration: none !important;
  background: #ffffff;
  transition: all 0.2s;
}

.yy-arc-pagination .page-numbers.current {
  background-color: #0b2545;
  border-color: #0b2545;
  color: #ffffff !important;
}

.yy-arc-pagination .page-numbers:hover:not(.current) {
  background-color: #f1f5f9;
  border-color: #0b2545;
}

/* 移动与平板端自适应 */
@media (max-width: 960px) {
  .yy-arc-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .yy-arc-grid-3col {
    grid-template-columns: 1fr;
  }
  .yy-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .yy-filter-btn-col {
    justify-content: flex-start;
  }
}