

#legend-float-ball-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 999999;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

#legend-float-ball-container > div {
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

.fubiao-ball {
    position: fixed;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto !important;
    touch-action: none;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 136, 0, 0.6);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
}

.fubiao-ball img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    pointer-events: none;
}

.fubiao-ball.dragging {
    transform: scale(1.12) !important;
    transition: none !important;
    box-shadow: 0 8px 25px rgba(255, 120, 0, 0.8), 0 0 20px rgba(255, 200, 0, 0.9);
}

.fubiao-ball.docked-left.idle {
    opacity: 0.5;
    transform: translateX(-50%);
}

.fubiao-ball.docked-right.idle {
    opacity: 0.5;
    transform: translateX(50%);
}

.fubiao-ball:hover, .fubiao-ball:active {
    opacity: 1 !important;
    transform: translateX(0) scale(1.05) !important;
}

.fubiao-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, #ff4d4f, #cf1322);
    border: 1.5px solid #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 6px #ff4d4f;
    animation: fubiaoPulse 1.8s infinite;
    pointer-events: none;
}

@keyframes fubiaoPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.8); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(255, 77, 79, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 79, 0); }
}

.fubiao-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1000000;
    pointer-events: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fubiaoFadeIn 0.25s ease;
}

@keyframes fubiaoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fubiao-modal {
    width: 90vw;
    max-width: 440px;
    height: 80vh;
    max-height: 580px;
    background: linear-gradient(180deg, #221c17 0%, #15110d 100%);
    border: 2px solid #b8860b;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 215, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #e6dfd5;
    position: relative;
    animation: fubiaoPopUp 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes fubiaoPopUp {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.fubiao-header {
    height: 48px;
    background: linear-gradient(90deg, #382c1e 0%, #1f1811 100%);
    border-bottom: 1px solid #75551c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: relative;
}

.fubiao-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: bold;
    color: #ffde7a;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.fubiao-title-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ffd700;
}

.fubiao-close-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #c4b59d;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.fubiao-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.fubiao-tabs {
    display: flex;
    background: #19140f;
    border-bottom: 1px solid #3d2f1c;
}

.fubiao-tab-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
    color: #9c8e7c;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.fubiao-tab-item.active {
    color: #ffd700;
    font-weight: bold;
    border-bottom: 2px solid #ffd700;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.01) 100%);
}

.fubiao-tab-badge {
    position: absolute;
    top: 6px;
    right: 12%;
    width: 7px;
    height: 7px;
    background: #ff4d4f;
    border-radius: 50%;
}

.fubiao-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.fubiao-body::-webkit-scrollbar {
    width: 4px;
}
.fubiao-body::-webkit-scrollbar-thumb {
    background: #543f20;
    border-radius: 2px;
}

.notice-hero {
    background: linear-gradient(135deg, rgba(82, 59, 29, 0.5) 0%, rgba(38, 27, 14, 0.8) 100%);
    border: 1px solid #75551c;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px;
}

.notice-hero-title {
    color: #ffde7a;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
}

.notice-hero-content {
    font-size: 12px;
    color: #c9bda9;
    line-height: 1.6;
    white-space: pre-line;
}

.notice-list-title {
    font-size: 12px;
    color: #9c8e7c;
    margin-bottom: 8px;
    font-weight: bold;
}

.notice-item {
    background: #1e1711;
    border: 1px solid #3a2c1a;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.notice-item:hover {
    border-color: #8c6a2a;
    background: #271f16;
}

.notice-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: bold;
    color: #f0e6d6;
}

.notice-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
}

