﻿/* ===== 全局 (完全保留原始样式) ===== */
/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f3f4f6;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.chat-container {
    max-width: 820px;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}*/

/* ===== 头部 (flex 布局：左中右) ===== */
/*.chat-header {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    background: #fff;
}

    .chat-header .logo {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 18px;
        font-weight: 700;
        color: #0a0a0a;
    }

        .chat-header .logo a {
            display: flex;
            align-items: center;
            text-decoration: none;
        }

        .chat-header .logo img {
            height: 28px;
            width: auto;
            display: block;
        }

    .chat-header .session-name-display {
        flex: 1;
        text-align: left;
        font-size: 15px;
        font-weight: 500;
        color: #1e293b;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 0 8px;
        min-width: 0;
    }

    .chat-header .header-actions {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .chat-header .sidebar-toggle-btn {
        background: none;
        border: none;
        color: #64748b;
        cursor: pointer;
        font-size: 18px;
        padding: 6px 8px;
        border-radius: 6px;
        transition: background 0.2s, color 0.2s;
        display: flex;
        align-items: center;
        gap: 4px;
        font-weight: 500;
        min-height: 36px;
    }

        .chat-header .sidebar-toggle-btn:hover {
            background: #f1f5f9;
            color: #0f172a;
        }

    .chat-header .new-chat-btn {
        background: none;
        border: none;
        color: #64748b;
        cursor: pointer;
        font-size: 20px;
        padding: 6px 10px;
        border-radius: 6px;
        transition: background 0.2s, color 0.2s;
        min-height: 36px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

        .chat-header .new-chat-btn:hover {
            background: #f1f5f9;
            color: #2563eb;
        }

        .chat-header .new-chat-btn:active {
            transform: scale(0.92);
        }*/

