:root {
    --ld-primary: #2563eb;
    --ld-primary-dark: #1d4ed8;
    --ld-text: #1f2937;
    --ld-body: #4b5563;
    --ld-muted: #6b7280;
    --ld-border: #e5e7eb;
    --ld-gray: #f9fafb;
    --ld-white: #ffffff;
    --ld-footer: #1e293b;
}

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

html {
    scroll-behavior: smooth;
}

body.landing-template-body {
    color: var(--ld-text);
    background: var(--ld-gray);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

body.landing-template-body i {
    display: inline-block;
}

.ld-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ld-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--ld-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ld-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.ld-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.5rem;
    color: var(--ld-text);
    font-size: 1.25rem;
    font-weight: 700;
}

.ld-brand-icon {
    flex: 0 0 auto;
    color: var(--ld-primary);
    font-size: 1.5rem;
}

.ld-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ld-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ld-nav a {
    color: var(--ld-body);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.ld-nav a:hover {
    color: var(--ld-primary);
}

.ld-hero {
    padding: 4rem 0;
    color: #fff;
    background: linear-gradient(135deg, var(--ld-primary), var(--ld-primary-dark));
    text-align: center;
}

.ld-hero h1 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.18;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ld-hero > .ld-container > p {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.75;
}

.ld-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.ld-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 2rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ld-btn i {
    font-size: 1.15rem;
}

.ld-btn-white {
    color: var(--ld-primary-dark);
    background: #fff;
}

.ld-btn-white:hover {
    color: var(--ld-primary-dark);
    background: #eff6ff;
}

.ld-btn-outline {
    border-color: #fff;
    color: #fff;
}

.ld-btn-outline:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.ld-btn-primary {
    color: #fff;
    background: var(--ld-primary);
}

.ld-btn-primary:hover {
    color: #fff;
    background: var(--ld-primary-dark);
}

.ld-section {
    padding: 4rem 0;
}

.ld-section-white {
    background: var(--ld-white);
}

.ld-section-gray {
    background: var(--ld-gray);
}

.ld-section-title {
    margin-bottom: 2.5rem;
    color: var(--ld-text);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.ld-text-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.ld-text-wrap p {
    color: var(--ld-body);
    font-size: 1.05rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.ld-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.ld-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ld-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.ld-card-icon {
    margin-bottom: 1rem;
    color: var(--ld-primary);
    font-size: 2rem;
    line-height: 1;
}

.ld-card h3 {
    margin-bottom: 0.5rem;
    color: var(--ld-text);
    font-size: 1.1rem;
    font-weight: 700;
}

.ld-card p {
    color: var(--ld-muted);
    font-size: 0.96rem;
    overflow-wrap: anywhere;
}

.ld-download-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    border: 1px solid var(--ld-border);
    border-radius: 1rem;
    background: var(--ld-gray);
}

.ld-download-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 1.5rem;
}

.ld-tag {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.ld-tag-green {
    color: #16a34a;
    background: #dcfce7;
}

.ld-tag-gray {
    color: #6b7280;
    background: #e5e7eb;
}

.ld-download-info h3 {
    margin-bottom: 0.75rem;
    color: var(--ld-text);
    font-size: 1.25rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.ld-download-info ul {
    list-style: none;
}

.ld-download-info li {
    margin-bottom: 0.5rem;
    color: var(--ld-body);
    font-size: 0.96rem;
}

.ld-download-info li::before {
    color: #22c55e;
    font-weight: 700;
    content: "✓ ";
}

.ld-download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ld-btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: #fff;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease;
}

.ld-btn-download i {
    font-size: 1.1rem;
}

.ld-btn-download-primary {
    background: var(--ld-primary);
}

.ld-btn-download-primary:hover {
    background: var(--ld-primary-dark);
}

.ld-btn-download-secondary {
    background: #4b5563;
}

.ld-btn-download-secondary:hover {
    background: #374151;
}

.ld-download-empty {
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: var(--ld-muted);
    background: #eef0f3;
    font-size: 0.9rem;
    text-align: center;
}

.ld-download-tip {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ld-border);
    color: var(--ld-body);
    font-size: 0.875rem;
    line-height: 1.7;
}

.ld-download-tip strong {
    color: var(--ld-text);
}

.ld-faq-wrap {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    flex-direction: column;
    gap: 1rem;
}

.ld-faq-wrap details {
    padding: 1rem;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ld-faq-wrap details[open] {
    outline: 1px solid var(--ld-primary);
}

.ld-faq-wrap summary {
    color: var(--ld-text);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.ld-faq-wrap summary::-webkit-details-marker {
    display: none;
}

.ld-faq-wrap details p {
    margin-top: 0.5rem;
    color: var(--ld-body);
    font-size: 0.96rem;
}

.ld-footer {
    padding: 2rem 0;
    color: #fff;
    background: var(--ld-footer);
    font-size: 0.875rem;
    text-align: center;
}

.ld-footer p:first-child {
    opacity: 0.8;
}

.ld-footer p:last-child {
    margin-top: 0.5rem;
    opacity: 0.6;
    font-size: 0.75rem;
}

.ld-not-found {
    display: grid;
    min-height: calc(100vh - 205px);
    padding: 4rem 0;
    place-items: center;
    background: var(--ld-white);
    text-align: center;
}

.ld-not-found .ld-container > span {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--ld-primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.ld-not-found h1 {
    margin-bottom: 0.75rem;
    color: var(--ld-text);
    font-size: clamp(2rem, 5vw, 3rem);
}

.ld-not-found p {
    margin-bottom: 1.5rem;
    color: var(--ld-body);
}

.ld-header a:focus-visible,
.ld-hero-actions a:focus-visible,
.ld-btn-download:focus-visible,
.ld-not-found a:focus-visible,
.ld-faq-wrap summary:focus-visible {
    outline: 2px solid var(--ld-primary);
    outline-offset: 3px;
}

@media (min-width: 768px) {
    .ld-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ld-download-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .ld-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ld-nav {
        display: none;
    }

    .ld-hero {
        padding: 3rem 0;
    }

    .ld-section {
        padding: 3rem 0;
    }

    .ld-section-title {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .ld-brand {
        font-size: 1.1rem;
    }

    .ld-brand-icon {
        font-size: 1.35rem;
    }

    .ld-hero h1 {
        font-size: clamp(1.9rem, 10vw, 2.5rem);
    }

    .ld-hero > .ld-container > p {
        font-size: 1rem;
    }

    .ld-hero-actions {
        gap: 0.75rem;
    }

    .ld-hero-actions .ld-btn {
        width: 100%;
    }

    .ld-card-grid {
        gap: 1rem;
    }

    .ld-download-box {
        padding: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ld-card,
    .ld-btn,
    .ld-btn-download {
        transition: none;
    }
}
