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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.7;
}

/* ===== 导航栏 ===== */
.navbar {
    background: rgba(15, 12, 41, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .nav-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.navbar .logo {
    font-size: 1.2em;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar .logo:hover { opacity: 0.85; }
.navbar .logo .logo-icon {
    font-size: 1.4em;
    background: linear-gradient(135deg, #00d2ff, #7b2ff7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.navbar nav a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9em;
    padding: 6px 14px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.navbar nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* ===== 面包屑 ===== */
.breadcrumb {
    max-width: 960px;
    margin: 20px auto 0;
    padding: 0 20px;
    font-size: 0.85em;
    color: #666;
}
.breadcrumb a { color: #7b9fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== 容器 ===== */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 20px 40px;
}

/* ===== 首页 Hero ===== */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}
.hero h1 {
    font-size: 2.8em;
    font-weight: 800;
    background: linear-gradient(90deg, #00d2ff, #7b2ff7, #ff6ec7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.hero .subtitle {
    color: #888;
    font-size: 1.05em;
    letter-spacing: 1px;
}

/* ===== 区块标题 ===== */
.section-title {
    font-size: 1.3em;
    color: #00d2ff;
    border-left: 4px solid #7b2ff7;
    padding-left: 15px;
    margin: 40px 0 20px;
}

/* ===== 卡片通用 ===== */
.card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(123, 47, 247, 0.15);
}

/* ===== 首页新闻卡片 ===== */
.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.news-card-link .card { border-left: 3px solid #7b2ff7; }
.news-card-link .card:hover { border-left-color: #00d2ff; }
.news-card-link .card-title {
    font-size: 1.15em;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.news-card-link .card-title .arrow {
    color: #555;
    transition: color 0.2s;
}
.news-card-link:hover .card-title .arrow { color: #00d2ff; }
.news-card-link .card-meta {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 8px;
}
.news-card-link .card-summary {
    color: #aaa;
    font-size: 0.92em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 新闻详情卡片 ===== */
.detail-card h3 {
    font-size: 1.1em;
    color: #fff;
    margin-bottom: 8px;
}
.tag {
    display: inline-block;
    font-size: 0.72em;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}
.tag-cn    { background: rgba(255,107,107,0.15); color: #ff6b6b; border: 1px solid rgba(255,107,107,0.25); }
.tag-global { background: rgba(0,210,255,0.15);   color: #00d2ff; border: 1px solid rgba(0,210,255,0.25); }
.tag-opensource { background: rgba(0,230,118,0.15); color: #00e676; border: 1px solid rgba(0,230,118,0.25); }
.tag-industry  { background: rgba(255,214,0,0.15);  color: #ffd600; border: 1px solid rgba(255,214,0,0.25); }
.detail-card p { color: #bbb; font-size: 0.93em; }
.detail-card .source {
    margin-top: 8px;
    font-size: 0.82em;
}
.detail-card .source a { color: #7b9fff; text-decoration: none; }
.detail-card .source a:hover { text-decoration: underline; }
.highlight { color: #ff6ec7; font-weight: 600; }

/* ===== 分割线 ===== */
.divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(123, 47, 247, 0.4), transparent);
    margin: 35px 0;
}

/* ===== 归档列表 ===== */
.archive-list { list-style: none; }
.archive-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.archive-list li:last-child { border-bottom: none; }
.archive-list a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.2s;
}
.archive-list a:hover { color: #fff; }
.archive-list .date-badge {
    flex-shrink: 0;
    background: rgba(123, 47, 247, 0.15);
    color: #b388ff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
}

/* ===== 趋势卡片 ===== */
.trend-card {
    text-align: center;
}
.trend-card .keywords {
    font-size: 1.05em;
    color: #fff;
    margin-bottom: 12px;
}

/* ===== 页脚 ===== */
footer {
    text-align: center;
    color: #444;
    font-size: 0.8em;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ===== 响应式 ===== */
@media (max-width: 640px) {
    .hero h1 { font-size: 2em; }
    .card { padding: 18px; }
    .navbar .nav-inner { height: 50px; }
}