/* ===== 消息列表 ===== */
/*.messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

    .messages::-webkit-scrollbar {
        width: 4px;
    }

    .messages::-webkit-scrollbar-track {
        background: transparent;
    }

    .messages::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 10px;
    }

.message {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    align-items: flex-end;
}

.message.assistant {
    align-items: flex-start;
}

.message .avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    user-select: none;
}

.message.user .avatar {
    background: #2563eb;
    color: #fff;
}

.message.assistant .avatar {
    background: #e5e7eb;
    color: #4b5563;
}

.message .bubble {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 10px 14px;
    border-radius: 14px;
    line-height: 1.6;
    word-break: break-word;
    font-size: 15px;
    color: #1e293b;
    background: #f3f4f6;
    border-bottom-left-radius: 4px;
}

.message.user .bubble {
    background: #2563eb;
    color: #fff;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 4px;
}

.message.assistant .bubble {
    background: #f8fafc;
    border: 1px solid #f0f2f5;
    border-bottom-left-radius: 4px;
}

.message .bubble .time {
    align-self: flex-end;
    font-size: 10px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.message.user .bubble .time {
    color: rgba(255, 255, 255, 0.7);
}

.message.assistant .bubble .markdown-content {
    width: 100%;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
}

    .message.assistant .bubble .markdown-content h1,
    .message.assistant .bubble .markdown-content h2,
    .message.assistant .bubble .markdown-content h3 {
        margin: 0.8em 0 0.3em;
        font-weight: 600;
    }

    .message.assistant .bubble .markdown-content h1 {
        font-size: 1.4em;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 0.2em;
    }

    .message.assistant .bubble .markdown-content h2 {
        font-size: 1.2em;
    }

    .message.assistant .bubble .markdown-content h3 {
        font-size: 1.05em;
    }

    .message.assistant .bubble .markdown-content p {
        margin: 0.5em 0;
    }

    .message.assistant .bubble .markdown-content ul,
    .message.assistant .bubble .markdown-content ol {
        padding-left: 1.6em;
        margin: 0.4em 0;
    }

    .message.assistant .bubble .markdown-content blockquote {
        border-left: 4px solid #3b82f6;
        padding: 0.4em 1em;
        background: #f1f5f9;
        border-radius: 0 6px 6px 0;
        margin: 0.6em 0;
    }

    .message.assistant .bubble .markdown-content table {
        border-collapse: collapse;
        width: 100%;
        font-size: 0.9em;
        margin: 0.8em 0;
    }

    .message.assistant .bubble .markdown-content th,
    .message.assistant .bubble .markdown-content td {
        border: 1px solid #d1d5db;
        padding: 6px 10px;
        text-align: left;
    }

    .message.assistant .bubble .markdown-content th {
        background: #f1f5f9;
        font-weight: 600;
    }

    .message.assistant .bubble .markdown-content tr:nth-child(even) {
        background: #fafbfc;
    }

    .message.assistant .bubble .markdown-content code {
        background: #f1f5f9;
        padding: 0.15em 0.4em;
        border-radius: 4px;
        font-size: 0.9em;
    }

    .message.assistant .bubble .markdown-content pre {
        background: #1e293b;
        color: #e2e8f0;
        padding: 1em;
        border-radius: 8px;
        overflow-x: auto;
        margin: 0.8em 0;
    }

        .message.assistant .bubble .markdown-content pre code {
            background: transparent;
            color: inherit;
            padding: 0;
        }

    .message.assistant .bubble .markdown-content hr {
        border: none;
        border-top: 2px dashed #d1d5db;
        margin: 1.5em 0;
    }

.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 6px 0;
}

    .typing-indicator span {
        display: inline-block;
        width: 8px;
        height: 8px;
        background: #9ca3af;
        border-radius: 50%;
        animation: typing 1.4s infinite both;
    }

        .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.4;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.input-area {
    padding: 12px 16px 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    background: #ffffff;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

    .input-area textarea {
        flex: 1;
        resize: none;
        padding: 10px 14px;
        border: 1px solid #e2e8f0;
        border-radius: 20px;
        font-family: inherit;
        font-size: 15px;
        outline: none;
        transition: border-color 0.2s;
        min-height: 44px;
        max-height: 120px;
        line-height: 1.5;
        background: #fafbfc;
    }

        .input-area textarea:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
        }

    .input-area .send-btn {
        align-self: flex-end;
        padding: 0 20px;
        background: #2563eb;
        color: #fff;
        border: none;
        border-radius: 40px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
        white-space: nowrap;
        height: 44px;
        min-width: 60px;
    }

        .input-area .send-btn:hover {
            background: #1d4ed8;
        }

        .input-area .send-btn:active {
            transform: scale(0.96);
        }

        .input-area .send-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

@media (max-width: 600px) {
    .chat-container {
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
    }

    .chat-header {
        padding: 12px 16px;
        gap: 6px;
    }

        .chat-header .logo {
            font-size: 16px;
        }

            .chat-header .logo img {
                height: 24px;
            }

        .chat-header .session-name-display {
            font-size: 14px;
            padding: 0 4px;
        }

        .chat-header .sidebar-toggle-btn {
            font-size: 16px;
            padding: 4px 6px;
            min-height: 32px;
        }

        .chat-header .new-chat-btn {
            font-size: 14px;
            padding: 4px 8px;
            min-height: 32px;
        }

    .messages {
        padding: 12px 12px 8px;
        gap: 12px;
    }

    .message .avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .message .bubble {
        font-size: 14px;
        padding: 8px 12px;
        border-radius: 12px;
    }

    .message.assistant .bubble .markdown-content {
        font-size: 14px;
    }

        .message.assistant .bubble .markdown-content table {
            font-size: 12px;
        }

        .message.assistant .bubble .markdown-content th,
        .message.assistant .bubble .markdown-content td {
            padding: 4px 6px;
        }

    .input-area {
        padding: 10px 12px 16px;
        gap: 8px;
    }

        .input-area textarea {
            font-size: 14px;
            min-height: 40px;
            padding: 8px 12px;
        }

        .input-area .send-btn {
            height: 40px;
            font-size: 14px;
            padding: 0 16px;
            min-width: 50px;
        }

    .typing-indicator span {
        width: 6px;
        height: 6px;
    }*/

    /* 移动端侧边栏标题适配 — 与主页标题栏一致 */
    /*.sidebar-header {
        padding: 12px 16px !important;
    }

        .sidebar-header h3 {
            font-size: 16px !important;
        }

            .sidebar-header h3 .sidebar-icon {
                font-size: 16px !important;*/
                /* 与主页 sidebar-toggle-btn 移动端一致 */
            /*}

        .sidebar-header .close-btn {
            font-size: 16px !important;
            padding: 4px 6px !important;
            min-height: 32px !important;
        }
}

@media (max-width: 400px) {
    .chat-header .session-name-display {
        font-size: 14px;
    }

    .chat-header .logo {
        font-size: 14px;
    }

        .chat-header .logo img {
            height: 20px;
        }
}

@media (min-width: 601px) {
    body {
        padding: 20px;
        background: #f3f4f6;
    }

    .chat-container {
        border-radius: 24px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
        height: 90vh;
        max-height: 760px;
    }
}*/

