/* ==========================================
   长尾页面通用样式 - Longtail Page Template
   ========================================== */

:root {
    --primary-green: #22c55e;
    --primary-dark: #16a34a;
    --gradient-primary: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f0f4f8;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ========== Header ========== */
.lt-header {
    background: #0f172a;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.lt-header-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lt-brand img { height: 40px; width: auto; }
.lt-header-btns { display: flex; gap: 8px; }
.lt-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    border: none;
}
.lt-btn-outline { background: transparent; border: 1px solid #475569; color: #e2e8f0; }
.lt-btn-outline:hover { border-color: var(--primary-green); color: var(--primary-green); }
.lt-btn-primary { background: var(--primary-green); color: #fff; }
.lt-btn-primary:hover { background: var(--primary-dark); color: #fff; }
.lt-btn-lg { padding: 14px 36px; font-size: 1.1rem; border-radius: 8px; }

/* ========== Article ========== */
.lt-article {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

/* Breadcrumb */
.lt-breadcrumb {
    font-size: .85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.lt-breadcrumb a { color: var(--primary-green); }

/* Meta */
.lt-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .85rem;
    color: var(--text-secondary);
    margin: 16px 0 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.lt-meta span { display: flex; align-items: center; gap: 4px; }

/* Sections */
.lt-section { margin-bottom: 40px; }
.lt-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-green);
}
.lt-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Ordered Steps */
.lt-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
}
.lt-steps li {
    counter-increment: step;
    padding: 12px 16px 12px 56px;
    position: relative;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.lt-steps li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
}

/* Unordered List */
.lt-list { list-style: none; padding: 0; }
.lt-list li {
    padding: 8px 16px 8px 32px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}
.lt-list li::before {
    content: "✓";
    position: absolute;
    left: 8px;
    color: var(--primary-green);
    font-weight: 700;
}

/* Table */
.lt-table-wrap { overflow-x: auto; margin: 16px 0; }
.lt-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.lt-table th {
    background: var(--primary-green);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}
.lt-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.lt-table tr:nth-child(even) { background: var(--bg-light); }

/* Cards */
.lt-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 16px 0;
}
.lt-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: box-shadow .2s;
}
.lt-card:hover { box-shadow: var(--shadow-md); }
.lt-card h3 { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 8px; }
.lt-card p { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* Pros & Cons */
.lt-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 16px 0;
}
.lt-pros h3, .lt-cons h3 { font-size: 1.1rem; margin-bottom: 12px; }
.lt-pros h3 { color: #16a34a; }
.lt-cons h3 { color: #dc2626; }
.lt-pros ul, .lt-cons ul { list-style: none; padding: 0; }
.lt-pros li, .lt-cons li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: .9rem;
    color: var(--text-secondary);
}
.lt-pros li::before { content: "✅"; position: absolute; left: 0; }
.lt-cons li::before { content: "⚠️"; position: absolute; left: 0; }

/* FAQ */
.lt-faq { margin: 16px 0; }
.lt-faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}
.lt-faq-q {
    padding: 16px 20px;
    background: var(--bg-light);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lt-faq-a {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
}
.lt-faq-item.open .lt-faq-a {
    max-height: 300px;
    padding: 16px 20px;
}
.lt-faq-a p { margin: 0; color: var(--text-secondary); line-height: 1.7; }

/* CTA Box */
.lt-cta-box {
    text-align: center;
    padding: 40px 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin: 40px 0;
}
.lt-cta-box h2 { color: #fff; margin-bottom: 8px; font-size: 1.6rem; }
.lt-cta-box p { color: #cbd5e1; margin-bottom: 20px; font-size: 1.05rem; }

/* Internal Links */
.lt-internal {
    margin: 32px 0;
    padding: 24px;
    background: #f0f7ff;
    border-radius: var(--radius-md);
}
.lt-internal h3 { margin-bottom: 12px; color: var(--text-primary); }
.lt-internal-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lt-internal-links a {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    color: var(--primary-green);
    font-size: .85rem;
    transition: all .2s;
}
.lt-internal-links a:hover {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

/* Footer */
.lt-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 20px;
    margin-top: 40px;
}
.lt-footer-wrap { max-width: 860px; margin: 0 auto; text-align: center; }
.lt-footer h3 { color: #f1f5f9; margin-bottom: 8px; }
.lt-footer h3 a { color: var(--primary-green); }
.lt-footer p { font-size: .9rem; line-height: 1.6; margin-bottom: 8px; }
.lt-footer-copy { margin-top: 20px; padding-top: 16px; border-top: 1px solid #1e293b; font-size: .8rem; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .lt-pros-cons { grid-template-columns: 1fr; }
    .lt-cards { grid-template-columns: 1fr; }
    .lt-meta { gap: 8px; }
    .lt-cta-box { padding: 28px 16px; }
    .lt-cta-box h2 { font-size: 1.3rem; }
    .lt-header-btns .lt-btn { padding: 6px 12px; font-size: .8rem; }
}
