/* ==================== 公共框架样式 ==================== */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
}

/* ==================== 基础工具类（fj-前缀） ==================== */

/* 外边距 (Margin) */
.fj-m-0 { margin: 0; }
.fj-m-5 { margin: 5px; }
.fj-m-10 { margin: 10px; }
.fj-m-15 { margin: 15px; }
.fj-m-20 { margin: 20px; }
.fj-m-25 { margin: 25px; }
.fj-m-30 { margin: 30px; }

.fj-m-t-0 { margin-top: 0; }
.fj-m-t-5 { margin-top: 5px; }
.fj-m-t-10 { margin-top: 10px; }
.fj-m-t-15 { margin-top: 15px; }
.fj-m-t-20 { margin-top: 20px; }
.fj-m-t-25 { margin-top: 25px; }
.fj-m-t-30 { margin-top: 30px; }

.fj-m-b-0 { margin-bottom: 0; }
.fj-m-b-5 { margin-bottom: 5px; }
.fj-m-b-10 { margin-bottom: 10px; }
.fj-m-b-15 { margin-bottom: 15px; }
.fj-m-b-20 { margin-bottom: 20px; }
.fj-m-b-25 { margin-bottom: 25px; }
.fj-m-b-30 { margin-bottom: 30px; }

.fj-m-l-0 { margin-left: 0; }
.fj-m-l-5 { margin-left: 5px; }
.fj-m-l-10 { margin-left: 10px; }
.fj-m-l-15 { margin-left: 15px; }
.fj-m-l-20 { margin-left: 20px; }
.fj-m-l-25 { margin-left: 25px; }
.fj-m-l-30 { margin-left: 30px; }

.fj-m-r-0 { margin-right: 0; }
.fj-m-r-5 { margin-right: 5px; }
.fj-m-r-10 { margin-right: 10px; }
.fj-m-r-15 { margin-right: 15px; }
.fj-m-r-20 { margin-right: 20px; }
.fj-m-r-25 { margin-right: 25px; }
.fj-m-r-30 { margin-right: 30px; }

.fj-m-x-5 { margin-left: 5px; margin-right: 5px; }
.fj-m-x-10 { margin-left: 10px; margin-right: 10px; }
.fj-m-x-15 { margin-left: 15px; margin-right: 15px; }
.fj-m-x-20 { margin-left: 20px; margin-right: 20px; }
.fj-m-x-30 { margin-left: 30px; margin-right: 30px; }

.fj-m-y-5 { margin-top: 5px; margin-bottom: 5px; }
.fj-m-y-10 { margin-top: 10px; margin-bottom: 10px; }
.fj-m-y-15 { margin-top: 15px; margin-bottom: 15px; }
.fj-m-y-20 { margin-top: 20px; margin-bottom: 20px; }
.fj-m-y-30 { margin-top: 30px; margin-bottom: 30px; }

/* 内边距 (Padding) */
.fj-p-0 { padding: 0; }
.fj-p-5 { padding: 5px; }
.fj-p-10 { padding: 10px; }
.fj-p-15 { padding: 15px; }
.fj-p-20 { padding: 20px; }
.fj-p-25 { padding: 25px; }
.fj-p-30 { padding: 30px; }

.fj-p-t-0 { padding-top: 0; }
.fj-p-t-5 { padding-top: 5px; }
.fj-p-t-10 { padding-top: 10px; }
.fj-p-t-15 { padding-top: 15px; }
.fj-p-t-20 { padding-top: 20px; }
.fj-p-t-25 { padding-top: 25px; }
.fj-p-t-30 { padding-top: 30px; }

.fj-p-b-0 { padding-bottom: 0; }
.fj-p-b-5 { padding-bottom: 5px; }
.fj-p-b-10 { padding-bottom: 10px; }
.fj-p-b-15 { padding-bottom: 15px; }
.fj-p-b-20 { padding-bottom: 20px; }
.fj-p-b-25 { padding-bottom: 25px; }
.fj-p-b-30 { padding-bottom: 30px; }

