/* 1. 引入强力的无衬线黑体字 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700;900&display=swap');

/* 2. 全局重置与灰白材质背景 */
body {
    /* 模仿截图里的微糙灰白底色 */
    background-color: #f6f6f6; 
    /* 如果你想加上纸张纹理，可以取消下面这行的注释并找一张噪点图 */
    background-image: url('https://www.transparenttextures.com/patterns/concrete-wall.png');
    color: #1a1a1a;
    font-family: 'Noto Sans SC', "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* 3. 顶部导航栏 (带底部的细灰线) */
#header {
    background-color: #f6f6f6;
    border-bottom: 1px solid #b3b3b3; /* 官网同款细线 */
    padding: 20px 40px;
}

/* 博客标题 (对应截图左上角的 STARFIELD) */
#header h1 {
    margin: 0;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: 4px; /* 拉大字间距增加设计感 */
}
#header h1 a {
    color: #111;
    text-decoration: none;
    text-transform: uppercase;
}
#header h2 { /* 博客副标题 */
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 导航链接 (对应 SHATTERED SPACE / 特色 / 新闻 等) */
#navigator {
    margin-top: 15px;
}
#navList {
    list-style: none;
    padding: 0;
    margin: 0;
}
#navList li {
    display: inline-block;
    margin-right: 30px;
}
#navList a {
    color: #000;
    font-weight: 900;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}
#navList a:hover {
    color: #cda870; /* 星空标志性的暗金色 */
}

/* 4. 主内容区与大标题 - 改为两栏布局 */
#main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;           /* 使用flex布局实现两栏 */
    gap: 40px;                /* 两栏之间的间距 */
}

/* 左侧主内容区 - 只放文章列表 */
#mainContent {
    flex: 3;                  /* 占比3份，宽度更大 */
    min-width: 0;             /* 防止flex溢出 */
}

/* 5. 文章列表卡片 (对应截图里的资讯边框) */
.day {
    background-color: transparent;
    border: 1px solid #888; /* 灰色细边框 */
    margin-bottom: 40px;
    padding: 30px;
    box-sizing: border-box;
    /* 绝对直角，无阴影，纯粹的工业感 */
    border-radius: 0; 
    box-shadow: none;
}

/* 日期 (对应截图里极小的 21 10 2025) */
.dayTitle {
    font-size: 12px;
    color: #666;
    font-weight: 700;
    margin-bottom: 10px;
}

/* 文章标题 */
.postTitle {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 15px;
}
.postTitle a {
    color: #1a1a1a;
    text-decoration: none;
}
.postTitle a:hover {
    color: #cda870;
}

/* 文章摘要文字 */
.postCon {
    color: #333;
    font-size: 15px;
}

/* 6. 按钮与交互元素 (对应右上角的“立即购买”按钮) */
.btn, .postDesc a, #btn_comment_submit {
    background-color: #cda870; /* 暗金色 */
    color: #000;
    border: 3px solid #000; /* 黑边框 */
    font-weight: 900;
    padding: 6px 16px;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}
.btn:hover, .postDesc a:hover, #btn_comment_submit:hover {
    background-color: #e5c38e;
}

/* 7. 侧边栏样式 - 全新设计 */
#sideBar {
    flex: 1;                  /* 占比1份，宽度较小 */
    border-left: none;        /* 去掉原来的左边框 */
    padding-left: 0;          /* 去掉原来的左内边距 */
}

/* 侧边栏各个模块的通用样式 */
#sideBar .newsItem,
#sideBar .catList,
#sideBar #blog-calendar,
#sideBar #sidebar_search,
#sideBar .calendar,
#sideBar #sidebar_ad,
#sideBar #sidebar_shortcut,
#sideBar #sidebar_toptags {
    margin-bottom: 30px;      /* 各个模块之间的间距 */
    background-color: #fff;   /* 白色背景，与卡片风格一致 */
    border: 1px solid #888;   /* 灰色细边框，与.day卡片统一 */
    padding: 20px;
}

/* 侧边栏标题样式 */
#sideBar .catListTitle,
#sideBar .newsItem .catListTitle,
#sideBar h3,
#sideBar .calendar .CalTitle,
#sideBar .catListTitle a {
    font-size: 18px;
    font-weight: 900;
    color: #111;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #cda870; /* 金色下划线装饰 */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 侧边栏链接样式 */
#sideBar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sideBar ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

#sideBar ul li:last-child {
    border-bottom: none;
}

#sideBar ul li a {
    color: #444;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    display: block;
}

#sideBar ul li a:hover {
    color: #cda870;
    padding-left: 5px;        /* 悬停时向右微移，增加交互感 */
}

/* 搜索框样式美化 */
#sideBar #sidebar_search,
#sideBar .input-group {
    padding: 20px;
}

#sideBar #sidebar_search input[type="text"],
#sideBar .input-group input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

#sideBar #sidebar_search input[type="submit"],
#sideBar .input-group input[type="button"] {
    background-color: #cda870;
    color: #000;
    border: 1px solid #000;
    font-weight: 900;
    padding: 6px 16px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 13px;
}

