:root {
    --bg: #0b1020;
    --panel: rgba(255, 255, 255, 0.88);
    --panel-dark: #121933;
    --text: #172033;
    --muted: #6d7890;
    --line: #e7ebf3;
    --primary: #4f46e5;
    --primary-soft: rgba(79, 70, 229, 0.12);
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 40%, #ecfeff 100%);
}

a {
    color: var(--primary);
    text-decoration: none;
}

img {
    max-width: 100%;
}

.landing-body {
    min-height: 100vh;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(231, 235, 243, 0.8);
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand strong,
.brand span {
    display: block;
}

.brand span {
    color: var(--muted);
    font-size: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.header-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.hero {
    padding: 64px 0 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
}

.hero-copy p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.hero-badges,
.feature-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.hero-badges span,
.feature-tags span,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    background: #fff;
    border: 1px solid var(--line);
}

.badge.success {
    color: var(--success);
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.12);
}

.badge.warning {
    color: var(--warning);
    background: rgba(217, 119, 6, 0.08);
    border-color: rgba(217, 119, 6, 0.12);
}

.badge.muted {
    color: var(--muted);
    background: rgba(109, 120, 144, 0.08);
    border-color: rgba(109, 120, 144, 0.12);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.primary-button,
.secondary-button,
.ghost-button {
    border: 0;
    cursor: pointer;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.24);
}

.secondary-button {
    color: var(--primary);
    background: var(--primary-soft);
}

.ghost-button {
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.nav-item:hover {
    transform: translateY(-1px);
}

.hero-card,
.panel,
.feature-card,
.preview-card,
.metric-card,
.stat-card,
.floating-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.hero-card {
    padding: 22px;
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.card-dots {
    display: flex;
    gap: 6px;
}

.card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d8def0;
}

.preview-stack {
    display: grid;
    gap: 14px;
}

.preview-card {
    padding: 16px;
}

.preview-card strong,
.metric-card strong,
.feature-card strong,
.stat-card strong,
.mini-card strong {
    display: block;
    margin-bottom: 6px;
}

.preview-card p,
.metric-card span,
.feature-card p,
.stat-card em,
.panel-header p,
.topbar p,
.mini-card span {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-style: normal;
}

.metrics-grid,
.features-grid,
.demo-grid,
.stats-grid {
    display: grid;
    gap: 18px;
}

.metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 0 48px;
}

.metric-card,
.feature-card {
    padding: 22px;
}

.section-head {
    text-align: center;
    margin-bottom: 28px;
}

.section-head h2 {
    margin: 0 0 10px;
    font-size: 32px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.features {
    padding: 22px 0 48px;
}

.features-grid {
    grid-template-columns: repeat(3, 1fr);
}

.demo-section {
    padding: 12px 0 64px;
}

.demo-grid {
    grid-template-columns: 1fr 1fr;
}

.panel {
    padding: 24px;
}

.panel-header,
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-header.compact {
    margin-bottom: 14px;
}

.panel-header h2,
.topbar h1 {
    margin: 0 0 6px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.form-grid label,
.toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.text-input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    color: var(--text);
}

.full-width {
    grid-column: 1 / -1;
}

.form-actions,
.topbar-actions,
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.site-footer {
    padding: 28px 0 50px;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.admin-body {
    background: #0b1020;
    color: #e5e7eb;
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    padding: 24px 18px;
    border-right: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, #0f172a, #121933);
}

.brand-admin {
    margin-bottom: 24px;
}

.nav-group {
    display: grid;
    gap: 8px;
}

.nav-item {
    color: #c7d2fe;
    padding: 12px 14px;
    border-radius: 14px;
    background: transparent;
}

.nav-item.active {
    background: rgba(79, 70, 229, 0.25);
    color: #fff;
}

.admin-main {
    padding: 28px;
}

.topbar {
    margin-bottom: 24px;
}

.stats-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 22px;
}

.stat-card {
    padding: 20px;
}

.stat-card span {
    color: #94a3b8;
    display: block;
    margin-bottom: 8px;
}

.stat-card strong {
    color: #fff;
    font-size: 28px;
}

.panel-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}

.wide-panel {
    grid-column: 1 / -1;
}

.toolbar {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 12px;
    margin-bottom: 16px;
}

.table-wrap {
    overflow: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    background: transparent;
}

.template-list {
    display: grid;
    gap: 12px;
}

.mini-card {
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
}

.editor-shell {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.editor-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.editor-toolbar button {
    border: 1px solid var(--line);
    background: #f8fafc;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

.editor-area {
    min-height: 220px;
    padding: 18px;
    color: var(--muted);
}

@media (max-width: 1100px) {
    .hero-grid,
    .demo-grid,
    .panel-grid,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .metrics-grid,
    .features-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
}

@media (max-width: 720px) {
    .header-inner,
    .panel-header,
    .topbar,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-nav,
    .header-actions,
    .quick-actions,
    .topbar-actions {
        width: 100%;
    }

    .metrics-grid,
    .features-grid,
    .stats-grid,
    .form-grid,
    .toolbar {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 36px;
    }

    .admin-main {
        padding: 18px;
    }
}