/* ===== 侧边栏样式 ===== */
/*.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    max-width: 88vw;
    height: 100%;
    background: #ffffff;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
    border-right: 1px solid #f0f0f0;
}

    .sidebar.open {
        transform: translateX(0);
    }*/

/* ===== 侧边栏头部 — 与主页标题栏样式完全统一 ===== */
/*.sidebar-header {
    padding: 14px 20px;*/
    /* 与 .chat-header 一致 */
    /*border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: #ffffff;
}*/

    /* 标题文字：与 .chat-header .logo 完全一致 (18px/700/#0a0a0a) */
    /*.sidebar-header h3 {
        font-size: 18px;
        font-weight: 700;
        color: #0a0a0a;
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0;
        padding: 0;
    }*/

        /* 💬 图标大小：与主页 sidebar-toggle-btn 中的 💬 完全一致 (18px) */
        /*.sidebar-header h3 .sidebar-icon {
            font-size: 18px;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }*/

    /* 关闭按钮：与主页 .sidebar-toggle-btn / .new-chat-btn 风格一致 */
    /*.sidebar-header .close-btn {
        background: none;
        border: none;
        color: #64748b;
        cursor: pointer;
        font-size: 18px;
        padding: 6px 8px;
        border-radius: 6px;
        transition: background 0.2s, color 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 500;
        min-height: 36px;
        line-height: 1;
    }

        .sidebar-header .close-btn:hover {
            background: #f1f5f9;
            color: #0f172a;
        }

        .sidebar-header .close-btn:active {
            transform: scale(0.92);
        }*/

/* ---- 侧边栏列表 ---- */
/*.sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .sidebar-list::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar-list::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 10px;
    }*/

/* ---- 会话项 ---- */
/*.session-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
    background: transparent;
    min-height: 44px;
}

    .session-item:hover {
        background: #f1f5f9;
    }

    .session-item.active {
        background: #eff6ff;
    }

        .session-item.active .session-name {
            color: #1d4ed8;
            font-weight: 600;
        }

    .session-item .session-name {
        flex: 1;
        font-size: 14px;
        color: #1e293b;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

    .session-item .star-btn {
        flex-shrink: 0;
        background: none;
        border: none;
        font-size: 17px;
        cursor: pointer;
        padding: 2px 4px;
        border-radius: 6px;
        transition: background 0.15s, transform 0.15s;
        line-height: 1;
        color: #cbd5e1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
    }

        .session-item .star-btn:hover {
            background: #e2e8f0;
            transform: scale(1.12);
        }

        .session-item .star-btn.starred {
            color: #f59e0b;
        }

            .session-item .star-btn.starred:hover {
                color: #d97706;
            }

    .session-item .session-msg-count {
        font-size: 12px;
        color: #94a3b8;
        background: #f1f5f9;
        padding: 1px 8px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .session-item .session-actions {
        display: flex;
        gap: 2px;
        flex-shrink: 0;
        opacity: 1;
    }

        .session-item .session-actions button {
            background: none;
            border: none;
            padding: 4px 5px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            color: #94a3b8;
            transition: background 0.15s, color 0.15s;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
        }

            .session-item .session-actions button:hover {
                background: #e2e8f0;
                color: #0f172a;
            }

        .session-item .session-actions .rename-btn:hover {
            color: #2563eb;
        }

        .session-item .session-actions .delete-btn:hover {
            color: #ef4444;
            background: #fef2f2;
        }*/

/* ---- 空状态 ---- */
/*.empty-sessions {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 14px;
}

    .empty-sessions .icon-big {
        font-size: 40px;
        display: block;
        margin-bottom: 12px;
    }*/

/* ---- 侧边栏底部 ---- */
/*.sidebar-footer {
    padding: 14px 16px 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: #fafbfc;
}

    .sidebar-footer .new-session-btn {
        width: 100%;
        padding: 10px 0;
        background: #2563eb;
        color: #fff;
        border: none;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

        .sidebar-footer .new-session-btn:hover {
            background: #1d4ed8;
        }

        .sidebar-footer .new-session-btn:active {
            transform: scale(0.97);
        }*/

