/* ============================================
   260807tupian — 重新设计的风格 (参考 gongju)
   tp- prefix | System font | Clean & Modern
   ============================================ */

:root {
    --tp-primary: #3b82f6;
    --tp-primary-hover: #2563eb;
    --tp-gray-50: #f9fafb;
    --tp-gray-100: #f3f4f6;
    --tp-gray-200: #e5e7eb;
    --tp-gray-500: #6b7280;
    --tp-gray-800: #1f2937;
    
    --tp-purple: #3b82f6; /* Fallback mapped to primary */
    --tp-purple-d: #2563eb;
    --tp-purple-l: #60a5fa;
    --tp-purple-xl: #93c5fd;
    --tp-magenta: #3b82f6;
    --tp-magenta-d: #2563eb;
    --tp-lavender: #f9fafb;
    --tp-paper: #ffffff;
    --tp-cream: #f9fafb;
    --tp-ink: #1f2937;
    --tp-ink-l: #4b5563;
    --tp-slate: #6b7280;
    --tp-line: #e5e7eb;
    --tp-line-l: #f3f4f6;
    --tp-green: #22c55e;
    --tp-blue: #3b82f6;
    --tp-orange: #f97316;
    --tp-rose: #f43f5e;
    --tp-amber: #eab308;
    --tp-teal: #14b8a6;
    --tp-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #ffffff;
    color: var(--tp-gray-800);
    font-family: var(--tp-font);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--tp-primary); }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.tp-head {
    background: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: none;
}
.tp-wrap { 
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 0 1rem; 
    width: 100%;
}
.tp-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 4rem; 
}
.tp-logo { text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.tp-logo-img { height: 2rem; width: auto; }
.tp-logo-txt { font-size: 1.5rem; font-weight: 700; color: var(--tp-primary); letter-spacing: normal; }
.tp-lang select {
    font-family: var(--tp-font);
    font-size: 0.875rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--tp-gray-200);
    border-radius: 0.5rem;
    background: #ffffff;
    color: var(--tp-gray-800);
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}
.tp-lang select:focus { border-color: var(--tp-primary); box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); }

/* ===== Footer ===== */
.tp-foot {
    background: #ffffff;
    color: var(--tp-gray-500);
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid var(--tp-gray-200);
}
.tp-foot-info { text-align: center; font-size: 0.875rem; }
.tp-foot-info p { margin-bottom: 0.5rem; line-height: 1.5; }
.tp-foot-info p:first-child { font-size: 0.875rem; }
.tp-foot-a { color: inherit; text-decoration: none; transition: color 0.3s; }
.tp-foot-a:hover { color: var(--tp-primary); text-decoration: none; }

/* ===== Main content ===== */
.tp-main { flex-grow: 1; padding: 2rem 0; }

/* ===== Tool list area (index) ===== */
.tp-list-area { padding: 3rem 0; }
.tp-cat { margin-bottom: 3rem; }
.tp-cat-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tp-gray-800);
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 2rem;
}
.tp-cat-mark {
    width: 0.375rem;
    height: 1.5rem;
    background: var(--tp-gray-800);
    border-radius: 9999px;
    flex-shrink: 0;
}
.tp-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .tp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .tp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tp-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--tp-gray-100);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    height: 100%;
    align-items: flex-start;
}
.tp-card::before { display: none; }
.tp-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: none;
    text-decoration: none;
}
.tp-card-ico {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    color: var(--tp-primary);
    background: #eff6ff;
    transition: background-color 0.3s, color 0.3s;
}
.tp-card:hover .tp-card-ico {
    background-color: var(--tp-primary);
    color: #ffffff;
}
.tp-card-ico svg { width: 1.5rem; height: 1.5rem; }
.tp-card-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--tp-gray-800);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}
.tp-card:hover .tp-card-name { color: var(--tp-primary); }
.tp-card-desc { font-size: 0.875rem; color: var(--tp-gray-500); line-height: 1.5; flex-grow: 1; }

