/* v1v2_toggle_banner.css  顶部 v1↔v2 切换横幅样式
 *
 * 调用方：list_order_send_*.php + _v1v2_toggle_banner.php
 * 加载：在 PageHeader 初始化后，renderTop() 之前调用 addCSS()
 *       $header->addCSS('/funnystore/css/v1v2_toggle_banner.css');
 */

.v1v2-toggle-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
    text-align: center;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    /* 默认 v1=绿（在渲染器里覆盖） */
    background: #dcfce7;
    color: #166534;
    border-bottom-color: #16a34a;
}

/* v2 主题（在 _v1v2_toggle_banner.php 渲染器里通过 modifier class 切换） */
.v1v2-toggle-banner.v1v2-v2 {
    background: #dbeafe;
    color: #1e40af;
    border-bottom-color: #2563eb;
}

.v1v2-toggle-banner .v1v2-cur {
    font-weight: bold;
}

.v1v2-toggle-banner a.v1v2-link {
    color: inherit;
    text-decoration: underline;
    font-weight: bold;
    margin: 0 4px;
}

.v1v2-toggle-banner a.v1v2-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.v1v2-toggle-banner .v1v2-sep {
    color: inherit;
    opacity: 0.5;
    margin: 0 6px;
}
