/* ===== tianli1.css — 天历转换器样式 ===== */
.tl-box {
    max-width: 680px;
    width: 100%;
    background: #faf8f2;
    border: 1px solid #ddd5c5;
    border-radius: 28px;
    padding: 18px 16px 20px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
    transition: all 0.1s;
}
.tl-tab {
    display: flex;
    gap: 4px;
    background: rgba(62,53,40,.08);
    border-radius: 40px;
    padding: 4px;
    margin-bottom: 0.9rem;
}
.tl-tab button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 0.2rem;
    cursor: pointer;
    border-radius: 30px;
    font-size: 0.9rem;
    color: #8a7e6e;
    font-family: inherit;
    transition: all 0.2s;
    font-weight: 500;
}
.tl-tab button.on {
    background: #8c6b1e;
    color: #fff;
    box-shadow: 0 2px 8px rgba(140,107,30,0.25);
}
.tl-pT, .tl-pN {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
    align-items: stretch;
    flex-wrap: wrap;
}
.tl-pN { display: none; }
.tl-pT input, .tl-pN input {
    flex: 1 1 120px;
    padding: 0.5rem 0.7rem;
    border: 1px solid #d9d0be;
    border-radius: 40px;
    font-size: 0.9rem;
    outline: none;
    min-width: 60px;
    background: #f0ebe0;
    font-family: inherit;
}
.tl-pT input:focus, .tl-pN input:focus { border-color: #8c6b1e; }
.tl-pT input::placeholder, .tl-pN input::placeholder { color: #b0a898; }
.tl-pT button, .tl-pN button {
    flex-shrink: 0;
    border: none;
    background: #8c6b1e;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    font-family: inherit;
    transition: 0.1s;
}
.tl-pT button:hover, .tl-pN button:hover { background: #a67f24; }
.tl-pT button:active, .tl-pN button:active { transform: scale(0.94); }

.tl-out {
    min-height: 2.8rem;
    padding: 0.6rem 1rem;
    font-size: 0.92rem;
    color: #2c2416;
    line-height: 1.6;
    word-break: break-word;
    background: #f5efe6;
    border-radius: 40px;
    margin-top: 4px;
    border: 1px solid #e3d8cc;
}
.tl-out .err { color: #b9423a; font-size: 0.85rem; }
.tl-out .ok { color: #8c6b1e; font-weight: 500; }
.tl-out .lp { color: #3a7d44; font-size: 0.8rem; font-weight: 600; }

/* 转换器响应式 */
@media (max-width: 560px) {
    .tl-box { padding: 14px 10px; border-radius: 24px; }
    .tl-pT input, .tl-pN input { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
    .tl-pT button, .tl-pN button { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
    .tl-out { font-size: 0.85rem; padding: 0.5rem 0.8rem; }
}
@media (max-width: 400px) {
    .tl-tab button { font-size: 0.8rem; }
}