打开/关闭菜单
27
6679
47
1.2万
OGAS数据中枢
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

Template:少女前线信息/styles.css:修订间差异

模板页面
弃权者留言 | 贡献
无编辑摘要
秋绘君留言 | 贡献
新的样式
 
(未显示1个用户的24个中间版本)
第1行: 第1行:
/* ===== 基础容器 ===== */
.gf-infobox-new {
.gf-infobox {
     width: 100%;
     float: right !important;
     margin-top: 1em;
    clear: right !important;
     clear: both;
     margin: 1em 0 1em 1em !important;
     box-sizing: border-box;
     border: 1px solid var(--border-color-base, #D0D0D0) !important;
     min-width: 750px;
     width: 280px !important;
    padding: 1px 4px !important;
    background-color: var(--background-color-base, #FAFAFA) !important;
     color: var(--color-base, #222222) !important;
    font-size: 90% !important;
}
}


/* ===== 标题栏 ===== */
.gf-infobox-new *,
.gf-infobox .gf-title {
.gf-infobox-new *::before,
     margin: 3px 0;
.gf-infobox-new *::after {
     padding: 0.5em;
    box-sizing: border-box;
     /* 深色背景,白色文字,在暗色模式下保持高对比度 */
}
     background-color: var(--background-color-dark, #000000);
 
     color: var(--color-inverted, #FFFFFF);
.gf-left-panel {
     font-size: 120%;
    position: relative;
    width: 100%;
    height: 560px;
    overflow: visible;
    border-radius: 8px;
    clip-path: inset(0 round 8px);
    background-image: url('/wiki/Special:FilePath/图鉴背景.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}
 
.gf-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 10px 10px 0 10%;
    position: relative;
}
 
@media screen and (max-width: 600px) {
    .gf-image-container {
        align-items: center;
        padding: 10px;
    }
 
    .gf-main-img,
    .gf-main-img a,
    .gf-main-img img {
        max-width: 85% !important;
    }
}
 
.gf-main-img,
.gf-main-img a,
.gf-main-img img {
    max-width: 85% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}
 
.gf-image-container img {
    transition: opacity 0.3s ease;
}
 
.gf-image-container.loading img {
    filter: grayscale(1) opacity(0.5);
}
 
.gf-controls {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    z-index: 25;
    transition: opacity 0.2s;
}
 
@media screen and (max-width: 600px) {
    .gf-bg-selector {
        font-size: 10px;
        height: 20px;
        padding: 0 4px;
    }
 
    .gf-view-original {
        width: 20px;
        height: 20px;
        background-size: 11px;
    }
}
 
.gf-view-original {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    background-color: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    transition: transform 0.2s, background-color 0.2s;
}
 
.gf-view-original:hover {
    background-color: rgba(0,0,0,0.8);
    transform: scale(1.1);
}
 
.gf-bg-selector {
     height: 32px;
    z-index: 25;
     padding: 0 8px;
    font-size: 12px;
     border-radius: 4px;
     background-color: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    cursor: pointer;
}
 
.gf-bg-selector:focus {
    outline: none;
}
 
.gf-switcher-overlay {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-height: calc(100% - 60px);
    width: 120px;
    transition: opacity 0.2s;
}
 
.gf-switcher-toggle {
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.6);
     border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    align-self: flex-end;
}
 
.gf-switcher-toggle:hover {
    background: rgba(0,0,0,0.85);
}
 
.gf-switcher-toggle::before {
     content: "≡";
     font-weight: bold;
     font-weight: bold;
    text-align: center;
}
}


/* ===== 图片容器 ===== */
 
.gf-infobox .gf-image-container {
 
     margin: 3px 0;
.gf-switcher-list {
     text-align: center;
    display: flex;
     color: var(--color-subtle, #888888);
    flex-direction: column;
     padding: 0;
    align-items: stretch;
     gap: 3px;
    overflow-y: auto;
    touch-action: pan-y;
    transition: opacity 0.2s;
     padding-bottom: 4px;
     max-height: calc(100% - 40px);
}
 
.gf-switcher-overlay.collapsed .gf-switcher-list {
    opacity: 0;
     pointer-events: none;
}
}


.gf-infobox .infobox-image {
@media screen and (max-width: 600px) {
     max-width: 100%;
    .gf-switcher-list {
     height: auto;
        display: none;
     }
    .gf-switcher-overlay.expanded .gf-switcher-list {
        display: flex;
     }
}
}


/* ===== 子标题/分区标题 ===== */
.gf-group-btn {
.gf-infobox .gf-section {
     background: rgba(0,0,0,0.75) !important;
     margin: 3px 0;
     border: 1px solid rgba(255,255,255,0.6) !important;
     padding: 0.2em;
     color: #fff !important;
     /* 中等深色背景,在暗色模式下保持可见性 */
     border-radius: 4px;
     background-color: var(--background-color-darker, #303030);
    padding: 5px 10px;
     color: var(--color-inverted, #FFFFFF);
     cursor: pointer;
    font-size: 13px;
     font-weight: bold;
     font-weight: bold;
     text-align: center;
    transition: background-color 0.2s, border-color 0.2s;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    user-select: none;
     text-align: left;
    width: 100%;
}
 
.gf-group-btn:hover {
    background: rgba(50,50,50,0.85) !important;
    border-color: #fff !important;
}
 
.gf-group-btn.active {
    border-color: #ff8c00 !important;
    box-shadow: 0 0 5px rgba(255,140,0,0.5), 0 2px 4px rgba(0,0,0,0.25);
}
 
.gf-variant-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-left: 8px;
}
 
.gf-variant-list.collapsed {
    display: none;
}
 
.gf-switch-btn {
    background: rgba(0,0,0,0.65) !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    color: #ddd !important;
    border-radius: 3px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    user-select: none;
    text-align: left;
    width: 100%;
}
 
.gf-switch-btn::before {
    content: "·  ";
    opacity: 0.6;
}
 
.gf-switch-btn:hover {
    background: rgba(40,40,40,0.8) !important;
    border-color: #fff !important;
    color: #fff !important;
}
 
.gf-switch-btn.active {
    background: rgba(20,20,20,0.8) !important;
    border-color: #ff8c00 !important;
    border-width: 1px !important;
    color: #fff !important;
    font-weight: normal !important;
    box-shadow: 0 0 4px rgba(255,140,0,0.4), 0 1px 3px rgba(0,0,0,0.2);
}
 
.gf-switch-btn.active::before {
    content: "▶  ";
    opacity: 1;
    color: #ff8c00;
}
 
.gf-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    padding: 48px 16px 14px 16px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.82) 100%);
    pointer-events: none;
    transition: opacity 0.2s;
}
 
.gf-info-overlay > * {
    pointer-events: auto;
}
}


/* ===== 双栏行容器 ===== */
.gf-cv-block {
.gf-infobox .gf-row {
     display: flex;
     display: flex;
     margin: 3px 0;
     flex-direction: column;
    gap: 4px;
}
}


/* ===== 标签栏 ===== */
.gf-cv-row {
.gf-infobox .gf-label {
     display: flex;
     display: flex;
     justify-content: center;
     align-items: stretch;
     align-items: center;
     position: relative;
     flex: 0 0 5em;
     background: rgba(255,255,255,0.12);
     padding: 2px 5px;
     overflow: hidden;
    /* 半深色背景,白色文字,确保标签可读性 */
}
     background-color: var(--background-color-neutral, #454545);
 
     color: var(--color-inverted, #FFFFFF);
.gf-cv-label {
     background: rgba(60,60,60,0.9);
     color: #fff;
    font-size: 11px;
     font-weight: bold;
     font-weight: bold;
     text-align: center;
     padding: 3px 20px 3px 10px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
    white-space: nowrap;
    letter-spacing: 0.08em;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
}


/* ===== 内容栏 ===== */
.gf-cv-value {
.gf-infobox .gf-value {
    background: transparent;
     padding: 2px 2px 2px 7px;
    color: #fff;
    font-size: 11px;
     padding: 3px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
     flex: 1;
     flex: 1;
     color: var(--color-base, #222222);
     max-width: none;
}
}


/* ===== 暗色模式特定样式 ===== */
.gf-stars {
/* Citizen 皮肤在暗色模式下会设置特定的 CSS 变量 */
    margin-bottom: 2px;
/* 以下是为不支持 CSS 变量的情况提供回退 */
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.8));
}


/* 暗色模式:通过 prefers-color-scheme 媒体查询 */
.gf-subname {
@media (prefers-color-scheme: dark) {
    font-size: 12px;
    .gf-infobox {
    color: rgba(255,255,255,0.7);
        border-color: #555555 !important;
     text-shadow: 0 1px 4px rgba(0,0,0,0.9);
        background-color: #1a1a1a !important;
     letter-spacing: 0.08em;
        color: #e0e0e0 !important;
     margin-bottom: 2px;
     }
   
    .gf-infobox .gf-image-container {
        color: #aaaaaa;
    }
   
    .gf-infobox .gf-value {
        color: #e0e0e0 !important;
     }
   
    .gf-infobox .gf-section {
        background-color: #2a2a2a !important;
    }
   
    .gf-infobox .gf-label {
        background-color: #3a3a3a !important;
     }
   
    .gf-infobox .gf-title {
        background-color: #111111 !important;
    }
}
}


/* ===== Citizen 皮肤特定类名适配 ===== */
.gf-profile-wrap {
/* Citizen 皮肤通常会在 body 或 html 上添加特定的类名 */
    position: relative;
/* 如果 Citizen 使用 .skin-citizen-dark 类名标记暗色模式 */
    display: flex;
.skin-citizen-dark .gf-infobox {
    align-items: baseline;
     border-color: #555555 !important;
     gap: 12px;
     background-color: #1a1a1a !important;
     margin-bottom: 10px;
     color: #e0e0e0 !important;
     overflow: hidden;
}
}


.skin-citizen-dark .gf-infobox .gf-image-container {
.gf-name {
     color: #aaaaaa;
    font-size: 36px;
    font-weight: bolder;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.5);
    line-height: 1.1;
    letter-spacing: 0.05em;
    position: relative;
     z-index: 2;
}
}


.skin-citizen-dark .gf-infobox .gf-value {
.gf-profile-watermark {
     color: #e0e0e0 !important;
    font-size: 32px;
    font-weight: 900;
    color: rgba(255,255,255,0.27);
    line-height: 1;
    position: relative;
    z-index: 1;
    user-select: none;
     pointer-events: none;
}
}


.skin-citizen-dark .gf-infobox .gf-section {
.gf-bottom-info {
     background-color: #2a2a2a !important;
     display: flex;
    align-items: center;
    gap: 10px;
}
}


.skin-citizen-dark .gf-infobox .gf-label {
.gf-type-icon {
     background-color: #3a3a3a !important;
     flex-shrink: 0;
}
}


.skin-citizen-dark .gf-infobox .gf-title {
.gf-affiliation {
     background-color: #111111 !important;
     display: flex;
    flex-direction: column;
    gap: 4px;
}
}


/* 如果 Citizen 使用 .skin-citizen-light 类名标记浅色模式 */
.gf-affil-row {
.skin-citizen-light .gf-infobox {
background: linear-gradient(to right, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.15) 60%, transparent 100%);
     border-color: #D0D0D0 !important;
    border: none;
     background-color: #FAFAFA !important;
     border-left: 2px solid rgba(255,255,255,0.25);
     color: #222222 !important;
    color: #fff;
    font-size: 11px;
    padding: 3px 40px 3px 10px;
     white-space: nowrap;
     text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
}


.skin-citizen-light .gf-infobox .gf-image-container {
.gf-main-info-section {
     color: #888888;
     margin-top: 8px;
    border: 1px solid var(--border-color-subtle);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface-0);
}
}


.skin-citizen-light .gf-infobox .gf-value {
.gf-info-table,
     color: #222222 !important;
.gf-bottom-table {
     width: 100%;
    border-collapse: collapse;
    margin: 0 !important;
}
}


.skin-citizen-light .gf-infobox .gf-section {
.gf-label {
     background-color: #303030 !important;
    background: var(--color-surface-2);
    padding: 6px 10px;
    font-weight: bold;
    width: 1px;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color-subtle);
     border-right: 1px solid var(--border-color-subtle);
    color: var(--color-base);
}
}


.skin-citizen-light .gf-infobox .gf-label {
.gf-info-table td,
     background-color: #454545 !important;
.gf-bottom-table td {
     padding: 6px 12px;
    border-bottom: 1px solid var(--border-color-subtle);
    color: var(--color-base);
}
}


.skin-citizen-light .gf-infobox .gf-title {
 
     background-color: #000000 !important;
.gf-marquee {
    display: inline-block;
     white-space: nowrap;
    animation: gf-marquee 8s linear infinite;
}
}


/* ===== Citizen 皮肤 CSS 变量适配 ===== */
.gf-marquee:hover {
/* 如果 Citizen 皮肤提供 CSS 变量,可以直接使用 */
     animation-play-state: paused;
/* 常见的 Citizen 变量名(请根据实际情况调整) */
:root {
     /* 如果 Citizen 有自定义属性,会覆盖这些默认值 */
    --citizen-background-color: #FAFAFA;
    --citizen-color: #222222;
    --citizen-border-color: #D0D0D0;
}
}


/* 使用 Citizen 可能提供的变量 */
@keyframes gf-marquee {
.gf-infobox {
     0%  { transform: translateX(0); }
     background-color: var(--citizen-background-color, var(--background-color-base, #FAFAFA)) !important;
     100% { transform: translateX(-50%); }
     color: var(--citizen-color, var(--color-base, #222222)) !important;
    border-color: var(--citizen-border-color, var(--border-color-base, #D0D0D0)) !important;
}
}


/* ===== 稀有度颜色保持 ===== */
.gf-bottom-section {
/* 稀有度颜色在暗色模式下调整亮度 */
     margin-top: 8px;
@media (prefers-color-scheme: dark) {
     border: 1px solid var(--border-color-subtle);
     /* 稀有度颜色在暗色背景下需要更亮一些 */
     border-radius: 8px;
    .gf-rarity-2 { color: #999999 !important; }
     overflow: hidden;
     .gf-rarity-3 { color: #6699cc !important; }
     background: var(--color-surface-0);
     .gf-rarity-4 { color: #99aa66 !important; }
     .gf-rarity-5 { color: #cc9933 !important; }
     .gf-rarity-6 { color: #cc6644 !important; }
}
}


/* Citizen 暗色模式下的稀有度颜色 */
@media screen and (max-width: 600px) {
.skin-citizen-dark .gf-rarity-2 { color: #999999 !important; }
.gf-infobox-new{
.skin-citizen-dark .gf-rarity-3 { color: #6699cc !important; }
min-width: unset;
.skin-citizen-dark .gf-rarity-4 { color: #99aa66 !important; }
}
.skin-citizen-dark .gf-rarity-5 { color: #cc9933 !important; }
.skin-citizen-dark .gf-rarity-6 { color: #cc6644 !important; }
    .gf-left-panel {
        height: 120vw;
        min-height: 480px;
    }
 
    .gf-main-img,
    .gf-main-img a,
    .gf-main-img img {
        max-width: 100% !important;
    }
 
    .gf-switcher-overlay {
        width: 90px;
    }
 
    .gf-group-btn {
        padding: 6px 8px;
        font-size: 12px;
    }
 
    .gf-switch-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
 
    .gf-name {
        font-size: 20px;
    }
 
    .gf-profile-watermark {
        font-size: 20px;
    }
 
    .gf-info-overlay {
        padding: 32px 10px 8px 10px;
    }
 
    .gf-bottom-info {
        display: grid;
        grid-template-columns: auto auto auto 1fr;
        grid-template-rows: 1fr 1fr auto;
        align-items: stretch;
        gap: 2px 8px;
        width: 100%;
    }
 
    .gf-type-icon {
        grid-column: 1;
        grid-row: 1 / 3;
        display: flex;
        align-items: center;
        justify-content: center;
    }
 
    .gf-cv-block {
        grid-column: 2;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-bottom: 0;
        margin-left: 0;
        gap: 0;
    }
 
    .gf-affiliation {
        grid-column: 3;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-left: 0;
        max-width: none;
    }
 
    .gf-affil-row {
        max-width: none;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-right: 8px;
    }
 
    .gf-controls {
        grid-column: 1 / 5;
        grid-row: 3;
        justify-content: center;
        position: static;
        width: 100%;
        padding-top: 6px;
    }
 
    .gf-stars {
        margin-bottom: 0;
    }
 
    .gf-profile-wrap {
        margin-bottom: 6px;
    }
}

2026年8月9日 (日) 22:03的最新版本

.gf-infobox-new {
    width: 100%;
    margin-top: 1em;
    clear: both;
    box-sizing: border-box;
    min-width: 750px;
}

.gf-infobox-new *,
.gf-infobox-new *::before,
.gf-infobox-new *::after {
    box-sizing: border-box;
}

.gf-left-panel {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: visible;
    border-radius: 8px;
    clip-path: inset(0 round 8px);
    background-image: url('/wiki/Special:FilePath/图鉴背景.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.gf-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 10px 10px 0 10%;
    position: relative;
}

@media screen and (max-width: 600px) {
    .gf-image-container {
        align-items: center;
        padding: 10px;
    }

    .gf-main-img,
    .gf-main-img a,
    .gf-main-img img {
        max-width: 85% !important;
    }
}

.gf-main-img,
.gf-main-img a,
.gf-main-img img {
    max-width: 85% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

.gf-image-container img {
    transition: opacity 0.3s ease;
}

.gf-image-container.loading img {
    filter: grayscale(1) opacity(0.5);
}

.gf-controls {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    z-index: 25;
    transition: opacity 0.2s;
}

@media screen and (max-width: 600px) {
    .gf-bg-selector {
        font-size: 10px;
        height: 20px;
        padding: 0 4px;
    }

    .gf-view-original {
        width: 20px;
        height: 20px;
        background-size: 11px;
    }
}

.gf-view-original {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    background-color: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    transition: transform 0.2s, background-color 0.2s;
}

.gf-view-original:hover {
    background-color: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.gf-bg-selector {
    height: 32px;
    z-index: 25;
    padding: 0 8px;
    font-size: 12px;
    border-radius: 4px;
    background-color: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    cursor: pointer;
}

.gf-bg-selector:focus {
    outline: none;
}

.gf-switcher-overlay {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-height: calc(100% - 60px);
    width: 120px;
    transition: opacity 0.2s;
}

.gf-switcher-toggle {
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    align-self: flex-end;
}

.gf-switcher-toggle:hover {
    background: rgba(0,0,0,0.85);
}

.gf-switcher-toggle::before {
    content: "≡";
    font-weight: bold;
}



.gf-switcher-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    overflow-y: auto;
    touch-action: pan-y;
    transition: opacity 0.2s;
    padding-bottom: 4px;
    max-height: calc(100% - 40px);
}

.gf-switcher-overlay.collapsed .gf-switcher-list {
    opacity: 0;
    pointer-events: none;
}

@media screen and (max-width: 600px) {
    .gf-switcher-list {
        display: none;
    }
    .gf-switcher-overlay.expanded .gf-switcher-list {
        display: flex;
    }
}

.gf-group-btn {
    background: rgba(0,0,0,0.75) !important;
    border: 1px solid rgba(255,255,255,0.6) !important;
    color: #fff !important;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: background-color 0.2s, border-color 0.2s;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    user-select: none;
    text-align: left;
    width: 100%;
}

.gf-group-btn:hover {
    background: rgba(50,50,50,0.85) !important;
    border-color: #fff !important;
}

.gf-group-btn.active {
    border-color: #ff8c00 !important;
    box-shadow: 0 0 5px rgba(255,140,0,0.5), 0 2px 4px rgba(0,0,0,0.25);
}

.gf-variant-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-left: 8px;
}

.gf-variant-list.collapsed {
    display: none;
}

.gf-switch-btn {
    background: rgba(0,0,0,0.65) !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    color: #ddd !important;
    border-radius: 3px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    user-select: none;
    text-align: left;
    width: 100%;
}

.gf-switch-btn::before {
    content: "·  ";
    opacity: 0.6;
}

.gf-switch-btn:hover {
    background: rgba(40,40,40,0.8) !important;
    border-color: #fff !important;
    color: #fff !important;
}

.gf-switch-btn.active {
    background: rgba(20,20,20,0.8) !important;
    border-color: #ff8c00 !important;
    border-width: 1px !important;
    color: #fff !important;
    font-weight: normal !important;
    box-shadow: 0 0 4px rgba(255,140,0,0.4), 0 1px 3px rgba(0,0,0,0.2);
}

.gf-switch-btn.active::before {
    content: "▶  ";
    opacity: 1;
    color: #ff8c00;
}

.gf-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    padding: 48px 16px 14px 16px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.82) 100%);
    pointer-events: none;
    transition: opacity 0.2s;
}

.gf-info-overlay > * {
    pointer-events: auto;
}

.gf-cv-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gf-cv-row {
    display: flex;
    align-items: stretch;
    position: relative;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
}

.gf-cv-label {
    background: rgba(60,60,60,0.9);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 20px 3px 10px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
    white-space: nowrap;
    letter-spacing: 0.08em;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.gf-cv-value {
    background: transparent;
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    flex: 1;
    max-width: none;
}

.gf-stars {
    margin-bottom: 2px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.8));
}

.gf-subname {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.gf-profile-wrap {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.gf-name {
    font-size: 36px;
    font-weight: bolder;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.5);
    line-height: 1.1;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
}

.gf-profile-watermark {
    font-size: 32px;
    font-weight: 900;
    color: rgba(255,255,255,0.27);
    line-height: 1;
    position: relative;
    z-index: 1;
    user-select: none;
    pointer-events: none;
}

.gf-bottom-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gf-type-icon {
    flex-shrink: 0;
}

.gf-affiliation {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gf-affil-row {
	background: linear-gradient(to right, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.15) 60%, transparent 100%);
    border: none;
    border-left: 2px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 11px;
    padding: 3px 40px 3px 10px;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.gf-main-info-section {
    margin-top: 8px;
    border: 1px solid var(--border-color-subtle);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface-0);
}

.gf-info-table,
.gf-bottom-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 !important;
}

.gf-label {
    background: var(--color-surface-2);
    padding: 6px 10px;
    font-weight: bold;
    width: 1px;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color-subtle);
    border-right: 1px solid var(--border-color-subtle);
    color: var(--color-base);
}

.gf-info-table td,
.gf-bottom-table td {
    padding: 6px 12px;
    border-bottom: 1px solid var(--border-color-subtle);
    color: var(--color-base);
}


.gf-marquee {
    display: inline-block;
    white-space: nowrap;
    animation: gf-marquee 8s linear infinite;
}

.gf-marquee:hover {
    animation-play-state: paused;
}

@keyframes gf-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.gf-bottom-section {
    margin-top: 8px;
    border: 1px solid var(--border-color-subtle);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface-0);
}

@media screen and (max-width: 600px) {
	.gf-infobox-new{
		min-width: unset;
	}
	
    .gf-left-panel {
        height: 120vw;
        min-height: 480px;
    }

    .gf-main-img,
    .gf-main-img a,
    .gf-main-img img {
        max-width: 100% !important;
    }

    .gf-switcher-overlay {
        width: 90px;
    }

    .gf-group-btn {
        padding: 6px 8px;
        font-size: 12px;
    }

    .gf-switch-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .gf-name {
        font-size: 20px;
    }

    .gf-profile-watermark {
        font-size: 20px;
    }

    .gf-info-overlay {
        padding: 32px 10px 8px 10px;
    }

    .gf-bottom-info {
        display: grid;
        grid-template-columns: auto auto auto 1fr;
        grid-template-rows: 1fr 1fr auto;
        align-items: stretch;
        gap: 2px 8px;
        width: 100%;
    }

    .gf-type-icon {
        grid-column: 1;
        grid-row: 1 / 3;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gf-cv-block {
        grid-column: 2;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-bottom: 0;
        margin-left: 0;
        gap: 0;
    }

    .gf-affiliation {
        grid-column: 3;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-left: 0;
        max-width: none;
    }

    .gf-affil-row {
        max-width: none;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-right: 8px;
    }

    .gf-controls {
        grid-column: 1 / 5;
        grid-row: 3;
        justify-content: center;
        position: static;
        width: 100%;
        padding-top: 6px;
    }

    .gf-stars {
        margin-bottom: 0;
    }

    .gf-profile-wrap {
        margin-bottom: 6px;
    }
}