/* 公告区域样式 */
#sideBar .newsItem {
    padding: 20px;
}

#sideBar .newsItem p {
    margin: 10px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

/* 日历样式优化 */
#sideBar #blog-calendar,
#sideBar .calendar {
    padding: 20px;
}

#sideBar .CalTitle {
    background-color: #cda870 !important;
    color: #000 !important;
    font-weight: 900;
    padding: 8px !important;
}

#sideBar .CalDayHeader {
    background-color: #f0f0f0 !important;
    font-weight: bold;
}

#sideBar .CalTodayDay {
    background-color: #cda870 !important;
    color: #000 !important;
    font-weight: 900;
}

#sideBar .CalNextPrev a {
    color: #000;
    text-decoration: none;
}

#sideBar .CalNextPrev a:hover {
    color: #cda870;
}

/* 自定义侧边栏卡片样式 */
#sideBar .catList {
    padding: 20px;
}

#sideBar .catList ul {
    margin-top: 5px;
}

/* 标签云样式 */
#sideBar #sidebar_toptags ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#sideBar #sidebar_toptags ul li {
    border: none;
    padding: 0;
}

#sideBar #sidebar_toptags ul li a {
    background: #f0f0f0;
    padding: 4px 10px;
    border: 1px solid #ddd;
    font-size: 12px;
    display: inline-block;
}

#sideBar #sidebar_toptags ul li a:hover {
    background: #cda870;
    color: #000;
    padding-left: 10px;
}

/* 文章分类计数样式 */
#sideBar .catList ul li span {
    float: right;
    color: #999;
    font-size: 12px;
}

/* 8. 自定义头部样式 */
#custom-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #111;
    position: sticky;
    top: 0;
    z-index: 9999;
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.starfield-logo {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 5px;
    color: #000;
}
.constellation-mark {
    color: #cda870; /* 金色分割线 */
    margin: 0 10px;
}
.system-status {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}
.status-item {
    margin-right: 20px;
    color: #666;
}
.blink {
    color: #28a745; /* 正常状态的绿色 */
    animation: blinker 1.5s linear infinite;
}
@keyframes blinker { 50% { opacity: 0.3; } }

/* 官网风格的按钮 */
.nav-btn-buy {
    background: #cda870;
    color: #000 !important;
    padding: 8px 18px;
    text-decoration: none;
    border: 3px solid #000;
    font-weight: 900;
    text-transform: uppercase;
}

/* 9. 页脚样式 */
#custom-footer {
    max-width: 1200px;
    margin: 60px auto 20px;
    padding: 20px;
    color: #555;
    font-family: monospace;
}
.footer-divider {
    height: 1px;
    background: #ccc;
    margin-bottom: 20px;
    position: relative;
}
.footer-divider::after {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 50px; height: 3px;
    background: #cda870; /* 加个金色小色块装饰 */
}
.footer-content {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}
.mission-log a { color: #888; text-decoration: underline; }
.version-tag {
    border: 1px solid #888;
    padding: 2px 8px;
    background: #eee;
}

/* 10. 彩虹条分割线样式 */
/* 页眉彩虹条 - 放在页眉下方 */
.rainbow-divider {
    width: 100%;
    height: 35px;
    background-image: url('https://img.remit.ee/api/file/BQACAgUAAyEGAASHRsPbAAERtFBptWvc7J0Uo0eOBG88xa1euuCKNgACNSAAAkcKsFXCpSaYUQjurzoE.jpg');
    background-repeat: repeat-x;
    background-size: auto 35px;
    background-position: center;
    position: relative;
    z-index: 1;
}

/* 页脚彩虹条 - 全屏宽度 */
.rainbow-divider-footer {
    width: 100vw;  /* 视口宽度，确保全屏 */
    height: 35px;  /* 与页眉彩虹条保持一致 */
    background-image: url('https://img.remit.ee/api/file/BQACAgUAAyEGAASHRsPbAAERtFBptWvc7J0Uo0eOBG88xa1euuCKNgACNSAAAkcKsFXCpSaYUQjurzoE.jpg');
    background-repeat: repeat-x;
    background-size: auto 35px;
    background-position: center;
    margin-left: calc(-50vw + 50%);  /* 这行代码让元素无视父容器宽度，全屏显示 */
    position: relative;
    left: 0;
}

/* 11. 响应式设计：在窄屏幕上改为上下布局 */
@media screen and (max-width: 768px) {
    #main {
        flex-direction: column;  /* 改为上下布局 */
    }
    
    #mainContent,
    #sideBar {
        width: 100%;
    }
    
    #sideBar {
        margin-top: 30px;
    }
}

/* 12. 文章底部元信息样式优化 */
.postDesc {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #666;
}

.postDesc a {
    background-color: #cda870;
    color: #000;
    border: 1px solid #000;
    font-weight: 900;
    padding: 4px 12px;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    margin-right: 5px;
    display: inline-block;
}

.postDesc a:hover {
    background-color: #e5c38e;
}