/* ==========================================================================
   云裳AI - 前端样式表
   深色暗黑毛玻璃风格，配合Zibll主题
   ========================================================================== */

/* === CSS变量 === */
:root {
    /* 色彩体系 */
    --yc-bg-base: #15171C;
    --yc-bg-card: #20232B;
    --yc-bg-glass: rgba(32, 35, 43, 0.92);
    --yc-bg-hover: rgba(255, 255, 255, 0.06);
    --yc-border: rgba(255, 255, 255, 0.08);

    /* 品牌渐变 */
    --yc-gradient-from: #4066ff;
    --yc-gradient-to: #9198ff;
    --yc-gradient: linear-gradient(135deg, #4066ff, #9148ff);

    /* 文字层级 */
    --yc-text-primary: #FFFFFF;
    --yc-text-secondary: #C5CBD8;
    --yc-text-muted: #868E9E;
    --yc-text-success: #48d087;
    --yc-text-warning: #ffb344;
    --yc-text-error: #ff5c5c;

    /* 圆角 */
    --yc-radius-lg: 12px;
    --yc-radius-md: 8px;
    --yc-radius-sm: 4px;

    /* 阴影 */
    --yc-shadow-card: inset 0 1px 3px rgba(0, 0, 0, 0.25);
    --yc-shadow-float: 0 8px 24px rgba(0, 0, 0, 0.4);

    /* 动效 */
    --yc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* 头部用户中心专用 */
    --user-sidebar-width: 300px;
}

/* === 全局重置 === */
.yc-ai-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--yc-text-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* === 滚动条样式 === */
.yc-ai-wrap *::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.yc-ai-wrap *::-webkit-scrollbar-track {
    background: #2A2E38;
    border-radius: 3px;
}
.yc-ai-wrap *::-webkit-scrollbar-thumb {
    background: #555B68;
    border-radius: 3px;
    transition: background 0.3s;
}
.yc-ai-wrap *::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* FireFox滚动条 */
.yc-ai-wrap * {
    scrollbar-width: thin;
    scrollbar-color: #555B68 #2A2E38;
}

/* === 顶部导航栏 === */
.yc-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--yc-bg-card);
    border-bottom: 1px solid var(--yc-border);
    border-radius: var(--yc-radius-lg) var(--yc-radius-lg) 0 0;
    margin-bottom: 16px;
}
.yc-nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--yc-text-primary);
    background: var(--yc-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.yc-nav-logo span {
    color: var(--yc-text-muted);
    font-weight: 400;
    margin-left: 4px;
}
.yc-nav-menu {
    display: flex;
    gap: 24px;
}
.yc-nav-menu a {
    color: var(--yc-text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: color var(--yc-transition);
}
.yc-nav-menu a:hover,
.yc-nav-menu a.active {
    color: var(--yc-gradient-from);
}

/* === 用户头像区域 === */
.yc-nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.yc-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--yc-gradient);
    padding: 2px;
}
.yc-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.yc-user-info {
    display: flex;
    flex-direction: column;
}
.yc-user-name {
    color: var(--yc-text-primary);
    font-size: 14px;
    font-weight: 500;
}
.yc-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #6b4400;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
}

/* === 卡片通用样式 === */
.yc-card {
    background: var(--yc-bg-card);
    border-radius: var(--yc-radius-lg);
    padding: 20px;
    box-shadow: var(--yc-shadow-card), var(--yc-shadow-float);
    border: 1px solid var(--yc-border);
    transition: transform var(--yc-transition), box-shadow var(--yc-transition);
    margin-bottom: 16px;
}
.yc-card:hover {
    box-shadow: var(--yc-shadow-card), 0 12px 32px rgba(0, 0, 0, 0.5);
}
.yc-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--yc-border);
}
.yc-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--yc-radius-md);
    background: linear-gradient(135deg, rgba(64, 102, 255, 0.15), rgba(145, 72, 255, 0.15));
    color: var(--yc-gradient-from);

    & svg {
        width: 18px;
        height: 18px;
    }
}
.yc-card-title {
    color: var(--yc-text-primary);
    font-size: 15px;
    font-weight: 600;
}

