MediaWiki:Common.css:修订间差异

来自勿忘草与永远的少女
跳到导航跳到搜索
Admin留言 | 贡献
无编辑摘要
标签手工回退
Admin留言 | 贡献
无编辑摘要
 
(未显示同一用户的65个中间版本)
第480行: 第480行:
}
}


/* 更新公告容器 - 在 flex 中占 1/3 */
/* ========== 更新公告卡片 - 改成和兑换中心一样的风格 ========== */
.custom-homepage .update-card {
.custom-homepage .update-card {
     flex: 1;
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-width: 280px;
    background: #f8f9fa;
     border-radius: 12px;
     border-radius: 12px;
     padding: 20px;
     padding: 20px;
    color: white;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
     margin-bottom: 0;
     margin-bottom: 0;
}
}


/* 更新公告内部样式 */
/* 更新公告内部文字颜色改为白色(除标题外) */
.custom-homepage .update-card h3 {
.custom-homepage .update-card .update-item,
    margin-top: 0;
.custom-homepage .update-card .update-item strong,
     padding-bottom: 8px;
.custom-homepage .update-card .update-link a {
    border-bottom: 2px solid #36c;
     color: white;
  font-size: 18px;
}
}
 
.custom-homepage .update-card .update-item {
.custom-homepage .update-item {
     font-size: 18px;
     margin: 12px 0;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
}


.custom-homepage .update-link {
/* 更新公告列表项分隔线颜色适配深色背景 */
     margin-top: 12px;
.custom-homepage .update-card .update-item {
     border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
}


.custom-homepage .update-link a {
/* 更新公告内的链接样式(白色带透明,悬停变亮) */
     color: #36c;
.custom-homepage .update-card .update-link a {
     opacity: 0.9;
     text-decoration: none;
     text-decoration: none;
}
.custom-homepage .update-card .update-link a:hover {
    opacity: 1;
    text-decoration: underline;
}
}


.custom-homepage .update-link a:hover {
/* 关键:保留更新公告标题的渐变色(紫蓝渐变) */
     text-decoration: underline;
.custom-homepage .update-card h3 {
    margin-top: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ffd89b, #c7e9fb);
    -webkit-background-clip: text;
     background-clip: text;
    color: transparent;
    display: inline-block;
    font-size: 24px;
}
}
/* ========== 更新公告卡片样式结束 ========== */


/* 兑换码卡片 */
/* 兑换码卡片 */
第581行: 第594行:
         gap: 12px !important;
         gap: 12px !important;
     }
     }
}
/* ========== 角色卡片样式(左右两栏布局) ========== */
.role-infobox {
    display: flex;
    flex-wrap: wrap;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 1em auto;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    font-size: 90%;
}
.role-infobox .card-left {
    flex: 2;
    padding: 12px;
    background: #fff;
}
.role-infobox .card-right {
    flex: 1;
    background: #f0f0f0;
    text-align: center;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.role-infobox .card-name {
    font-size: 1.2em;
    font-weight: bold;
    background: #2c3e50;
    color: white;
    padding: 8px;
    margin: -12px -12px 12px -12px;
    border-radius: 0;
}
.role-infobox .card-image {
    text-align: center;
}
.role-infobox .card-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}
.role-infobox .card-row {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}
.role-infobox .card-label {
    width: 85px;
    font-weight: bold;
    color: #2c3e50;
    flex-shrink: 0;
}
/* 普通字段容器:左对齐,自动换行 */
.role-infobox .card-value {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}
/* 角色技能行:水平+垂直居中 */
.role-infobox .skill-value {
    display: flex;
    align-items: center;      /* 垂直居中 */
    justify-content: center;  /* 水平居中 */
    text-align: center;
}
/* 移动端适配 */
@media (max-width: 500px) {
    .role-infobox {
        flex-direction: column;
        max-width: 100%;
    }
    .role-infobox .card-name {
        margin-top: 0;
    }
}
/* ========== 装备卡片样式 ========== */
.equipment-infobox {
    display: flex;
    flex-wrap: wrap;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 1em auto;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    font-size: 90%;
}
.equipment-infobox .equip-left {
    flex: 2;
    padding: 12px;
    background: #fff;
}
.equipment-infobox .equip-right {
    flex: 1;
    background: #f0f0f0;
    text-align: center;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.equipment-infobox .equip-name {
    font-size: 1.2em;
    font-weight: bold;
    background: #2c3e50;
    color: white;
    padding: 8px;
    margin: -12px -12px 12px -12px;
    border-radius: 0;
}
.equipment-infobox .equip-image {
    text-align: center;
}
.equipment-infobox .equip-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}
.equipment-infobox .equip-row {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}
.equipment-infobox .equip-label {
    width: 85px;
    font-weight: bold;
    color: #2c3e50;
    flex-shrink: 0;
}
.equipment-infobox .equip-value {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}
/* 移动端适配 */
@media (max-width: 500px) {
    .equipment-infobox {
        flex-direction: column;
        max-width: 100%;
    }
    .equipment-infobox .equip-name {
        margin-top: 0;
    }
}
/*棋子图鉴*/
/* 修复 Cargo 动态表格图片遮挡问题 */
.cargoDynamicTable td:first-child {
    width: 70px;
    text-align: center;
    vertical-align: middle;
}
.cargoDynamicTable td:first-child img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}
/* 确保其他列正常换行 */
.cargoDynamicTable td {
    word-break: break-word;
}
/* 常用内容标题区域 - 半透明效果 */
.custom-homepage .left-column > div:first-of-type {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(3px);
    border-radius: 12px;
    padding: 8px 15px;
    display: inline-block;
    margin-bottom: 20px;
}
/* 让图片本身的白色背景变透明(混合模式) */
.custom-homepage .left-column > div:first-of-type img {
    mix-blend-mode: multiply;
    opacity: 0.9;
    display: block;
}
/* 隐藏侧边栏的“工具”菜单 */
#p-tb {
    display: none;
}
/* 首页角色画廊文字:渐变 + 加粗(针对纯文本) */
.character-section .gallerybox .gallerytext {
    display: inline-block;
    background: linear-gradient(135deg, #9b30ff, #1e90ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
}
/* 直播间卡片底部控件 - 箭头 + 圆点 */
#live-controls {
    display: flex !important;
    justify-content: center !important;  /* 整体居中 */
    align-items: center !important;
    gap: 8px !important;                /* 缩小箭头与圆点间距,更贴 */
}
}

