body { font-family: 'Inter', sans-serif; }
.glass-card { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); }

.ad-placeholder { background: #f3f4f6; border: 2px dashed #d1d5db; display: flex; align-items: center; justify-content: center; color: #9ca3af; }
.star-icon { transition: all 0.3s ease; }
.star-icon.active { color: #fbbf24; }
.bookmark-toast { animation: slideIn 0.3s ease; }
@keyframes slideIn { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(400px); opacity: 0; } }
.bookmark-toast.hide { animation: slideOut 0.3s ease; }

/* ===== 物流行业可读性优化 ===== 让信息撞向用户，不让用户寻找信息 */

/* 增大全局基础字号（18px 对于在驾驶室使用的手机更清晰） */
html { font-size: 18px; }

/* 强化标题对比度与大小 */
h2 { 
    font-size: 1.75rem !important; 
    font-weight: 800 !important; 
    letter-spacing: -0.025em;
    margin-bottom: 1rem !important;
}
h3 { 
    font-size: 1.25rem !important; 
    font-weight: 700 !important; 
}

/* 优化卡片内的描述文本 */
.text-\[11px\], .text-xs { 
    font-size: 0.95rem !important; 
    line-height: 1.5; 
    color: #475569 !important; 
}

/* 增大输入框和选择框的文字与点击区域 */
input, select, button { 
    font-size: 1rem !important; 
    height: 3.5rem !important; 
}

/* 适配物流人操作习惯的全局微调 */
@media (max-width: 640px) {
    html { font-size: 20px; } /* 手机端字号进一步放大 */
    .container { padding-left: 1rem; padding-right: 1rem; }
    input, select, button { 
        border-radius: 12px !important; /* 更圆润的边角，减少视觉压迫 */
        margin-bottom: 15px;
    }
}

/* 增加卡片的点击感 */
.card-hover:active {
    transform: scale(0.98);
    background-color: #f1f5f9;
}

/* 卡片悬停时的商业动效 */
.group:hover {
    cursor: pointer;
}

.group:hover h3 {
    color: #2563eb; /* 悬停时标题变蓝 */
}

/* 按钮点击时的视觉反馈 */
button:active {
    transform: scale(0.95);
}

/* ===== Tab导航栏滚动优化 ===== */
/* 隐藏滚动条但保持滚动功能 */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* 添加右侧阴影指示器，提示用户有更多内容可滚动 */
.tab-scroll-container {
    position: relative;
}

.tab-scroll-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    pointer-events: none;
}

/* 优化Tab按钮样式 */
.tab-btn {
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn:hover {
    transform: translateY(-1px);
}

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

/* ===== SaaS应用程序样式优化 ===== */
/* 优化主卡片样式 */
.bg-white.rounded-xl.shadow-lg.border.border-slate-200 {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

/* 优化输入框样式 */
input[type="text"],
input[type="number"],
input[type="email"],
select {
    transition: all 0.2s ease;
    border: 1px solid #cbd5e1;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 优化按钮样式 */
button {
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 优化卡片间距 */
.space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* 优化表格样式 */
table {
    border-collapse: separate;
    border-spacing: 0;
}

table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

/* 优化结果卡片 */
.bg-slate-50.rounded-lg {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* 优化响应式布局 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .bg-white.rounded-xl.shadow-lg {
        padding: 1rem;
    }
}

/* ===== 工具网格卡片样式 ===== */
.tool-card {
    transition: all 0.2s ease;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.tool-card:active {
    transform: translateY(0);
}

.tool-card h3 {
    transition: color 0.2s ease;
}

.tool-card:hover h3 {
    color: #2563eb;
}

/* 激活状态的工具卡片 */
.tool-card.border-blue-600 {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.tool-card.border-blue-600 h3 {
    color: #1e40af;
}

/* 图标悬停动画 */
.tool-card .group-hover\:scale-110:hover {
    transform: scale(1.1);
}
