打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

目前wiki关闭了自行注册账号的功能,如需注册账号,请查阅Help:注册账号

模板:Fstpagetest styles

来自RIA | Wiki
ChenM0M留言 | 贡献2026年2月14日 (六) 00:59的版本
/* FST 门户页面样式 — v3 重构
 * 风格:融入 RIA Wiki 的 page_box 框架,绿色主题
 * 布局严格遵循参考图 */

/* ========== 基础变量 ========== */
/* 主色:#3a8f5c(森林绿),边框同色 */

/* ========== 外层容器 ========== */
.fst-portal {
    max-width: 100%;
}

/* ========== page_box 通用框架(仿 RIA 首页) ========== */
.fst-box {
    border: 1px solid #3a8f5c;
    margin-bottom: 1rem;
}

.fst-box-header {
    background-color: #3a8f5c;
    padding: 0.4em 0;
    text-align: center;
}

.fst-box-header h2 {
    margin: 0;
    padding: 0;
    border-bottom: none;
    color: #fff;
    font-family: sans-serif;
    font-size: 1.1em;
}

.fst-box-content {
    padding: 1em;
}

/* 移除内容区首尾段落的多余边距 */
.fst-box-content p:first-child {
    margin-top: 0;
}

.fst-box-content p:last-child {
    margin-bottom: 0;
}

/* ========== 1. Welcome 区域(仿 RIA .welcome) ========== */
.fst-welcome {
    border: 1px solid #3a8f5c;
    margin-bottom: 1rem;
}

.fst-welcome-head {
    background-color: #3a8f5c;
    padding: 0.5em;
}

.fst-welcome-head h2 {
    margin: 0;
    padding: 0;
    border-bottom: none;
    color: #fff;
    text-align: center;
    font-family: sans-serif;
    font-size: 1.4em;
}

.fst-welcome-body {
    padding: 1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.fst-welcome-text {
    flex: 1 1 20em;
    text-align: center;
}

.fst-welcome-text p:first-child {
    margin-top: 0;
}

.fst-welcome-text p:last-child {
    margin-bottom: 0;
}

.fst-welcome-meta {
    color: #666;
    font-size: 0.9em;
    margin-top: 0.3em;
}

/* ========== 2. 公告薄条 ========== */
.fst-announce {
    background-color: #e8f5e9;
    padding: 0.4em 1em;
    margin-bottom: 1rem;
    font-size: 0.9em;
    text-align: center;
    border: 1px solid #c8e6c9;
}

/* ========== 3. 主体 page_box ========== */

/* --- 第一行:功能入口(3×2) + 世界图标(品字) --- */
.fst-row-top {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    margin-bottom: 1.2em;
}

/* 功能入口网格:3列×2行 */
.fst-quicknav {
    flex: 1 1 55%;
}

.fst-quicknav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
}

.fst-quicknav-item {
    flex: 0 0 calc(33.33% - 0.4em);
    display: flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.6em 0.8em;
    border: 1px solid #ddd;
    background: #fafafa;
    transition: border-color 0.15s, background 0.15s;
}

.fst-quicknav-item:hover {
    border-color: #3a8f5c;
    background: #f0f8f0;
}

.fst-quicknav-icon {
    font-size: 1.2em;
    flex: 0 0 auto;
}

.fst-quicknav-label {
    font-size: 0.9em;
}

.fst-quicknav-label a {
    text-decoration: none;
    color: #333;
}

.fst-quicknav-item:hover .fst-quicknav-label a {
    color: #3a8f5c;
}

/* 世界图标区:品字形排列 */
.fst-worlds {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

.fst-worlds-row {
    display: flex;
    gap: 1.2em;
    justify-content: center;
}

.fst-world-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: color 0.15s;
}

.fst-world-icon:hover {
    color: #3a8f5c;
}

.fst-world-symbol {
    font-size: 2em;
    line-height: 1;
}

.fst-world-name {
    font-size: 0.8em;
    margin-top: 0.2em;
}

/* --- 分隔线 --- */
.fst-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 0.8em 0;
}

/* --- Tab 区域 --- */
.fst-tabbar {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.fst-tabbar a {
    padding: 0.5em 1.2em;
    text-decoration: none;
    color: #666;
    font-size: 0.95em;
    border-bottom: 2px solid transparent;
    transition: color 0.15s;
}

.fst-tabbar a:hover {
    color: #3a8f5c;
    border-bottom-color: #3a8f5c;
}

/* Tab 面板 */
.fst-panel {
    display: none;
}

.fst-panel:target {
    display: block;
}

.fst-panel-default {
    display: block;
}

.fst-panel:target~.fst-panel-default {
    display: none;
}

/* --- 第三行:Tab内容+时间线(左) + 公告(右) --- */
.fst-row-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
}