.tag-activity { background: #8b0000; color: #ffcccc; }
.tag-cross { background: #004d80; color: #b3e5fc; }
.tag-update { background: #2e5a1e; color: #d4edda; }

.notice-date {
    font-size: 11px;
    color: #7d6e5d;
}

.notice-item-body {
    font-size: 12px;
    color: #a89a87;
    margin-top: 6px;
    line-height: 1.5;
}

.cs-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cs-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
    margin-bottom: 12px;
}

.cs-msg-row {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.cs-msg-row.gm {
    align-self: flex-start;
}

.cs-msg-row.user {
    align-self: flex-end;
}

.cs-sender {
    font-size: 10px;
    color: #8f806e;
    margin-bottom: 3px;
}

.cs-msg-row.user .cs-sender {
    text-align: right;
}

.cs-bubble {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-all;
}

.cs-msg-row.gm .cs-bubble {
    background: #2e2419;
    border: 1px solid #574121;
    color: #ffeedb;
    border-bottom-left-radius: 2px;
}

.cs-msg-row.user .cs-bubble {
    background: linear-gradient(135deg, #a66a1a 0%, #7d490c 100%);
    border: 1px solid #d4af37;
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.cs-input-bar {
    display: flex;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #3d2f1c;
}

.cs-input {
    flex: 1;
    height: 38px;
    background: #110d0a;
    border: 1px solid #574121;
    border-radius: 6px;
    padding: 0 10px;
    color: #ffeedb;
    font-size: 13px;
    outline: none;
}

.cs-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}

.cs-send-btn {
    height: 38px;
    padding: 0 16px;
    background: linear-gradient(180deg, #c49a37 0%, #8c6017 100%);
    border: 1px solid #ffd700;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.cs-send-btn:active {
    transform: scale(0.96);
    background: #754e0f;
}

.group-card {
    background: #1e1711;
    border: 1px solid #4d3a22;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.group-label {
    font-size: 13px;
    color: #c4b59d;
}

.group-val {
    font-size: 15px;
    font-weight: bold;
    color: #ffd700;
    letter-spacing: 1px;
}

.btn-copy {
    padding: 6px 14px;
    background: linear-gradient(180deg, #382c1e 0%, #241b12 100%);
    border: 1px solid #8c6a2a;
    border-radius: 6px;
    color: #ffde7a;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover {
    border-color: #ffd700;
    color: #fff;
}

.group-tip {
    font-size: 11px;
    color: #8c7d6c;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 4px;
}

.cdkey-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cdkey-input {
    height: 44px;
    background: #110d0a;
    border: 1px solid #574121;
    border-radius: 6px;
    padding: 0 12px;
    color: #ffd700;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    outline: none;
    text-align: center;
    letter-spacing: 2px;
}

.cdkey-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.cdkey-btn {
    height: 42px;
    background: linear-gradient(180deg, #d4af37 0%, #8c6017 100%);
    border: 1px solid #ffd700;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.cdkey-btn:active {
    transform: scale(0.97);
}

.cdkey-recs {
    margin-top: 10px;
}

.cdkey-recs-title {
    font-size: 12px;
    color: #9c8e7c;
    margin-bottom: 8px;
}

.cdkey-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cdkey-tag {
    background: #1e1711;
    border: 1px solid #543f20;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    color: #ffde7a;
    cursor: pointer;
    transition: all 0.2s;
}

.cdkey-tag:hover {
    border-color: #ffd700;
    background: #332415;
}

.fubiao-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 15, 10, 0.94);
    border: 1px solid #d4af37;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    color: #ffd700;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    z-index: 1000002;
    pointer-events: none;
    animation: toastAnim 2.2s forwards;
}

@keyframes toastAnim {
    0% { opacity: 0; transform: translate(-50%, -30%); }
    15% { opacity: 1; transform: translate(-50%, -50%); }
    85% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -60%); }
}

.market-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}

.market-user-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #2b2116 0%, #1a140e 100%);
    border: 1px solid #75551c;
    border-radius: 8px;
    padding: 8px 12px;
}

.market-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #ffde7a;
    font-weight: bold;
}

.market-balance-val {
    color: #ffd700;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.market-user-actions {
    display: flex;
    gap: 6px;
}