/* === 左侧用户信息栏 === */
.yc-sidebar {
    width: var(--user-sidebar-width);
    flex-shrink: 0;
}
.yc-user-profile-card {
    text-align: center;
    padding: 24px 16px;
}
.yc-user-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid transparent;
    background: var(--yc-gradient);
    padding: 3px;
}
.yc-user-profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.yc-user-profile-name {
    color: var(--yc-text-primary);
    font-size: 16px;
    font-weight: 600;
}
.yc-user-profile-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--yc-text-muted);
    font-size: 12px;
    margin-top: 4px;
}

/* === 数据统计卡片 === */
.yc-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 16px 12px;
}
.yc-stat-item {
    text-align: center;
}
.yc-stat-icon {
    margin-bottom: 8px;
    color: var(--yc-text-muted);
}
.yc-stat-value {
    color: var(--yc-text-primary);
    font-size: 20px;
    font-weight: 700;
}
.yc-stat-label {
    color: var(--yc-text-muted);
    font-size: 11px;
    margin-top: 2px;
}

/* === 会员等级卡片 === */
.yc-vip-card {
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 140, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.2);
}
.yc-vip-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #4a2f00;
    font-size: 13px;
    font-weight: 700;
    border-radius: 16px;
    margin-bottom: 12px;
}
.yc-vip-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.yc-vip-progress-bar {
    height: 100%;
    background: var(--yc-gradient);
    border-radius: 3px;
    transition: width var(--yc-transition);
}
.yc-vip-desc {
    color: var(--yc-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* === 功能菜单 === */
.yc-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.yc-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--yc-radius-md);
    cursor: pointer;
    transition: all var(--yc-transition);
    text-decoration: none;
    color: var(--yc-text-secondary);
    font-size: 14px;
}
.yc-menu-item:hover {
    background: var(--yc-bg-hover);
    color: var(--yc-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 102, 255, 0.15);
}
.yc-menu-item.active {
    background: linear-gradient(135deg, rgba(64, 102, 255, 0.15), rgba(145, 72, 255, 0.15));
    color: #fff;
}
.yc-menu-icon {
    display: flex;
    align-items: center;
    color: var(--yc-text-muted);
    width: 20px;
    height: 20px;

    & svg {
        width: 100%;
        height: 100%;
    }
}
.yc-menu-item:hover .yc-menu-icon {
    color: var(--yc-gradient-from);
}

/* === 主内容区 === */
.yc-main-content {
    flex: 1;
    min-width: 0;
}

/* === 配置表单卡片 === */
.yc-config-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--yc-border);
}
.yc-config-item:last-child {
    border-bottom: none;
}
.yc-config-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.yc-config-icon {
    color: var(--yc-text-muted);

    & svg {
        width: 18px;
        height: 18px;
    }
}
.yc-config-label {
    color: var(--yc-text-secondary);
    font-size: 14px;
}
.yc-config-value {
    color: var(--yc-text-muted);
    font-size: 13px;
}

/* === 悬浮聊天弹窗 === */
.yc-chat-container {
    position: fixed;
    width: 380px;
    height: 560px;
    background: var(--yc-bg-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--yc-radius-lg);
    box-shadow: var(--yc-shadow-float);
    border: 1px solid var(--yc-border);
    display: flex;
    flex-direction: column;
    z-index: 99999;
    transition: transform var(--yc-transition), opacity var(--yc-transition);
    overflow: hidden;
}
.yc-chat-container.dragging {
    user-select: none;
}
.yc-chat-container.minimized {
    transform: translateY(calc(100% - 56px));
    height: 56px;
    cursor: pointer;
}
.yc-chat-container.fullscreen {
    width: 90vw;
    height: 90vh;
    left: 5vw !important;
    top: 5vh !important;
    right: auto !important;
}
.yc-chat-container.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* 聊天头部 */
.yc-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: grab;
    border-bottom: 1px solid var(--yc-border);
    background: rgba(0, 0, 0, 0.2);
}
.yc-chat-header:active {
    cursor: grabbing;
}
.yc-chat-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.yc-chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--yc-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}
.yc-chat-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yc-text-success);
}
.yc-chat-title {
    color: var(--yc-text-primary);
    font-size: 14px;
    font-weight: 500;
}
.yc-chat-subtitle {
    color: var(--yc-text-muted);
    font-size: 11px;
}
.yc-chat-actions {
    display: flex;
    gap: 4px;
}
.yc-chat-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: var(--yc-text-muted);
    cursor: pointer;
    transition: all var(--yc-transition);
}
.yc-chat-action-btn:hover {
    background: var(--yc-bg-hover);
    color: var(--yc-text-primary);
}

