* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.app-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 左上角漂浮区�?*/
.floating-header {
    position: fixed;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 100;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.app-home-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.app-title svg {
    flex-shrink: 0;
}

.float-buttons-left {
    display: flex;
    gap: 8px;
}

.float-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 0;
    margin: 0;
}

.float-btn:hover {
    background: rgba(50, 50, 50, 0.9);
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.float-btn:active {
    transform: scale(0.94);
}

/* 右上角漂浮按�?*/
.float-buttons-right {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
}

.main-content {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
}

.canvas-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
}

#mindmap-canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

#mindmap-canvas:active {
    cursor: grabbing;
}

.zoom-controls {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
    padding: 0;
}

.zoom-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.zoom-btn:hover {
    background: rgba(50, 50, 50, 0.9);
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.zoom-btn:active {
    transform: scale(0.94);
}

.hint-text {
    position: absolute;
    bottom: 24px;
    right: 90px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.hint-text .shortcuts {
    color: rgba(255, 255, 255, 0.4);
}

.hint-text .copyright {
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: color 0.2s ease;
}

.hint-text .copyright:hover {
    color: rgba(255, 255, 255, 0.4);
}

.hint-text .copyright a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
}

.hint-text .copyright:hover a {
    color: rgba(255, 255, 255, 0.5);
}

.author-popup {
    position: absolute;
    bottom: 70px;
    right: 90px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    min-width: 280px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-popup.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.author-popup-content h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.author-popup-content p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.author-popup-content .author-contact {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.context-menu {
    position: fixed;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 6px;
    min-width: 180px;
    z-index: 1000;
    display: none;
}

.context-menu.show {
    display: block;
    animation: menuFadeIn 0.12s ease;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.menu-item {
    padding: 10px 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.12s ease;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.menu-item svg {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.12s ease;
}

.menu-item:hover svg {
    opacity: 0.9;
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 8px;
}

.menu-danger {
    color: rgba(255, 69, 58, 0.7);
}

.menu-danger:hover {
    background: rgba(255, 69, 58, 0.12);
    color: #ff453a;
}

.menu-danger:hover svg {
    opacity: 1;
}

.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 14px;
    color: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .floating-header {
        top: 10px;
        left: 10px;
        gap: 8px;
    }

    .app-title {
        font-size: 14px;
        gap: 4px;
    }

    .app-title img {
        width: 22px;
        height: 22px;
    }

    .float-buttons-left {
        gap: 4px;
    }

    .float-btn {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .float-buttons-right {
        top: 10px;
        right: 10px;
        gap: 4px;
    }

    .upgrade-btn {
        padding: 0 10px;
        font-size: 11px;
        gap: 4px;
    }

    .upgrade-btn .btn-text {
        display: none;
    }

    .upgrade-btn-badge {
        font-size: 8px;
        padding: 1px 5px;
        top: -5px;
        right: -5px;
    }

    .zoom-controls {
        bottom: 16px;
        right: 16px;
        gap: 6px;
    }

    .zoom-btn {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 16px;
    }

    .hint-text {
        display: none;
    }

    .list-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2000;
        border-radius: 0;
        border-right: none;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .list-panel:not(.collapsed) {
        transform: translateX(0);
    }

    .list-panel.collapsed {
        transform: translateX(-100%);
    }

    .list-panel-header {
        padding: 14px 16px;
    }

    .list-panel-body {
        padding: 12px;
    }

    .mindmap-item {
        padding: 12px 14px;
    }

    .color-panel {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 80vh;
        overflow-y: auto;
    }

    .color-panel-body {
        padding: 0 16px 20px;
    }

    .upgrade-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 20px 20px 0 0;
        padding: 28px 20px 24px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        animation: modalSlideUp 0.3s ease;
    }

    @keyframes modalSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .upgrade-plans {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .upgrade-plan {
        padding: 16px;
    }

    .upgrade-plan-price {
        font-size: 26px;
    }

    .upgrade-header h2 {
        font-size: 20px;
    }

    .auth-modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 24px 20px 20px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 85vh;
        animation: modalSlideUp 0.3s ease;
    }

    .auth-header h2 {
        font-size: 20px;
    }

    .auth-icon {
        width: 48px;
        height: 48px;
    }

    .context-menu {
        min-width: 180px;
    }

    .context-menu-item {
        padding: 12px 16px;
        font-size: 14px;
    }

    .toast {
        max-width: 90vw;
        font-size: 13px;
        padding: 12px 20px;
    }

    .node-edit-input {
        font-size: 16px;
        min-width: 80px;
    }

    .author-popup {
        right: 16px;
        bottom: 80px;
        min-width: 240px;
    }

    .confirm-dialog {
        width: 90vw;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .floating-header {
        top: 8px;
        left: 8px;
        gap: 4px;
    }

    .brand-text {
        display: none;
    }

    .float-btn {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .float-buttons-right {
        top: 8px;
        right: 8px;
        gap: 3px;
    }

    .zoom-btn {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .zoom-controls {
        bottom: 12px;
        right: 12px;
        gap: 4px;
    }

    .upgrade-plan-price {
        font-size: 22px;
    }

    .upgrade-header h2 {
        font-size: 18px;
    }

    .auth-header h2 {
        font-size: 18px;
    }
}

.color-panel {
    position: fixed;
    top: 80px;
    right: 24px;
    background: rgba(28, 28, 28, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    z-index: 900;
    width: 290px;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.color-panel.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.color-panel-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 16px 10px;
    position: relative;
}

.color-panel-header span {
    font-size: 14px;
    font-weight: 600;
    color: #f5f5f5;
    letter-spacing: -0.3px;
}

.color-panel-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    color: #a0a0a0;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

.color-panel-close:hover {
    background: rgba(255, 107, 107, 0.18);
    color: #ff6b6b;
    transform: translateY(-50%) scale(1.08);
}

.color-panel-close:active {
    transform: translateY(-50%) scale(0.95);
}

.color-panel-body {
    padding: 0 12px 12px;
}

.color-mode-section {
    margin-bottom: 12px;
}

.color-mode-section label {
    display: block;
    font-size: 11px;
    color: #b8b8b8;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.color-mode-toggle {
    display: flex;
    gap: 6px;
}

.mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 8px;
    color: #989898;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #c0c0c0;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mode-btn:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.12);
}

.mode-btn.active {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.mode-btn svg {
    flex-shrink: 0;
}

.layout-section {
    margin-bottom: 12px;
}

.layout-section label {
    display: block;
    font-size: 11px;
    color: #b8b8b8;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.layout-toggle {
    display: flex;
    gap: 6px;
}

.layout-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    color: #c0c0c0;
    font-size: 12px;
    transform-origin: center;
}

.layout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.layout-btn:active {
    transform: scale(0.96);
}

.layout-btn.active {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    border-color: rgba(59, 130, 246, 0.3);
}

.layout-btn svg {
    flex-shrink: 0;
}

.theme-section {
    margin-bottom: 12px;
}

.theme-section label {
    display: block;
    font-size: 11px;
    color: #b8b8b8;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.theme-preset {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.theme-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.theme-btn:active {
    transform: translateY(0) scale(0.96);
    background: rgba(255, 255, 255, 0.14);
}

.theme-colors {
    display: flex;
    gap: 3px;
}

.theme-colors span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.theme-name {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.color-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    transition: all 0.2s ease;
    margin: 0 -6px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 10px;
}

.color-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.color-item:last-child {
    border-bottom: none;
}

.color-item label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.color-item input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    width: 42px;
    height: 42px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.04);
    padding: 0;
    outline: none;
}

.color-item input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 3px;
}

.color-item input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

.color-item input[type="color"]:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(59, 130, 246, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.color-item input[type="color"]:focus-visible {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.4);
}

.color-item input[type="color"]:active {
    transform: scale(0.95);
}

.transparent-btn {
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.transparent-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.08);
}

.transparent-btn:active {
    transform: scale(0.95);
}

.lang-section {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lang-section label {
    display: block;
    font-size: 11px;
    color: #b8b8b8;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.lang-toggle {
    display: flex;
    gap: 6px;
}

.lang-btn {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #b8b8b8;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.lang-btn.active {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    border-color: rgba(59, 130, 246, 0.3);
}

.navbar-right .nav-btn.color-btn {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
}

.navbar-right .nav-btn.color-btn:hover {
    background: rgba(7, 193, 96, 0.25);
}

.list-panel {
    position: absolute;
    left: 16px;
    top: 80px;
    bottom: 92px;
    width: 320px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    z-index: 900;
}

.list-panel.collapsed {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

.list-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px 10px;
}

.list-panel-header span {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

.list-panel-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: 10px;
    color: #999;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-panel-toggle:hover {
    background: rgba(50, 50, 50, 0.9);
    color: #ffffff;
    transform: scale(1.05);
}

.list-panel-toggle:active {
    transform: scale(0.95);
}

.list-panel-body {
    flex: 1;
    padding: 10px 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.06) transparent;
}

.list-panel-body::-webkit-scrollbar {
    width: 4px;
}

.list-panel-body::-webkit-scrollbar-track {
    background: transparent;
}

.list-panel-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    transition: background 0.2s ease;
}

.list-panel-body:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
}

.list-panel-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.list-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    margin-bottom: 14px;
}

