/* WorldSense Tech Blog - Clean Minimal Theme */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1a1a2e;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --code-bg: #f1f5f9;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    font-size: 16px;
}

/* Header */
header {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.header-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.site-title:hover { color: var(--primary); }

nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* Hero */
.hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.hero p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Article List */
.article-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.article-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.article-item:first-child { padding-top: 0; }

.article-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.article-item h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.article-item h2 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.article-item h2 a:hover { color: var(--primary); }

.article-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.tag {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-right: 0.5rem;
}

/* Article Page */
.article-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

.article-header h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.article-info {
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.2rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.2rem 1.5rem;
}

.article-content li { margin-bottom: 0.5rem; }

.article-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--bg-alt);
    color: var(--text-light);
    font-style: italic;
}

.article-content code {
    background: var(--code-bg);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: "JetBrains Mono", "Fira Code", monospace;
}

.article-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: 0.85rem;
}

.article-content strong { font-weight: 600; }

.article-content em { font-style: italic; }

.article-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* Author Box */
.author-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.author-info .author-name {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.about-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.about-content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
}

.about-content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.about-content ul {
    margin: 1rem 0 1.2rem 1.5rem;
}

.about-content li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

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

footer a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        gap: 0.75rem;
    }
    nav a { margin-left: 0; margin-right: 1.5rem; }
    .hero { padding: 2rem 1.5rem; }
    .hero h1 { font-size: 1.5rem; }
    .article-list { padding: 1.5rem; }
    .article-header { padding: 2rem 1.5rem 1.5rem; }
    .article-header h1 { font-size: 1.5rem; }
    .article-content { padding: 0 1.5rem 3rem; }
    .author-box { padding: 1.5rem; flex-direction: column; gap: 1rem; }
}