.fj-p-l-0 { padding-left: 0; }
.fj-p-l-5 { padding-left: 5px; }
.fj-p-l-10 { padding-left: 10px; }
.fj-p-l-15 { padding-left: 15px; }
.fj-p-l-20 { padding-left: 20px; }
.fj-p-l-25 { padding-left: 25px; }
.fj-p-l-30 { padding-left: 30px; }

.fj-p-r-0 { padding-right: 0; }
.fj-p-r-5 { padding-right: 5px; }
.fj-p-r-10 { padding-right: 10px; }
.fj-p-r-15 { padding-right: 15px; }
.fj-p-r-20 { padding-right: 20px; }
.fj-p-r-25 { padding-right: 25px; }
.fj-p-r-30 { padding-right: 30px; }

.fj-p-x-5 { padding-left: 5px; padding-right: 5px; }
.fj-p-x-10 { padding-left: 10px; padding-right: 10px; }
.fj-p-x-15 { padding-left: 15px; padding-right: 15px; }
.fj-p-x-20 { padding-left: 20px; padding-right: 20px; }
.fj-p-x-30 { padding-left: 30px; padding-right: 30px; }

.fj-p-y-5 { padding-top: 5px; padding-bottom: 5px; }
.fj-p-y-10 { padding-top: 10px; padding-bottom: 10px; }
.fj-p-y-15 { padding-top: 15px; padding-bottom: 15px; }
.fj-p-y-20 { padding-top: 20px; padding-bottom: 20px; }
.fj-p-y-30 { padding-top: 30px; padding-bottom: 30px; }

/* 字体大小 (Font Size) */
.fj-fz-10 { font-size: 10px; }
.fj-fz-11 { font-size: 11px; }
.fj-fz-12 { font-size: 12px; }
.fj-fz-13 { font-size: 13px; }
.fj-fz-14 { font-size: 14px; }
.fj-fz-15 { font-size: 15px; }
.fj-fz-16 { font-size: 16px; }
.fj-fz-18 { font-size: 18px; }
.fj-fz-20 { font-size: 20px; }
.fj-fz-22 { font-size: 22px; }
.fj-fz-24 { font-size: 24px; }
.fj-fz-28 { font-size: 28px; }
.fj-fz-32 { font-size: 32px; }

/* 字体粗细 (Font Weight) */
.fj-fw-normal { font-weight: normal; }
.fj-fw-medium { font-weight: 500; }
.fj-fw-bold { font-weight: bold; }

/* 行高 (Line Height) */
.fj-lh-none { line-height: 1; }
.fj-lh-tight { line-height: 1.25; }
.fj-lh-snug { line-height: 1.375; }
.fj-lh-normal { line-height: 1.5; }
.fj-lh-relaxed { line-height: 1.625; }
.fj-lh-loose { line-height: 2; }
.fj-lh-xs { line-height: 1.2; }
.fj-lh-sm { line-height: 1.3; }
.fj-lh-base { line-height: 1.4; }
.fj-lh-lg { line-height: 1.6; }
.fj-lh-xl { line-height: 1.8; }
.fj-lh-2xl { line-height: 2.2; }

/* 文字对齐 (Text Align) */
.fj-text-left { text-align: left; }
.fj-text-center { text-align: center; }
.fj-text-right { text-align: right; }
.fj-text-justify { text-align: justify; }

