/*
 Theme Name:   OneNav Child
 Theme URI:    https://www.manyugo.com
 Description:  鳗鱼跨境工具页子主题，不受父主题升级影响
 Author:       manyugo
 Author URI:   https://www.manyugo.com
 Template:     onenav
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  onenav-child
*/

/* 工具页面通用样式 */
.tools-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

.tools-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tools-nav {
    width: 200px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.tools-nav h3 {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.tools-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tools-nav li {
    margin-bottom: 4px;
}

.tools-nav a {
    display: block;
    padding: 8px 12px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.tools-nav a:hover, .tools-nav a.active {
    background: #e94560;
    color: #fff;
}

.tools-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* 汇率工具样式 */
.exchange-box {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.exchange-inputs {
    flex: 1;
}

.exchange-inputs .currency-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.exchange-inputs .currency-row label {
    width: 80px;
    font-size: 14px;
    color: #555;
}

.exchange-inputs .currency-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.exchange-inputs .currency-row select {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.exchange-rate-display {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    min-width: 200px;
}

.exchange-rate-display .rate-value {
    font-size: 24px !important;
    font-weight: bold;
    color: #e94560;
}

.exchange-rate-display .rate-label {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.quick-amounts {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-amounts button {
    padding: 4px 10px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-amounts button:hover {
    background: #e94560;
    color: #fff;
    border-color: #e94560;
}

/* 工具卡片头部 */
.tool-card {
    margin-bottom: 20px;
}

.tool-card h2 {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e94560;
    color: #333;
}

.tool-meta {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .tools-layout { flex-direction: column; }
    .tools-nav { width: 100%; }
    .exchange-box { flex-direction: column; }
}

/* post-entry 内容区样式（对齐aixzd.com格式） */
.post-entry {
  color: #ffffffa6;
  counter-reset: entry-h2-counter;
  padding-bottom: 16px;
  border-bottom: 1px solid #ffffff05;
  margin-bottom: 16px;
}
.post-entry h2 {
  font-size: 24px !important;
  font-weight: bold;
  color: #ffffffd9;
  line-height: 1.14em;
  margin-top: 16px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid #ffffff05;
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-entry h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
@media (min-width: 750px) {
  .post-entry h2 {
    font-size: clamp(24px, 1.25vw, 28px) !important;
  }
}
@media (min-width: 1000px) {
  .post-entry h2 {
    font-size: clamp(28px, 1.4583vw, 32px) !important;
    margin-bottom: 10px;
  }
}
.post-entry p {
  line-height: 2.5em !important;
  font-size: clamp(14px, .7292vw, 18px) !important;
  margin-bottom: 16px;
}
@media (min-width: 750px) {
  .post-entry p {
    line-height: 2.5em !important;
  }
}

/* h2 图标样式 - 直接显示序号 */
.h2-index {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: top;
  margin-right: 4px;
  background-color: #00ffd1;
  border-radius: 3px;
  width: 34px;
  height: 32px;
  flex-shrink: 0;
}
@media (min-width: 750px) {
  .h2-index {
    width: 36px;
    height: 34px;
  }
}
.h2-index .icon-order-bg {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #00ffd1;
  border-radius: 4px;
  z-index: 1;
}
.h2-index .h2-num {
  position: relative;
  z-index: 2;
  display: inline;
  color: #191919;
  font-size: 16px;
  font-weight: normal;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  line-height: 1;
}
@media (min-width: 750px) {
  .h2-index .h2-num {
  position: relative;
  z-index: 2;
    font-size: clamp(16px, 0.8333vw, 20px);
  }
}
@media (min-width: 1000px) {
  .h2-index .h2-num {
  position: relative;
  z-index: 2;
    font-size: clamp(18px, 0.9375vw, 22px);
  }
}
/* 移除伪元素计数器 */
.h2-index::after {
  display: none !important;
  content: none !important;
}

/* 隐藏父主题 panel-body h2 的 ::before */
.panel-body h2:not(.item-title)::before {
  display: none !important;
}
.panel-body h2:not(.item-title)::after {
  display: none !important;
}
/* 标题文字加大 */
.panel-body h2:not(.item-title) {
  font-size: 1.1em !important;
  line-height: 1.4 !important;
}

/* 强制标题字号 */
.panel-body .post-entry h2 {
  font-size: 24px !important;
}
@media (min-width: 750px) {
  .panel-body .post-entry h2 {
    font-size: clamp(24px, 1.25vw, 28px) !important;
  }
}
@media (min-width: 1000px) {
  .panel-body .post-entry h2 {
    font-size: clamp(28px, 1.4583vw, 32px) !important;
  }
}