/* ===== 重命名弹窗 ===== */
/*.rename-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

    .rename-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.rename-modal {
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px 28px;
    width: 360px;
    max-width: 90vw;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s ease;
}

.rename-modal-overlay.active .rename-modal {
    transform: scale(1) translateY(0);
}

.rename-modal h4 {
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}

.rename-modal p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.rename-modal input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

    .rename-modal input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    }

.rename-modal .modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    justify-content: flex-end;
}

    .rename-modal .modal-actions button {
        padding: 8px 20px;
        border: none;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.15s;
    }

    .rename-modal .modal-actions .cancel-btn {
        background: #f1f5f9;
        color: #475569;
    }

        .rename-modal .modal-actions .cancel-btn:hover {
            background: #e2e8f0;
        }

    .rename-modal .modal-actions .confirm-btn {
        background: #2563eb;
        color: #fff;
    }

        .rename-modal .modal-actions .confirm-btn:hover {
            background: #1d4ed8;
        }

        .rename-modal .modal-actions .confirm-btn:active {
            transform: scale(0.97);
        }

@media (min-width: 601px) {
    .sidebar {
        border-radius: 0 16px 16px 0;
    }
}*/

/* ---- 移动端适配 ---- */
/*@media (max-width: 480px) {
    .session-item .star-btn {
        font-size: 16px;
        width: 28px;
        height: 28px;
    }

    .session-item .session-actions button {
        font-size: 14px;
        width: 24px;
        height: 24px;
        padding: 2px 3px;
    }

    .session-item .session-msg-count {
        font-size: 12px;
        padding: 0 6px;
    }

    .session-item {
        padding: 6px 8px;
        min-height: 38px;
        gap: 4px;
    }

        .session-item .session-name {
            font-size: 14px;
        }
}

@media (max-width: 380px) {
    .session-item .star-btn {
        font-size: 16px;
        width: 24px;
        height: 24px;
    }

    .session-item .session-actions button {
        font-size: 14px;
        width: 24px;
        height: 24px;
    }

    .session-item .session-name {
        font-size: 14px;
    }
}*/

/* ===== toast 提示 ===== */
/*.toast-tip {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(10px);
    pointer-events: none;
    white-space: nowrap;
}

    .toast-tip.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

@media (max-width: 600px) {
    .toast-tip {
        bottom: 80px;
        font-size: 14px;
        padding: 8px 18px;
        white-space: normal;
        max-width: 85vw;
        text-align: center;
    }
}

.plus-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: transparent;*/
    /* 核心：两个线性渐变分别绘制横杠和竖杠 */
    /*background-image: linear-gradient(to top, currentColor, currentColor), linear-gradient(to top, currentColor, currentColor);*/
    /* 分别控制横杠和竖杠的尺寸 */
    /*background-size: 60% 2px, 2px 60%;
    background-position: center center;
    background-repeat: no-repeat;
}*/
 

/* ========== 基础重置 & 全局 ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #080c18;
    --bg-secondary: #0e1629;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f3fa;
    --text-secondary: #a0b0cc;
    --text-muted: #6a7a99;
    --accent-1: #6c63ff;
    --accent-2: #4facfe;
    --accent-gradient: linear-gradient(135deg, #6c63ff, #4facfe);
    --gold: #f0c040;
    --border-light: rgba(255, 255, 255, 0.06);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 滚动条 ========== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 10px;
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(8, 12, 24, 0.72);
    backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
    user-select: none;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.30);
}

.logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

    .nav-links a {
        font-size: 15px;
        font-weight: 500;
        color: var(--text-secondary);
        transition: var(--transition);
        position: relative;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent-gradient);
            transition: var(--transition);
            border-radius: 4px;
        }

        .nav-links a:hover {
            color: #fff;
        }

            .nav-links a:hover::after {
                width: 100%;
            }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: var(--accent-gradient);
    color: #fff !important;
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(108, 99, 255, 0.30);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

    .nav-cta:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 12px 40px rgba(108, 99, 255, 0.45);
        color: #fff !important;
    }

    .nav-cta::after {
        display: none !important;
    }

.nav-login-btn {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.03);
}

    .nav-login-btn:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }

    /* 如果已登录，变成一个简单的用户信息标签 */
    .nav-login-btn.logged-in {
        color: #4facfe;
        border-color: rgba(79, 172, 254, 0.3);
        background: rgba(79, 172, 254, 0.1);
    }

