/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS 变量定义 */
:root {
    /* 主色调基础变量 - 全局统一 */
    --primary-base: #006239;           /* HSL(154.9, 100%, 19.2%) - 深绿色 */
    --primary-hover-base: #004d2e;     /* HSL(154.9, 100%, 15%) - 悬停深色 */
    --primary-light-base: #00804a;     /* HSL(154.9, 100%, 25%) - 浅色 */
    --primary-lighter-base: #00a35f;   /* HSL(154.9, 100%, 32%) - 更浅色 */
    --primary-bg-base: #d6f5e8;        /* HSL(154.9, 60%, 90%) - 极浅背景 */
    
    /* 深色主题（默认） */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1f1f1f;
    --bg-tertiary: #1a1a1a;
    --bg-green: #031b05;
    --bg-error: #290505;
    --bg-card: #161616;
    --bg-hover: #323232;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-tertiary: #4d4d4d;
    --text-muted: #dedede;
    --border-deep: #202020;
    --border-color: #323232;
    --border-light: #2e2e2e;
    --border-supper-light: #eeeeee;
    
    /* 主色调 - 统一使用深绿色 */
    --primary-color: var(--primary-base);
    --primary-hover: var(--primary-hover-base);
    --primary-light: var(--primary-light-base);
    
    /* 强调色 - 与主色调统一 */
    --accent-color: var(--primary-base);
    --accent-hover: var(--primary-hover-base);
    --accent-light: var(--primary-light-base);
    
    /* 成功色 - 使用主色调 */
    --success-color: var(--primary-base);
    --success-hover: var(--primary-hover-base);
    --success-light: #0d2927;
    
    /* 错误色 */
    --error-color: #ef4444;
    --error-hover: #dc2626;
    --error-deep: #7c0c0c;
    --error-light: #290505;
    
    /* 警告色 */
    --warning-color: #f59e0b;
    --warning-light: #422006;
    
    /* 导航色 */
    --nav-hover: #141414;
    --nav-active: #000000;
    --text-color-1: #10b981;
    --text-color-2: #f59e0b;
    --text-color-3: #3b82f6;
    --text-color-4: #ef4444;
    --text-color-5: #d97706;

    
    /* 字体家族定义 - 统一管理所有字体 */
    /* 通用字体：优先系统字体，支持中英文，跨平台兼容 */
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", 
                        "Microsoft YaHei", "微软雅黑", "PingFang SC", 
                        "Hiragino Sans GB", Roboto, "Helvetica Neue", 
                        Arial, "Noto Sans", "Noto Sans CJK SC", sans-serif;
    
    /* 等宽字体：代码和数据显示专用，Windows/macOS/Linux 全平台支持 */
    /* 英文/数字使用等宽字体，中文回退到优质比例字体（避免宋体） */
    --font-family-mono: ui-monospace, "SF Mono", Monaco, "Cascadia Mono", 
                        "Cascadia Code", Consolas, "Liberation Mono", 
                        "Courier New", 
                        "Microsoft YaHei", "微软雅黑", "PingFang SC", 
                        "Hiragino Sans GB", "Source Han Sans SC", 
                        "Noto Sans CJK SC", monospace, sans-serif;
}

/* 亮色主题 */
[data-theme="light"] {
    /* 背景色 - 纯白色调 */
    --bg-primary: #fcfcfc;
    --bg-secondary: #f3f3f3;
    --bg-tertiary: #ffffff;
    --bg-green: #f8f8f8;
    --bg-error: #fee2e2;
    --bg-card: #ffffff;
    --bg-hover: #e6e6e6;

    
    /* 文字色 - 深色文字 */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-muted: #64748b;
    
    /* 边框色 */
    --border-deep: #cbd5e1;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-supper-light: #333333;
    
    /* 主色调 - 统一使用深绿色 */
    --primary-color: var(--primary-base);
    --primary-hover: var(--primary-hover-base);
    --primary-light: var(--primary-light-base);
    
    /* 强调色 */
    --accent-color: var(--primary-base);
    --accent-hover: var(--primary-hover-base);
    --accent-light: var(--primary-light-base);
    
    /* 成功色 */
    --success-color: var(--primary-base);
    --success-hover: var(--primary-hover-base);
    --success-light: var(--primary-bg-base);
    
    /* 错误色 */
    --error-color: #ef4444;
    --error-hover: #dc2626;
    --error-light: #fee2e2;
    
    /* 警告色 */
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    
    /* 导航色 */
    --nav-hover: #f3f3f3;
    --nav-active: #f3f3f3;

    --text-color-1: #00a66f;
    --text-color-2: #f69c00;
    --text-color-3: #0958d7;
    --text-color-4: #d01919;
    --text-color-5: #ff8f0f;
}