.mindmap-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: transparent;
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 6px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-action-btn:hover {
    background: rgba(50, 50, 50, 0.9);
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.03);
}

.list-action-btn:active {
    transform: scale(0.97);
    background: rgba(60, 60, 60, 0.95);
}

.mindmap-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.06) transparent;
}

.mindmap-list::-webkit-scrollbar {
    width: 4px;
}

.mindmap-list::-webkit-scrollbar-track {
    background: transparent;
}

.mindmap-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    transition: background 0.2s ease;
}

.mindmap-list:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
}

.mindmap-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mindmap-list-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    padding: 20px 0;
}

.mindmap-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: transparent;
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.mindmap-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mindmap-item.active {
    background: rgba(255, 255, 255, 0.08);
}

.mindmap-item-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    transition: all 0.2s ease;
    position: relative;
}

.mindmap-item-checkbox:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mindmap-item-checkbox:active {
    transform: scale(0.88);
}

.mindmap-item-checkbox:checked {
    background: #34c759;
    animation: checkPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mindmap-item-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -55%) rotate(45deg);
    opacity: 1;
}

@keyframes checkPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

.mindmap-item-content {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
}

.mindmap-item-name {
    font-size: 14px;
    color: #e5e5e5;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mindmap-item-delete {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mindmap-item:hover .mindmap-item-delete {
    opacity: 1;
    color: #ff6b6b;
}

