/*
Theme Name: Aoao Blog
Theme URI: https://aoao-ai.com
Author: Aoao
Description: 现代AI科技风博客主题
Version: 2.0
Text Domain: aoao-blog
*/

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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #0f172a;
    --text: #0f172a;
    --text-light: #64748b;
    --border: #e2e8f0;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --radius: 14px;
    --shadow: 0 4px 20px rgba(15,23,42,.06);
    --shadow-lg: 0 12px 40px rgba(15,23,42,.12);
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
    line-height: 1.7; color: var(--text); background: var(--bg);
}
a { color: inherit; text-decoration: none; transition: all .2s; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== 导航栏 ===== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.logo-mark {
    width: 34px; height: 34px; border-radius: 9px; object-fit: cover; display: block;
}
.logo .grad { background: linear-gradient(135deg, #2563eb, #8b5cf6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: .95rem; font-weight: 500; color: var(--text-light); }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.nav-search {
    background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px;
    padding: 8px 16px; font-size: .875rem; color: var(--text-light); width: 200px;
}

/* ===== Hero ===== */
.hero { padding: 80px 0 60px; background: linear-gradient(180deg, #eff6ff 0%, #fff 100%); }
.hero h1 { font-size: 3.2rem; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; margin-bottom: 22px; }
.hero h1 .accent { background: linear-gradient(135deg, #2563eb, #8b5cf6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 1.15rem; color: var(--text-light); max-width: 560px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 10px;
    font-weight: 600; font-size: .95rem; transition: all .2s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ===== 区块通用 ===== */
.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 36px; }
.section-head h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.section-head p { color: var(--text-light); margin-top: 6px; }
.section-head .more { color: var(--primary); font-size: .9rem; font-weight: 500; }

/* ===== 文章卡片网格 ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.post-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: all .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card .thumb {
    height: 150px; background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); font-size: 2rem;
    overflow: hidden;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 18px; }
.post-card .cat { font-size: .75rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.post-card h3 { font-size: 1.05rem; font-weight: 700; margin: 8px 0; line-height: 1.4; }
.post-card .excerpt { font-size: .85rem; color: var(--text-light); margin-bottom: 14px; }
.post-card .more-link { font-size: .85rem; color: var(--primary); font-weight: 600; }

/* ===== 深色横幅区块 ===== */
.dark-band {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: 20px; color: #fff; padding: 44px; margin: 24px 0;
}
.dark-band h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.dark-band p { color: #94a3b8; margin-bottom: 22px; max-width: 500px; }
.dark-band .band-grid { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.band-chip {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px; padding: 14px 20px; display: flex; align-items: center; gap: 10px;
    color: #e2e8f0; font-size: .9rem;
}
.band-chip:hover { background: rgba(255,255,255,.14); }

/* ===== 最新文章列表 ===== */
.latest-list { display: flex; flex-direction: column; gap: 18px; }
.latest-item { display: flex; gap: 18px; padding: 16px; border-radius: 12px; transition: background .2s; }
.latest-item:hover { background: var(--bg-soft); }
.latest-item .thumb-sm {
    width: 110px; height: 74px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex; align-items: center; justify-content: center; color: #fff;
    overflow: hidden;
}
.latest-item .thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.latest-item h4 { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.latest-item .meta { font-size: .8rem; color: var(--text-light); margin-top: 6px; }

/* ===== 页脚 ===== */
.site-footer { background: var(--dark); color: #94a3b8; padding: 48px 0 24px; margin-top: 64px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-inner h4 { color: #fff; margin-bottom: 14px; font-size: .95rem; }
.footer-inner a { display: block; font-size: .875rem; margin-bottom: 8px; }
.footer-inner a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .8rem; text-align: center; }

/* ===== 单篇文章页 ===== */
.single-wrap { max-width: 760px; margin: 0 auto; padding: 60px 24px; }
.single-wrap h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 16px; }
.single-wrap .meta { color: var(--text-light); margin-bottom: 32px; font-size: .9rem; }
.single-content { font-size: 1.08rem; line-height: 1.85; }
.single-content p { margin-bottom: 1.5em; }
.single-content h2, .single-content h3 { margin: 1.8em 0 .8em; font-weight: 700; }
.single-content a { color: var(--primary); }
.single-content ul, .single-content ol { padding-left: 1.5em; margin: 1.2em 0; }
.single-content code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.single-content pre { background: var(--dark); color: #e2e8f0; padding: 18px; border-radius: 10px; overflow-x: auto; margin: 1.5em 0; }
.single-navigation { display: flex; justify-content: space-between; margin: 48px 0; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: .9rem; }
.more-posts { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.more-posts h3 { margin-bottom: 20px; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .main-nav, .nav-search { display: none; }
    .hero { padding: 48px 0; }
    .hero h1 { font-size: 2.1rem; }
    .dark-band { padding: 28px; }
    .section { padding: 40px 0; }
}
