/**
 * 颜色工具
 * 页面外壳（顶部导航、居中容器、底部版权行）由 ../../tools-page.css 提供，
 * 本文件只保留该工具的专属样式。
 */

/* 代码 / 密文区域统一使用等宽字体，便于查看与复制 */
#otWorkspace textarea,
#otWorkspace pre,
#otWorkspace code {
    font-family: Consolas, Monaco, "Courier New", monospace;
}

/* 补齐页面使用到的自定义工具类 */

/* 选项卡选中态 */
.tab-active {
    color: #0989E2;
    border-bottom: 2px solid #0989E2;
    font-weight: 600;
}

/* 通用组件类补齐 */

/* 输入框聚焦态 */
.input-focus:focus {
    border-color: #0989E2;
    box-shadow: 0 0 0 2px rgba(9,137,226, 0.15);
    outline: none;
}

/* 卡片阴影 */
.card-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 卡片悬浮效果 */
.card-hover {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card-hover:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 渐变预览区（由 JS 动态设置 background） */
.gradient-preview {
    height: 12rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

/* 渐变预设示例卡片 */
.gradient-preset {
    height: 4.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gradient-preset:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.gradient-preset__name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 颜色阶梯 / 中间色过渡的可点击色块 */
.color-chip {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.color-chip:hover {
    transform: scale(1.08);
}


