/* YoNote - 整合主样式文件 */

/* 字体定义 */
@font-face {
    font-family: 'LXGWWenKai';
    src: url('http://yonote.agent101.cn/LXGWWenKai-Regular.ttf') format('truetype');
    font-display: swap;
    /* 设置字体度量，防止布局抖动 */
    size-adjust: 100%;
}

/* ========================
   全局样式重置
======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
    /* 防止字体加载导致的布局抖动 */
    font-display: swap;
    /* 确保滚动条稳定 - 只有一个滚动条 */
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    width: 100%;
    font-family: 'LXGWWenKai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* 统一为纯浅灰底色，避免与页面类名冲突 */
    background-color: #f9fafb;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    /* 确保初始位置 */
    margin: 0;
    padding: 0;
    /* 避免双滚动条 */
    overflow: visible;
}

/* 背景装饰元素 */
body::before {
    /* 禁用叠加的径向渐变蒙版，保持底色纯净 */
    content: none;
}

@keyframes backgroundMove {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    33% {
        transform: rotate(1deg) scale(1.02);
    }
    66% {
        transform: rotate(-1deg) scale(0.98);
    }
}

/* ========================
   字体加载优化
======================== */
/* 防止字体加载时的布局抖动 */
.font-loading-fix {
    font-optical-sizing: auto;
    font-kerning: normal;
    text-rendering: optimizeSpeed;
}

/* 页面加载时的稳定性 */
.page-stable {
    /* contain: layout style; - 移除以避免影响fixed定位 */
    content-visibility: auto;
}

/* ========================
   动画关键帧
======================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================
   容器布局
======================== */
.page-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
    /* padding-top: 70px; - 已用Tailwind CSS pt-[70px]替代 */
    position: relative;
}

/* 内容容器（用于结果页面等） */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    min-height: calc(100vh - 70px);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ========================
   顶部导航栏 - 已用Tailwind CSS替代
======================== */
/*
.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
    z-index: 1000 !important;
    height: 70px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.025em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}
*/

/* ========================
   侧边栏导航 - 已用Tailwind CSS替代
======================== */
/*
.sidebar {
    position: fixed !important;
    left: 1.5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 50 !important;
}
*/

/* ========================
   用户界面组件
======================== */
/* 登录按钮样式 - 已用 Tailwind CSS 替代 */
/*
.login-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-btn:hover {
    background: white;
    border-color: #d1d5db;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
*/

/* 用户头像相关样式 */
.user-profile {
    position: relative;
    display: none;
}

.user-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

.user-avatar-img:hover {
    border-color: #19dca8;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(25, 220, 168, 0.15);
}

/* 悬浮卡片样式 - 已用 Tailwind CSS 替代 */
/*
.user-card {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1000;
    border: 1px solid #e5e7eb;
}
*/

.user-profile:hover .user-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-card::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 16px;
    width: 10px;
    height: 10px;
    background: white;
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