.mindmap-item-delete:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: scale(1.1);
}

.mindmap-item-delete:active {
    transform: scale(0.95);
}

.mindmap-item.selected {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.mindmap-item-delete:hover {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6464;
}

.node-edit-input {
    position: fixed;
    border: none;
    border-radius: 12px;
    outline: none;
    background: transparent;
    color: inherit;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    padding: 0;
    margin: 0;
    z-index: 1000;
    display: none;
    caret-color: #ffffff;
    -webkit-user-select: text;
    user-select: text;
    word-break: keep-all;
}

.node-edit-input::selection {
    background: rgba(100, 150, 255, 0.5);
    color: #ffffff;
}

.node-edit-input::-moz-selection {
    background: rgba(100, 150, 255, 0.5);
    color: #ffffff;
}

/* ========== 登录弹窗 ========== */
.auth-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.auth-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-content {
    position: relative;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 28px 24px 20px;
    width: 380px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-modal.active .auth-modal-content {
    transform: translateY(0) scale(1);
}

.auth-view {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
}

.auth-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.auth-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.auth-field input {
    padding: 14px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.auth-field input:focus {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.auth-submit {
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
    letter-spacing: 0.3px;
    font-family: inherit;
}

.auth-submit:hover {
    background: rgba(255, 255, 255, 0.18);
}

.auth-submit:active {
    transform: scale(0.98);
}

.auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.auth-error {
    color: #ff4757;
    font-size: 13px;
    text-align: center;
    min-height: 20px;
    line-height: 20px;
    padding: 2px 0;
}

.auth-links {
    text-align: center;
    margin-top: -4px;
}

.auth-link {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.auth-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.auth-footer-sep {
    color: rgba(255, 255, 255, 0.15);
    margin: 0 6px;
    font-size: 12px;
}

.auth-footer .auth-link {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.auth-footer .auth-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* 用户信息 */
.auth-user-avatar-lg {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.06);
}

.auth-pro-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #ffd700;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-pro-status:hover {
    background: rgba(255, 215, 0, 0.18);
    border-color: rgba(255, 215, 0, 0.3);
}

.auth-pro-expiry {
    font-weight: 400;
    opacity: 0.7;
    font-size: 11px;
}

.auth-no-pro-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-no-pro-status:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
}

.auth-user-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-logout-btn {
    background: rgba(255, 69, 58, 0.15);
    color: #ff453a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-logout-btn:hover {
    background: rgba(255, 69, 58, 0.25);
}

/* ========== 用户反馈 ========== */

.auth-user-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 20px;
}

.auth-user-tab {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.auth-user-tab:hover {
    color: rgba(255, 255, 255, 0.7);
}

.auth-user-tab.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.auth-user-tab-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.feedback-input {
    padding: 14px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.feedback-input:focus {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.feedback-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.feedback-error {
    color: #ff4757;
    font-size: 13px;
    text-align: center;
    min-height: 20px;
    line-height: 20px;
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: none;
    padding-right: 2px;
    mask-image: linear-gradient(to bottom, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 96%, transparent 100%);
}

.feedback-list:hover {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.feedback-list::-webkit-scrollbar {
    width: 3px;
}

.feedback-list::-webkit-scrollbar-track {
    background: transparent;
}

.feedback-list::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 2px;
}

.feedback-list:hover::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
}

.feedback-list:empty {
    display: none;
}

.feedback-item {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.feedback-item-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 6px;
    word-break: break-word;
}

.feedback-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.feedback-item-status {
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.feedback-item-status.pending {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
}

.feedback-item-status.replied {
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
}

.feedback-item-reply {
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(52, 199, 89, 0.06);
    border: 1px solid rgba(52, 199, 89, 0.12);
    border-radius: 8px;
}

.feedback-item-reply-label {
    font-size: 10px;
    color: #34c759;
    font-weight: 600;
    margin-bottom: 3px;
    letter-spacing: 0.3px;
}

.feedback-item-reply-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    word-break: break-word;
}

.feedback-empty {
    text-align: center;
    padding: 24px 16px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
}

/* ========== Pro 升级按钮和徽�?========== */

.upgrade-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    width: auto;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.15));
    border: 1px solid rgba(255, 215, 0, 0.25);
    color: #ffd700;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.upgrade-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.25));
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffed4a;
}

.upgrade-btn.is-pro {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    font-size: 12px;
    padding: 0 12px;
}

.upgrade-btn.is-pro:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.25));
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffed4a;
    transform: scale(1.08);
}