/* 护眼主题 */
[data-theme="eye-care"] {
    /* 背景色 - 米黄色调（纸质感） */
    --bg-primary: #fbf7f4;
    --bg-secondary: #ece5d9;
    --bg-tertiary: #f8f2e9;
    --bg-green: #e5f3de;
    --bg-error: #fde8d9;
    --bg-card: #faf8f3;
    --bg-hover: #dacdbc;

    --primary-base: #8b7355;
    --primary-hover-base: #ae987e;
    --primary-light-base: #8b7355;
    --primary-bg-base: #d7c5b1;  
    
    /* 文字色 - 深棕绿色调（柔和） */
    --text-primary: #1c3d2b;
    --text-secondary: #3f5946;
    --text-tertiary: #6b7f6f;
    --text-muted: #5a6b5e;
    
    /* 边框色 */
    --border-deep: #c9c5b8;
    --border-color: #ddd9cc;
    --border-light: #e8e5d8;
    
    /* 主色调 - 统一使用深绿色 */
    --primary-color: var(--primary-base);
    --primary-hover: var(--primary-hover-base);
    --primary-light: var(--primary-light-base);
    
    /* 强调色 */
    --accent-color: #ae997e;
    --accent-hover: #ae987e;
    --accent-light: #8b7355;
    
    /* 成功色 */
    --success-color: var(--primary-base);
    --success-hover: var(--primary-hover-base);
    --success-light: var(--primary-bg-base);
    
    /* 错误色 - 温暖橙红（降低刺激） */
    --error-color: #dc6a3a;
    --error-hover: #c55a2a;
    --error-light: #fde8d9;
    
    /* 警告色 */
    --warning-color: #d97706;
    --warning-light: #fef3c7;
    
    /* 导航色 */
    --nav-hover: var(--bg-secondary);
    --nav-active: var(--bg-secondary);
    --text-color-1: #b28044;
    --text-color-2: #d18400;
    --text-color-3: #145fd9;
    --text-color-4: #ef4444;
    --text-color-5: #ff8f0f;
    --text-color-6: #8b7355;
    --text-color-7: #c55a2a;
    --text-color-8: #7c5d3b;
    --text-color-9: #a68968;
    --text-color-10: #5a6b5e;

}

/* 兼容旧的 .light-theme 类名 */
.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fdfb;
    --bg-tertiary: #f0fdf9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    overflow-y: hidden;
}

h1 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    margin: 5px 0 10px 0;
}


#tools-icon {
    width: 200px;
    height: 53px;
}

/* 顶部导航栏 */

.header-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.footer {
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
}

.logo-icon {
    font-size: 24px;
}


.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle, .settings-btn {
    width: 36px;
    height: 36px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.theme-toggle:hover, .settings-btn:hover {
    background-color: var(--border-color);
}

/* 主容器 */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 侧边栏 - MCP 风格 */
.sidebar {
    width: 230px;
    background-color: var(--bg-tertiary);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 100vh;
    transition: width 0.3s ease;
    position: relative;
}

/* 侧边栏折叠状态 */
.sidebar.collapsed {
    width: 30px;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-header,
.sidebar.collapsed .sidebar-nav,
.sidebar.collapsed .whats-new,
.sidebar.collapsed .sidebar-footer {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* 折叠状态下的展开指示器 */
.sidebar.collapsed::before {
    content: '>>';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: normal;
    cursor: pointer;
    z-index: 10;
}

/* 侧边栏头部 */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px dashed var(--border-color);
    padding: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.version-badge {
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid var(--border-light);
}



/* 导航区域 */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 0px;
}

.nav-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 20px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 0 8px;
    margin-bottom: 5px;
}

.nav-title:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.nav-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

/* 展开状态的样式 */
.nav-section.expanded .nav-title-icon {
    transform: rotate(0deg);
}

.nav-section.expanded .nav-list {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    margin-bottom: 15px;
}

/* 折叠状态的样式 */
.nav-section.collapsed .nav-title-icon {
    transform: rotate(-90deg);
}

.nav-section.collapsed .nav-list {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

/* What's New 更新日志模块 */
.whats-new {
    margin: 20px 16px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    border-left: 3px solid var(--border-color);
}

.whats-new-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.whats-new-header svg {
    color: var(--accent-light);
    flex-shrink: 0;
}

.whats-new-header span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.whats-new-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.update-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.update-date {
    font-size: 9px;
    color: var(--text-secondary);
    font-family: var(--font-family-mono);
}

.update-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.update-link {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.update-link:hover {
    color: var(--accent-light);
    border-bottom-color: var(--accent-light);
}

/* 导航列表过渡动画 */
.nav-list {
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-icon {
    font-size: 14px;
    opacity: 0.8;
}

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 6px 8px 33px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    position: relative;
    line-height: 1.4;
}


.nav-item:hover {
    background-color: var(--nav-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background-color: var(--nav-active);
    color: var(--text-primary);
    font-weight: 500;
}


.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--accent-light);
}

.nav-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    opacity: 0.6;
    transition: all 0.15s ease;
}

.nav-item:hover .nav-dot {
    background-color: var(--text-secondary);
    opacity: 1;
}

.nav-item.active .nav-dot {
    background-color: var(--accent-light);
    opacity: 1;
}

/* 侧边栏底部 */
.sidebar-footer {
    padding: 16px 24px 20px 32px;
    border-top: 1px dashed var(--border-color);
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

/* 分享功能区域 */
.share-section {
    width: 100%;
}

.share-input-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.share-url-input {
    flex: 1;
    padding: 5px 8px !important;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top-left-radius: 6px !important;
    border-bottom-left-radius: 6px !important;
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    color: var(--text-primary);
    font-size: 9px !important;
    font-family: var(--font-family-mono) !important;
    width: 30px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.2s ease;

}

.share-url-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.share-btn {
    width: 24.5px;
    height: 24.5px;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.share-btn:hover {
    background: var(--bg-tertiary);
    color: var(--accent-light);
    border-color: var(--accent-light);
}

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

.share-btn-copy {
    border-radius: 0px !important;
    border-right: none !important;
    border-left: none !important;
}

.share-btn-copy:hover {
    background-color: var(--accent-light);
    color: white;
}

.share-btn-qr {
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
}

.share-btn-qr:hover {
    background-color: var(--accent-light);
    color: white;
}

/* 二维码弹窗模态框 */
.qr-code-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-code-modal.active {
    opacity: 1;
}

.qr-code-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.qr-code-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 320px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.qr-code-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.qr-code-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-family-base);
}

.qr-code-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    padding: 0;
}