/* ========================
   按钮样式
======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: #19dca8;
    color: white;
    border-color: #19dca8;
}

.btn-primary:hover {
    background: #16a085;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 220, 168, 0.3);
}

.btn-secondary {
    background: #f8fafc;
    color: #374151;
    border-color: #e5e7eb;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.btn-danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

.btn-gradient {
    background: linear-gradient(135deg, #19dca8 0%, #16a085 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(25, 220, 168, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 220, 168, 0.4);
}

/* ========================
   表单组件
======================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.form-input:focus {
    border-color: #19dca8;
    box-shadow: 0 0 0 3px rgba(25, 220, 168, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========================
   输入区域样式
======================== */
.input-section {
    width: 100%;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.input-container {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.input-container:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.input-container textarea {
    width: 100%;
    min-height: 160px;
    padding: 24px 28px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    background: transparent;
    color: #374151;
    line-height: 1.6;
}

.input-container textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.input-actions {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ========================
   结果展示区域
======================== */
.result-section {
    margin-top: 40px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.result-header h2 {
    color: #111827;
    font-size: 20px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 切换开关 */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    font-size: 14px;
    color: #6b7280;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #19dca8;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* ========================
   视图组件
======================== */
/* 源码视图 */
.source-view {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    font-family: 'Courier New', Monaco, monospace;
    white-space: pre-wrap;
    overflow-x: auto;
    display: none;
    font-size: 14px;
    line-height: 1.5;
}

/* 渲染视图 */
.render-view {
    width: 100%;
    height: 600px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
}

/* ========================
   状态提示
======================== */
.status-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.status-success {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.status-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.status-info {
    background: #dbeafe;
    color: #16a085;
    border: 1px solid #93c5fd;
}

.status-warning {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

/* ========================
   加载指示器
======================== */
.loading-indicator {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #19dca8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

/* ========================
   欢迎区域（首页专用）
======================== */
.welcome-section {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.greeting {
    font-size: 20px;
    color: #6b7280;
    margin-bottom: 16px;
    font-weight: 400;
    letter-spacing: 0.025em;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.main-title {
    font-size: 48px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ========================
   主内容区域
======================== */
.main-content {
    flex: 1;
    padding: 20px 15px;
    padding-left: 88px; /* 为左侧导航栏留出空间 */
    width: 100%;
    min-height: 100vh;
}

/* ========================
   图片上传按钮样式
======================== */
#uploadButton {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

#uploadButton:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#uploadButton.uploading {
    cursor: wait;
    opacity: 0.8;
}

#uploadButton.uploading:hover {
    transform: none;
}

#uploadButton.success {
    padding: 0;
    border: 2px solid #10b981;
    background: transparent;
}

#uploadButton.success:hover {
    border-color: #059669;
}

#uploadButton.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

#uploadButton.error:hover {
    border-color: #dc2626;
    background-color: #fee2e2;
}

/* 删除按钮样式 */
.delete-image-btn {
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.delete-image-btn:hover {
    transform: scale(1.1);
}

/* 上传进度动画 */
@keyframes uploadPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

#uploadButton.uploading {
    animation: uploadPulse 2s ease-in-out infinite;
}

/* 成功状态的图片预览 */
#uploadButton.success img {
    transition: transform 0.3s ease;
}

#uploadButton.success:hover img {
    transform: scale(1.02);
}

/* 消息提示样式优化 */
.upload-message {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ========================
   响应式设计
======================== */
@media (max-width: 768px) {
    .page-container {
        padding-top: 60px;
    }
    
    .header {
        padding: 12px 20px;
        height: 60px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .nav-links {
        gap: 12px;
    }
    
    .main-content {
        padding: 40px 20px 20px;
    }
    
    .welcome-section {
        margin-bottom: 40px;
    }
    
    .main-title {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .greeting {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .input-container {
        border-radius: 16px;
    }
    
    .input-container textarea {
        min-height: 120px;
        padding: 20px;
        font-size: 16px;
    }
    
    .input-actions {
        bottom: 16px;
        right: 16px;
    }
    
    .content-container {
        padding: 10px;
        margin: 10px;
    }
    
    .result-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .user-card {
        right: -50px;
        min-width: 200px;
        padding: 16px;
    }
    
    .user-avatar-img {
        width: 32px;
        height: 32px;
    }
}

/* 主布局样式 - 已用 Tailwind CSS 替代 */
/*
.main-layout {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 16px 0;
    position: fixed;
    height: auto;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.sidebar-nav {
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    font-weight: 500;
    width: 44px;
    height: 44px;
    margin: 0 auto;
}

.nav-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    transform: scale(1.05);
}

.nav-item.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: scale(1.1);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
}

.nav-text {
    display: none;
}

.main-content {
    flex: 1;
    margin-left: 100px;
    margin-right: 40px;
    padding: 40px;
    min-height: calc(100vh - 70px);
    max-width: calc(100vw - 140px);
}
*/

/* Tab内容 */
.tab-content {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.tab-content.active {
    display: block;
}

/* 页面头部 */
.page-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title-section {
    display: flex;
    align-items: baseline;
}

.page-header h2 {
    color: #1e293b;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-align: left;
}

.project-count {
    font-family: 'LXGWWenKai', 'Microsoft YaHei', 'PingFang SC', 'SimHei', 'Arial', sans-serif;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* 按钮样式 */
.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #64748b;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 最近项目和优秀项目的section样式 */
.recent-projects-section,
.featured-projects-section {
    margin-top: 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h3 {
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.see-all {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.see-all:hover {
    color: #19dca8;
}

/* 项目页面样式 */
.projects-grid-container {
    margin-top: 16px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 固定一行5个 */
    gap: 16px; /* 增加间距 */
    width: 100%;
}

/* 优化后的项目卡片样式 - 使用Tailwind类，但保留必要的CSS覆盖 */
.projects-grid > * {
    /* 确保所有卡片都有相同的高度 */
    display: flex;
    flex-direction: column;
}

/* 确保卡片的高宽比生效 */
.projects-grid [style*="aspect-ratio"] {
    width: 100%;
}

/* 字体覆盖 */
.projects-grid h3 {
    font-family: 'LXGWWenKai', 'Microsoft YaHei', 'PingFang SC', 'SimHei', 'Arial', sans-serif;
}

.projects-grid p {
    font-family: 'LXGWWenKai', 'Microsoft YaHei', 'PingFang SC', 'SimHei', 'Arial', sans-serif;
}

/* 旧样式保留以防兼容性问题，但优先级较低 */
.project-card.legacy {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
}

.project-card.legacy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 移除旧的项目卡片样式，因为现在使用Tailwind */
.project-cover,
.project-cover-image,
.project-cover-gradient,
.project-content,
.project-title,
.project-time {
    /* 这些样式现在通过Tailwind类内联定义 */
}

/* 加载状态 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-container .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-container p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    margin-bottom: 24px;
    opacity: 0.3;
}

.empty-state h3 {
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.empty-state p {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 24px 0;
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'LXGWWenKai', 'Microsoft YaHei', 'PingFang SC', 'SimHei', 'Arial', sans-serif;
}

.pagination-btn:hover:not(:disabled) {
    background: #19dca8;
    color: white;
    border-color: #19dca8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 220, 168, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
    color: #94a3b8;
}

.page-info {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    padding: 0 20px;
    text-align: center;
    line-height: 1.4;
    font-family: 'LXGWWenKai', 'Microsoft YaHei', 'PingFang SC', 'SimHei', 'Arial', sans-serif;
}

.pagination-tips {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.refresh-tip {
    margin-top: 16px;
    text-align: center;
    padding: 12px;
    background: rgba(25, 220, 168, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(25, 220, 168, 0.1);
}

.refresh-tip span {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .refresh-tip {
        margin-top: 12px;
        padding: 10px;
    }
    
    .refresh-tip span {
        font-size: 12px;
    }
}

.project-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    background: white;
}

.project-thumbnail {
    margin-bottom: 16px;
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.project-info h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.project-info p {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.project-date {
    color: #94a3b8;
    font-size: 12px;
}

/* 创建新项目卡片 */
.project-card.create-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    border: 2px dashed rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.02);
    color: #6366f1;
}

.create-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

/* 优秀项目网格 */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.featured-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    background: white;
}

.featured-image {
    height: 120px;
    position: relative;
    overflow: hidden;
}

.featured-gradient {
    width: 100%;
    height: 100%;
}

.featured-content {
    padding: 20px;
}

.featured-content h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.featured-content p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
}

/* 筛选标签 */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-tab {
    padding: 8px 16px;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab.active,
.filter-tab:hover {
    background: #6366f1;
    color: white;
}

/* 项目列表 */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.project-item:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.project-details {
    flex: 1;
}

.project-details h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.project-details p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.project-tags {
    display: flex;
    gap: 8px;
}

.tag {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.project-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 150px;
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status.published {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status.draft {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.date {
    color: #94a3b8;
    font-size: 12px;
}

.actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #6366f1;
    color: white;
}

/* 发布统计 */
.publish-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 8px;
}

.stat-label {
    color: #64748b;
    font-size: 14px;
}

/* 已发布项目 */
.published-projects {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.published-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.published-item:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.publish-info {
    flex: 1;
}

.publish-info h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.publish-info p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.publish-stats {
    display: flex;
    gap: 16px;
}

.publish-stats .stat {
    color: #64748b;
    font-size: 14px;
}

.publish-actions {
    display: flex;
    gap: 8px;
}

/* 关于页面 */
.about-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.about-header {
    margin-bottom: 48px;
}

.about-logo h1 {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 16px 0;
}

.about-subtitle {
    color: #64748b;
    font-size: 18px;
    margin: 0;
}

.about-content {
    text-align: left;
}

.about-section {
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.8);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-section h3 {
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.about-section p {
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    color: #64748b;
    padding: 8px 0;
    position: relative;
    padding-left: 24px;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 600;
}

.contact-info p {
    margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 88px;
        margin-right: 20px;
        padding: 24px;
        max-width: calc(100vw - 108px);
    }
    
    .projects-grid,
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 50px;
        left: 6px;
        padding: 10px 0;
    }
    
    .sidebar-nav {
        padding: 0 5px;
        gap: 4px;
    }
    
    .nav-item {
        width: 40px;
        height: 40px;
        padding: 10px;
    }
    
    .nav-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .main-content {
        margin-left: 60px;
        margin-right: 10px;
        padding: 16px;
        max-width: calc(100vw - 70px);
    }
    
    .projects-grid,
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .project-meta {
        align-items: flex-start;
        width: 100%;
    }
    
    .published-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 42px;
        left: 3px;
        padding: 8px 0;
    }
    
    .nav-item {
        width: 35px;
        height: 35px;
        padding: 8px;
    }
    
    .nav-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .main-content {
        margin-left: 45px;
        margin-right: 5px;
        padding: 12px;
        max-width: calc(100vw - 50px);
    }
}

/* ========================
   简洁主页样式
======================== */

/* 主要输入区域 */
.main-input-section {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.greeting-text {
    margin-bottom: 40px;
}

.main-greeting {
    color: #1e293b;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.sub-greeting {
    color: #64748b;
    font-size: 18px;
    font-weight: 400;
    margin: 0;
}

/* 主输入容器 */
.input-container-main {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 100;
}

.input-container-main #userInput {
    width: 100%;
    min-height: 80px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    font-family: 'LXGWWenKai', sans-serif;
    color: #1e293b;
    resize: none;
    line-height: 1.6;
}

.input-container-main #userInput::placeholder {
    color: #94a3b8;
}

.input-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

.input-tools-left {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 1000;
}

.tool-btn-simple {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tool-btn-simple:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-color: rgba(99, 102, 241, 0.2);
}

.send-btn-main {
    width: 32px;
    height: 32px;
    background: #94a3b8;
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn-main:hover {
    background: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 最近项目展示 */
.recent-projects-display {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.projects-header h2 {
    color: #1e293b;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.see-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.see-all-btn:hover {
    color: #6366f1;
    transform: translateX(4px);
}

/* 项目网格 */
.projects-grid-simple {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 项目卡片 */
.project-card-simple {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.project-card-simple:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    background: white;
}

/* 分享状态徽章 */
.share-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 12px;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* 创建新项目卡片 */
.create-new-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    background: rgba(248, 250, 252, 0.5);
}

.create-new-simple:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.02);
}

.create-plus {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #6366f1;
}

.create-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

/* 项目预览 */
.project-preview {
    margin-bottom: 8px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
}

.project-images {
    display: flex;
    gap: 2px;
    height: 100%;
}

.project-thumb {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.project-label {
    color: white;
    font-size: 10px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    padding: 4px;
    text-align: center;
    line-height: 1.2;
}

/* 技能网格 */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    height: 100%;
}

.skill-item {
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 6px;
    color: #6366f1;
}

.skill-item svg {
    margin-bottom: 4px;
}

.skill-item span {
    font-size: 8px;
    font-weight: 500;
}

/* 项目信息 */
.project-info-simple {
    margin-top: 8px;
}

.project-info-simple h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.2;
}

.project-info-simple p {
    color: #94a3b8;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

/* 响应式设计 - 简洁主页 */
@media (min-width: 1400px) {
    .projects-grid-simple {
        max-width: 1600px;
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .main-greeting {
        font-size: 36px;
    }
    
    .projects-grid-simple {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .input-container-main {
        padding: 20px;
        border-radius: 16px;
    }
    
    .main-greeting {
        font-size: 32px;
    }
    
    .sub-greeting {
        font-size: 16px;
    }
    
    .projects-header h2 {
        font-size: 24px;
    }
    
    .projects-grid-simple {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .usecases-display .projects-grid-simple {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}
    
    .usecases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .main-input-section {
        margin-bottom: 60px;
    }
    
    .input-container-main {
        padding: 16px;
        max-width: 100%;
    }
    
    .main-greeting {
        font-size: 28px;
    }
    
    .input-container-main #userInput {
        min-height: 120px;
        font-size: 14px;
    }
    
    .input-tools-left {
        gap: 6px;
    }
    
    .tool-btn-simple,
    .send-btn-main {
        width: 36px;
        height: 36px;
    }
    
    .project-card-simple {
        padding: 16px;
    }
    
    .create-new-simple {
        min-height: 160px;
    }
    
    .projects-grid-simple {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .usecases-display .projects-grid-simple {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
    }
    
    .usecases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* 项目页面响应式设计 - 优化后的版本 */
@media (min-width: 1600px) {
    .projects-grid {
        grid-template-columns: repeat(6, 1fr); /* 超大屏一行6个 */
        gap: 20px;
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .projects-grid {
        grid-template-columns: repeat(5, 1fr); /* 大屏一行5个 */
        gap: 16px;
    }
}

@media (max-width: 1199px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr); /* 中屏一行4个 */
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-left: 70px; /* 平板设备减少左边距 */
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr); /* 平板一行3个 */
        gap: 12px;
    }
    
    /* 平板设备上调整卡片字体大小 */
    .projects-grid h3 {
        font-size: 0.875rem; /* text-sm */
    }
    
    .projects-grid p {
        font-size: 0.75rem; /* text-xs */
    }
    
    .pagination {
        flex-direction: column;
        gap: 12px;
    }
    
    .pagination-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-left: 50px; /* 手机设备进一步减少左边距 */
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr); /* 手机一行2个 */
        gap: 10px;
    }
    
    /* 手机设备上进一步调整卡片样式 */
    .projects-grid > * {
        /* 手机上使用稍微更方的比例 */
        aspect-ratio: 4/4.5 !important;
    }
    
    .projects-grid h3 {
        font-size: 0.75rem; /* text-xs */
        line-height: 1.1;
    }
    
    .projects-grid p {
        font-size: 0.6875rem; /* 11px */
    }
    
    /* 手机上调整内边距 */
    .projects-grid [class*="p-4"] {
        padding: 0.75rem; /* p-3 */
    }
    
    .projects-grid-container {
        margin-top: 12px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Use Cases 展示样式 */
.usecases-display {
    margin-top: 40px;
    max-width: 1200px; /* 从1400px减小到1200px，让展示区域更紧凑 */
    margin-left: auto;
    margin-right: auto;
}

.usecases-header-simple {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    position: relative;
}

.usecases-header-simple h3 {
    font-size: 18px;
    font-weight: 400;
    color: #64748b;
    margin: 0;
    text-align: center;
}

.see-all-btn-simple {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: absolute;
    right: calc((100% - 800px) / 2);
    top: 50%;
    transform: translateY(-50%);
}

.see-all-btn-simple:hover {
    color: #3b82f6;
    background: #eff6ff;
}

.usecases-display .projects-grid-simple {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.usecases-display .project-card-simple {
    min-height: 200px; /* 调整为更紧凑的高度 */
    padding: 10px;
}

.usecases-display .project-preview {
    height: 100px; /* 调整为更紧凑的高度 */
}

/* Use Cases 完整页面展示样式 */
.usecases-full-display {
    margin-top: 40px;
}

.usecases-header {
    text-align: center;
    margin-bottom: 3rem;
}

.usecases-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.usecases-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.usecases-grid .project-card-simple {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.usecases-grid .project-card-simple:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    background: white;
}

.usecases-grid .project-preview {
    margin-bottom: 16px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
}

.usecases-grid .project-info-simple h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 4px 0;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.usecases-grid .project-info-simple p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* 笔记类型卡片样式 */
.note-types-section {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.note-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.note-type-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    aspect-ratio: 3/2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.note-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #19dca8;
}

.note-type-card.active {
    border-color: #19dca8;
    box-shadow: 0 4px 16px rgba(25, 220, 168, 0.2);
}

.note-type-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #F9FAFB;
}

.note-type-card.disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.note-type-cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 16px;
}

.note-type-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    transition: all 0.3s ease;
}

.note-type-card:hover .note-type-cover::before {
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.note-type-card.active .note-type-cover::before {
    background: linear-gradient(to bottom, transparent 0%, rgba(25, 220, 168, 0.5) 100%);
}

.note-type-name {
    position: relative;
    z-index: 2;
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.note-type-card.disabled .note-type-name {
    color: rgba(255, 255, 255, 0.6);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .note-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .note-type-name {
        font-size: 13px;
    }
}

@media (min-width: 1024px) {
    .note-types-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 二级分类下拉卡片样式 */
.secondary-type-btn {
    min-width: 140px;
}

.secondary-type-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    margin-bottom: 8px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    aspect-ratio: 3/2;
    flex-direction: column;
}

.secondary-type-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #3B82F6;
}

.secondary-type-item.active {
    border-color: #19dca8;
    box-shadow: 0 0 0 1px #19dca8;
}

.secondary-type-item:last-child {
    margin-bottom: 0;
}

.secondary-type-icon {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 12px;
    background-color: #F3F4F6;
}

.secondary-type-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    transition: all 0.3s ease;
}

.secondary-type-item.active .secondary-type-icon::before {
    background: linear-gradient(to bottom, transparent 0%, rgba(25, 220, 168, 0.4) 100%);
}

.secondary-type-info {
    display: none;
}

.secondary-type-name {
    position: relative;
    z-index: 2;
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.secondary-type-desc {
    display: none;
}

.secondary-type-item.active .secondary-type-name {
    color: #1D4ED8;
}

.secondary-type-item.active .secondary-type-desc {
    color: #3B82F6;
}

/* Tailwind CSS辅助样式 - 确保新的笔记类型卡片样式正确工作 */
.note-type-active-overlay.opacity-100 {
    opacity: 1 !important;
}

.secondary-active-overlay.opacity-100 {
    opacity: 1 !important;
}

/* 确保Tailwind的渐变类能正确工作 */
.from-black\/30 {
    --tw-gradient-from: rgb(0 0 0 / 0.3);
    --tw-gradient-to: rgb(0 0 0 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-black\/40 {
    --tw-gradient-from: rgb(0 0 0 / 0.4);
    --tw-gradient-to: rgb(0 0 0 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-blue-500\/50 {
    --tw-gradient-from: rgb(59 130 246 / 0.5);
    --tw-gradient-to: rgb(59 130 246 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-blue-500\/40 {
    --tw-gradient-from: rgb(59 130 246 / 0.4);
    --tw-gradient-to: rgb(59 130 246 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

/* ========================
   新增控件样式
======================== */
/* 字体选择下拉框样式 */
.font-select {
    min-width: 120px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
}

.font-select:focus {
    border-color: #19dca8;
    box-shadow: 0 0 0 3px rgba(25, 220, 168, 0.1);
}

/* 原生下拉选项的选中/悬停配色（尽量统一为品牌绿；不同浏览器支持度不同） */
.font-select option {
    background-color: #ffffff;
    color: #111827;
}

.font-select option:checked,
.font-select option:active,
.font-select option:focus,
.font-select option:hover {
    background: #19dca8 linear-gradient(0deg, #19dca8, #19dca8) !important; /* 强制覆盖系统高亮 */
    color: #ffffff !important;
}

/* 某些浏览器在select聚焦时仅对“被选中项”应用系统蓝色，增加父子选择器进一步覆盖 */
.font-select:focus > option:checked {
    background: #19dca8 linear-gradient(0deg, #19dca8, #19dca8) !important;
    color: #ffffff !important;
}

/* 打开下拉或聚焦时的边框配色统一为品牌绿 */
.font-select:focus-visible {
    outline: none;
    border-color: #19dca8 !important;
    box-shadow: 0 0 0 3px rgba(25, 220, 168, 0.15) !important;
}

/* 兼容Safari/部分Chromium在focus状态不触发:focus-visible的情况 */
.font-select:focus {
    border-color: #19dca8 !important;
    box-shadow: 0 0 0 3px rgba(25, 220, 168, 0.15) !important;
}

/* 颜色选择框样式 */

/* 自定义下拉（用于字体选择的一致配色） */
.custom-select { position: relative; display: inline-block; }
.custom-select-button {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
    width: 140px; /* 与左侧二级分类宽度一致 */
    border: 1px solid #e5e7eb; /* 边框更浅，与其他控件一致 */
    border-radius: 8px; background: #ffffff; color: #374151;
    cursor: pointer; transition: box-shadow .2s ease, border-color .2s ease;
}
.custom-select-button:focus { outline: none; border-color: #19dca8; box-shadow: 0 0 0 3px rgba(25,220,168,.15); }
.custom-select-menu {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 2000; min-width: 100%;
    background: #ffffff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,.08);
    padding: 6px 0; max-height: 280px; overflow-y: auto; display: none;
}
.custom-option { padding: 10px 16px; color: #111827; cursor: pointer; white-space: nowrap; }
.custom-select-button span { white-space: nowrap; }
.custom-option:hover, .custom-option[aria-selected="true"] { background: #19dca8; color: #ffffff; }
.custom-select.open .custom-select-menu { display: block; }
.color-picker-container {
    position: relative;
    transition: all 0.2s ease;
    /* 确保容器可以正确处理鼠标事件 */
    pointer-events: auto;
}

.color-picker-container:hover {
    border-color: #d1d5db;
    transform: scale(1.05);
}

.color-picker-container:focus-within {
    border-color: #19dca8;
    box-shadow: 0 0 0 3px rgba(25, 220, 168, 0.1);
}

.color-picker {
    appearance: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-picker-block {
    transition: all 0.2s ease;
}

.color-picker-icon {
    transition: all 0.2s ease;
    /* 确保SVG图标正确显示 */
    display: block;
    /* 确保图标在容器中居中 */
    flex-shrink: 0;
}

/* 颜色选择器清除徽标样式 */
.color-clear-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
    /* 确保徽标可以正常交互 */
    pointer-events: auto;
    /* 确保徽标始终可见且可交互 */
    transform: translateZ(0);
    /* 添加边框确保可见性 */
    border: 1px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.color-clear-badge.show {
    opacity: 1;
}

.color-clear-badge:hover {
    background-color: #dc2626;
}

/* 当颜色选择器被禁用时隐藏清除徽标 */
.premium-feature.disabled .color-clear-badge {
    display: none;
}

.premium-tools-group.disabled .color-clear-badge {
    display: none;
}

/* ========================
   会员权限控制样式
======================== */
.premium-feature {
    position: relative;
}

.premium-feature.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.premium-feature.disabled:hover {
    transform: none;
    border-color: #e5e7eb;
}

/* 字体和颜色选择工具组 */
.premium-tools-group {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* 工具组禁用状态 */
.premium-tools-group.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.premium-tools-group.disabled:hover {
    transform: none;
}

/* 禁用状态下仍然可以显示悬浮提示 */
.premium-tools-group.disabled[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.premium-tools-group.disabled[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1f2937;
    margin-bottom: 1px;
    z-index: 1000;
    pointer-events: none;
}

/* 工具组的统一悬浮提示 */
.premium-tools-group[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.premium-tools-group[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1f2937;
    margin-bottom: 1px;
    z-index: 1000;
    pointer-events: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .font-select {
        min-width: 100px;
        font-size: 12px;
    }
    
    .color-picker-container {
        width: 36px;
        height: 36px;
    }
    
    .color-picker-block {
        width: 20px;
        height: 20px;
    }
    
    .color-picker-icon {
        width: 14px;
        height: 14px;
    }
}

.premium-tools-group[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1f2937;
    margin-bottom: 1px;
    z-index: 1000;
    pointer-events: none;
}

/* 保留原有的premium-feature样式，用于其他地方 */
.premium-feature.disabled .color-picker-icon {
    color: #9ca3af;
    opacity: 0.5;
}

.premium-feature.disabled .font-select {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.5;
}

.premium-feature.disabled .font-select option {
    color: #9ca3af;
}

/* 悬浮提示样式 */
.premium-feature[data-tooltip] {
    position: relative;
}

.premium-feature[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.premium-feature[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1f2937;
    margin-bottom: 1px;
}

.premium-tools-group.disabled .color-picker-icon {
    opacity: 0.5;
}