2026年5月21日 (四) 20:15的最新版本

/* ========== 隐藏页面主标题 ========== */
.firstHeading, 
#firstHeading,
.mw-page-title-main,
h1.firstHeading {
    display: none !important;
}

/* 调整内容区域上边距,弥补标题隐藏后的空白 */
.mw-body,
content {
    padding-top: 0 !important;
}

/* ========== 自定义浏览器和内容区域背景 ========== */

/* 1. 整个页面的背景(浏览器背景) */
html, body {
    background: url('/wikibg/1.jpg') fixed center center no-repeat !important;
    background-size: cover !important;
    min-height: 100vh;
}

/* 2. 主内容区域的背景(白色半透明,让背景图片透出来) */
.mw-body,
#content,
.mw-body-content {
    background: transparent !important;
    backdrop-filter: none;
}

/* 3. 侧边栏背景(如果启用) */
#mw-panel,
.vector-menu-portal {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(5px);
    border-radius: 8px;
    margin: 10px !important;
    padding: 10px !important;
}

/* 4. 侧边栏文字颜色(深色背景时使用) */
#mw-panel .vector-menu-heading,
#mw-panel .vector-menu-content li a {
    color: white !important;
}

/* 5. 内容区域文字颜色(可选) */
.mw-body-content {
    color: #333 !important;
}