/* 文字颜色 (Text Color) */
.fj-text-primary { color: #6366f1; }
.fj-text-success { color: #67c23a; }
.fj-text-warning { color: #e6a23c; }
.fj-text-danger { color: #f56c6c; }
.fj-text-info { color: #909399; }
.fj-text-black { color: #333; }
.fj-text-gray { color: #666; }
.fj-text-light { color: #999; }
.fj-text-white { color: #fff; }

/* 背景颜色 (Background Color) */
.fj-bg-primary { background-color: #6366f1; }
.fj-bg-success { background-color: #67c23a; }
.fj-bg-warning { background-color: #e6a23c; }
.fj-bg-danger { background-color: #f56c6c; }
.fj-bg-info { background-color: #909399; }
.fj-bg-white { background-color: #fff; }
.fj-bg-gray { background-color: #f5f7fa; }
.fj-bg-light { background-color: #fafafa; }

/* 边框 (Border) */
.fj-border { border: 1px solid #e8e8e8; }
.fj-border-none { border: none; }
.fj-border-t { border-top: 1px solid #e8e8e8; }
.fj-border-b { border-bottom: 1px solid #e8e8e8; }
.fj-border-l { border-left: 1px solid #e8e8e8; }
.fj-border-r { border-right: 1px solid #e8e8e8; }

/* 边框样式 */
.fj-border-dashed { border-style: dashed; }
.fj-border-dotted { border-style: dotted; }
.fj-border-solid { border-style: solid; }

/* 边框圆角 (Border Radius) */
.fj-br-0 { border-radius: 0; }
.fj-br-4 { border-radius: 4px; }
.fj-br-8 { border-radius: 8px; }
.fj-br-12 { border-radius: 12px; }
.fj-br-16 { border-radius: 16px; }
.fj-br-round { border-radius: 50%; }

/* 显示模式 (Display) */
.fj-d-block { display: block; }
.fj-d-inline { display: inline; }
.fj-d-inline-block { display: inline-block; }
.fj-d-flex { display: flex; }
.fj-d-none { display: none; }

/* Flex 布局 */
.fj-flex { display: flex; flex-direction: row; }
.fj-flex-center { display: flex; align-items: center; justify-content: center; }
.fj-flex-between { display: flex; align-items: center; justify-content: space-between; }
.fj-flex-start { display: flex; align-items: center; justify-content: flex-start; }
.fj-flex-end { display: flex; align-items: center; justify-content: flex-end; }
.fj-flex-col { display: flex; flex-direction: column; }
.fj-flex-wrap { flex-wrap: wrap; }
.fj-flex-1 { flex: 1; }

/* Flex 对齐类 */
.fj-items-start { align-items: flex-start; }
.fj-items-center { align-items: center; }
.fj-items-end { align-items: flex-end; }
.fj-justify-start { justify-content: flex-start; }
.fj-justify-center { justify-content: center; }
.fj-justify-end { justify-content: flex-end; }
.fj-justify-between { justify-content: space-between; }

/* 溢出处理 (Overflow) */
.fj-overflow-hidden { overflow: hidden; }
.fj-overflow-auto { overflow: auto; }
.fj-overflow-scroll { overflow: scroll; }

/* 浮动 (Float) */
.fj-float-left { float: left; }
.fj-float-right { float: right; }
.fj-clearfix::after { content: ''; display: table; clear: both; }

/* 定位 (Position) */
.fj-pos-static { position: static; }
.fj-pos-relative { position: relative; }
.fj-pos-absolute { position: absolute; }
.fj-pos-fixed { position: fixed; }

/* 光标 (Cursor) */
.fj-cursor-pointer { cursor: pointer; }
.fj-cursor-default { cursor: default; }

/* 透明度 (Opacity) */
.fj-opacity-0 { opacity: 0; }
.fj-opacity-50 { opacity: 0.5; }
.fj-opacity-75 { opacity: 0.75; }
.fj-opacity-100 { opacity: 1; }

/* 阴影 (Shadow) */
.fj-shadow { box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); }
.fj-shadow-sm { box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08); }
.fj-shadow-lg { box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.12); }

/* 文字溢出 */
.fj-text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-text-ellipsis-2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

html, body {
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    overflow-x: hidden;
}

/* Vue 初始化前隐藏内容 */
[v-cloak] {
    display: none !important;
}

/* 工具内容容器 */
.content-wrapper {
    position: relative;
    min-height: 400px;
}

/* 加载状态 */
.loading-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-container.hidden {
    display: none;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border: 4px solid #f3f3f3;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    color: #666;
    font-size: 14px;
}



/* 侧边栏 */
.sidebar {
    width: 220px;
    height: 100vh;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.logo i {
    font-size: 24px;
    margin-right: 8px;
    color: #6366f1;
}

.logo-image {
    height: 90px;
    width: auto;
    margin-right: 8px;
}

.sidebar-nav {
    overflow-y: auto;
    padding: 10px 0;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e8e8e8;
    bottom: 0;left: 0;padding: 16px 20px;position: absolute;right: 0;text-align: center;
}

.feedback-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.feedback-link:hover {
    background: #f5f7fa;
    color: #6366f1;
}

.feedback-link i {
    margin-right: 10px;
    font-size: 16px;
}

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

.nav-list li {
    margin: 0;
}

.nav-list li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-list li a:hover {
    background: #f5f7fa;
    color: #6366f1;
}

.nav-list li.active a {
    background: #eef2ff;
    color: #6366f1;
    font-weight: 500;
}

.nav-list li i {
    margin-right: 10px;
    font-size: 16px;
}

/* 首页头部 */
.home-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
}

.home-title h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.home-title p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 24px 0;
}

.home-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* 搜索框 */
.search-box {
    max-width: 420px;
    margin: 0 auto;
}

.search-box form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box form:hover {
    border-color: #a5b4fc;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.search-box input {
    flex: 1;
    height: 44px;
    padding: 0 20px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    width: 52px;
    height: 44px;
    border: none;
    background: #6366f1;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.search-box button:hover {
    background: #4f46e5;
}

.search-box button i {
    font-size: 18px;
}

/* 工具卡片网格 - 动态响应式布局（参考 toolibo.com） */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* 工具卡片 */
.tool-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
    border-color: #e0e7ff;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

/* 左侧图标区域 */
.tool-left {
    flex-shrink: 0;
    margin-right: 16px;
}

.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.08);
}

/* 右侧内容区域 */
.tool-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* 标题行 - 标题和标志 */
.tool-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tool-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 标志标签 - 右上角 */
.tool-flags {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.tool-flags .flag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.flag-danger {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: #fff;
}

.flag-warning {
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: #fff;
}

.flag-info {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #fff;
}

.flag-primary {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: #fff;
}

.flag-success {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #fff;
}

/* 描述文字 */
.tool-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
}

/* 底部标签区域 */
.tool-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 积分标签 */
.tool-integral {
    font-size: 12px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #6366f1;
    border-radius: 20px;
    font-weight: 500;
}

/* 标签区域 */
.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
}

.tool-tags .tag {
    font-size: 11px;
    padding: 3px 8px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tool-card:hover .tool-tags .tag {
    background: #eef2ff;
    color: #6366f1;
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

/* 主内容区域 */
.main-container {
    position: relative;
     padding: 24px;
     min-height: calc(100vh - 190px);
}
.main-content {
    margin-left: 220px;
  
    box-sizing: border-box;
    overflow-x: hidden;
}

.main-content-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* 工具头部 */


.tool-icon-large {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}





/* 底部 */
.footer {
  
   
    font-size: 13px;
    color: #999;
    border-top: 1px solid #eee;
    margin-top: 40px;
    min-height: 100px;
   
    background: #fff;
}

.footer p {
    margin: 8px 0;
}

.footer-link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #6366f1;
}

/* ==================== 响应式布局 ==================== */

/* 移动端导航栏 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 900;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: #f5f7fa;
}

.mobile-logo {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 侧边栏遮罩 */
.sidebar-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 950;
}

/* 遮罩显示状态 */
.sidebar-mask.show {
    display: block;
}

/* 响应式断点 - 平板和手机 */
@media (max-width: 768px) {
    /* 显示移动端导航栏 */
    .mobile-nav {
        display: flex;
    }

    /* 侧边栏默认隐藏 */
    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
        transition: transform 0.3s ease;
    }

    /* 侧边栏展开 */
    .sidebar.open {
        transform: translateX(0);
    }

    /* 主内容区域全屏显示 */
    .main-content {
        margin-left: 0;
        padding-top: 75px;
   
      
        box-sizing: border-box;
    }

  



    /* 工具卡片响应式 - 移动端单列拉满 */
    .tool-card {
        
        max-width: none;
        padding: 16px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tool-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

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

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

    .home-header {
        padding: 24px 16px;
    }

    .home-title h1 {
        font-size: 22px;
    }

    .home-stats {
        gap: 20px;
    }
}

/* ==================== 工具页面公共样式 ==================== */

/* Flex 间距类 */
.gap-5 { gap: 5px; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.gap-25 { gap: 25px; }
.gap-30 { gap: 30px; }

/* Flex 对齐类 */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

/* 标签面板 */
.tab-panel {
    padding: 20px;
}

/* 响应式双栏布局 - 工具页面输入输出区域通用 */
.fj-two-col-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fj-two-col-item {
    width: 100%;
}

@media (min-width: 768px) {
    .fj-two-col-container {
        flex-direction: row;
    }
    
    .fj-two-col-item {
        width: 50%;
    }
}

/* 区域标题 */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

/* 区域头部（标题+按钮） */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* 区域内容体 */
.section-body {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
}

/* Base64内容区域 */
.base64-content {
    width: 100%;
    min-height: 200px;
    font-family: monospace;
    font-size: 13px;
}

/* Base64图片预览 */
.base64-preview img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
}

/* ==================== 单位换算样式 ==================== */

.unit-convert-card {
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
}

.convert-header {
    text-align: center;
    padding: 30px 20px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.convert-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.convert-desc {
    font-size: 14px;
    color: #999;
    margin: 0;
}



.convert-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    background: #f8fafc;
    margin: 20px;
    border-radius: 12px;
    flex-wrap: wrap;
}

.convert-input,
.convert-output {
    display: flex;
    align-items: center;
    gap: 8px;
}

.swap-icon-btn {
    transition: all 0.2s ease;
    display: inline-block;
    transform: rotate(90deg);
    font-size: 28px;
    color: #6366f1;
}

.el-button:hover .swap-icon-btn,
.el-button:focus .swap-icon-btn {
    transform: rotate(90deg) scale(1.2);
    color: #818cf8;
}




.copy-section {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.copy-btn {
    border-radius: 8px;
    padding: 10px 30px;
    font-weight: 500;
}

.formula-section {
    padding: 16px 20px;
    margin: 20px;
    background: #fff;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
    text-align: center;
}

.formula-text {
    font-size: 14px;
    color: #666;
    font-family: monospace;
}

.common-section {
    padding: 0 20px 20px;
}

.common-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.common-item {
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
}



/* ==================== 工具页面结果表格样式 ==================== */

/* 结果表格容器 */
.fj-result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
}

/* 结果表格单元格 */
.fj-result-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.fj-result-item:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* 结果表格标签 */
.fj-result-label {
    width: 28%;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
    padding-right: 12px;
    border-right: 1px solid #e2e8f0;
}

/* 结果表格值 */
.fj-result-value {
    flex: 1;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 14px;
    color: #1e293b;
    padding-left: 12px;
    font-weight: 500;
}

/* 跨列单元格 */
.fj-result-full {
    grid-column: span 2;
}

/* 响应式表格 */
@media (max-width: 576px) {
    .fj-result-grid {
        grid-template-columns: 1fr;
    }
    
    .fj-result-full {
        grid-column: span 1;
    }
}

/* 移动端footer上下结构 */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        text-align: center;
      
    }
    
    .footer-left {
        margin-bottom: 15px;
        padding-left: 0 !important;
    }
    
    .footer-right {
        width: 100%;
    }
    
    /* 移动端隐藏电脑端广告，显示手机端广告 */
    .ad-desktop {
        display: none;
    }
    
    .ad-mobile {
        display: block;
    }
}

/* 默认显示电脑端广告，隐藏手机端广告 */
.ad-desktop {
    display: block;
}

.ad-mobile {
    display: none;
}

/* ==================== 工具页面底部提示样式 ==================== */

/* 提示容器 */
.fj-tip-box {
    background: #fafaf8;
    border-radius: 8px;
    padding: 15px;
    border-left: 3px solid #e5e7eb;
    margin-top: 15px;
}

/* 提示标题 */
.fj-tip-title {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 10px;
}

/* 提示列表 */
.fj-tip-list {
    list-style: none;
    padding-left: 15px;
    margin: 0;
}

/* 提示列表项 */
.fj-tip-item {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.8;
    position: relative;
}

.fj-tip-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 7px;
    width: 4px;
    height: 4px;
    background: #9ca3af;
    border-radius: 50%;
}

/* 桌面端 */
@media (min-width: 769px) {
    /* 隐藏移动端导航栏 */
    .mobile-nav {
        display: none;
    }

    /* 侧边栏始终显示 */
    .sidebar {
        transform: translateX(0);
    }

    /* 隐藏遮罩 */
    .sidebar-mask {
        display: none;
    }
}