.qr-code-modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.qr-code-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#qrCodeContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

#qrCodeContainer canvas,
#qrCodeContainer img {
    max-width: 100%;
    height: auto;
}

.qr-code-hint {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    font-family: var(--font-family-base);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .share-url-input {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .share-btn {
        width: 28px;
        height: 28px;
    }
    
    .qr-code-modal-content {
        min-width: 280px;
        margin: 20px;
    }
    
    .qr-code-modal-body {
        padding: 20px;
    }
    
    #qrCodeContainer {
        padding: 12px;
    }
}

/* 底部按钮组容器 */
.footer-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 底部图标按钮统一样式 */
.sidebar-collapse-btn,
.theme-toggle-icon,
.footer-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    text-decoration: none;
}

.sidebar-collapse-btn:hover,
.theme-toggle-icon:hover,
.footer-link-icon:hover {
    background: var(--bg-tertiary);
    color: var(--accent-light);
    border-color: var(--accent-light);
}

.sidebar-collapse-btn svg,
.theme-toggle-icon svg,
.footer-link-icon svg {
    width: 16px;
    height: 16px;
    transition: all 0.2s ease;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: var(--text-secondary);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 0px 40px;
    overflow-y: auto;
    background-color: var(--bg-primary);
    border-left: 1px solid var(--border-color);
}

.tool-panel {
    display: none;
    width: 100%;
}

.tool-panel.active {
    display: block;
}

.tool-header {
    margin-bottom: 10px;
    padding-bottom: 16px;
    /* border-bottom: 1px solid var(--border-color); */
    padding-top: 20px;
}

.tool-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.tool-header p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

/* 工具内容 */
.tool-content {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.input-section, .output-section {
    margin-bottom: 24px;
}

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

.section-header h1 {
    font-size: 16px;
    font-weight: 600;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 600;
}

.section-header .title {
    font-size: 16px;
    font-weight: 600;
}

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

/* 按钮样式 */
.btn-primary, .btn-secondary {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-primary {
    background-color: var(--accent-light);
    border-color: var(--accent-light);
    color: white;
}
.btn-secondary {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-sm{
    padding: 4px 10px;
    font-size: 12px;
}

.btn-primary:hover {
    background-color: var(--bg-primary);
    border-color: var(--border-supper-light);
    color: var(--text-primary);

}


.btn-secondary:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-light);
    color: white;
}

/* 按钮禁用状态 */
.btn-primary:disabled,
.btn-secondary:disabled,
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary:disabled:hover,
.btn-secondary:disabled:hover,
button:disabled:hover {
    background-color: inherit;
    border-color: inherit;
    color: inherit;
    transform: none;
}

.btn-copy{
    padding: 4px 8px;
    font-size: 11px;
    border: 1px solid var(--accent-light);
    border-radius: 4px;
    background: var(--accent-light);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    margin-left: 8px;
}
.btn-copy:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-copy:active {
    background-color: var(--accent-light);
    border-color: var(--accent-light);
}


/* 表单元素 */
inport[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
}

textarea, input[type="text"], input[type="number"], select {
    /* width: 100%; */
    padding: 12px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-family-mono);
    resize: vertical;
}

