:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #1abc9c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* 工具卡片样式 */
.tool-card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tool-card .card-body {
    padding: 1.5rem;
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* 工具内容区域样式 */
#toolContent {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 输入输出区域样式 */
.tool-input, .tool-output {
    margin-bottom: 20px;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* 广告容器样式 */
.ad-container {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ad-placeholder {
    background-color: #e9ecef;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    color: #6c757d;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ad-sidebar {
        position: static !important;
        margin-top: 2rem;
    }
    
    .ad-placeholder {
        height: 250px !important;
    }
}

/* 工具搜索区域 */
.search-container {
    margin: 2rem 0;
}

/* 美化按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* 工具结果样式 */
.result-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
}

/* 导航栏样式 */
.navbar-dark.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Toast通知样式 */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.toast-message {
    background-color: var(--dark-color);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    min-width: 250px;
    max-width: 400px;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s, transform 0.3s;
}

.toast-message i {
    margin-right: 8px;
    color: var(--secondary-color);
}

/* 恢复工具导航栏样式并调整位置到顶部 */
.tools-navbar {
    display: none;
    position: fixed;
    top: 10px; /* 顶部位置 */
    right: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    padding: 15px;
    z-index: 1050; /* 增加z-index确保显示在其他内容之上 */
    max-width: 280px;
    border: 1px solid rgba(0,0,0,0.08);
}

.navbar-header {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.navbar-tools {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.navbar-tools a {
    text-decoration: none;
    color: #333;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.navbar-tools a:hover {
    background-color: #f0f0f0;
}

.navbar-tools a.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

/* 恢复响应式设计 */
@media (max-width: 768px) {
    .tools-navbar {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        max-width: 100%;
        border-radius: 8px 8px 0 0;
    }
    
    .navbar-tools {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 添加分类部分样式 */
.section-title {
    position: relative;
    color: var(--dark-color);
    font-weight: 600;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.category-section {
    margin-top: 40px;
    padding-top: 20px;
}

.popular-tools-section .badge.bg-danger {
    background-color: var(--danger-color) !important;
}

/* 语言切换样式 */
.dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

.language-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    color: white;
    background-color: var(--secondary-color);
} 