.btn-market-action {
    padding: 4px 10px;
    background: linear-gradient(180deg, #423321 0%, #291e12 100%);
    border: 1px solid #8c6a2a;
    border-radius: 4px;
    color: #ffd700;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-market-action:hover {
    border-color: #ffd700;
    background: #4a381e;
}

.market-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.market-categories {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.market-categories::-webkit-scrollbar {
    height: 2px;
}

.market-cat-btn {
    padding: 4px 10px;
    background: #1c150f;
    border: 1px solid #4a3721;
    border-radius: 4px;
    color: #9c8e7c;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.market-cat-btn.active {
    color: #ffd700;
    border-color: #ffd700;
    background: linear-gradient(180deg, #42321c 0%, #241a0d 100%);
    font-weight: bold;
}

.market-search-row {
    display: flex;
    gap: 6px;
}

.market-search-input {
    flex: 1;
    height: 32px;
    background: #110d0a;
    border: 1px solid #4a3721;
    border-radius: 4px;
    padding: 0 8px;
    color: #fff;
    font-size: 12px;
    outline: none;
}

.market-search-input:focus {
    border-color: #d4af37;
}

.market-search-btn {
    padding: 0 12px;
    height: 32px;
    background: linear-gradient(180deg, #b8860b 0%, #805b00 100%);
    border: 1px solid #ffd700;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.market-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 2px;
}

.market-card {
    background: linear-gradient(90deg, #221a12 0%, #17110c 100%);
    border: 1px solid #4d3a22;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.market-card:hover {
    border-color: #d4af37;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.market-card.quality-5 {
    border-left: 4px solid #ff4d4f;
}

.market-card.quality-4 {
    border-left: 4px solid #faad14;
}

.market-card-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    margin-right: 10px;
}

.market-card-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: bold;
}

.market-card-title.color-5 {
    color: #ff7875;
}

.market-card-title.color-4 {
    color: #ffc069;
}

.market-card-count {
    font-size: 11px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    padding: 1px 5px;
    border-radius: 3px;
}

.market-card-seller {
    font-size: 11px;
    color: #8c7d6c;
}

.market-card-desc {
    font-size: 11px;
    color: #a89a87;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.market-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 90px;
}

.market-card-price {
    font-size: 14px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.btn-market-buy {
    padding: 5px 14px;
    background: linear-gradient(180deg, #d4af37 0%, #8c6017 100%);
    border: 1px solid #ffd700;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.btn-market-buy:active {
    transform: scale(0.96);
}

.btn-market-buy.sold {
    background: #332b24;
    border-color: #59493c;
    color: #8c7d6c;
    cursor: not-allowed;
}

.market-empty {
    text-align: center;
    color: #7d6e5d;
    padding: 40px 0;
    font-size: 13px;
}

.market-sub-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 14, 11, 0.96);
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding: 16px;
    animation: fubiaoFadeIn 0.2s ease;
}

.market-sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #4a3721;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.market-sub-title {
    font-size: 15px;
    font-weight: bold;
    color: #ffd700;
}

.market-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
}

.market-form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.market-form-label {
    font-size: 12px;
    color: #c4b59d;
}

.market-form-input {
    height: 34px;
    background: #110d0a;
    border: 1px solid #4a3721;
    border-radius: 4px;
    padding: 0 10px;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.market-form-input:focus {
    border-color: #ffd700;
}

.market-tpl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.market-tpl-tag {
    padding: 3px 8px;
    background: #241b12;
    border: 1px solid #543f20;
    border-radius: 3px;
    font-size: 11px;
    color: #ffde7a;
    cursor: pointer;
}

.market-tpl-tag:hover {
    border-color: #ffd700;
}

.btn-market-submit {
    height: 38px;
    background: linear-gradient(180deg, #d4af37 0%, #8c6017 100%);
    border: 1px solid #ffd700;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.market-suggest-box {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #1e1711;
    border: 1px solid #ffd700;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
    max-height: 140px;
    overflow-y: auto;
    z-index: 20;
}

.market-suggest-item {
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #ffde7a;
    cursor: pointer;
    border-bottom: 1px solid #362817;
    transition: background 0.15s;
}

.market-suggest-item:hover {
    background: #3d2c16;
    color: #fff;
}

.market-sug-name {
    font-weight: bold;
}

.market-sug-id {
    color: #8c7d6c;
    font-size: 11px;
}