.fst-main-left {
    flex: 1 1 60%;
    min-width: 0;
}

.fst-main-right {
    flex: 0 0 240px;
}

/* Tab 面板内容 */
.fst-panel-content {
    padding: 1em 0;
    line-height: 1.7;
}

.fst-panel-content ul {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

/* 模组标签 */
.fst-mod-tag {
    display: inline-block;
    padding: 0.15em 0.6em;
    margin: 0.2em;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    font-size: 0.85em;
    color: #2e7d46;
}

/* 规则表格 */
.fst-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.8em 0;
    font-size: 0.9em;
}

.fst-table th {
    background: #f5f5f5;
    padding: 0.4em 0.6em;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
}

.fst-table td {
    padding: 0.4em 0.6em;
    border-bottom: 1px solid #eee;
}

/* 链接列表 */
.fst-link-list {
    list-style: none;
    padding: 0;
    margin: 0.5em 0;
}

.fst-link-list li {
    padding: 0.3em 0;
}

/* --- 时间线 --- */
.fst-timeline-title {
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
    padding-top: 0.8em;
    border-top: 1px solid #e0e0e0;
}

.fst-timeline {
    padding-left: 0;
}

.fst-timeline-item {
    display: flex;
    align-items: baseline;
    gap: 0.8em;
    padding: 0.3em 0;
}

.fst-timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3a8f5c;
    flex: 0 0 auto;
    margin-top: 0.35em;
}

.fst-timeline-date {
    flex: 0 0 5em;
    color: #888;
    font-size: 0.85em;
}

.fst-timeline-text {
    font-size: 0.9em;
    color: #333;
}

/* --- 公告列表(右列) --- */
.fst-news-title {
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #333;
}

.fst-news-list {
    list-style: disc;
    padding-left: 1.2em;
    margin: 0;
    font-size: 0.9em;
    line-height: 1.8;
}

.fst-news-list li {
    color: #555;
}

.fst-news-list a {
    color: #3a8f5c;
}

/* ========== 4. 地标 page_box ========== */
.fst-landmarks-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.fst-landmark-item {
    flex: 1 1 calc(33.33% - 0.7em);
    padding: 0.6em;
    border: 1px solid #e0e0e0;
    background: #fafafa;
}

.fst-landmark-item:hover {
    border-color: #3a8f5c;
    background: #f0f8f0;
}

.fst-landmark-name {
    font-weight: bold;
    margin-bottom: 0.2em;
}

.fst-landmark-name a {
    color: #3a8f5c;
    text-decoration: none;
}

.fst-landmark-desc {
    font-size: 0.85em;
    color: #888;
}

/* ========== 5. 页脚 ========== */
.fst-footer {
    text-align: center;
    padding: 0.8em 0;
    color: #999;
    font-size: 0.85em;
    margin-top: 0.5rem;
}

/* ========== 响应式适配 ========== */
@media (max-width: 768px) {
    .fst-row-top {
        flex-direction: column;
    }

    .fst-quicknav-item {
        flex: 0 0 calc(50% - 0.3em);
    }

    .fst-row-bottom {
        flex-direction: column;
    }

    .fst-main-right {
        flex: 1 1 auto;
    }

    .fst-landmark-item {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .fst-quicknav-item {
        flex: 1 1 100%;
    }
}

/* ========== 暗黑模式适配 ========== */
@media screen {

    html.skin-theme-clientpref-night .fst-box-content,
    html.skin-theme-clientpref-night .fst-welcome-body {
        background-color: #1a1a2e;
        color: #ccc;
    }

    html.skin-theme-clientpref-night .fst-quicknav-item {
        background: #222;
        border-color: #444;
        color: #ccc;
    }

    html.skin-theme-clientpref-night .fst-quicknav-label a {
        color: #ccc;
    }

    html.skin-theme-clientpref-night .fst-landmark-item {
        background: #222;
        border-color: #444;
    }

    html.skin-theme-clientpref-night .fst-announce {
        background: #1a2e1a;
        border-color: #2a4a2a;
        color: #aaa;
    }
}