/* 6. 内容区域链接颜色 */
.mw-body-content a {
    color: #3366cc !important;
}
.mw-body-content a:visited {
    color: #6633cc !important;
}

/* 7. 表格样式优化(适配半透明背景) */
.wikitable,
.mw-datatable {
    background: rgba(255, 255, 255, 0.95) !important;
}

/* ========== 固定顶部导航栏 ========== */
.fixed-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
    background-color: rgba(26, 26, 46, 0.95);
}

/* Logo 区域 */
.fixed-top-nav .nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.fixed-top-nav .nav-logo:hover {
    transform: scale(1.03);
}

.fixed-top-nav .nav-logo img {
    max-height: 45px;
    width: auto;
    margin-right: 12px;
}

.fixed-top-nav .nav-logo span {
    color: white;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fff, #a0a0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 导航链接容器 */
.fixed-top-nav .nav-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* 导航链接样式(卡片风格) */
.fixed-top-nav .nav-link {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(5px);
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,0.2);
}

.fixed-top-nav .nav-link:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

/* 调整页面主体,避免被导航栏遮挡 */
body {
    padding-top: 65px !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .fixed-top-nav {
        flex-direction: column;
        padding: 8px 15px;
    }
    
    .fixed-top-nav .nav-logo {
        margin-bottom: 8px;
    }
    
    .fixed-top-nav .nav-logo img {
        max-height: 35px;
    }
    
    .fixed-top-nav .nav-logo span {
        font-size: 16px;
    }
    
    .fixed-top-nav .nav-links {
        justify-content: center;
        gap: 8px;
    }
    
    .fixed-top-nav .nav-link {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    body {
        padding-top: 85px !important;
    }
}

/* 可选:滚动时增强效果 */
.fixed-top-nav.scrolled {
    background: rgba(26, 26, 46, 0.98);
    padding: 5px 20px;
    transition: all 0.3s ease;
}



/* 强制隐藏 Vector 皮肤的 Logo */
.mw-logo,
#p-logo,
#p-logo a,
.mw-logo-container,
.mw-logo-wordmark {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}

/* 如果使用 Vector 2022 皮肤 */
.vector-logo-container,
.vector-logo-wordmark {
    display: none !important;
}

.left-column table {
    border-collapse: collapse;
}
.left-column th, .left-column td {
    padding: 8px 12px;
    border: 1px solid #ddd;
}
/* 隐藏左侧导航栏中的默认 Logo */
#p-logo {
    display: none !important;
}

/* 同时隐藏左侧导航栏(如果需要完全移除侧边栏) */
/* #mw-panel {
    display: none !important;
} */

/* 调整主内容区域宽度,补偿隐藏侧边栏后的空间 */
/* .mw-body {
    margin-left: 0 !important;
} */

/* ========== 固定自带页脚在浏览器底部 ========== */

/* 将页脚固定在底部 */
#footer,
.mw-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    padding: 10px 20px !important;
    margin: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* 页脚内部链接样式 */
#footer a,
.mw-footer a {
    color: #fff !important;
    text-decoration: none !important;
    opacity: 0.8;
    transition: opacity 0.2s;
}

#footer a:hover,
.mw-footer a:hover {
    opacity: 1 !important;
    text-decoration: underline !important;
}

