/**
 * 蟹总兼职定制 主题 - 前端自定义样式
 * 用于覆盖或扩展主题的默认样式
 * 可在"主题设置 → 自定义CSS"中在线修改，也可直接编辑此文件
 */

/* ============================================
   字体美化 - 使用 Inter 作为主体字体
   ============================================ */
body,
html {
    font-family: 'Inter', 'DM Sans', rubik, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 标题使用更粗的字重 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'DM Serif Display', rubik-bold, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* 段落文字优化行高和间距 */
p {
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* 导航栏字体优化 */
nav,
nav a,
nav button,
header {
    font-family: 'Inter', 'DM Sans', rubik-medium, sans-serif;
    letter-spacing: 0.01em;
}

/* 按钮字体优化 */
button,
.btn,
a.btn {
    font-family: 'Inter', 'DM Sans', rubik-medium, sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* 大标题（hero区域）特殊处理 */
[class*="text-[50px]"],
[class*="text-[36px]"],
[class*="text-[30px]"],
.font-rubikBold,
.font-rubikSemibold {
    font-family: 'Inter', 'DM Serif Display', rubik-bold, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.03em;
}

/* 中等粗体文字 */
.font-rubikMedium {
    font-family: 'Inter', 'DM Sans', rubik-medium, sans-serif !important;
    font-weight: 500;
}

/* 小字体优化可读性 */
.text-sm,
.text-\[12px\],
.text-\[14px\],
small {
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.01em;
}

/* ============================================
   自定义滚动条
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-thumb {
    background: rgba(116, 56, 38, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(116, 56, 38, 0.5);
}

/* ============================================
   Mobile menu transition utilities
   (ensure hamburger toggle works even if
   the UnoCSS build didn't generate them)
   ============================================ */
.max-h-0      { max-height: 0 !important; }
.max-h-screen { max-height: 100vh !important; }
.scale-y-0    { transform: scaleY(0); }
.scale-y-100  { transform: scaleY(1); }
.origin-top   { transform-origin: top; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }

/* FAQ expand / collapse animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
details.group[open] .group-open\:opacity-0   { opacity: 0; }
details.group[open] .group-open\:opacity-100 { opacity: 1; }
details.group[open] .group-open\:animate-fadeIn { animation: fadeIn .3s ease-out; }
