/* ================= 基础样式重置 ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f6f9; /* 稍微带点冷灰色的背景，更高级 */
}


/* ================= 头部样式 ================= */
header {
    /* 科技感背景图 */
    background-image: url('/static/images/header-bg.jpg');
    background-size: cover;       /* 图片铺满整个头部 */
    background-position: center;  /* 居中显示 */
    color: white;
    padding: 2rem 0 1.5rem 0;
    margin-bottom: 2rem;
    position: relative; /* 配合遮罩层 */
}

/* ✅ 关键：图片上方加一层半透明的黑色遮罩，保证文字清晰可读 */
header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* 60% 不透明度黑，字就能看清了 */
    z-index: 1;
}

/* 确保标题和导航都在遮罩层的上方 */
header h1, header nav {
    position: relative;
    z-index: 2;
}


/* ✅ 这里改了字体大小和粗细 */
header h1 {
    text-align: center;
    font-size: 1.8rem; /* 原默认字体约32px，现在约28px，变小了 */
    font-weight: 500;   /* 没有那么粗了，看起来更精致 */
    letter-spacing: 1px; /* 字间距稍微拉开一点点 */
    margin-bottom: 0.8rem; /* 与下方导航栏的间距 */
}

header h1 a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

header h1 a:hover {
    opacity: 0.85; /* 鼠标放上去稍微变透明 */
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 10px; /* 导航项之间的间距 */
}

nav li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.4rem 1rem; /* 做成圆角按钮的样子 */
    border-radius: 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

nav li a:hover {
    background-color: rgba(255, 255, 255, 0.15); /* 悬停半透明效果 */
    color: #ffffff;
}

/* ================= 主体内容样式 ================= */
main {
    max-width: 1000px;
    margin: 0 auto 3rem auto; /* 底部留点空间 */
    padding: 2.5rem; /* 去掉重复项，加宽内边距 */
    background-color: white;
    border-radius: 12px; /* 圆角更大一点 */
    box-shadow: 0 4px 20px rgba(0,0,0,0.04); /* 更柔和的阴影 */
}

.post-excerpt,
.post-full {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.post-excerpt:last-child,
.post-full {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.meta {
    color: #8a95a5; /* 颜色微调，更柔和 */
    font-size: 0.9em;
    margin-bottom: 1rem;
}

.content {
    /* 你的内容区样式 */
}

.content img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 15px auto !important;
    border-radius: 6px; /* 文章内图片也加个圆角 */
}

/* ================= 页脚样式 ================= */
/* ================= 页脚样式 ================= */
footer {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #a0aab5; /* 浅灰色文字，在深色底上清晰可读 */
    background-color: #1a1f2e; /* ✅ 纯深色背景 */
    border-top: none; /* 深色底不需要分隔线了 */
}

footer .company-name {
    margin-bottom: 5px; /* 与备案号的间距 */
    font-size: 0.95rem;
}
footer .record-number {
    font-size: 0.8rem;
    opacity: 0.7; /* 稍微淡一点，不抢眼 */
}