/* 页脚文字颜色 */
#footer li,
.mw-footer li {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* 调整页面底部边距,避免内容被固定页脚遮挡 */
body {
    padding-bottom: 60px !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    #footer,
    .mw-footer {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    body {
        padding-bottom: 50px !important;
    }
}


/* ========== 自定义首页样式 ========== */

/* 首页容器 */
.custom-homepage {
    max-width: 1400px;
    margin: 0 auto;
}

/* 横幅区域 */

/* 顶部行布局 - 横幅 + 更新公告并排 */
.custom-homepage .top-row {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
/* 横幅容器 - 在 flex 中占 2/3 */
.custom-homepage .hero-banner {
    flex: 2;
    min-width: 250px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 0;
}

/* 横幅图片 */
.custom-homepage .hero-banner img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain;  /* 完整显示图片,不裁剪 */
    border-radius: 12px;
}

/* 两栏布局 */
.custom-homepage .two-columns {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.custom-homepage .left-column {
    flex: 2;
    min-width: 250px;
}

.custom-homepage .right-column {
    flex: 1;
    min-width: 280px;
}

/* ========== 四个图片卡片 ========== */
.custom-homepage .feature-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* 固定四列,宽度均分 */
    gap: 20px;
    margin-bottom: 40px;
}

/* 卡片链接 */
.custom-homepage .feature-card-link {
    display: block;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.custom-homepage .feature-card-link:hover {
    transform: translateY(-5px);
}

/* 卡片容器 */
.custom-homepage .feature-card {
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-homepage .feature-card-link:hover .feature-card {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 卡片内的图片 */
.custom-homepage .feature-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 卡片颜色主题(作为背景备用) */
.custom-homepage .card-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.custom-homepage .card-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.custom-homepage .card-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.custom-homepage .card-green {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .custom-homepage .feature-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

/* 角色一览区域 */
.custom-homepage .character-section {
    margin-top: 30px;
}

.custom-homepage .character-section h2 {
    border-left: 4px solid #36c;
    padding-left: 15px;
    margin-bottom: 20px;
}

.custom-homepage .character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.custom-homepage .character-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.custom-homepage .character-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.custom-homepage .character-card .avatar {
    font-size: 64px;
    margin-bottom: 8px;
}

.custom-homepage .character-card a {
    font-weight: bold;
    text-decoration: none;
    color: #333;
    display: block;
}

.custom-homepage .character-card .rarity {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.custom-homepage .view-all {
    text-align: center;
    margin-top: 20px;
}

.custom-homepage .view-all a {
    display: inline-block;
    padding: 8px 24px;
    background: #36c;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s;
}

.custom-homepage .view-all a:hover {
    background: #2a4ca6;
}

/* ========== 更新公告卡片 - 改成和兑换中心一样的风格 ========== */
.custom-homepage .update-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

/* 更新公告内部文字颜色改为白色(除标题外) */
.custom-homepage .update-card .update-item,
.custom-homepage .update-card .update-item strong,
.custom-homepage .update-card .update-link a {
    color: white;
   font-size: 18px;
}
.custom-homepage .update-card .update-item {
    font-size: 18px;
}

/* 更新公告列表项分隔线颜色适配深色背景 */
.custom-homepage .update-card .update-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 更新公告内的链接样式(白色带透明,悬停变亮) */
.custom-homepage .update-card .update-link a {
    opacity: 0.9;
    text-decoration: none;
}
.custom-homepage .update-card .update-link a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 关键:保留更新公告标题的渐变色(紫蓝渐变) */
.custom-homepage .update-card h3 {
    margin-top: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ffd89b, #c7e9fb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
     font-size: 24px;
}
/* ========== 更新公告卡片样式结束 ========== */

/* 兑换码卡片 */
.custom-homepage .redeem-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
}

.custom-homepage .redeem-card h3 {
    margin-top: 0;
    color: white;
}

.custom-homepage .code-box {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    text-align: center;
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 2px;
}

.custom-homepage .redeem-info {
    font-size: 13px;
    opacity: 0.9;
}

.custom-homepage .redeem-btn {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 6px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: transform 0.2s;
}

.custom-homepage .redeem-btn:hover {
    transform: scale(1.02);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .custom-homepage .feature-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .custom-homepage .feature-card {
        padding: 15px 10px !important;
    }
    
    .custom-homepage .feature-card .icon {
        font-size: 32px !important;
    }
    
    .custom-homepage .character-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}
/* ========== 角色卡片样式(左右两栏布局) ========== */
.role-infobox {
    display: flex;
    flex-wrap: wrap;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 1em auto;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    font-size: 90%;
}

.role-infobox .card-left {
    flex: 2;
    padding: 12px;
    background: #fff;
}

.role-infobox .card-right {
    flex: 1;
    background: #f0f0f0;
    text-align: center;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.role-infobox .card-name {
    font-size: 1.2em;
    font-weight: bold;
    background: #2c3e50;
    color: white;
    padding: 8px;
    margin: -12px -12px 12px -12px;
    border-radius: 0;
}

.role-infobox .card-image {
    text-align: center;
}
.role-infobox .card-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.role-infobox .card-row {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}
.role-infobox .card-label {
    width: 85px;
    font-weight: bold;
    color: #2c3e50;
    flex-shrink: 0;
}

/* 普通字段容器:左对齐,自动换行 */
.role-infobox .card-value {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* 角色技能行:水平+垂直居中 */
.role-infobox .skill-value {
    display: flex;
    align-items: center;      /* 垂直居中 */
    justify-content: center;  /* 水平居中 */
    text-align: center;
}

/* 移动端适配 */
@media (max-width: 500px) {
    .role-infobox {
        flex-direction: column;
        max-width: 100%;
    }
    .role-infobox .card-name {
        margin-top: 0;
    }
}
/* ========== 装备卡片样式 ========== */
.equipment-infobox {
    display: flex;
    flex-wrap: wrap;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 1em auto;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    font-size: 90%;
}

.equipment-infobox .equip-left {
    flex: 2;
    padding: 12px;
    background: #fff;
}

.equipment-infobox .equip-right {
    flex: 1;
    background: #f0f0f0;
    text-align: center;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.equipment-infobox .equip-name {
    font-size: 1.2em;
    font-weight: bold;
    background: #2c3e50;
    color: white;
    padding: 8px;
    margin: -12px -12px 12px -12px;
    border-radius: 0;
}

.equipment-infobox .equip-image {
    text-align: center;
}
.equipment-infobox .equip-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.equipment-infobox .equip-row {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

.equipment-infobox .equip-label {
    width: 85px;
    font-weight: bold;
    color: #2c3e50;
    flex-shrink: 0;
}

.equipment-infobox .equip-value {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* 移动端适配 */
@media (max-width: 500px) {
    .equipment-infobox {
        flex-direction: column;
        max-width: 100%;
    }
    .equipment-infobox .equip-name {
        margin-top: 0;
    }
}
/*棋子图鉴*/
/* 修复 Cargo 动态表格图片遮挡问题 */
.cargoDynamicTable td:first-child {
    width: 70px;
    text-align: center;
    vertical-align: middle;
}
.cargoDynamicTable td:first-child img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}
/* 确保其他列正常换行 */
.cargoDynamicTable td {
    word-break: break-word;
}
/* 常用内容标题区域 - 半透明效果 */
.custom-homepage .left-column > div:first-of-type {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(3px);
    border-radius: 12px;
    padding: 8px 15px;
    display: inline-block;
    margin-bottom: 20px;
}
/* 让图片本身的白色背景变透明(混合模式) */
.custom-homepage .left-column > div:first-of-type img {
    mix-blend-mode: multiply;
    opacity: 0.9;
    display: block;
}
/* 隐藏侧边栏的“工具”菜单 */
#p-tb {
    display: none;
}


/* 首页角色画廊文字:渐变 + 加粗(针对纯文本) */
.character-section .gallerybox .gallerytext {
    display: inline-block;
    background: linear-gradient(135deg, #9b30ff, #1e90ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    text-decoration: none;
     font-size: 18px;
}
/* 直播间卡片底部控件 - 箭头 + 圆点 */
#live-controls {
    display: flex !important;
    justify-content: center !important;   /* 整体居中 */
    align-items: center !important;
    gap: 8px !important;                 /* 缩小箭头与圆点间距,更贴 */
}