/* 整合小工具 - 前台与侧栏样式 */

/* 前台独立页 */
.zhenghe-tools-page {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
    box-sizing: border-box;
}
.zhenghe-tools-container {
    max-width: 720px;
    margin: 0 auto;
}
.zhenghe-tools-title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.zhenghe-tools-desc {
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin: 0 0 2rem;
    font-size: 0.95rem;
}
.zhenghe-tools-cards {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 640px) {
    .zhenghe-tools-cards { grid-template-columns: 1fr; }
}
.zhenghe-tools-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transition: transform 0.2s, box-shadow 0.2s;
}
.zhenghe-tools-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}
.zhenghe-tools-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.35rem;
}
.zhenghe-tools-card-desc {
    font-size: 0.8rem;
    color: #666;
    margin: 0 0 1rem;
}
.zhenghe-tools-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
    margin-bottom: 0.75rem;
}
.zhenghe-tools-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.2);
}
.zhenghe-tools-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.zhenghe-tools-btn:hover {
    opacity: 0.95;
}
.zhenghe-tools-result {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.8rem;
    max-height: 200px;
    overflow: auto;
}
.zhenghe-pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}
.zhenghe-loading { color: #667eea; margin: 0; }
.zhenghe-err { color: #c00; margin: 0; }

/* 侧栏小工具（主题内嵌） */
.zhenghe-tools-sidebar-wrap {
    margin-bottom: 0;
}
.zhenghe-tools-widget {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
}
.zhenghe-tools-widget .card-header {
    font-size: 0.9rem;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.zhenghe-tools-widget .card-body {
    font-size: 0.85rem;
    line-height: 1.45;
}
.zhenghe-tools-widget pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 0.8rem;
}
.zhenghe-oil-table { font-size: 0.85rem; }
.zhenghe-oil-table td { padding: 0.15rem 0.5rem 0.15rem 0; vertical-align: top; }

/* 写文章页右侧面板 */
.zhenghe-tools-write-panel .card-header {
    background: #f8f9fa;
    font-size: 13px;
}