/* 聊天消息区 */
.yc-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 欢迎消息 */
.yc-chat-welcome {
    text-align: center;
    padding: 20px;
}
.yc-chat-welcome-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--yc-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.yc-chat-welcome-text {
    color: var(--yc-text-secondary);
    font-size: 13px;
}

/* 消息气泡 */
.yc-msg-wrap {
    display: flex;
    gap: 10px;
    max-width: 90%;
}
.yc-msg-wrap.user {
    flex-direction: row-reverse;
    align-self: flex-end;
}
.yc-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
}
.yc-msg-avatar.ai {
    background: var(--yc-gradient);
}
.yc-msg-avatar.user {
    background: #3b82f6;
}
.yc-msg-content {
    padding: 12px 16px;
    border-radius: var(--yc-radius-md);
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
}
.yc-msg-wrap.ai .yc-msg-content {
    background: rgba(255, 255, 255, 0.06);
    color: var(--yc-text-secondary);
    border: 1px solid var(--yc-border);
    border-top-left-radius: 2px;
}
.yc-msg-wrap.user .yc-msg-content {
    background: linear-gradient(135deg, rgba(64, 102, 255, 0.3), rgba(145, 72, 255, 0.3));
    color: var(--yc-text-primary);
    border-top-right-radius: 2px;
}

/* AI思考过程折叠面板 */
.yc-thinking-panel {
    border: 1px solid var(--yc-border);
    border-radius: var(--yc-radius-md);
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.15);
    overflow: hidden;
}
.yc-thinking-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--yc-text-muted);
    cursor: pointer;
    user-select: none;
    transition: color var(--yc-transition);
}
.yc-thinking-header:hover {
    color: var(--yc-text-secondary);
}
.yc-thinking-header svg {
    width: 14px;
    height: 14px;
    transition: transform var(--yc-transition);
}
.yc-thinking-panel.expanded .yc-thinking-header svg {
    transform: rotate(90deg);
}
.yc-thinking-content {
    display: none;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--yc-text-muted);
    line-height: 1.6;
    border-top: 1px solid var(--yc-border);
    max-height: 160px;
    overflow-y: auto;
}
.yc-thinking-panel.expanded .yc-thinking-content {
    display: block;
}

/* 加载中提示 */
.yc-chat-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--yc-text-muted);
    font-size: 12px;
}
.yc-loading-dots {
    display: flex;
    gap: 4px;
}
.yc-loading-dots span {
    width: 6px;
    height: 6px;
    background: var(--yc-gradient-from);
    border-radius: 50%;
    animation: yc-loading-bounce 1.4s infinite;
}
.yc-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.yc-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes yc-loading-bounce {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

/* 底部输入区 */
.yc-chat-input-area {
    padding: 12px;
    border-top: 1px solid var(--yc-border);
    background: rgba(0, 0, 0, 0.2);
}
.yc-chat-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.yc-chat-tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--yc-text-muted);
    cursor: pointer;
    transition: all var(--yc-transition);
}
.yc-chat-tool-btn:hover {
    background: var(--yc-bg-hover);
    color: var(--yc-text-secondary);
    border-color: var(--yc-border);
}
.yc-chat-model-select {
    margin-left: auto;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--yc-text-secondary);
    background: var(--yc-bg-card);
    border: 1px solid var(--yc-border);
    border-radius: var(--yc-radius-sm);
    outline: none;
    cursor: pointer;
}