textarea:focus, input:focus, select:focus {
    outline: none;
    border-color: var(--accent-light);
}

/* Placeholder 统一字体样式 - 确保跨浏览器兼容性 */
input::placeholder,
textarea::placeholder {
    font-family: inherit;
    opacity: 0.6;
    color: var(--text-secondary);
}

/* WebKit 浏览器 (Chrome, Safari, Edge) */
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    font-family: inherit;
    opacity: 0.6;
    color: var(--text-secondary);
}

/* Firefox */
input::-moz-placeholder,
textarea::-moz-placeholder {
    font-family: inherit;
    opacity: 0.6;
    color: var(--text-secondary);
}

/* IE 10-11 */
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    font-family: inherit;
    opacity: 0.6;
    color: var(--text-secondary);
}

/* Edge (旧版) */
input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
    font-family: inherit;
    opacity: 0.6;
    color: var(--text-secondary);
}

#jsonOutput {
    background-color: var(--bg-tertiary);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 16px;
    font-family: var(--font-family-mono);
    font-size: 14px;
    line-height: 1.4;
    overflow-x: auto;
    min-height: 200px;
    white-space: pre-wrap;
}

/* 错误消息 */
.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--error-color);
    display: none;
}

.error-message.show {
    display: block;
}

/* 通用行号样式 - 被JSON和其他模块共享 */
.line-numbers {
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 12px 8px;
    min-width: 40px;
    font-family: var(--font-family-mono);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
    user-select: none;
    white-space: pre;
    text-align: right;
    overflow: hidden;
}

/* 通用编辑器状态栏 */
.editor-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-family-mono);
}

.cursor-position {
    font-weight: 500;
    color: var(--text-primary);
}

.editor-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.separator {
    opacity: 0.5;
}

.input-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}


.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.diff-result {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    min-height: 200px;
    font-family: var(--font-family-mono);
    font-size: 14px;
}


.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--accent-light);
    border-bottom-color: var(--accent-light);
}

.tab-content {
    display: none;
}

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

/* 通用表单组样式 */
.form-group {
    margin-bottom: 16px;
}

.form-group-narrow {
    margin-bottom: 0px;
}

.form-group label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 8px;
    color: var(--text-primary);
    font-size: 12px;
}

.form-group input[type="checkbox"] {
    width: auto;
    padding: 0;
}

.form-group textarea {
    min-height: 80px;
}

.form-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.form-row .form-group {
    flex: 1;
}

.form-group .main-input {
    height: 55px;
    font-size: 33px;
}

/* 状态栏 */
.status-bar {
    height: 30px;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 12px;
    color: var(--text-muted);
}



/* JSON 文档说明样式 */
.documentation-section {
    margin-top: 24px;
}

.doc-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 32px;
    overflow: hidden;
}

.doc-panel h1 {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 21px;
    font-weight: 700;
    margin: 0;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.doc-panel blockquote {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-light);
    border-radius: 4px;
    padding: 16px;
    margin: 16px 0;
}