/* Theme color variants (similar to gongju) */
.tp-c-blue .tp-card-ico { background-color: #eff6ff; color: #3b82f6; }
.tp-c-blue:hover { border-color: rgba(59, 130, 246, 0.5); }
.tp-c-blue:hover .tp-card-ico { background-color: #3b82f6; color: #fff; }
.tp-c-blue:hover .tp-card-name { color: #3b82f6; }

.tp-c-purple .tp-card-ico { background-color: #faf5ff; color: #a855f7; }
.tp-c-purple:hover { border-color: rgba(168, 85, 247, 0.5); }
.tp-c-purple:hover .tp-card-ico { background-color: #a855f7; color: #fff; }
.tp-c-purple:hover .tp-card-name { color: #a855f7; }

.tp-c-green .tp-card-ico { background-color: #f0fdf4; color: #22c55e; }
.tp-c-green:hover { border-color: rgba(34, 197, 94, 0.5); }
.tp-c-green:hover .tp-card-ico { background-color: #22c55e; color: #fff; }
.tp-c-green:hover .tp-card-name { color: #22c55e; }

.tp-c-orange .tp-card-ico { background-color: #fff7ed; color: #f97316; }
.tp-c-orange:hover { border-color: rgba(249, 115, 22, 0.5); }
.tp-c-orange:hover .tp-card-ico { background-color: #f97316; color: #fff; }
.tp-c-orange:hover .tp-card-name { color: #f97316; }

.tp-c-rose .tp-card-ico { background-color: #fff1f2; color: #f43f5e; }
.tp-c-rose:hover { border-color: rgba(244, 63, 94, 0.5); }
.tp-c-rose:hover .tp-card-ico { background-color: #f43f5e; color: #fff; }
.tp-c-rose:hover .tp-card-name { color: #f43f5e; }

.tp-c-yellow .tp-card-ico { background-color: #fefce8; color: #eab308; }
.tp-c-yellow:hover { border-color: rgba(234, 179, 8, 0.5); }
.tp-c-yellow:hover .tp-card-ico { background-color: #eab308; color: #fff; }
.tp-c-yellow:hover .tp-card-name { color: #eab308; }


/* ===== Tool container (tool page) ===== */
.tp-box { max-width: 56rem; margin: 0 auto; padding: 1rem; min-height: calc(100vh - 200px); }
.tp-box-head { text-align: center; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--tp-gray-100); position: relative; }
.tp-box-head::after { display: none; }
.tp-box-head h1 { font-size: 1.875rem; font-weight: 700; color: var(--tp-gray-800); margin-bottom: 0.75rem; }
.tp-box-head p { font-size: 1rem; color: var(--tp-gray-500); max-width: 40rem; margin: 0 auto; }

/* ===== Form elements ===== */
.tp-field { margin-bottom: 1.5rem; }
.tp-label { display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.5rem; }
.tp-ipt {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--tp-font);
    color: var(--tp-gray-800);
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.3s;
}
.tp-ipt:focus { border-color: var(--tp-primary); box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); }

/* ===== Buttons ===== */
.tp-btn {
    display: inline-block;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-family: var(--tp-font);
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    background: var(--tp-primary);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.tp-btn:hover { background: var(--tp-primary-hover); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); text-decoration: none; }
.tp-btn-sm { padding: 0.5rem 1.5rem; font-size: 0.875rem; font-weight: 500; width: auto; }
.tp-btn-inline { display: inline-block; width: auto; font-size: 0.875rem; padding: 0.5rem 1.5rem; font-weight: 500; }
.tp-btn-ok { background: #22c55e; }
.tp-btn-ok:hover { background: #16a34a; }
.tp-btn-def { background: var(--tp-gray-100); color: var(--tp-gray-800); border: none; box-shadow: none; }
.tp-btn-def:hover { background: #e5e7eb; box-shadow: none; }

/* ===== Result display ===== */
.tp-res { margin-top: 1rem; }
.tp-res-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--tp-gray-200); }
.tp-res-row:last-child { border-bottom: none; }
.tp-res-name { font-size: 0.875rem; color: var(--tp-gray-500); font-weight: 400; }
.tp-res-val { font-size: 1rem; color: var(--tp-gray-800); font-weight: 700; text-align: right; }
.tp-res-hi { background: #f0fdf4; border: 1px solid #dcfce7; border-radius: 0.75rem; padding: 1.5rem; text-align: center; margin-top: 1rem; }
.tp-res-hi-l { font-size: 0.875rem; color: #15803d; font-weight: 500; margin-bottom: 0.5rem; }
.tp-res-hi-v { font-size: 2.25rem; font-weight: 900; color: #22c55e; letter-spacing: -0.025em; }
.tp-res-hi-d { font-size: 0.75rem; color: #22c55e; margin-top: 0.5rem; }

/* ===== Panels ===== */
.tp-panel-in { background: var(--tp-gray-50); border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 1.5rem; }
.tp-panel-out { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 1.5rem; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
@media (min-width: 768px) {
    .tp-panel-in, .tp-panel-out { padding: 2rem; }
}
.tp-panel-h { font-size: 1.125rem; font-weight: 700; color: var(--tp-gray-800); margin-bottom: 1.5rem; padding-bottom: 0; border-bottom: none; display: flex; align-items: center; gap: 0.5rem; }
.tp-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--tp-primary); flex-shrink: 0; }
.tp-dot-g { background: #22c55e; }
.tp-cols2 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 2rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .tp-cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== Info / Description Section ===== */
.tp-info { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--tp-gray-200); }
.tp-info-title { font-size: 1.125rem; font-weight: 700; color: var(--tp-gray-800); margin-bottom: 1rem; display: flex; align-items: center; }
.tp-info-box { background: var(--tp-gray-50); padding: 1.5rem; border-radius: 0.75rem; border: 1px solid #e5e7eb; border-left: none; }
.tp-info-intro { color: var(--tp-gray-500); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }
.tp-info-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1rem; }
@media (min-width: 768px) { .tp-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tp-info-card { background: #ffffff; padding: 1.5rem; border-radius: 0.75rem; border: 1px solid #e5e7eb; border-top: none; }
.tp-info-card h4 { font-size: 1rem; font-weight: 700; color: var(--tp-gray-800); margin-bottom: 0.75rem; }
.tp-info-card p { color: var(--tp-gray-500); font-size: 0.875rem; line-height: 1.6; }
.tp-info-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.tp-info-card ul li { color: #4b5563; font-size: 0.875rem; line-height: 1.6; padding-left: 1.25rem; position: relative; }
.tp-info-card ul li::before { content: ''; position: absolute; left: 0; top: 0.55rem; width: 6px; height: 6px; border-radius: 50%; background: #d1d5db; }

/* ===== FAQ section ===== */
.tp-faq { margin-top: 3rem; padding: 3rem 0; border-top: 1px solid var(--tp-gray-200); }
.tp-faq-kicker { display: none; }
.tp-faq-h { font-size: 1.5rem; font-weight: 700; color: var(--tp-gray-800); margin-bottom: 1.5rem; }
.tp-faq-list { list-style: none; display: grid; gap: 1.25rem; }
.tp-faq-item { display: block; background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%); border: 1px solid rgba(219, 230, 244, 0.8); border-radius: 1.25rem; padding: 1.75rem 2rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
.tp-faq-item::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--tp-primary); opacity: 0; transition: opacity 0.3s ease; transform: none; }
.tp-faq-item:hover { transform: translateY(-4px); border-color: #bfdbfe; box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1), 0 10px 10px -5px rgba(37, 99, 235, 0.04); }
.tp-faq-item:hover::before { opacity: 1; transform: none; }
.tp-faq-num { display: none; }
.tp-faq-body { flex: 1; }
.tp-faq-body h3 { font-size: 1.125rem; font-weight: 700; color: var(--tp-gray-800); margin-bottom: 0.75rem; display: flex; align-items: flex-start; }
.tp-faq-body h3::before { content: 'Q.'; color: var(--tp-primary); font-size: 1.25rem; margin-right: 0.5rem; font-weight: 900; }
.tp-faq-body p { font-size: 0.95rem; color: var(--tp-gray-500); line-height: 1.6; padding-left: 2rem; }

/* ===== Policy & Contact pages ===== */
.tp-policy, .tp-contact { max-width: 56rem; margin: 0 auto; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 2.5rem 3rem; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
@media (max-width: 767px) { .tp-policy, .tp-contact { padding: 1.5rem 1rem; } }
.tp-policy-head, .tp-contact-head { text-align: center; margin-bottom: 2rem; border-bottom: 1px solid var(--tp-gray-100); padding-bottom: 1.5rem; }
.tp-policy-head h1, .tp-contact-head h1 { font-size: 1.875rem; font-weight: 700; color: var(--tp-gray-800); margin-bottom: 0.75rem; }
.tp-policy-date, .tp-contact-desc { color: var(--tp-gray-500); font-size: 1rem; }
.tp-policy-body { color: var(--tp-gray-800); line-height: 1.6; }
.tp-policy-sec { margin-bottom: 1.5rem; }
.tp-policy-sec h2 { font-size: 1.25rem; font-weight: 700; color: var(--tp-gray-800); margin-bottom: 0.75rem; border-left: none; padding-left: 0; }
.tp-policy-sec p { margin-bottom: 0.75rem; font-size: 1rem; color: var(--tp-gray-500); }
.tp-policy-sec ul { padding-left: 1.5rem; margin-bottom: 0.75rem; color: var(--tp-gray-500); }
.tp-policy-sec li { margin-bottom: 0.5rem; font-size: 1rem; }
.tp-policy-sec a { color: var(--tp-primary); }
.tp-policy-sec a:hover { text-decoration: underline; }
.tp-policy-back, .tp-contact-back { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--tp-gray-100); }

/* Contact grid */
.tp-contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 767px) { .tp-contact-grid { grid-template-columns: 1fr; } }
.tp-contact-card { padding: 1.5rem; background: var(--tp-gray-50); border: 1px solid #e5e7eb; border-radius: 0.75rem; text-align: center; }
.tp-contact-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 0.5rem; background: #eff6ff; color: var(--tp-primary); margin-bottom: 1rem; }
.tp-contact-card h2 { font-size: 1.125rem; font-weight: 700; color: var(--tp-gray-800); margin-bottom: 0.5rem; }
.tp-contact-card p { color: var(--tp-gray-500); font-size: 0.875rem; margin-bottom: 0.5rem; }
.tp-contact-a { display: inline-block; color: var(--tp-primary); font-weight: 500; text-decoration: none; word-break: break-all; }
.tp-contact-a:hover { text-decoration: underline; }
.tp-contact-icp { font-size: 0.875rem; color: var(--tp-gray-500); }
.tp-contact-note { text-align: center; padding: 1.25rem; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 0.75rem; margin-bottom: 1.5rem; }
.tp-contact-note p { color: #1e3a8a; font-size: 0.875rem; margin: 0; }


/* ===== News list page ===== */
.tp-news-wrap { display: flex; gap: 2rem; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (max-width: 767px) { .tp-news-wrap { flex-direction: column; } }
.tp-news-main { flex: 3; }
.tp-news-side { flex: 1; }
@media (max-width: 767px) { .tp-news-side { flex: auto; } }
.tp-news-head { background: #ffffff; border: 1px solid var(--tp-gray-100); border-radius: 0.75rem; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.tp-news-head h1 { font-size: 1.5rem; font-weight: 700; color: var(--tp-gray-800); margin-bottom: 0.5rem; }
.tp-news-head p { color: var(--tp-gray-500); font-size: 0.875rem; }
.tp-news-box { background: #ffffff; border: 1px solid var(--tp-gray-100); border-radius: 0.75rem; overflow: hidden; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.tp-news-list { list-style: none; }
.tp-news-item { border-bottom: 1px solid var(--tp-gray-100); transition: background 0.3s; }
.tp-news-item:last-child { border-bottom: none; }
.tp-news-item:hover { background: var(--tp-gray-50); }
.tp-news-item a { display: flex; gap: 1.5rem; padding: 1.5rem; text-decoration: none; }
.tp-news-thumb { width: 160px; height: 100px; object-fit: cover; border-radius: 0.5rem; flex-shrink: 0; }
@media (max-width: 639px) { .tp-news-thumb { display: none; } }
.tp-news-body { flex: 1; }
.tp-news-body h2 { font-size: 1.125rem; font-weight: 700; color: var(--tp-gray-800); margin-bottom: 0.5rem; transition: color 0.3s; }
.tp-news-item:hover .tp-news-body h2 { color: var(--tp-primary); }
.tp-news-body p { color: var(--tp-gray-500); font-size: 0.875rem; margin-bottom: 0.75rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.5; }
.tp-news-meta { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--tp-gray-500); }
.tp-news-empty { padding: 3rem; text-align: center; color: var(--tp-gray-500); }
.tp-news-page { margin-top: 2rem; display: flex; justify-content: center; }
.tp-news-side-box { background: #ffffff; border: 1px solid var(--tp-gray-100); border-radius: 0.75rem; padding: 1.5rem; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.tp-news-side-box h3 { font-size: 1.125rem; font-weight: 700; color: var(--tp-gray-800); margin-bottom: 1rem; padding-left: 0.5rem; border-left: 4px solid var(--tp-primary); border-radius: 2px; }
.tp-news-side-box ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.tp-news-side-box li a { color: #4b5563; font-size: 0.875rem; text-decoration: none; transition: color 0.3s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.tp-news-side-box li a:hover { color: var(--tp-primary); }

/* ===== Article detail page ===== */
.tp-article { max-width: 48rem; margin: 0 auto; background: #ffffff; border: 1px solid var(--tp-gray-100); border-radius: 0.75rem; padding: 2.5rem 3rem; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
@media (max-width: 767px) { .tp-article { padding: 1.5rem 1rem; } }
.tp-article-head { text-align: center; margin-bottom: 2rem; border-bottom: 1px solid var(--tp-gray-100); padding-bottom: 1.5rem; }
.tp-article-head h1 { font-size: 1.875rem; font-weight: 700; color: var(--tp-gray-800); margin-bottom: 0.75rem; }
.tp-article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: var(--tp-gray-500); }
.tp-article-meta a { color: var(--tp-primary); }
.tp-article-meta a:hover { text-decoration: underline; }
.tp-article-body { color: #374151; font-size: 1rem; line-height: 1.75; }
.tp-article-body p { margin-bottom: 1rem; }
.tp-article-body img { max-width: 100%; height: auto; border-radius: 0.5rem; margin: 1.5rem 0; }
.tp-article-body h2, .tp-article-body h3 { color: var(--tp-gray-800); margin: 2rem 0 1rem; font-weight: 700; }
.tp-article-body a { color: var(--tp-primary); }
.tp-article-body pre { background: var(--tp-gray-50); padding: 1rem; border: 1px solid var(--tp-gray-200); border-radius: 0.5rem; overflow-x: auto; margin: 1.5rem 0; font-size: 0.875rem; font-family: monospace; }
.tp-article-body code { background: var(--tp-gray-100); padding: 0.2rem 0.4rem; border-radius: 0.25rem; font-size: 0.875rem; color: #ef4444; }
.tp-article-nav { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--tp-gray-100); display: flex; flex-direction: column; gap: 1rem; font-size: 0.875rem; color: var(--tp-gray-500); }
@media (min-width: 768px) { .tp-article-nav { flex-direction: row; justify-content: space-between; } }
.tp-article-nav a { color: var(--tp-primary); font-weight: 500; }
.tp-article-nav a:hover { text-decoration: underline; }
.tp-rel-sec { margin-top: 3rem; }
.tp-rel-sec h3 { font-size: 1.125rem; font-weight: 700; color: var(--tp-gray-800); margin-bottom: 1rem; padding-left: 0.5rem; border-left: 4px solid var(--tp-primary); border-radius: 2px; }
.tp-rel-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
@media (min-width: 768px) { .tp-rel-grid { grid-template-columns: repeat(2, 1fr); } }
.tp-rel-item { display: flex; align-items: center; padding: 1rem; border: 1px solid var(--tp-gray-200); border-radius: 0.5rem; text-decoration: none; transition: all 0.3s; gap: 0.75rem; background: #fff; }
.tp-rel-item:hover { border-color: #bfdbfe; background: #eff6ff; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.tp-rel-dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: #93c5fd; flex-shrink: 0; }
.tp-rel-item:hover .tp-rel-dot { background: var(--tp-primary); }
.tp-rel-item span { color: #4b5563; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-rel-item:hover span { color: var(--tp-primary); }

/* ===== Utility classes ===== */
.tp-center { text-align: center; }
.tp-mt8 { margin-top: 2rem; }
.tp-pt8 { padding-top: 2rem; }
.tp-border-t { border-top: 1px solid var(--tp-gray-200); }
.tp-mt4 { margin-top: 1rem; }
.tp-mb4 { margin-bottom: 1rem; }
.tp-hidden { display: none !important; }
