:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --text: #1f2430;
    --muted: #5b6474;
    --line: #e3e6eb;
    --accent: #1e6fd9;
    --accent-soft: #e8f1fc;
    --ok: #2ea043;
    --warn: #e09b10;
    --alarm: #d93025;
    --radius: 10px;
    --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

header.hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); background: var(--surface); }
.hero h1 { font-size: 34px; margin: 0 0 8px; letter-spacing: .5px; }
.hero .role { font-size: 18px; color: var(--muted); margin: 0 0 20px; }
.hero .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hero .tags li { background: var(--accent-soft); color: var(--accent); padding: 2px 10px; border-radius: 999px; font-size: 14px; }

section { padding: 48px 0; }
section h2 { font-size: 24px; margin: 0 0 24px; }

.project {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}
.project h3 { margin: 0 0 6px; font-size: 21px; }
.project .sub { color: var(--muted); margin: 0 0 16px; }
.project .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid var(--accent);
    font-weight: 600;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }

.preview {
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #f7f8fa;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.preview svg { width: 100%; height: auto; display: block; }

.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.point {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
}
.point h4 { margin: 0 0 8px; font-size: 17px; }
.point p, .point ul { margin: 0; color: var(--muted); font-size: 15px; }
.point ul { padding-left: 18px; }
.point code, .project code { font-family: var(--mono); font-size: .9em; background: #f0f2f5; padding: 1px 5px; border-radius: 4px; color: var(--text); }

.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.stack b { display: block; margin-bottom: 4px; }
.stack span { color: var(--muted); font-size: 15px; }

footer { padding: 32px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
    .project, .points, .stack { grid-template-columns: 1fr; }
    header.hero { padding: 48px 0 32px; }
    .hero h1 { font-size: 28px; }
}