.doc-panel h2 {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 21px;
    font-weight: 600;
    margin: 0;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.doc-content {
    padding: 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.doc-content p {
    margin-bottom: 16px;
}

.doc-content h3 {
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 600;
    margin: 10px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.doc-content h4 {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
}

.doc-content ul {
    margin: 16px 0;
    padding-left: 20px;
}

.doc-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.doc-content a {
    color: var(--accent-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

.doc-content a:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-light);
}

.doc-content code {
    color: var(--accent-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-family-mono);
    font-size: 13px;
}

.doc-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
    color: var(--text-primary);
    font-family: var(--font-family-mono);
    font-size: 13px;
    line-height: 1.4;
}


/* 功能网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 0px 0px 24px 0px;
}

.feature-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 24px 24px 24px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.feature-item h4 {
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-size: 18px;
}

.feature-item p {
    margin: 0 0 16px 0;
    color: var(--text-secondary);
}

.feature-item ul {
    margin: 0;
    padding-left: 20px;
}

.feature-item li {
    margin-bottom: 6px;
}



/* 数据类型网格 */
.data-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.type-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.type-item:hover {
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

.type-item h4 {
    color: var(--accent-light);
    margin: 0 0 8px 0;
    font-size: 14px;
}

.type-item code {
    display: block;
    margin: 8px 0;
    padding: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
}

.type-item p {
    margin: 8px 0 0 0;
    color: var(--text-muted);
}

/* 应用场景网格 */
.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.use-case {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.use-case:hover {
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

.use-case h4 {
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-size: 16px;
}

.use-case p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}


.example {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
    margin-top: 16px;
    word-break: break-all;
}

.example strong {
    color: var(--text-primary);
}

/* 使用步骤 */
.steps {
    margin: 24px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: var(--accent-light);
}

.step-number {
    background: var(--accent-color);
    color: var(--bg-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--text-primary);
    margin: 0 0 8px 0;
    font-size: 16px;
}

.step-content p {
    margin: 0;
    color: var(--text-secondary);
}

/* Schema 功能特性 */
.schema-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 0px 0px 24px 0px;
}

.schema-feature {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.schema-feature:hover {
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

.schema-feature h4 {
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-size: 16px;
}

.schema-feature p {
    margin: 0 0 12px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.schema-feature ul {
    margin: 0;
    padding-left: 16px;
}

.schema-feature li {
    margin-bottom: 4px;
    font-size: 13px;
}

/* Schema 使用场景 */
.use-cases-schema {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.use-case-schema {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.use-case-schema:hover {
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

.use-case-schema h4 {
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-size: 16px;
}

.use-case-schema p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 操作指南 */
.guide-steps {
    margin: 24px 0;
}

.guide-step {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.guide-step:hover {
    border-color: var(--accent-light);
}

.guide-step h4 {
    color: var(--accent-light);
    margin: 0 0 8px 0;
    font-size: 16px;
}

.guide-step p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 标准文档网格 */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.standard-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.standard-item:hover {
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

.standard-item h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.standard-item h4 a {
    color: var(--accent-light);
    text-decoration: none;
}

.standard-item h4 a:hover {
    color: var(--accent-hover);
}

.standard-item p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* 工具网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.tool-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.tool-item:hover {
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

.tool-item h4 {
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-size: 16px;
}

.tool-item ul {
    margin: 0;
    padding-left: 16px;
}

.tool-item li {
    margin-bottom: 6px;
    font-size: 14px;
}

/* 最佳实践 */
.best-practices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 24px 0 0 0;
}

.practice-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.practice-item:hover {
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

.practice-item h4 {
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-size: 16px;
}

.practice-item ul {
    margin: 0;
    padding-left: 16px;
}

.practice-item li {
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.benefit-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.benefit-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.benefit-item:hover { 
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

/* 响应式设计 */
/* @media (max-width: 1024px) {
    .sidebar {
        width: 280px;
    }
    
    .main-content {
        padding: 24px 32px;
    }
} */

#resultHeader{
    height: 37.1px;
}


@media (max-width: 1300px) {
    body {
        font-size: 12px;
    }
    #resultHeader{
        height: 28.5px;
    }
    .doc-panel h2 {
        font-size: 18px;
        padding: 16px 20px;
    }

    .tool-header h2 {
        font-size: 18px;
        font-weight: 600;
    }
    
    .doc-content {
        padding: 20px;
    }

    .data-types-grid,
    .use-cases,
    .feature-grid,
    .schema-features,
    .use-cases-schema,
    .standards-grid,
    .tools-grid,
    .best-practices {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 300px;
        order: 2;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .sidebar-nav {
        display: flex;
        gap: 24px;
        padding: 16px 24px;
    }
    
    .nav-section {
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .main-content {
        order: 1;
        padding: 20px 24px;
    }
    
    .diff-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .uuid-controls {
        grid-template-columns: 1fr;
    }
    
    .tool-content {
        padding: 24px;
    }
    



    .sort-dropdown-menu {
        min-width: 120px;
    }
    
    .sort-option {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .sort-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    textarea, input[type="text"], input[type="number"], select {
        /* width: 100%; */
        padding: 6px;
        font-size: 11px;
    }

}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* =================================================================
   通用下拉菜单组件样式 (可在所有页面复用)
   ================================================================= */

.dropdown-container {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    user-select: none;
    white-space: nowrap;
}

.dropdown-btn:hover {
    background: var(--border-color);
    border-color: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(222, 222, 222, 0.2);
}

.dropdown-btn:active {
    transform: translateY(0);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.7;
    margin-left: 2px;
}

.dropdown-btn:hover .dropdown-arrow {
    opacity: 1;
}

.dropdown-container.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    min-width: 140px;
    margin-top: 4px;
}

/* 右对齐下拉菜单 - 用于处于页面右侧的下拉按钮 */
.dropdown-menu-right {
    left: auto;
    right: 0;
}

.dropdown-container.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 10px 12px;
    cursor: pointer;
    color: var(--text-primary);
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: var(--accent-light);
    color: white;
    border-radius: 6px;
}

.dropdown-option.disabled:hover {
    color: var(--text-primary);
}

.dropdown-option:active {
    background: var(--accent-color);
    color: white;
}

/* 加载状态 */
.dropdown-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.dropdown-btn.loading .dropdown-arrow {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 响应式样式 */
@media (max-width: 768px) {
    .dropdown-menu {
        min-width: 120px;
    }
    
    .dropdown-option {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .dropdown-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* 兼容性：保持原有的sort-*类名以支持现有代码 */
.sort-dropdown-container {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;

    border-radius: 6px;

    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    user-select: none;
    white-space: nowrap;
}



.sort-btn:active {
    transform: translateY(0);
}

.sort-dropdown-container.open .dropdown-arrow {
    transform: rotate(180deg);
}

.sort-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    min-width: 140px;
    margin-top: 4px;
}

/* 右对齐下拉菜单 - 用于处于页面右侧的下拉按钮 */
.sort-dropdown-menu.dropdown-menu-right {
    left: auto;
    right: 0;
}

.sort-dropdown-container.open .sort-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option {
    padding: 10px 12px;
    cursor: pointer;
    color: var(--text-primary);
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    white-space: nowrap;
}

.sort-option:last-child {
    border-bottom: none;
}

.sort-option:hover {
    background: var(--accent-light);
    color: white;
    border-radius: 6px;
}

.sort-option:active {
    background: var(--accent-color);
    color: white;
}

.sort-btn.sorting {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.sort-btn.sorting .dropdown-arrow {
    animation: spin 1s linear infinite;
}


/* ================================ */
/* 移动端导航栏样式 */
/* ================================ */

/* 移动端导航基础样式 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

/* 移动端导航头部 */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    height: 60px;
}

/* 移动端Logo */
.mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-logo-icon {
    width: 200px;
    height: 53px;
    border-radius: 6px;
}

.mobile-logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

/* 移动端头部操作按钮容器 */
.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 移动端主题切换按钮 */
.mobile-theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.mobile-theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--accent-light);
    border-color: var(--accent-light);
}

.mobile-theme-toggle:active {
    transform: scale(0.95);
}

.mobile-theme-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.2s ease;
}

/* 月亮图标只需要fill */
.mobile-theme-icon path[d*="M12 3c"] {
    stroke: none;
}

/* 眼睛图标只需要fill */
.mobile-theme-icon path[d*="M12 4.5C7"] {
    stroke: none;
}

/* 汉堡菜单按钮 */
.mobile-menu-toggle {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover{
    background-color: var(--bg-tertiary);
    color: var(--accent-light);
    border-color: var(--accent-light);
}

.mobile-menu-toggle:hover .hamburger-line{
    background-color: var(--accent-light);
}


.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* 汉堡菜单动画 */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 移动端菜单主体 */
.mobile-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}


.mobile-nav-menu.open {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

/* 菜单内容区域 */
.mobile-nav-sections {
    padding: 16px 0;
}

/* 移动端菜单分组 */
.mobile-nav-section {
    margin-bottom: 16px;
}

.mobile-nav-section:last-child {
    margin-bottom: 0;
}

.mobile-nav-section-title {
    padding: 8px 20px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 移动端菜单项容器 */
.mobile-nav-items {
    display: flex;
    flex-direction: column;
}

/* 移动端菜单项 */
.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 6px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-item:hover {
    background-color: var(--nav-hover);
    color: var(--text-primary);
    border-left-color: var(--accent-light);
}

.mobile-nav-item.active {
    background-color: var(--nav-active);
    color: var(--text-primary);
    border-left-color: var(--accent-light);
}

/* 移动端菜单项图标 */
.mobile-nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
    margin-right: 12px;
    transition: background-color 0.2s ease;
}

.mobile-nav-item:hover .mobile-nav-dot,
.mobile-nav-item.active .mobile-nav-dot {
    background-color: var(--accent-light);
}

/* 移动端菜单项文本 */
.mobile-nav-text {
    font-size: 14px;
    font-weight: 500;
}

/* 防止页面滚动 */
body.mobile-menu-open {
    overflow: hidden;
}

/* 移动端显示规则 */
@media (max-width: 1300px) {

    /* 显示移动端导航 */
    .mobile-nav {
        display: block;
    }
    
    /* 隐藏桌面端侧边栏 */
    .sidebar {
        display: none;
    }
    
    /* 隐藏移动端的 What's New */
    .whats-new {
        display: none;
    }
    
    /* 调整主容器布局 */
    .main-container {
        flex-direction: column;
        padding-top: 60px; /* 为顶部导航栏留出空间 */
    }
    
    .main-content {
        width: 100%;
        padding: 0 16px 16px 16px;
        flex:1;
    }

    .btn-secondary{
        font-size: 11px;
        padding:6px 6px;
    }
    .btn-primary{
        font-size: 11px;
        padding:6px 6px;
    }

    .section-header h1{
        font-size: 13px;
    }

    .sort-btn{
        padding:8px 6px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .mobile-nav-header {
        padding: 10px 12px;
        height: 56px;
    }
    
    .main-container {
        padding-top: 56px;
    }
    
    .main-content {
        padding: 12px;
    }
    
    .mobile-logo-text {
        font-size: 14px;
    }
    
    .mobile-theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .mobile-theme-icon {
        width: 18px;
        height: 18px;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    .hamburger-line {
        width: 18px;
    }

    .btn-secondary{
        padding:2px 6px;
    }
    .sort-btn{
        padding:8px 6px;
    }
}

/* ============================================
   主题切换器样式（侧边栏小图标版）
   ============================================ */


/* 主题切换小图标 */
/* SVG图标支持stroke和fill */
.theme-icon-svg {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 月亮图标只需要fill */
.theme-icon-svg path[d*="M12 3c"] {
    stroke: none;
}

/* 眼睛图标只需要fill */  
.theme-icon-svg path[d*="M12 4.5C7"] {
    stroke: none;
}

/* 主题切换过渡动画 */
[data-theme] {
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme] * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* 关键元素避免过渡闪烁 */
[data-theme] img,
[data-theme] video,
[data-theme] iframe,
[data-theme] .no-transition {
    transition: none !important;
}

 
/* ==================== 用户导航区域样式 ==================== */

/* 用户区域容器 */
.nav-user-area {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 用户信息触发器 */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
}

.user-info:hover {
    background-color: var(--bg-secondary);
}

/* 用户头像 */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--accent-light);
    border: 2px solid var(--border-color);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* 未激活用户头像 - 橙色背景 */
.user-avatar-inactive {
    background-color: #ff9800 !important; /* 橙色背景 */
    border-color: #ff9800 !important;
    position: relative;
}

.user-avatar-inactive::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background-color: rgba(255, 152, 0, 0.3);
    pointer-events: none;
}

.user-info:hover .user-avatar {
    border-color: var(--accent-color);
}

[data-theme="light"] .user-info:hover {
    background-color: var(--accent-light);
}

.user-info:hover .user-avatar-inactive {
    border-color: #ff9800;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
}

/* 用户昵称 */
.user-nickname {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

/* 下拉箭头 */
.dropdown-arrow {
    font-size: 10px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

/* 菜单激活时箭头旋转 */
.nav-user-area:hover .dropdown-arrow,
.user-dropdown-menu.active ~ .user-info .dropdown-arrow {
    transform: rotate(180deg);
}

/* 用户下拉菜单 */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    width: 140px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 菜单头部 */
/* .user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
} */

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--accent-light);
    border: 2px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.user-menu-info {
    flex: 1;
    overflow: hidden;
}

.user-menu-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.user-menu-email {
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 菜单分隔线 */
.user-menu-divider {
    height: 1px;
    background: var(--border-color);
}

/* 菜单项 */
.user-menu-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 16px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.user-menu-item:hover {
    background-color: var(--accent-light);
    color: white;
    font-weight: 600;
}

.user-menu-item:active {
    background-color: var(--bg-tertiary);
}

.menu-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* 登出项特殊样式 */
#logoutMenuItem {
    color: var(--error-color);
}

#logoutMenuItem:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-dropdown-menu {
        right: 0;
        width: 280px;
        max-width: calc(100vw - 20px);
    }
    
    .user-nickname {
        display: none;
    }
    
    .user-info {
        padding: 6px;
    }
}

/* 深色主题特定样式 */
[data-theme="dark"] .user-dropdown-menu {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* 浅色主题特定样式 */
[data-theme="light"] .user-dropdown-menu {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

[data-theme="light"] .user-nickname {
    color: white;
}

[data-theme="light"] .user-menu-header {
    background: #f5f5f5;
}

/* 护眼主题特定样式 */
[data-theme="eye-care"] .user-dropdown-menu {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ============================================
   同类工具推荐模块样式（全局通用）
   ============================================ */

/* 推荐模块容器 */
.related-tools-section {
    margin-top: 24px;
    margin-bottom: 32px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: normal;
}

/* 工具推荐子部分 */
.tools-recommendation-subsection {
    margin-top: 32px;
}

.tools-recommendation-subsection:first-child {
    margin-top: 0px;
}

.tools-recommendation-subsection h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.related-tools-container {
    margin-top: 16px;
}

/* 加载状态 */
.related-tools-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    padding: 40px 20px;
}

.related-tools-loading .loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 空状态和错误状态 */
.related-tools-empty,
.related-tools-error {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 14px;
}

/* 工具网格布局 */
.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 工具卡片 */
.related-tool-card {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.related-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--accent-light), 
        var(--accent-hover), 
        var(--accent-light)
    );
    opacity: 0;
    transition: opacity 0.3s;
}

.related-tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.related-tool-card:hover::before {
    opacity: 1;
}

/* 工具卡片头部 */
.related-tool-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.related-tool-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

/* 工具徽章 */
.related-tool-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.related-tool-badge.new {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-light);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.related-tool-badge.popular {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* 工具描述 */
.related-tool-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 工具短域名 */
.related-tool-domain {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.related-tool-domain svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.related-tool-card:hover .related-tool-domain {
    color: var(--accent-light);
}

.related-tool-card:hover .related-tool-domain svg {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .related-tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .related-tool-card {
        padding: 16px;
    }

    .related-tool-title {
        font-size: 15px;
    }

    .related-tool-desc {
        font-size: 12px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .related-tools-section {
        margin-top: 32px;
        margin-bottom: 24px;
    }

    .related-tools-container {
        margin-top: 16px;
    }

    .related-tool-card {
        padding: 12px;
    }

    .related-tool-title {
        font-size: 14px;
    }

    .related-tool-desc {
        font-size: 11px;
        -webkit-line-clamp: 3;
    }

    .related-tool-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* ========================================
   日期时间选择器组件样式（可复用）
   ======================================== */

/* 日期时间选择器弹出面板 */
.datetime-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.datetime-picker-overlay.show {
    display: flex;
}

.datetime-picker-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 560px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    animation: panelFadeIn 0.3s ease-out;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.datetime-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.datetime-picker-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.datetime-picker-body {
    display: flex;
    padding: 20px;
    gap: 20px;
}

/* 日历部分 */
.calendar-section {
    flex: 1;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 8px;
}

.nav-btn {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.nav-btn:hover {
    background-color: var(--border-color);
    border-color: var(--accent-light);
}

.calendar-title {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 8px;
}

.weekday {
    text-align: center;
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
    color: var(--text-primary);
}

.calendar-day:hover {
    background-color: var(--border-color);
}

.calendar-day.selected {
    background-color: var(--accent-light);
    color: var(--bg-primary);
    font-weight: 600;
}

.calendar-day.other-month {
    color: var(--text-muted);
    opacity: 0.5;
}

.calendar-day.today {
    background-color: var(--bg-secondary);
    font-weight: 600;
    border: 2px solid var(--accent-color);
}

.calendar-day.today.selected {
    background-color: var(--accent-light);
    color: var(--bg-primary);
}

/* 时间选择部分 */
.time-section {
    display: flex;
    gap: 12px;
    min-width: 180px;
}

.time-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-column label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.time-scroll {
    height: 320px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-tertiary);
    width: 100%;
}

.time-item {
    padding: 8px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.time-item:hover {
    background-color: var(--border-color);
}

.time-item.selected {
    background-color: var(--accent-light);
    color: var(--bg-primary);
    font-weight: 600;
}

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

/* 底部按钮 */
.datetime-picker-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

/* 滚动条样式 */
.time-scroll::-webkit-scrollbar {
    width: 6px;
}

.time-scroll::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.time-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.time-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .datetime-picker-panel {
        width: 90vw;
        max-width: 480px;
    }
    
    .datetime-picker-body {
        flex-direction: column;
        gap: 16px;
    }
    
    .time-section {
        width: 100%;
    }
}

/* ==================== 工具上下文管理模态框样式（全局复用） ==================== */
/* 云端管理/保存模态框样式 - 用于数据表设计器、证书生成器等工具 */

.rule-group-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.rule-group-modal.active {
    display: flex;
}

.rule-group-modal-content {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 24px;
    min-width: 400px;
    max-width: 850px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    border: 1px solid var(--border-color);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.rule-group-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rule-group-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-family-base);
    margin: 0;
}

.rule-group-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.rule-group-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.rule-group-modal-body {
    margin-bottom: 20px;
}

.rule-group-modal-body .form-group {
    margin-bottom: 16px;
}

.rule-group-modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: var(--font-family-base);
}

.rule-group-modal-body .form-group input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-family-base);
    font-size: 14px;
}

.rule-group-modal-body .form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
}

.rule-group-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.rule-group-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 12px;
}

.rule-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

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

.rule-group-item:hover {
    background: var(--bg-secondary);
}

.rule-group-item-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rule-group-item-title {
    font-weight: 500;
    color: var(--text-primary);
    font-family: var(--font-family-base);
}

.rule-group-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.rule-group-item-time {
    color: var(--text-muted);
}

.rule-group-item-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.rule-group-item-badge.local {
    background: rgba(74, 144, 226, 0.2);
    color: var(--accent-light);
}

.rule-group-item-badge.cloud {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.rule-group-item-actions {
    display: flex;
    gap: 8px;
}

.rule-group-item-actions .btn-link {
    background: none;
    border: none;
    color: var(--accent-light);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s;
    font-family: var(--font-family-base);
}

.rule-group-item-actions .btn-link:hover {
    background: var(--bg-tertiary);
}

.rule-group-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
    font-size: 14px;
    font-family: var(--font-family-base);
}

@media (max-width: 768px) {
    .rule-group-modal-content {
        min-width: 90vw;
        margin: 20px;
    }
}

.rule-group-item-badge.type {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}