.upgrade-btn.is-pro:active {
    transform: scale(0.94);
}

.upgrade-btn-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ff4444, #ff6b35);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(255, 68, 68, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ========== 升级弹窗 ========== */

.upgrade-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.upgrade-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.upgrade-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.upgrade-modal-content {
    position: relative;
    width: 500px;
    max-width: calc(100% - 40px);
    max-height: calc(100% - 80px);
    overflow-y: auto;
    background: #1a1a1a;
    border-radius: 24px;
    padding: 40px 32px 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.upgrade-modal.active .upgrade-modal-content {
    transform: translateY(0) scale(1);
}

.upgrade-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.upgrade-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.upgrade-header {
    text-align: center;
    margin-bottom: 28px;
}

.upgrade-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.upgrade-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.upgrade-modal-badge {
    display: inline-block;
    vertical-align: middle;
    background: linear-gradient(135deg, #ff4444, #ff6b35);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    letter-spacing: 0.3px;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.35);
    animation: badgePulse 2s ease-in-out infinite;
}

.upgrade-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
}

.upgrade-current-expiry {
    font-size: 13px;
    color: rgba(255, 215, 0, 0.5);
    margin-top: 4px;
    font-weight: 500;
}

.upgrade-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.upgrade-plan {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: all 0.2s;
}

.upgrade-plan:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.upgrade-plan.featured {
    background: rgba(255, 215, 0, 0.03);
    border-color: rgba(255, 215, 0, 0.15);
}

.upgrade-plan-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 10px;
    letter-spacing: 0.3px;
}

.upgrade-plan-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
}

.upgrade-plan-price {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.upgrade-plan-original {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: line-through;
    margin-right: 6px;
    vertical-align: middle;
}

.upgrade-plan-price span {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
}

.upgrade-plan-price-cny {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 6px;
}

.upgrade-plan-price-cny span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.upgrade-plan-save {
    font-size: 11px;
    color: #34c759;
    font-weight: 500;
    margin-bottom: 12px;
}

.upgrade-plan-save span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.upgrade-plan-features {
    list-style: none;
    margin: 12px 0 16px;
    text-align: left;
}

.upgrade-plan-features li {
    padding: 5px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 6px;
}

.upgrade-plan-features li::before {
    content: '�?;
    color: #34c759;
    font-weight: 700;
    font-size: 14px;
}

.upgrade-plan-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.upgrade-plan-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.upgrade-plan-btn.featured-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.15));
    color: #ffd700;
}

.upgrade-plan-btn.featured-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.25));
}

