/* 自定义样式 */

/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* 背景图 */
.bg-deepl {
    background-image: url('https://p3-doubao-search-sign.byteimg.com/labis/4c331684b632dcf41d3da349d81b9b99~tplv-be4g95zd3a-image.jpeg?lk3s=feb11e32&x-expires=1792397000&x-signature=d%2Bz1cGGgDwUMnHTlmLFd82cD%2F9o%3D');
    background-size: cover;
    background-position: center;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* 按钮悬停效果 */
button:hover, a:hover {
    transition: all 0.3s ease;
}

/* 输入框聚焦效果 */
input:focus, textarea:focus, select:focus {
    transition: all 0.3s ease;
}

/* 卡片阴影效果 */
.card {
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 翻译区域样式 */
#translation-result {
    min-height: 16rem;
}

/* 语言选择器样式 */
.language-option {
    transition: background-color 0.2s ease;
}

.language-option:hover {
    background-color: #f3f4f6;
}

/* 面包屑导航样式 */
.breadcrumb {
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #3b82f6;
}

/* 下载按钮样式 */
.download-button {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
}

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

/* 特性卡片样式 */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 页脚链接样式 */
.footer-link {
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

/* 社交媒体图标样式 */
.social-icon {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* FAQ 样式 */
.faq-question {
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #f9fafb;
}

/* 滚动到顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
}

.scroll-to-top:hover {
    background-color: #2563eb;
}