/* 移动端汉堡 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

    .hamburger span {
        display: block;
        width: 26px;
        height: 2.5px;
        background: #fff;
        border-radius: 4px;
        transition: var(--transition);
        transform-origin: center;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

/* ========== Hero ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

    /* 装饰光晕 */
    .hero::before {
        content: '';
        position: absolute;
        top: -30%;
        right: -20%;
        width: 700px;
        height: 700px;
        background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

    .hero::after {
        content: '';
        position: absolute;
        bottom: -20%;
        left: -15%;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(79, 172, 254, 0.08) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

    .hero .container {
        position: relative;
        z-index: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 99, 255, 0.12);
    border: 1px solid rgba(108, 99, 255, 0.20);
    padding: 6px 18px 6px 10px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-2);
    width: fit-content;
    letter-spacing: 0.3px;
}

    .hero-badge .dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        background: var(--accent-2);
        border-radius: 50%;
        animation: pulse-dot 2s ease-in-out infinite;
    }

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

.hero h1 {
    font-size: clamp(44px, 7vw, 76px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -2px;
}

    .hero h1 .highlight {
        background: var(--accent-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.hero p {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 600;
    font-size: 17px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 12px 40px rgba(108, 99, 255, 0.35);
    position: relative;
    overflow: hidden;
}

    .btn-primary::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
        opacity: 0;
        transition: var(--transition);
    }

    .btn-primary:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 18px 56px rgba(108, 99, 255, 0.50);
    }

        .btn-primary:hover::before {
            opacity: 1;
        }

    .btn-primary .arrow {
        transition: var(--transition);
        display: inline-block;
    }

    .btn-primary:hover .arrow {
        transform: translateX(6px);
    }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 16px;
    border-radius: 50px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
}

    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.10);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.15);
    }

/* Hero 右侧视觉 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-visual-inner {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    background: radial-gradient(ellipse at center, rgba(108, 99, 255, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 抽象图表装饰 */
.chart-orbit {
    position: relative;
    width: 280px;
    height: 280px;
}

    .chart-orbit .ring {
        position: absolute;
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

        .chart-orbit .ring:nth-child(1) {
            width: 100%;
            height: 100%;
            border-color: rgba(108, 99, 255, 0.15);
        }

        .chart-orbit .ring:nth-child(2) {
            width: 72%;
            height: 72%;
            border-color: rgba(79, 172, 254, 0.12);
        }

        .chart-orbit .ring:nth-child(3) {
            width: 44%;
            height: 44%;
            border-color: rgba(240, 192, 64, 0.10);
        }

.chart-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-gradient);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.40);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.chart-dot-1 {
    top: 6%;
    left: 78%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #4facfe;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.40);
    animation: float-dot 6s ease-in-out infinite;
}

.chart-dot-2 {
    top: 82%;
    left: 12%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #f0c040;
    box-shadow: 0 0 20px rgba(240, 192, 64, 0.30);
    animation: float-dot 8s ease-in-out infinite reverse;
}

.chart-dot-3 {
    top: 22%;
    left: 18%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: rgba(108, 99, 255, 0.60);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.25);
    animation: float-dot 7s ease-in-out infinite 1s;
}

.chart-dot-4 {
    top: 70%;
    left: 82%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    background: rgba(79, 172, 254, 0.50);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.25);
    animation: float-dot 9s ease-in-out infinite 0.5s;
}

@keyframes float-dot {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* 中心数字 */
.chart-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.08);
    letter-spacing: 2px;
    user-select: none;
    white-space: nowrap;
}

/* ========== 功能区域 ========== */
.features {
    padding: 80px 0 100px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.features-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

    .features-header h2 {
        font-size: clamp(30px, 4vw, 44px);
        font-weight: 700;
        letter-spacing: -1px;
        margin-bottom: 14px;
    }

    .features-header p {
        color: var(--text-secondary);
        font-size: 18px;
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 36px 30px 40px;
    transition: var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--accent-gradient);
        opacity: 0;
        transition: var(--transition);
    }

    .feature-card:hover {
        background: var(--bg-card-hover);
        transform: translateY(-6px);
        border-color: rgba(255, 255, 255, 0.10);
        box-shadow: var(--shadow-card);
    }

        .feature-card:hover::before {
            opacity: 1;
        }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(108, 99, 255, 0.12);
    color: var(--accent-2);
    font-size: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: rgba(108, 99, 255, 0.22);
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.feature-tag {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-2);
    background: rgba(108, 99, 255, 0.08);
    padding: 4px 14px;
    border-radius: 50px;
    border: 1px solid rgba(108, 99, 255, 0.10);
}