.upgrade-footer {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.upgrade-social-proof {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    padding: 16px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 16px;
}

.upgrade-social-proof strong {
    color: rgba(255, 215, 0, 0.8);
    font-weight: 600;
}

.news-fab {
    position: fixed;
    bottom: 24px;
    left: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.news-fab:hover {
    background: rgba(50, 50, 50, 0.9);
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.news-fab:active {
    transform: scale(0.94);
}

.news-fab.pulse {
    animation: newsFabPulse 2s ease-in-out infinite;
}

@keyframes newsFabPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
}

.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.news-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.news-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.news-modal-content {
    position: relative;
    width: 90vw;
    max-width: 1100px;
    height: 85vh;
    max-height: 800px;
    background: rgba(28, 28, 30, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 0.5px rgba(255, 255, 255, 0.05) inset;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.news-modal.open .news-modal-content {
    transform: translateY(0) scale(1);
}

.news-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 16px;
    transition: all 0.2s ease;
}

.news-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.news-sidebar {
    width: 380px;
    min-width: 380px;
    border-right: 0.5px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
}

.news-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 24px 0;
    color: #fff;
}

.news-sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.news-sidebar-header svg {
    color: rgba(74, 222, 128, 0.8);
    flex-shrink: 0;
}

.news-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 24px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 0.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.news-search:focus-within {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(74, 222, 128, 0.3);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.06);
}

.news-search svg {
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.news-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}

.news-search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.news-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 16px 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    will-change: scroll-position;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12px, black calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 12px, black calc(100% - 16px), transparent 100%);
}

.news-list::-webkit-scrollbar {
    display: none;
}

.news-item {
    padding: 14px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    border: none;
    position: relative;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.news-item.active {
    background: rgba(74, 222, 128, 0.08);
    box-shadow: inset 3px 0 0 rgba(74, 222, 128, 0.6);
}

.news-item-title {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item.active .news-item-title {
    color: #fff;
    font-weight: 600;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.news-item-source {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

.news-item.active .news-item-source {
    background: rgba(74, 222, 128, 0.12);
    color: rgba(74, 222, 128, 0.7);
}

.news-detail {
    flex: 1;
    overflow-y: auto;
    padding: 40px 40px;
    background: transparent;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    will-change: scroll-position;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20px, black calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 20px, black calc(100% - 24px), transparent 100%);
}

.news-detail::-webkit-scrollbar {
    display: none;
}

.news-detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.15);
    gap: 16px;
}

.news-detail-empty p {
    font-size: 15px;
    font-weight: 500;
}

.news-detail-header {
    margin-bottom: 32px;
}

.news-detail-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    flex-wrap: wrap;
}

.news-detail-source {
    padding: 4px 12px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 20px;
    color: rgba(74, 222, 128, 0.7);
    font-size: 12px;
    font-weight: 500;
}

.news-detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.news-detail-tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-detail-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
}

.news-detail-body {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
}

.news-detail-body p {
    margin-bottom: 18px;
}

.news-detail-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 32px 0 14px;
    letter-spacing: -0.2px;
}

.news-detail-body ul,
.news-detail-body ol {
    margin: 12px 0 20px;
    padding-left: 20px;
}

.news-detail-body li {
    margin-bottom: 8px;
}

.news-detail-body strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.news-detail-reference {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-detail-reference-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-detail-reference-link {
    font-size: 13px;
    color: rgba(74, 222, 128, 0.6);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}

.news-detail-reference-link:hover {
    color: rgba(74, 222, 128, 0.9);
    text-decoration: underline;
}

.news-detail-back {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    transition: all 0.2s ease;
    width: fit-content;
}

.news-detail-back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.news-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    gap: 12px;
}

.news-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-top-color: rgba(74, 222, 128, 0.5);
    border-radius: 50%;
    animation: newsSpin 0.7s linear infinite;
}

@keyframes newsSpin {
    to { transform: rotate(360deg); }
}

.news-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: rgba(255, 255, 255, 0.18);
    gap: 12px;
    text-align: center;
}

.news-empty svg {
    opacity: 0.3;
}

.news-empty p {
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .news-fab {
        bottom: 16px;
        left: 16px;
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .news-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        flex-direction: column;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .news-modal-close {
        top: 12px;
        right: 12px;
    }

    .news-sidebar {
        width: 100%;
        min-width: 100%;
        max-height: 45%;
        border-right: none;
        border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
    }

    .news-detail {
        padding: 24px 20px;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .news-detail-back {
        display: flex;
    }

    .news-detail-title {
        font-size: 20px;
    }

    .news-detail-body {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .news-fab {
        bottom: 12px;
        left: 12px;
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .news-sidebar-header {
        padding: 18px 18px 0;
    }

    .news-sidebar-header h2 {
        font-size: 17px;
    }

    .news-search {
        margin: 12px 18px;
    }

    .news-list {
        padding: 2px 10px 10px;
    }

    .news-item {
        padding: 12px 12px;
    }

    .news-item-title {
        font-size: 13px;
    }

    .news-detail {
        padding: 20px 18px;
    }

    .news-detail-title {
        font-size: 18px;
    }
}