.yc-chat-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.yc-chat-textarea {
    flex: 1;
    padding: 10px 12px;
    min-height: 40px;
    max-height: 120px;
    background: var(--yc-bg-card);
    border: 1px solid var(--yc-border);
    border-radius: var(--yc-radius-md);
    color: var(--yc-text-primary);
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    outline: none;
    font-family: inherit;
    transition: border-color var(--yc-transition);
}
.yc-chat-textarea::placeholder {
    color: var(--yc-text-muted);
}
.yc-chat-textarea:focus {
    border-color: var(--yc-gradient-from);
}

.yc-chat-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--yc-gradient);
    color: #fff;
    border: none;
    border-radius: var(--yc-radius-md);
    cursor: pointer;
    transition: transform var(--yc-transition), filter var(--yc-transition);
}
.yc-chat-send-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}
.yc-chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

/* 悬浮小球入口 */
.yc-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--yc-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(64, 102, 255, 0.4);
    cursor: pointer;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--yc-transition), box-shadow var(--yc-transition);
    animation: yc-float-in 0.5s ease-out;
}
.yc-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(64, 102, 255, 0.5);
}
.yc-floating-btn.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}
@keyframes yc-float-in {
    from { transform: scale(0) rotate(-180deg); opacity: 0; }
    to { transform: scale(1) rotate(0); opacity: 1; }
}

/* === 按钮样式 === */
.yc-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--yc-radius-md);
    border: 1px solid var(--yc-border);
    background: var(--yc-bg-card);
    color: var(--yc-text-secondary);
    cursor: pointer;
    transition: all var(--yc-transition);
    text-decoration: none;
}
.yc-ai-btn:hover {
    background: var(--yc-bg-hover);
    color: var(--yc-text-primary);
    transform: translateY(-2px);
}
.yc-ai-btn-gradient {
    background: var(--yc-gradient);
    color: #fff;
    border: none;
}
.yc-ai-btn-gradient:hover {
    filter: brightness(1.15);
    color: #fff;
}
.yc-ai-btn-outline {
    background: transparent;
    border-color: var(--yc-gradient-from);
    color: var(--yc-gradient-from);
}
.yc-ai-btn-outline:hover {
    background: rgba(64, 102, 255, 0.1);
}

/* === 表单元素 === */
.yc-form-group {
    margin-bottom: 16px;
}
.yc-form-label {
    display: block;
    color: var(--yc-text-secondary);
    font-size: 13px;
    margin-bottom: 6px;
}
.yc-form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--yc-bg-card);
    border: 1px solid var(--yc-border);
    border-radius: var(--yc-radius-md);
    color: var(--yc-text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color var(--yc-transition);
}
.yc-form-input:focus {
    border-color: var(--yc-gradient-from);
}
.yc-form-input::placeholder {
    color: var(--yc-text-muted);
}
.yc-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23868E9E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* === 开关组件 === */
.yc-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.yc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.yc-toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--yc-transition);
}
.yc-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--yc-transition);
}
.yc-toggle input:checked + .yc-toggle-slider {
    background: var(--yc-gradient);
}
.yc-toggle input:checked + .yc-toggle-slider::before {
    transform: translateX(20px);
}