/* ========== CTA 横幅 ========== */
.cta-banner {
    padding: 80px 0 90px;
    background: var(--bg-primary);
}

    .cta-banner .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 28px;
        position: relative;
    }

    .cta-banner::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 800px;
        height: 400px;
        background: radial-gradient(ellipse, rgba(108, 99, 255, 0.06) 0%, transparent 70%);
        pointer-events: none;
        border-radius: 50%;
    }

    .cta-banner h2 {
        font-size: clamp(30px, 4vw, 48px);
        font-weight: 700;
        letter-spacing: -1px;
        position: relative;
    }

        .cta-banner h2 .highlight {
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

    .cta-banner p {
        color: var(--text-secondary);
        font-size: 19px;
        max-width: 540px;
        position: relative;
    }

    .cta-banner .btn-primary {
        padding: 18px 52px;
        font-size: 19px;
        position: relative;
        z-index: 2;
    }

        .cta-banner .btn-primary .arrow {
            font-size: 20px;
        }

    .cta-banner .sub-note {
        font-size: 14px;
        color: var(--text-muted);
        margin-top: 4px;
        position: relative;
    }

/* ========== 页脚 ========== */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border-light);
    background: var(--bg-primary);
}

    .footer .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
    }

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

    .footer-brand .mini-logo {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        background: var(--accent-gradient);
        border-radius: 8px;
        font-size: 13px;
        font-weight: 800;
        color: #fff;
    }

.footer p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

    .footer-links a {
        color: var(--text-muted);
        font-size: 14px;
        transition: var(--transition);
    }

        .footer-links a:hover {
            color: #fff;
        }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero p {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-badge {
        margin: 0 auto;
    }

    .hero-visual-inner {
        max-width: 340px;
    }

    .chart-orbit {
        width: 220px;
        height: 220px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-banner::before {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        padding: 40px 24px;
        transition: var(--transition);
        border-left: 1px solid var(--border-light);
        backdrop-filter: blur(20px);
        background: rgba(8, 12, 24, 0.95);
    }

        .nav-links.open {
            right: 0;
        }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-links a {
        font-size: 18px;
    }

    .nav-cta {
        font-size: 16px;
        padding: 12px 32px;
    }

    .hero {
        padding: 100px 0 60px;
    }

        .hero h1 {
            font-size: clamp(34px, 10vw, 48px);
        }

        .hero p {
            font-size: 17px;
        }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features {
        padding: 60px 0 70px;
    }

    .cta-banner {
        padding: 60px 0 70px;
    }

        .cta-banner h2 {
            font-size: 28px;
        }

        .cta-banner p {
            font-size: 17px;
        }

        .cta-banner .btn-primary {
            padding: 16px 40px;
            font-size: 17px;
        }

    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-links {
        justify-content: center;
    }

    .chart-center-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-visual-inner {
        max-width: 260px;
    }

    .chart-orbit {
        width: 180px;
        height: 180px;
    }

    .chart-dot-1,
    .chart-dot-2,
    .chart-dot-3,
    .chart-dot-4 {
        display: none;
    }

    .btn-primary {
        padding: 14px 28px;
        font-size: 15px;
    }

    .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ========== 入场动画 ========== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .fade-up:nth-child(2) {
        transition-delay: 0.1s;
    }

    .fade-up:nth-child(3) {
        transition-delay: 0.2s;
    }

/* ========== 移动端遮罩 ========== */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(4px);
}

    .nav-overlay.active {
        display: block;
    }

.footer-beian {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .footer-beian a {
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--text-muted);
        font-size: 14px;
        text-decoration: none;
        transition: var(--transition);
    }

        .footer-beian a:hover {
            color: #fff;
        }

    .footer-beian img {
        width: 20px;
        height: 20px;
        border-radius: 4px;
        display: inline-block;
    }