/* === 标签页 === */
.yc-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--yc-radius-md);
    margin-bottom: 16px;
}
.yc-tab {
    flex: 1;
    padding: 8px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--yc-text-muted);
    border-radius: var(--yc-radius-sm);
    cursor: pointer;
    transition: all var(--yc-transition);
}
.yc-tab:hover {
    color: var(--yc-text-secondary);
}
.yc-tab.active {
    background: var(--yc-bg-card);
    color: var(--yc-text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* === 提示消息 === */
.yc-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: var(--yc-radius-md);
    font-size: 14px;
    z-index: 100000;
    animation: yc-toast-in 0.3s ease-out;
}
.yc-toast-success {
    background: rgba(72, 208, 135, 0.9);
    color: #fff;
}
.yc-toast-error {
    background: rgba(255, 92, 92, 0.9);
    color: #fff;
}
.yc-toast-warning {
    background: rgba(255, 179, 68, 0.9);
    color: #fff;
}
@keyframes yc-toast-in {
    from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* === 响应式移动端 === */
@media (max-width: 768px) {
    .yc-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .yc-chat-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        left: 0 !important;
        top: 0 !important;
        right: 0 !important;
    }
    .yc-floating-btn {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    .yc-nav-menu {
        display: none;
    }
    .yc-sidebar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .yc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .yc-card {
        padding: 16px;
    }
}

/* === 动画 === */
@keyframes yc-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.yc-animate-in {
    animation: yc-fade-in 0.4s ease-out;
}

/* === 打字机光标 === */
.yc-typing-cursor::after {
    content: '|';
    display: inline-block;
    animation: yc-cursor-blink 0.8s infinite;
    color: var(--yc-gradient-from);
    margin-left: 2px;
}
@keyframes yc-cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* === 积分充值弹窗 === */
.yc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--yc-transition);
}
.yc-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.yc-modal {
    width: 420px;
    max-width: 90vw;
    background: var(--yc-bg-card);
    border-radius: var(--yc-radius-lg);
    border: 1px solid var(--yc-border);
    box-shadow: var(--yc-shadow-float);
    transform: scale(0.9);
    transition: transform var(--yc-transition);
}
.yc-modal-overlay.active .yc-modal {
    transform: scale(1);
}
.yc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--yc-border);
}
.yc-modal-title {
    color: var(--yc-text-primary);
    font-size: 16px;
    font-weight: 600;
}
.yc-modal-close {
    background: none;
    border: none;
    color: var(--yc-text-muted);
    cursor: pointer;
    font-size: 20px;
    transition: color var(--yc-transition);
}
.yc-modal-close:hover {
    color: var(--yc-text-primary);
}
.yc-modal-body {
    padding: 20px;
}

/* 充值套餐 */
.yc-recharge-packages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.yc-package-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--yc-border);
    border-radius: var(--yc-radius-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--yc-transition);
}
.yc-package-card:hover {
    border-color: var(--yc-gradient-from);
    background: rgba(64, 102, 255, 0.08);
    transform: translateY(-2px);
}
.yc-package-card.selected {
    border-color: var(--yc-gradient-from);
    background: rgba(64, 102, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(64, 102, 255, 0.3);
}
.yc-package-name {
    color: var(--yc-text-secondary);
    font-size: 13px;
    margin-bottom: 4px;
}
.yc-package-points {
    color: var(--yc-text-primary);
    font-size: 22px;
    font-weight: 700;
}
.yc-package-price {
    color: var(--yc-text-muted);
    font-size: 12px;
    margin-top: 4px;
}

/* === 作品社区 === */
.yc-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.yc-work-card {
    background: var(--yc-bg-card);
    border-radius: var(--yc-radius-lg);
    overflow: hidden;
    border: 1px solid var(--yc-border);
    transition: all var(--yc-transition);
}
.yc-work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.yc-work-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #1a1d24, #252830);
}
.yc-work-body {
    padding: 16px;
}
.yc-work-title {
    color: var(--yc-text-primary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.yc-work-excerpt {
    color: var(--yc-text-muted);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.yc-work-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--yc-border);
}
.yc-work-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--yc-text-muted);
    font-size: 12px;
}
.yc-work-stats {
    display: flex;
    gap: 12px;
    color: var(--yc-text-muted);
    font-size: 12px;
}
.yc-work-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* === 工具类 === */
.yc-flex { display: flex; }
.yc-flex-center { display: flex; align-items: center; justify-content: center; }
.yc-flex-between { display: flex; align-items: center; justify-content: space-between; }
.yc-gap-8 { gap: 8px; }
.yc-gap-12 { gap: 12px; }
.yc-gap-16 { gap: 16px; }
.yc-mt-8 { margin-top: 8px; }
.yc-mt-16 { margin-top: 16px; }
.yc-mb-8 { margin-bottom: 8px; }
.yc-mb-16 { margin-bottom: 16px; }
.yc-text-center { text-align: center; }
.yc-text-muted { color: var(--yc-text-muted); }
.yc-text-success { color: var(--yc-text-success); }
.yc-text-error { color: var(--yc-text-error); }
